git.iko.soy/typeable/pandoc
on 2.9 help sign in
typeable/pandoc/changelog.md
16852 lines 728 kB history raw
1# Revision history for pandoc
3## pandoc 2.9 (PROVISIONAL)
5 * Text.Pandoc.Templates [API change]
7 + Add Monad wrappers `WithDefaultPartials` and `WithPartials`.
8 Wrapping these around an instance of `PandocMonad` gives
9 us different instances of `TemplateMonad`, with different
10 search behavior in retrieving partials.
11 To compile a template and limit partial search to pandoc's
12 data files, use `runWithDefaultPartials (compileTemplate ...)`.
13 To compile a template and allow partials to be found locally
14 (either on the file system or via HTTP, in the event that
15 the main template has an absolute URL), ue
16 `runWithPartials (compileTemplate ...)`.
17 + Export `getTemplate`, which seeks a template locally,
18 or via HTTP if the template has an absolute URL, falling
19 back to the data files if not found.
20 + Export `compileDefaultTemplate` -- does `getDefaultTemplate`
21 and compiles the result, raising an error on failure.
23 * Text.Pandoc.Class [API change]
25 + Remove `TemplateMonad` instances for `PandocIO` and `PandocPure`.
26 These were too limiting and caused a bug whereby a local
27 partial could be used even when the default template was requested.
28 We now rely on instances provided in the Templates module.
30 * Text.Pandoc.App.OutputSettings: Simplify template retrieval code.
32 * ConTeXt template: Adjust to title formatting (#5949, Denis Maier).
33 Add `\setupinterlinespace` to `title`, `subtitle`, `date` and `author`
34 elements: otherwise longer titles that run over multiple lines will look
35 squashed as `\tfd` etc. won't adapt the line spacing to the font size.
37 * reveal.js template: Add title-slide-attributes variable (#5981,
38 Frederik Elwert).
40 * More informative JSON parse error (#5973).
42 * Use external emojis package (forked from pandoc). Removed emoji data
43 in Text.Pandoc.Emoji.
45 * Fix regression in `makeSections` (#5965).
46 Previously `hierarchicalize` (the ancestor of `makeSections`) would put
47 header attributes on the containing Div. In 2.8 this behavior changed,
48 which broke some tools depending on pandoc. Here we roll back this change,
49 so that attributes again migrate from the header to the containing Div when
50 `makeSections` is run. Note that attributes are retained on the header as
51 well (unlike before) -- with the exception of the `id` attribute, which of
52 course cannot be duplicated.
54 * Fix `--toc-depth` regression in 2.8 (#5967).
56 * Use doctemplates 0.8. Rename template 'filters' as 'pipes'
57 to avoid confusion with the other notion of filter used by pandoc.
59 * Fix README.md so that relative links from manual become absolute.
60 Previously they'd be broken links when viewed on GitHub or Hackage.
61 So we add the base URL for the pandoc manual.
63 * Document display math syntax in manual.
65## pandoc 2.8.1 (2019-12-05)
67 * Add `ascii_identifiers` as a supported extension for `markdown`.
68 This fixes a regression in 2.8.
70 * Fix regression with behavior of `--variable` (#5962).
71 Previously `-Vfoo=1 -Vfoo=2` would produce a list value for foo;
72 with 2.8 it produced just `2`. This commit restores the earlier
73 behavior.
75 * Roll back part of of `--shift-heading-level-by` change (#5957).
76 With positive heading shifts, starting in 2.8 this option
77 caused metadata titles to be removed and changed to regular
78 headings. This behavior is incompatible with the old
79 behavior of `--base-header-level` and breaks old workflows,
80 so we have rolled back the change. Note that there is now an
81 asymmetry in positive and negative heading level shifts:
82 With positive shifts, the metadata title stays the same and
83 does not get changed to a heading in the body, while with
84 negative shifts, a heading can be converted into the
85 metadata title.
87 * Text.Pandoc.Shared: Fix `makeSections` so it doesn't turn
88 column Divs into sections.
90 * HTML writer: add task-list class to ul if all elements are
91 task list items. This will allow styling unordered task
92 lists in a way that omits the bullet.
94 * HTML-based templates: Add CSS to suppress bullet on unordered task lists.
96 * ConTeXt template: Fix `\startcslreferences` and use ConTeXt syntax
97 conventions (#5945, Denis Maier). The old version had a too large
98 a skip at the beginning of the reference list.
100 * LaTeX template: keep the `\author{}` command even if author is not
101 specified (#5961, Yihui Xie). Avoids a LaTeX warning.
103 * Generate Emoji module with TH.
105 + Add Text.Pandoc.Emoji.TH.
106 + Replace long literal list in Text.Pandoc.Emoji with one-liner
107 generating it from `emoji.json` using TH.
108 + Add Makefile target to download `emoji.json`.
109 + Remove `tools/emoji.hs`.
111 * Increase GC allocation space for compilation in cabal.project.
113 * Clean up manual on PDF generation backend options (#5940).
115 * Update release checklist to include code signing step and update
116 Windows release-candidate builds (#5950).
119## pandoc 2.8.0.1 (2019-11-26)
121 * List `pdf` in `--list-output-formats`.
122 * EPUB writer: Fix regression with `--css` (#5937). In 2.8 `--css`
123 would not have an effect on EPUB output.
124 * RST writer: Use grid tables for one-column tables, since
125 simple tables clash with heading syntax in this case (#5936).
126 * Add unexported module Text.Pandoc.Readers.Metadata (see #5914).
127 * Use doctemplates 0.7.2, which adds the `nowrap` filter to
128 templates.
129 * Update default man template using `nowrap` for .TH heading (#5929).
130 * HTML templates: Add support for `toc-title` variable (#5930,
131 Alexandre Franke).
132 * Remove `grffile` (LaTeX package) requirement in MANUAL.txt
133 (#5927, Ian Max Andolina).
134 * Use skylighting 0.8.3.
136## pandoc 2.8 (2019-11-22)
138 * Improvements in templates system (from doctemplates):
140 + Pandoc templates now support a number of new features that
141 have been added in doctemplates: notably, `elseif`, `it`,
142 partials, filters, and syntax to control nesting and reflowing of
143 text. These changes make pandoc more suitable out of the
144 box for generating plain-text documents from data in YAML
145 metadata. It can create enumerated lists and even tabular
146 structures.
147 + We now used templates parameterized on doclayout Doc types.
148 The main impact of this change is better reflowing of
149 content interpolated into templates. Previously,
150 interpolated variables were rendered independently and
151 intepolated as strings, which could lead to overly long
152 lines. Now the templates interpolated as Doc values which
153 may include breaking spaces, and reflowing occurs after
154 template interpolation rather than before.
155 + Remove code from the LaTeX, Docbook, and JATS writers that
156 looked in the template for strings to determine whether it
157 is a book or an article, or whether csquotes is used. This
158 was always kludgy and unreliable.
159 + Change template code to use new API for doctemplates.
161 * Add `--defaults`/`-d` option. This adds the ability to specify
162 a collection of default values for options in a YAML file. For
163 example, one might define a set of defaults for letters,
164 and then do `pandoc -d letter myletter.md -o myletter.pdf`.
165 See the documentation of this feature in MANUAL.txt.
167 * Raise error on unsupported extensions (#4338).
169 * The `--list-extensions[=FORMAT]` option now lists only
170 extensions that affect the given FORMAT.
172 * Add `-L` option as shortcut for `--lua-filter`.
174 * Add `--shift-heading-level-by` option and deprecate
175 `--base-heading-level` (#5615). The new option does
176 everything the old one does, but also allows negative shifts.
177 It also promotes the document metadata (if not null) to a
178 level-1 heading with a +1 shift, and demotes an initial
179 level-1 heading to document metadata with a -1 shift. This
180 supports converting documents that use an initial level-1
181 heading for the document title.
183 * Allow `--metadata-file` to be used repeatedly to include
184 multiple metadata files (Owen McGrath, #5702). Values in
185 files specified first will be overridden by those in later
186 files.
188 * `--ascii` now uses numerical hex character references (#5718).
190 * Allow PDF output to stdout (#5751). PDF output now behaves like other
191 binary formats: it will not be output to the terminal, but can be
192 sent to stdout using either `-o -` or a pipe. The intermediate format
193 will be determined based on the setting of `--pdf-engine`.
195 * Make some writers sensitive to 'unlisted' class on headings (#1762).
196 If this is present on a heading with the 'unnumbered' class,
197 the heading won't appear in the TOC. This class has no
198 effect if 'unnumbered' is not also specified. This affects HTML-based
199 writers (including slide shows and EPUB), LateX (including beamer), RTF,
200 and PowerPoint. Other writers do not yet support `unlisted`.
202 * Fix `gfm_auto_identifiers` behavior with emojis (#5813). Note that
203 we also now use emoji names for emojis when `ascii_identifiers`
204 is enabled.
206 * When `--ipynb-output` is used with the default "best" format, strip
207 ANSI escape codes for non-ipynb output (#5633). These cause problems
208 in many formats, including LaTeX.
210 * Don't look for template files remotely for remote input (#5579).
211 Previously pandoc would look for the template at a remote URL when a
212 URL was used for the input file, instead of taking it from the
213 data directory.
215 * Allow combining `-Vheader-includes` and `--include-in-header` (#5904).
216 Previously `header-includes` set as a variable would be
217 clobbered by material included using `--include-in-header`.
219 * Change merge behavior for metadata. Previously, if a document
220 contained two YAML metadata blocks that set the same field, the
221 conflict would be resolved in favor of the first. Now it is resolved
222 in favor of the second (due to a change in pandoc-types).
223 This makes the behavior more uniform with other things in pandoc
224 (such as reference links and `--metadata-file`).
226 * Don't add a newline to fragment output if there's already one.
228 * Change exit codes and document in MANUAL.txt:
230 + `PandocAppError` was 1, is now 4
231 + `PandocOptionError` was 2, is now 6
232 + `PandocMakePDFError` was 65, is now 66
234 * Switch to new pandoc-types and use Text instead of String [API change].
235 (Christian Despres, #5884).
237 * HTML reader:
239 + Better handling of `<q>` with cite attribute (#5798, Ole Martin Ruud).
240 If a `<q>` tag has a `cite` attribute, we interpret it as a Quoted
241 element with an inner Span.
242 + Add support for HTML `<samp>` element (#5792, Amogh Rathore).
243 The `<samp>` element is parsed as Code with class `sample`.
244 + Add support for HTML `<var>` element (#5799, Amogh Rathore).
245 The `<var>` element is parsed as Code with class `variable`.
246 + Add support for `<mark>` elements (Florian B, #5797). Parse
247 `<mark>` elements from HTML as Spans with class `mark`.
248 + Add support for `<kbd>` elements, parsing them as Span with class
249 `kbd` (Daniele D'Orazio, #5796).
250 + Add support for `<dfn>`, parsing this as a Span with class `dfn`
251 (#5882, Florian Beeres).
253 * Markdown reader:
255 + Headers: don't parse content over newline boundary (#5714).
256 + Handle inline code more eagerly within lists (Brian Leung, #5627).
257 + Removed some needless lookaheads.
258 + Don't parse footnote body unless extension enabled.
259 + Fix small super/subscript issue (#5878). Superscripts and subscripts
260 cannot contain spaces, but newlines were previously allowed
261 (unintentionally). This led to bad interactions in some cases
262 with footnotes. With this change newlines are also not allowed inside
263 super/subscripts.
264 + Use `take1WhileP` for `str`, table row. This yields a small but
265 measurable performance improvement.
268 * LaTeX reader:
270 + Fix parsing of optional arguments that contain braced text (#5740).
271 + Don't try to parse includes if `raw_tex` is set (#5673).
272 When the `raw_tex` extension is set, we just carry through
273 `\usepackage`, `\input`, etc. verbatim as raw LaTeX.
274 + Properly handle optional arguments for macros (#5682).
275 + Fix `\\` in `\parbox` inside a table cell (#5711).
276 + Improve `withRaw` so it can handle cases where the token string is
277 modified by a parser (e.g. accent when it only takes part of a Word
278 token) (#5686). This fixes a bug that caused the ends of
279 certain documents to be dropped.
280 + Handle `\passthrough` macro used by latex writer (#5659).
281 + Support tex `\tt` command (#5654).
282 + Search for image with list of extensions like latex does, if an
283 extension is not provided (#4933).
284 + Handle `\looseness` command values better (#4439).
285 + Add `mbox` and `hbox` handling (Vasily Alferov, #5586).
286 When `+raw_tex` is enabled, these are passed through literally.
287 Otherwise, they are handled in a way that emulates LaTeX's behavior.
288 + Properly handle `\providecommand` and `\provideenvironment` (#5635).
289 They are now ignored if the corresponding command or environment
290 is already defined.
291 + Support epigraph command in LaTeX Reader (oquechy, #3523).
292 + Ensure that expanded macros in raw LaTeX end with a space
293 if the original did (#4442).
294 + Treat `ly` environment from lilypond as verbatim (Urs Liska, #5671).
295 + Add `tikzcd` to list of special environments (Eigil Rischel).
296 This allows it to be processed by filters, in the same way that
297 one can do for `tikzpicture`.
299 * Roff reader:
301 + Better support for `while`.
302 + More improvements in parsing conditionals.
303 + Fix problem parsing comments before macro.
304 + Improve handling of groups.
305 + Better parsing of groups (#5410). We now allow groups
306 where the closing `\\}` isn't at the beginning of a line.
308 * RST reader:
310 + Keep `name` property in `imgAttr` (Brian Leung, #5619).
311 + Fixed parsing of indented blocks (#5753). We were requiring
312 consistent indentation, but this isn't required by RST.
313 + Use title, not admonition-title, for admonition title.
314 This puts RST reader into alignment with docbook reader.
315 + Don't strip final underscore from absolute URI (#5763).
316 + Avoid spurious warning when resolving links to internal anchors
317 ending with `_` (#5763).
319 * Org reader:
321 + Accept `ATTR_LATEX` in block attributes (Albert Krewinkel, #5648).
322 Attributes for LaTeX output are accepted as valid block attributes;
323 however, their values are ignored.
324 + Modify handling of example blocks (Brian Leung, #5717).
325 + Allow the `-i` switch to ignore leading spaces (Brian Leung).
326 + Handle awkwardly-aligned code blocks within lists (Brian Leung).
327 Code blocks in Org lists must have their `#+BEGIN_` aligned in a
328 reasonable way, but their other components can be
329 positioned otherwise.
330 + Fix parsing of empty comment lines (#5856, Albert Krewinkel).
331 Comment lines in Org-mode can be completely empty.
333 * Muse reader (Alexander Krotov):
335 + Add RTL support (#5551).
336 + Do not allow closing asterisks to be followed by `*`.
337 + Do not split series of asterisks into symbols and emphasis (#5821).
338 + Do not terminate emphasis on `*` not followed by space.
340 * DokuWiki reader:
342 + Parse markup inside monospace ('') (#5916, Alexander Krotov).
344 * Docx reader:
346 + Move style-parsing-specific code to a new unexported module,
347 Text.Pandoc.Readers.Docx.Parse.Styles (Nikolay Yakimov).
348 + Move StyleMap to docx writer (Nikolay Yakimov).
349 + Only use LTR when it is overriding BiDi setting (#5723, Jesse
350 Rosenthal). The left-to-right direction setting in docx is used
351 in the spec only for overriding an explicit right-to-left setting.
352 We only process it when it happens in a paragraph set with BiDi.
353 This is especially important for docs exported from Google Docs,
354 which explicitly (and unnecessarily) set `rtl=0` for every paragraph.
355 + Fix list number resumption for sublists (#4324).
356 The first list item of a sublist should not resume numbering
357 from the number of the last sublist item of the same level,
358 if that sublist was a sublist of a different list item.
360 * Docbook reader:
362 + Richer parse for admonitions (Michael Peyton Jones, #1234).
363 Instead of parsing admonitions as blockquotes, we now parse
364 them as Divs with an appropriate class. We also handle titles
365 for admonitions as a nested Div with the "title" class.
366 + Fix nesting of chapters and sections (#5864, Florian Klink,
367 Félix Baylac-Jacqué).
368 + Fix bug with entities in mathphrase element (#5885).
370 * MediaWiki reader:
372 + Skip optional `{{table}}` template (#5757).
374 * LaTeX reader:
376 + Fix dollar-math parsing to ensure that space is left between a
377 control sequence and a following letter (#5836).
378 + In `untokenize`, ensure space between control sequence
379 and following letter (#5836).
380 + Don't omit macro definitions defined in the preamble.
381 These were formerly omitted (though they still affected macro
382 resolution if `latex_macros` was set). Now they are included in
383 the document body.
384 + Parse macro definitions as raw LaTeX when `latex_macros` is
385 disabled. (When `latex_macros` is enabled, we omit them, since
386 pandoc is applying the macros itself.)
387 + Fix a hang/memory leak in certain circumstances (#5845).
388 + Text.Pandoc.Readers.LaTeX.Parsing: add `[Tok]` parameter to
389 `rawLaTeXParser`. This allows us to repeat retokenizing
390 unnecessarily in e.g. `rawLaTeXBlock`.
391 + Add KOMA-Script metadata commands (#5910, Andrew Dunning).
392 Add all titling commands to existing definition for `\dedication`.
393 + Parse `\micro` siunitx unit command (#5921, Jose Luis Duran).
395 * Markdown writer:
397 + Ensure proper nesting when we have long ordered list markers (#5705).
398 + Make `plain` output plainer (#5741). Previously we used the following
399 Project Gutenberg conventions for plain output: extra space before and
400 after level 1 and 2 headings, all-caps for strong emphasis,
401 underscores surrounding regular emphasis. Now these
402 conventions are used only when the `gutenberg` extension is
403 enabled. By default, Strong and Emph are rendered without
404 special formatting, and headings are rendered without
405 special formatting, and with only one blank line following.
406 To restore the former behavior, use `-t plain+gutenberg`.
407 + Prefer using raw_attribute when enabled (#4311).
408 The `raw_attribute` will be used to mark raw bits, even HTML
409 and LaTeX, and even when `raw_html` and `raw_tex` are
410 enabled, as they are by default. To get the old behavior,
411 disable `raw_attribute` in the writer.
412 + Prefer `pipe_tables` to raw HTML even when we must
413 lose width information (#2608, #4497).
414 + Improve escaping in list items (#5918).
416 * AsciiDoc writer:
418 + Don't include `+` in code blocks for regular asciidoc.
419 This is asciidoctor-specific.
420 + Handle admonitions (#5690).
422 * LaTeX writer:
424 + Add thin space when needed in LaTeX quote ligatures (#5684).
425 + Use `\hspace{0pt}` for 0-width space U+200B (#5756).
426 + Use `cslreferences` environment for csl bibliographies.
427 This allows bibliographies to receive special formatting.
428 The template now contains definition of this environment (enabled
429 only when CSL is used). It also defines a `\cslhangindent` length.
430 This is set to 2em by default when the bibliography style specifies
431 a hanging indent. To override the length, you can use e.g.
432 `\setlength{\cslhangindent}{7em}` in header-includes.
433 See jgm/pandoc-citeproc#410.
434 + Strip off `{}` around locator for biblatex/natbib output (#5722).
435 + Fix line breaks at start of paragraph (#3324).
436 Previously we just omitted these. Now we render them
437 using `\hfill\break` instead of `\\`. This is a revision
438 of a PR by @sabine (#5591) who should be credited with the idea.
439 + We no longer look in the template or header-includes to see if a
440 book or article documentclass is used, or to see whether the
441 `csquotes` package is used. To use `csquotes` for LaTeX, set
442 `csquotes` in your variables or metadata. To specify a book
443 style, use the `documentclass` variable or
444 `--top-level-division`.
445 + Fix horizontal rule (#5801). We change to use 0.5pt rather than
446 `\linethickness`, which apparently only ever worked "by accident"
447 and no longer works with recent updates to texlive.
449 * ConTeXt writer:
451 + Add option to include source files in ConTeXt PDFs (Tristan
452 Stenner, #5578). The metadata field or variable
453 (`includesource`) can be set to attach the source documents
454 to the resulting PDF.
455 + Customizable type of PDF/A for the ConTeXt writer (Karl
456 Pettersson, #5608). The `pdfa` variable may now be set in metadata.
457 Also updated color profile settings in accordance with ConTeXt wiki,
458 and made ICC profile and output intent for PDF/A customizable
459 using `pdfaiccprofile` and `pdfaintent`.
460 + Unit tests: adjust code property to avoid an irrelevant
461 failure involving inline code with two consecutive newlines.
462 + Set `csl-hanging-indent` variable if needed.
463 + Use special environment for CSL references.
464 + Use braces, not start/stop, for inline language tags.
465 This prevents unwanted gobbling of spaces.
467 * HTML writer:
469 + Use numeric character references with `--ascii` (#5718).
470 Previously we used named character references with html5 output.
471 But these aren't valid XML, and we aim to produce html5 that is
472 also valid XHTML (polyglot markup). (This is also needed for epub3.)
473 + Ensure that line numbers in code blocks get id-prefix (#5650).
474 + Ensure TeX formulas are rendered correctly (Philip Pesca,
475 #5658). The web service passed in to `--webtex` may render
476 formulas using inline or display style by default.
477 Prefixing formulas with the appropriate command ensures
478 they are rendered correctly.
479 + Render inline formulas correctly with `--webtex` (Philip
480 Pesca, #5655). We add `\textstyle` to the beginning of the
481 formula to ensure it will be rendered in inline style.
482 + Pass through `aria-` attributes to HTML5 (#5642).
483 + Render a Quoted element with an inner Span with
484 `cite` attribute using a `<q>` tag (#5798, Ole Martin Ruud).
485 + Render a Span with class `mark` using the `<mark>` element
486 (Florian Beeres, #5797).
487 + Render Span with class `dfn` using `<dfn>` element
488 (Florian Beeres, #5882).
489 + Render Span with class `kbd` using `<kbd>` element (Daniele
490 D'Orazio, #5796).
491 + Render Code with class `variable` using `<var>` element
492 (Amogh Rathore, #5799).
493 + Render Code with class `sample` using `<samp>` element
494 (Amogh Rathore, #5799).
496 * EPUB writer:
498 + Improve splitting into chapters (#5761), using `makeSection`.
499 + Avoid issuing warning multiple times when title not set (see #5760).
500 + Use svg tag wrapper for cover image (#5638). In addition, the
501 code generating the image has been moved to the template, to make it
502 more customizable. NOTE: Those who use custom EPUB
503 templates will need to adjust their templates, adding the
504 code to generate the cover image. (Previously this was just
505 inserted into 'body'.)
506 + Improve toChapters, making it work better if there are Divs
507 around sections.
508 + Add support for EPUB2 covers (blmage, #3992).
509 + Do not override existing "fileN" medias when writing to EPUB format
510 (blmage, #4206).
511 + Ensure that `lang` variable is set on all chapters (so that it
512 will add an `xml:lang` attribute on the `html` element).
514 * RST writer:
516 + Removed remnants of `admonition-title`.
517 + Fix handling of `:align:` on figures and images (#4420).
518 When the image has the `align-right` (etc.) class, we now use
519 an `:align:` attribute.
520 + Improve spacing for tables with no width information (#5899).
521 If a simple table would be too wide, we use a grid table.
522 + Fix backslash escaping after strings (Albert Krewinkel, #5906).
523 The check whether a complex inline element following a string must
524 be escaped, now depends on the last character of the string instead
525 of the first.
526 + Ensure there's a blank line before tables (#5898).
528 * Dokuwiki writer:
530 + Handle mixed lists without HTML fallback (#5107).
532 * XWiki writer:
534 + Fix multiline table (Zihang Chen, #5683).
536 * Muse writer:
538 + Add RTL support (Alexander Krotov, #5551).
540 * Man writer:
542 + Suppress non-absolute link URLs (#5770). Absolute URLs are
543 still printed in parentheses following the link text, but relative
544 URLs are suppressed (just as internal links starting with '#'
545 always have been).
546 + Improved definition list term output. Now we boldface code but
547 not other things. This matches the most common style in man pages
548 (particularly option lists).
550 * Ms writer:
552 + Use `.LP` instead of `.PP` for line block (#5588).
553 + Use boldface for definition terms in DefinitionLists.
555 * JATS writer:
557 + Do not emit empty `<fn-group>` (Mauro Bieg, #5595).
558 + Update template to v1.1dtd (#5632, Arfon Smith).
559 + Update `data/jats.csl` to avoid commas between editor
560 name-part elements. (#5629)
561 + Add `abstract` to template (Mauro Bieg).
563 * TEI writer:
565 + Don't strip hash from internal links (#5922).
567 * Jira writer:
569 + Remove escapeStringForJira for code blocks (Jan-Otto Kröpke).
570 + Remove extraneous newline after single-line block quotes
571 (#5858, Albert Krewinkel).
572 + Improve escaping of special characters, using backslash escapes
573 instead of HTML entities (#5858, Albert Krewinkel).
575 * OpenDocument writer:
577 + Avoid duplicate attributes (#4634). We use the innermost
578 attribute in nested cases.
579 + If `native_numbering` extension is set, use native OpenDocument
580 enumeration for figures and tables (Nils Carlson).
581 + Place caption before table (#5681, Dmitry Pogodin).
583 * ODT writer:
585 + Add a test for MathML formulas in ODT documents (blmage).
586 + Improve the parsing of frames in ODT documents (blmage).
588 * Docx writer:
590 + Make handling of styles more robust in localized versions
591 of Word (Nikolay Yakimov, #5523, #5052, #5074). We now use
592 style names, not ids, for assigning semantic meaning, since
593 the ids can change depending on the locale. Style name
594 comparisons are case-insensitive, since those are
595 case-insensitive in Word. Since docx style names can have
596 spaces in them, and pandoc-markdown classes can't, anywhere
597 when style name is used as a class name, spaces are
598 replaced with ASCII dashes `-`. Code styles, i.e. "Source
599 Code" and "Verbatim Char" now honor style inheritance. Docx
600 Reader now honours "Compact" style (used in
601 Pandoc-generated docx). The side-effect is that "Compact"
602 style no longer shows up in docx+styles output. Styles
603 inherited from "Compact" will still show up.
604 + Re-use Readers.Docx.Parse for StyleMap (#5766, Nikolay Yakimov).
605 + Internal improvements and code simplification (Nikolay Yakimov).
606 + Preserve built-in styles in DOCX with custom style (Ben Steinberg,
607 #5670). This change prevents custom styles on divs and spans
608 from overriding styles on certain elements inside them, like
609 headings, blockquotes, and links. On those elements, the
610 "native" style is required for the element to display correctly.
611 This change also allows nesting of custom styles; in order to do so,
612 it removes the default "Compact" style applied to Plain blocks,
613 except when inside a table.
614 + Add `proofState` to list of elements carried over from
615 settings.xml in the reference.docx (Krystof Beuermann, #5703).
616 + Change order of `ilvl` and `numId` in `document.xml` (Agustín
617 Martín Barbero, #5645). Also, make list para properties go first.
618 This reordering of properties shouldn't be necessary but
619 it seems Word Online does not understand the docx correctly otherwise.
621 * PowerPoint writer:
623 + Code formatting is now context dependent (Jeroen de Haas, #5573).
624 This commit alters the way in which the Powerpoint writer treats
625 inline code and code blocks. Inline code is now formatted at
626 the same size as the surrounding text. Code blocks are now given
627 a margin and font size according to their level.
628 Furthermore this commit allows changing the font with which code is
629 formatted via the `monofont` option.
630 + Start numbering at appopriate numbers (Jesse Rosenthal, #5709).
631 Starting numbers for ordered lists were previously ignored. Now
632 we specify the number if it is something other than 1.
634 * Text.Pandoc.Parsing:
636 + Add `manyChar`, `many1Char`, `manyTillChar`, `many1TillChar`,
637 `many1Till`, `manyUntil`, `mantyUntilChar`: these are like their
638 unsuffixed counterparts but pack some or all of their output
639 (Christian Despres, #5884).
640 + Add `stateAllowLineBreaks` to `ParserState` [API change].
641 + Fix inline parsing in grid table cells (#5708).
642 + Change type of `setLastStrPos` so it takes a `Maybe SourcePos`
643 rather than a `SourcePos` [API change].
644 + Make `parseFromString'` and `gridTableWith` and
645 `gridTableWith'` polymorphic in the parser state,
646 constraining it with `HasLastStrPosition` [API change].
647 + `parseFromString'`: reset `stateLastStrPos` to `Nothing` before parse.
648 + Rename takeWhileP -> take1WhileP and clean it up.
649 (It doesn't match the empty sequence.)
651 * Text.Pandoc.PDF:
653 + For PDFs via HTML, ensure temp file is deleted even if the pdf
654 program is not found (#5720).
655 + Better detection of a Cygwin environment (#5451).
656 + Don't assume tex log file is UTF8-encoded (#5872).
657 Fall back to latin1 if it can't be read as UTF-8.
659 * Text.Pandoc.Extensions:
661 + Export new function `getAllExtensions`, which returns the
662 extensions that affect a given format (whether enabled by default
663 or not) [API change].
664 + Change type of `parseFormatSpec` from
665 `Either ParseError (String, Extensions -> Extensions)`
666 to `Either ParseError (String, [Extension], [Extension])`
667 [API change].
668 + Add `Ext_gutenberg` constructor to `Extension` [API change].
669 + Add `Ext_native_numbering` constructor to `Extension` [API change]
670 (Nils Carlson).
672 * Text.Pandoc.Readers, Text.Pandoc.Writers:
674 + Change type of `getReader` and `getWriter` so they return
675 a value in the PandocMonad instance rather than an Either
676 [API change]. Exceptions for unknown formats and unsupported
677 extensions are now raised by these functions.
679 * Text.Pandoc.App
681 + Change `optMetadataFile` type from `Maybe FilePath` to `[FilePath]`
682 (Owen McGrath, #5702) [API change].
684 * Text.Pandoc.Logging:
686 + Add `CouldNotDeduceFormat` constructor to `LogMessage` [API change].
687 Issue this warning when we're falling back to markdown or
688 html because we don't recognize the extension of the input or
689 output files.
690 + Clarify warning for missing title (#5760).
691 + Add `UnusualConversion` constructor to `LogMessage` [API change]
692 (Mauro Bieg, #5736). Emit warning on `-f latex -o out.pdf`.
694 * Lua filters:
696 + Improve function documentation (Albert Krewkinkel).
697 + Traverse nested blocks and inlines in correct order (Albert
698 Krewinkel, #5667). Traversal methods are updated to use the new
699 Walk module so that sequences with nested Inline (or Block) elements
700 are traversed in the order in which they appear in the linearized
701 document.
702 + New unexported module `Text.Pandoc.Lua.Walk` (Albert Krewinkel).
703 Lua filters must be able to traverse sequences of AST
704 elements and to replace elements by splicing sequences back
705 in their place. Special `Walkable` instances can be used for
706 this; those are provided in a new module
707 `Text.Pandoc.Lua.Walk`.
708 + `Attr` values can now be given as normal Lua tables (Albert
709 Krewinkel, #5744). This can be used as a convenient alternative
710 to constructing `Attr` values with `pandoc.Attr`. Identifiers
711 are taken from the `id` field, classes must be given as
712 space separated words in the `class` field. All remaining fields
713 are included as attributes. With this change, the following lines
714 now create equal elements:
715 ```
716 pandoc.Span('test', {id = 'test', class = 'a b', check = 1})
717 pandoc.Span('test', pandoc.Attr('test', {'a','b'}, {check = 1}))
718 ```
719 This also works when using the *attr* setter:
720 ```
721 local span = pandoc.Span 'text'
722 span.attr = {id = 'test', class = 'a b', check = 1}
723 ```
724 Furthermore, the *attributes* field of AST elements can now be a
725 plain key-value table even when using the `attributes` accessor:
726 ```
727 local span = pandoc.Span 'test'
728 span.attributes = {check = 1} -- works as expected now
729 ```
730 + Export `make_sections`, remove `hierarchicalize`. Lua filters that
731 use `hierarchicalize` will need to be rewritten to use
732 `make_sections`.
733 + Add a `clone()` method to all AST elements (Albert Krewinkel, #5568).
734 + Fix Lua function names in pandoc.system (niszet). Change
735 `get_current_directory` to `get_working_directory` and
736 `with_temp_directory` to `with_temporary_directory`, to
737 conform to the manual.
739 * Text.Pandoc.Error:
741 + Add constructors `PandocUnknownReaderError`,
742 `PandocUnknownWriterError`, `PandocUnsupportedExtensionError`.
743 [API change].
744 + Better message for `PandocShouldNeverHappenError`.
745 + Better message for `PandocTemplateError`.
747 * Text.Pandoc.Emoji:
749 + Update emoji list (#5666). Done using new `tools/emojis.hs`,
750 which uses the list from the gem GitHub uses. Future updates
751 can be done with this tool.
753 * Text.Pandoc.PDF:
755 + Pass value of `--dpi` to `rsvg-convert` when converting SVG to PDF
756 in the process of creating a PDF (#5721).
758 * Text.Pandoc.Shared:
760 + Replace `Element` and `makeHierarchical` with `makeSections`.
761 Now that we have Divs, we can use them to represent the
762 structure of sections, and we don't need a special Element type.
763 `makeSections` reorganizes a block list, adding Divs with class
764 `section` around sections, and adding numbering if needed.
765 This change also fixes some longstanding issues recognizing section
766 structure when the document contains Divs (#3057, see also #997).
767 + Remove `Element` type [API change]
768 + Remove `makeHierarchicalize` [API change]
769 + Add `makeSections` [API change]
770 + Export `deLink` [API change]
771 + Make `filterIpynbOutput` strip ANSI escapes from code in output
772 for non-ipynb formats, when the default "best" option is used with
773 `--ipynb-output` (#5633).
774 + Fix `camelCaseToHyphenated` so it handles `ABCDef` better.
775 + Improve `isTight` (#5857). If a list has an empty item,
776 this should not count against its being a tight list.
777 + Export `htmlSpanLikeElements` [API change] (Daniele D'Orazio, #5796).
778 This is a mapping of HTML span-like elements that are internally
779 represented as a Span with a single class.
780 + Change the implementation of `htmlSpanLikeElements` to retain
781 classes and attributes (#5882, Florian Beeres).
783 * Text.Pandoc.Slides: recognize content in Divs when determining
784 slide level.
786 * Text.Pandoc.SelfContained:
788 + Omit content-type on type attribute for `<style>` (#5725).
789 It doesn't seem to be valid for HTML5, and as a result Chrome
790 ignores the style element.
792 * Text.Pandoc.Pretty has been removed [API change].
793 We now use the new external doclayout module instead.
795 * Text.Pandoc.Writers.Shared:
797 + Remove `metaToJSON`, `metaToJSON'` [API change].
798 + Modify `addVariablesToContext`, `defField`, `setField`, `getField`,
799 `resetField` to work with Context rather than JSON values. [API change]
800 + Export new function `endsWithPlain` [API change].
801 + Change `gridTables` so it does better at keeping the widths of
802 columns (#4320) and does better at figuring out column widths
803 when no widths are given (#5899).
805 * Text.Pandoc.Options
807 + Change type of `writerTemplate` to `Maybe Template` instead
808 of `Maybe String`.
809 + Change To/FromJSON instances for `HTMLMathMethod`, `CiteMethod`,
810 `ObfuscationMethod`, `TrackChanges`, `WrapOption`,
811 `TopLevelDivision`, `ReferenceLocation`, `HTMLSlideVariant` (#5790).
812 In each case we use lowercase (or hyphenated lowercase) for
813 constructors to line up more closely with command-line option
814 values. This is a breaking change for those who manually decode or
815 encode JSON for these data types (e.g. for `ReaderOptions` or
816 `WriterOptions`).
818 * Text.Pandoc.Filters:
820 + Add `FromYAML` instance for `Filter`.
821 + `applyFilters`: Add and apply filters in order (not reversed)
822 This changes `applyFilters` from Text.Pandoc.Filter so
823 that it does a left fold rather than a right fold, applying
824 the filters in the order listed.
826 * Text.Pandoc.XML:
828 + Change `toEntities` to emit numerical hex character references
829 (#5718).
831 * Text.Pandoc.Highlighting:
833 + Add additional listings languages (Wandmalfarbe).
835 * Text.Pandoc.MediaBag:
837 + Some of the types using Strings were switched to use FilePath instead
838 (Christian Despres, #5884).
840 * Text.Pandoc.Templates:
842 + Don't import/export `varListToJSON` [API change]. It is removed in
843 doctemplates >= 0.3.
844 + Change type of `renderTemplate'` [API change]. Return value is
845 now Text rather than being polymorphic. This makes room for
846 upcoming removal of the `TemplateTarget` class from doctemplates.
848 * Text.Pandoc.App.Opt [API changes]:
850 + More convenient To/FromJSON instances. Make the field names
851 like `strip-empty-paragraphs` rather than `optStripEmptyParagraphs`.
852 Anyone who is using JSON serialization of Opt will need to adjust
853 things accordingly.
854 + Change `optHighlightStyle` to a `Maybe String` instead of
855 `Maybe Style`. Do the parsing/loading of themes later, after
856 option parsing.
857 + Remove `optBaseHeaderLevel` from `Opt`. We now just use
858 `optShiftHeadingLevelBy`, to avoid redundancy.
859 + Change `optShiftHeadingLevel` to `optShiftHeadingLevelBy` to
860 match the option.
861 + Custom FromJSON instance for `LineEnding`, so either `CRLF`
862 or `crlf` will work.
863 + Change `optVariables` from `[(String, String)]` to `Context Text`.
864 + Change `optMetadata` to `Meta`, to allow structured values.
865 The current behavior of the `--metadata` option stays the same.
866 + Rename `optReader`, `optWriter` as `optFrom`, `optTo`.
867 + Add `FromYAML` instances to `Opt` and to all subsidiary types.
868 + Rename `optMetadataFile` to `optMetadataFiles`.
869 + Rename `optPDFEngineArgs` to `optPDFEngineOpts`.
870 + Rename `optWrapText` to `optWrap`.
871 + Add `IpynbOutput` enumerated type: use this instead of
872 a string for `optIpynbOutput`.
873 + Change optInputFiles to a `Maybe [FilePath]` (#5888) [API change].
874 `Nothing` means: nothing specified.
875 `Just []` means: an empty list specified (e.g. in defaults).
876 + List fields in Opt so they aren't reversed (#5881) [API change].
877 Previously `optIncludeInHeader`, etc. were in reverse order.
878 + The `sourcefile` variable is now always a list. It used to be
879 sometimes a string, sometimes a list (when there was more than one).
881 * Template changes:
883 + default.latex: added code for `cslreferences` environment,
884 to be used for pandoc-citeproc references. A `csl-hanging-indent`
885 variable (set automatically if there is a `hanging-ident`
886 class on the references Div) controls whether contents of this
887 environment receive a hanging indent.
888 + default.latex: Add `space` as default option for xeCJK, so that
889 spaces between words are preserved (#5855, jeongminkim-islab).
890 This is necessary for Korean.
891 + default.latex: Remove include of `grffile` (#5848).
892 This package used to be needed for proper handling of image filenames
893 containing periods (in addition to the period before the extension).
894 It no longer works with the latest LaTeX kernel and graphicx,
895 so we have removed it. Future versions of graphicx will handle
896 these filenames without the need for `grffile`.
897 + default.context: add a saner default for page numbers.
898 Previously they appeared centered at the top of the page;
899 now we put them centered at the bottom, unless the `pagenumbering`
900 variable is set.
901 + default.context: define a start-stop-pair `cslreferences` to
902 allow for hanging indents in the bibliography (#5875, Denis Maier).
903 + default.ms: update defaults. Use Palatino font, use slightly
904 wider interparagraph space, don't indent paragraphs,
905 and put page numbers on the bottom. This brings ms output
906 closer to default LaTeX output.
907 + default.revealjs: add navigationMode (Mauro Bieg, #5657).
908 + default.muse: handle multiple authors better.
909 + docbook4, docbook5 templates: add indentation to body.
910 + HTML-based templates: use `styles.html` partial to avoid
911 code duplication.
912 + HTML-based templates: change indentation of styles in template.
914 * reference.docx (#5820):
916 + Change Block Text (block quote) style so that the same font
917 is used as in the body text, and the block text is indented
918 left and right.
919 + All headings now have a uniform color.
920 + Level-1 headings no longer set `w:themeShade="B5"`.
921 + Level-2 headings are now 14 point rather than 16 point.
922 + Level-3 headings are now 12 point rather than 14 point.
923 + Level-4 headings are italic rather than bold.
925 * epub.css: Add CSS for hanging-indent div to support pandoc-citeproc's
926 new hanging indents.
928 * pandoc.cabal:
930 + Repeat ghc-options in all stanzas.
931 + Remove conditionals for ghc < 8 (Albert Krewinkel, #5693).
932 + Compile with `-Wcpp-undef` and `-fhide-source-paths` when possible
933 (Albert Krewinkel).
934 + Add cabal.project to extra-source-files (Albert Krewinkel).
935 + Add dependency on skylighting-core (#5729). Even though it shouldn't
936 be needed, some tools require it.
937 + Require latest pandoc-types, texmath, skylighting, haddock-library.
938 + Ensure TemplateHaskell is added to other-extensions when it is
939 used (Vanessa McHale, #5728).
940 + Remove `derive_json_via_th` flag; always use TH. This cuts down
941 on code duplication and reduces the chance for errors. See #4083.
943 * Makefile:
945 + Add ghci target.
946 + Add ghcid target.
947 + Remove references to obsolete flag (#5694).
949 * Benchmarks: fix failure on ipynb.
951 * Use MathJax 3 (zorkow).
953 * KaTeX math: respect `classoption=fleqn` variable,
954 bump KaTeX version to 0.11.1 (#5815, Mauro Bieg).
956 * Fix redundant constraint compiler warnings (Pete Ryland, #5625).
958 * Use throwError instead of fail when appropriate.
960 * Use Prelude.fail to avoid ambiguity with fail from GHC.Base.
962 * Add `diff-zip.sh` to tools (John MacFarlane, Agustín Martín Barbero).
963 This is intended to make it easier to test differences in zip
964 containers, like epub, docx, or odt.
966 * Add `.gitattributes` (#5747). This ensures that the golden files
967 in `test/fb2/reader/` don't have newlines converted. This should fix
968 a test failure on GitHub CI with Windows.
970 * Reorder options in `--help`.
972 * Revise code for HsYAML-0.2.0.0 (@vijayphoenix, #5704).
974 * Remove blank line in code example in Haddocks (Leif Metcalf, #5679).
976 * Fix trypandoc with `getReader`/`getWriter` changes.
978 * Allow building pandoc with GHC 8.8.
980 * linux tarball: add architecture `-amd64` to filename.
981 Now it will be: `pandoc-VERSION-linux-ARCH.tar.gz`.
983 * MANUAL.txt:
985 + Add section for exit codes.
986 + Document some pptx limitations in slide show section:
987 No incremental display (#5689). No pause with `. . .` (#5701).
988 + reveal.js flags (Mauro Bieg, #5653).
989 + Document addition of `data-` prefix to unknown attributes in HTML5.
990 + Link to YAML spec (Mauro Bieg, #5687).
991 + Fix capitalization of "Linux" (#5859, Marcus Stollsteimer).
992 + Use a table for exit codes.
993 + Put all template variable docs into one section.
994 + Use ATX headers consistently.
995 + Add fuller documentation of templates (#5779), including
996 new template syntax, partials, etc.
997 + Add documentation for the variable `hyperrefoptions` (Wandmalfarbe).
998 + Clarify when macro definitions are passed as raw latex.
999 In Markdown input, they are always passed through. In LaTeX, only if
1000 `latex_macros` is disabled.
1001 + Clarify that `--dpi` provides a default and doesn't override
1002 dpi values specified in the images themselves (#5721).
1003 + Document how to use custom writers with `--standalone` (#5866).
1004 + Clarify `--preserve-tabs` default.
1006 * INSTALL.md:
1008 + Fix instructions for libicu.
1009 + Add Void Linux instructions (Volodymyr Kozachnyskyi).
1011 * CONTRIBUTING.md:
1013 + Add information on tests (Agustín Martín Barbero, #5652).
1014 + Add information about command test naming to CONTRIBUTING (Florian B).
1016 * Fix typos in changelog and comments (#5896, Brian Wignall).
1018 * doc/lua-filters.md:
1020 + Fix mistakes in mediabag module docs (#5851, Albert Krewinkel).
1021 + Improve metadata replacement example in lua-filters doc (#5851).
1022 + Mention which Lua version is shipped with pandoc (Albert Krewinkel,
1023 #5892).
1025## pandoc 2.7.3 (2019-06-11)
1027 * Add `jira` (Atlassian's Jira wiki markup) as output format (#2497,
1028 Albert Krewinkel).
1030 * Add `tex_math_dollars` to `multimarkdownExtensions` (#5512).
1031 This form is now supported in multimarkdown,
1032 in addition to `tex_math_double_backslash`.
1034 * Fix `--self-contained` so it works when output format has extensions.
1035 Previously if you used `--self-contained` with `html-smart` or
1036 `html+smart`, it wouldn't work.
1038 * Add template variable `curdir` with working directory
1039 from which pandoc is run (#5464).
1041 * Markdown reader: don't create implicit reference for empty header
1042 (#5549).
1044 * Muse reader: allow images inside link descriptions (Alexander Krotov).
1046 * HTML reader: epub related fixes.
1048 + With epub extensions, check for `epub:type` in addition to `type`.
1049 + Fix problem with noteref parsing which caused block-level
1050 content to be eaten with the noteref.
1051 + Rename `pAnyTag` to `pAny`.
1052 + Refactor note resolution.
1053 + Trim definition list terms (Alexander Krotov).
1055 * LaTeX reader:
1057 + Add braces when resolving `\DeclareMathOperator`
1058 (#5441). These seem to be needed for xelatex but not pdflatex.
1059 + Allow newlines in `\mintinline`.
1060 + Pass through unknown listings language as class (#5540).
1061 Previously if the language was not in the list of languages supported
1062 by listings, it would not be added as a class, so highlighting
1063 would not be triggered.
1064 + `rawLaTeXInline`: Include trailing `{}`s in raw latex commands (#5439).
1065 This change affects the markdown reader and other readers that allow raw
1066 LaTeX. Previously, trailing `{}` would be included for unknown
1067 commands, but not for known commands. However, they are sometimes used
1068 to avoid a trailing space after the command. The chances that a `{}`
1069 after a LaTeX command is not part of the command are very small.
1071 * MediaWiki reader: handle multiple attributes in table row (#5471,
1072 chinapedia).
1074 * Docx reader: Add support for `w:rtl` (#5545). Elements with this
1075 property are put into Span inlines with `dir="rtl"`.
1077 * DocBook reader: Issue `IgnoredElement` warnings.
1079 * Org reader (Albert Krewinkel):
1081 + Fix planning elements in headers level 3 and higher
1082 (#5494). Planning info is now always placed before
1083 the subtree contents. Previously, the planning info was placed after
1084 the content if the header's subtree was converted to a list, which
1085 happens with headers of level 3 and higher per default.
1086 + Omit, but warn about unknown export options. Unknown export
1087 options are properly ignored and omitted from the output.
1088 + Prefer plain symbols over math symbols (#5483).
1089 Symbols like `\alpha` are output plain and unemphasized, not as math.
1090 + Recognize emphasis after TODO/DONE keyword (#5484).
1092 * FB2 reader:
1094 + Skip unknown elements rather than throwing errors (#5560).
1095 Sometimes custom elements are used (e.g. `id` element
1096 inside `author`); previously the reader would halt with an error.
1097 Now it skips the element and issues an `IgnoredElement` warning.
1098 + Parse notes (#5493, Alexander Krotov).
1099 + Internal improvements (Alexander Krotov).
1101 * OpenDocument writer: Roll back automatic figure/table numbering
1102 (#5474). This was added in pandoc 2.7.2, but it makes it impossible
1103 to use pandoc-crossref. So this has been rolled back for now,
1104 until we find a good solution to make this behavior optional
1105 (or a creative way to let pandoc-crossref and this feature
1106 to coexist).
1108 * New module Text.Pandoc.Writers.Jira, exporting `writeJira` [API
1109 change] (Albert Krewinkel).
1111 * EPUB writer:
1113 + Don't include 'landmarks' if there aren't any.
1114 Previously we could get an empty ol element, which caused
1115 validation errors with epubcheck.
1116 + Ensure unique ids for styleesheets in content.opf (#5463).
1117 + Make stylesheet link compatible with kindlegen (#5466,
1118 Eric Schrijver). Pandoc omitted `type="text/css"` from both
1119 `<style>` and `<rel="stylesheet">` elements in all templates, which
1120 is valid according to the spec. However, Amazon’s kindlegen software
1121 relies on this attribute on `<link>` elements when detecting
1122 stylesheets to include.
1124 * HTML writer:
1126 + Output video and audio elements depending on file
1127 extension of the image path (Mauro Bieg).
1128 + Emit empty alt tag in figures (#5518, Mauro Bieg).
1129 The same text is already in the <figcaption> and
1130 screen-readers would read it twice, see #4737.
1131 + Don't add variation selector if it's already there.
1132 This fixes round-trip failures.
1133 + Prevent gratuitous emojification on iOS (#5469).
1134 iOS chooses to render a number of Unicode entities, including '↩', as
1135 big colorful emoji. This can be defeated by appending Unicode
1136 VARIATION SELECTOR-15'/'VARIATION SELECTOR-16'. So we now append this
1137 character when escaping strings, for both '↩' and '↔'. If other
1138 characters prove problematic, they can simply be added to
1139 `needsVariationSelector`. + Add `class="heading"` to level 7+ Headers
1140 rendered as `<p>` elements (#5457).
1142 * RST writer: treat Span with no attributes as transparent (#5446).
1143 Previously an Emph inside a Span was being treated as
1144 nested markup and ignored. With this patch, the Span
1145 is just ignored.
1147 * LaTeX writer:
1149 + Include inline code attributes with `--listings` (#5420).
1150 + Don't produce columns environment unless beamer (#5485).
1151 + Fix footnote in image caption. Regression: the fix for #4683 broke
1152 this case.
1153 + Don't highlight code in headings (#5574). This causes
1154 compilation errors.
1155 + Use `\mbox` to get proper behavior inside `\sout` (#5529).
1157 * EPUB writer: Fix document section assignments (#5546).
1158 For example, introduction should go in bodymatter, not frontmatter, and
1159 epigraph, conclusion, and afterward should go in bodymatter, not
1160 backmatter. For the full list of assignments, see the manual.
1162 * Markdown writer:
1164 + Add backslashes to avoid unwanted interpretation of
1165 definition list terms as other kinds of block (#554).
1166 + Ensure the code fence is long enough (#5519).
1167 Previously too few backticks were used when the code block
1168 contained an indented line of backticks. (Ditto tildes.)
1169 + Handle labels with integer names (Jesse Rosenthal, #5495).
1170 Previously if labels had integer names, it could produce a conflict
1171 with auto-labeled reference links. Now we test for a conflict and
1172 find the next available integer. This involves adding a new state
1173 variable `stPrevRefs` to keep track of refs used in other document
1174 parts when using `--reference-location=block|section`
1176 * Textile writer: fix closing tag for math output (Albert Krewinkel).
1177 Opening and closing tag for math output match now.
1179 * Org writer: always indent src blocks content by 2 spaces (#5440, Albert
1180 Krewinkel). Emacs always uses two spaces when indenting the content of
1181 src blocks, e.g., when exiting a `C-c '` edit-buffer. Pandoc used to
1182 indent contents by the space-equivalent of one tab, but now always uses
1183 two spaces, too.
1185 * Asciidoc writer:
1187 + Use `` `+...+` `` form for inline code.
1188 The old `` `a__b__c` `` yields emphasis inside code in asciidoc.
1189 To get a pure literal code span, use `` `+a__b__c+` ``.
1190 + Use proper smart quotes with asciidoctor (#5487).
1191 Asciidoctor has a different format for smart quotes.
1192 + Use doubled ## when necessary for spans (#5566).
1193 + Ensure correct nesting of strong/emph (#5565): strong
1194 must be the outer element.
1196 * JATS writer:
1198 + Wrap elements with p when needed (#5570). The JATS spec restricts
1199 what elements can go inside `fn` and `list-item`. So we wrap other
1200 elements inside `<p specific-use="wrapper">` when needed.
1201 + Properly handle footnotes (#5511) according to "best practice."
1202 (Group them at the end in `<fn-group>` and use `<xref>` elements
1203 to link them.)
1204 + Fix citations with PMID so they validate (#5481). This includes
1205 an update to data/jats.csl.
1206 + Ensure validity of `<pub-date>` by parsing the date and
1207 extracting year, month, and day, as expected. Also add an
1208 iso-8601-date attribute automatically.
1209 + Don't use `<break>` element for LineBreak. It is only
1210 allowed in a few special contexts, and not in `<p>` elements.
1211 + Don't make `<string-name>` a child of `<string>`, which is illegal.
1213 * FB2 writer:
1215 + Do not wrap note references into `<sup>` and brackets
1216 (Alexander Krotov). Existing FB2 readers, such as FBReader, already
1217 display links with type="note" as a superscript.
1218 + Use genre metadata field (#5478).
1220 * Muse writer: do not escape empty line after `<br>` (Alexander Krotov).
1222 * Add unicode code point in "Missing character" warning (#5538).
1223 If the character isn't in the console font, the message is pretty useless,
1224 so we show the code point for anything non-ASCII.
1226 * Lua: add Version type to simplify comparisons (Albert Krewinkel).
1227 Version specifiers like `PANDOC_VERSION` and `PANDOC_API_VERSION` are
1228 turned into `Version` objects. The objects simplify version-appropriate
1229 comparisons while maintaining backward-compatibility.
1230 A function `pandoc.types.Version` is added as part of the newly
1231 introduced module `pandoc.types`, allowing users to create version
1232 objects in scripts.
1234 * pandoc lua module (Albert Krewinkel):
1236 - Fix deletion of nonexistent attributes (#5569).
1237 - Better tests for Attr and AttributeList.
1239 * pandoc.mediabag lua module (Albert Krewinkel):
1241 + Add function `delete` for deleting a single item.
1242 + Add function `empty` for removing all entries.
1243 + Add function `items` for iterating over mediabag.
1245 * Text.Pandoc.Class: Fix handling of `file:` URL scheme in
1246 `downloadOrRead` (#5517, Mauro Bieg). Previously `file:/`
1247 URLs were handled wrongly and pandoc attempted to make HTTP
1248 requests, which failed.
1250 * Text.Pandoc.MIME: add `mediaCategory` [API change] (Mauro Bieg).
1252 * Text.Pandoc.Shared:
1254 + Add `onlySimpleTableCells` [API change]
1255 (Mauro Bieg) and use this to consolidate simple-table detection
1256 (#5524). This fixes an inconsistency in the HTML reader, which did not
1257 treat tables with `<p>` inside cells as simple.
1258 + `metaToJSON`: treat digits starting with 0 as a string, not a number
1259 (#5479). This fixes a regression in YAML metadata in pandoc 2.7.2.
1261 * Text.Pandoc.Logging: Add `IgnoredElement` constructor for
1262 `LogMessage`. `SkippedConetnt` doesn't work for some XML-based
1263 readers which don't have access to parsec source positions.
1265 * Text.Pandoc.Asciify: Add Turkish undotted-i (#5433, Mauro Bieg).
1267 * Improve output of Lua tests (#5499, Albert Krewinkel).
1268 This makes use of tasty-lua, a package to write tests in Lua
1269 and integrate the results into Tasty output. Test output becomes
1270 more informative: individual tests and test groups become visible
1271 in test output. Failures are reported with helpful error messages.
1273 * Lua: add `pandoc.system` module (#5468, Albert Krewinkel).
1274 The `system` Lua module provides utility functions to interact with the
1275 operating- and file system. E.g.
1276 `print(pandoc.system.get_current_directory())`
1277 or
1278 ```lua
1279 pandoc.system.with_temporary_directory('tikz', function (dir)
1280 -- write and compile a TikZ file with pdflatex
1281 end)
1282 ```
1284 * LaTeX template: Add pdflang to hypersetup if lang is set (#5443).
1286 * beamer template: Fix using Beamer with geometry (#5505, Daniel Maslowski).
1287 Beamer already loads geometry, so we need to use the `\geometry`
1288 command to set geometry options.
1290 * EPUB2/3 templates: Move inline styles to default epub.css (#5466).
1291 NOTE: Those who use a custom CSS stylesheet with EPUB should
1292 add these lines:
1294 code{ white-space: pre-wrap; }
1295 span.smallcaps{ font-variant: small-caps; }
1296 span.underline{ text-decoration: underline; }
1297 q { quotes: "“" "”" "‘" "’"; }
1298 div.column{ display: inline-block; vertical-align: top; width: 50%; }
1300 * reveal.js template:
1302 + Updates for revealjs 3.8.0 (#5435, ebiim).
1303 + Remove reference to head.min.js (#5448, Winnie Hellmann).
1304 NOTE: users will need to update reveal.js to at least 3.8.0
1305 for their presentations generated with this version of pandoc
1306 to work correctly.
1308 * Text.Pandoc.PDF:
1310 + Replace `</>` with literal `/` (#5451).
1311 We use forward-slash for a directory separator in tmpDir,
1312 even on Windows (because that's what tex likes). So we
1313 should not put a backslash between the tmpDir and the
1314 filename on Windows. This is harmless enough in normal
1315 Windows setups, but it breaks on Cygwin.
1316 Thanks to @cc2x for noticing and diagnosing the problem.
1317 + Allow use of `-output-directory` in `--pdf-engine-opt` (#5462).
1318 This is currently possible with `mklatex` and `-outdir`, but
1319 was not yet possible with xelatex and `-output-directory`.
1320 + For PDF via ms/pdfroff, make TOC appear at beginning and in
1321 PDF bookmarks (#5553). Previously the TOC appeared at the end
1322 of the document, and was not bookmarked. To keep it at the end,
1323 add `--pdf-engine-opt=--no-toc-relocation` to your command line.
1325 * Fix broken links in documents (#5473, Shim Myeongseob).
1326 Also, use absolute links to pandoc.org when possible, so that
1327 the links can be followed by people viewing these documents
1328 on GitHub.
1330 * Improved sample lua tikz filter in lua-filters docs (#5445,
1331 Matthew Doty). There are three changes:
1333 + It only processes elements which begin with `\begin{tikzpicture}`
1334 + It uses pdf2svg instead of imagemagick to preserve fidelity
1335 + The images produced have transparent backgrounds
1337 * MANUAL.txt:
1339 + Add note about `title-meta`, `author-meta`, `date-meta` (#5486).
1340 + Fix typo (#5489, Christian Krause).
1342 * add test/tables.xwiki to git and pandoc.cabal (#5498, Mauro Bieg).
1344 * Disable missing-home-modules warning in `stack.yaml`.
1345 Otherwise `stack ghci` fails.
1348## pandoc 2.7.2 (2019-04-05)
1350 * Add XWiki writer (#1800, Derek Chen-Becker).
1351 Add `Text.Pandoc.Writers.XWiki`, exporting `writeXWiki` [API change].
1353 * Dokuwiki Reader: parse single curly brace (#5416, Mauro Bieg).
1355 * Vimwiki reader: improve handling of internal links (#5414).
1356 We no longer append `.html` to link targets, and we add a title
1357 `wikilink`. This mirrors behavior of other wiki readers. Generally
1358 the `.html` extension is not wanted. It may be important for output
1359 to HTML in certain circumstances, but it can always be added using a
1360 filter that matches on links with title `wikilink`.
1362 If your workflow requires the current behavior, here is a lua filter
1363 that will add the `.html` extension:
1365 ```lua
1366 function Link(el)
1367 if el.title == 'wikilink' then
1368 el.target = el.target .. ".html"
1369 end
1370 return el
1371 end
1372 ```
1373 * ipynb reader:
1375 + Use format `ipynb` for raw cell where no format given.
1376 + Avoid introducing spurious `.0` on integers in metadata.
1378 * Markdown reader: fenced div takes priority over setext header.
1380 * HTML reader: read `data-foo` attribute into `foo` (#5392).
1381 The HTML writer adds the `data-` prefix for HTML5 for nonstandard
1382 attributes. But the attributes are represented in the AST without
1383 the `data-` prefix, so we should strip this when reading HTML.
1385 * LaTeX reader: Improve autolink detection (#5340).
1387 * PowerPoint writer (Jesse Rosenthal):
1389 + Expand builtin reference doc to model all layouts.
1390 The previous built-in reference doc had only title and content
1391 layouts. Add in a section-header slide and a two-content slide, so
1392 users can more easily modify it to build their own templates.
1393 + Always open up in slide view. When editing a
1394 template/reference-doc, the user might be in Master view, but when
1395 producing a slide show, it is assumed that slide view will be
1396 desired.
1397 + Remove `handoutsMasterList` from template presentation.xml
1398 + Fix numerous errors in templating (#5402). Previously, some templates
1399 produced by Office 365 (MacOS) would not render with `--reference-doc`
1400 correctly. We now apply correct shapes for content, and build
1401 shape trees correctly.
1402 + Make default placeholder type for template lookup.
1403 + Apply speaker notes to metadata slide if applicable.
1404 + Test for speaker notes after breaking header.
1405 + Correctly handle notes after section-title header.
1406 Previously, if notes came after a section-title header (ie, a level-1
1407 header in a slide-level=2 presentation), they would go on the next
1408 slide. This keeps them on the slide with the header.
1409 + Internal improvements.
1411 * ipynb writer:
1413 + Use format `ipynb` for raw cell where no format given.
1414 According to nbformat docs, this is supposed to render in every
1415 format. We don't do that, but we at least preserve it as a raw
1416 block in markdown, so you can round-trip.
1417 + Consolidate adjacent raw blocks. Sometimes pandoc creates two
1418 HTML blocks, e.g. one for the open tag and one for a close tag.
1419 If these aren't consolidated, only one will show up in output cell.
1420 + Fixed carry-over of nbformat from metadata.
1421 + Preserve `nbformat_minor` if it's given. This helps with round-tripping.
1423 * LaTeX writer:
1425 + Avoid inadvertently creating ?` or !` ligatures (#5407).
1426 These are upside down ? and !, resp.
1427 + Fix footnotes in table caption and cells (#5367). This fixes a
1428 bug wherein footnotes appeared in the wrong order, and with
1429 duplicate numbers, when in table captions and cells.
1430 We now use regular `\footnote` commands, even in the table
1431 caption and the minipages containing cells. Apparently
1432 longtable knows how to handle this.
1434 * HTML writer: Don't add data- prefix to RDFa attributes (#5403).
1436 * JATS writer: Ensure that plain strings go inside `<pub-id>` tag (#5397).
1438 * Markdown writer:
1440 + Better rendering of numbers (#5398). If the number is integral,
1441 we render it as an integral not a float.
1442 + Proper rendering of empty map in YAML metadata (#5398). Should
1443 be `{}`, not empty string.
1444 + Properly escape attributes in Markdown writer (#5369).
1445 + Be sure implicit figures work in list contexts (#5368).
1446 Previously they would sometimes not work: e.g., when they
1447 occurred in final paragraphs in lists that were originally
1448 parsed as Plain and converted later using PlainToPara.
1450 * Docx writer: Use `w:br` without attributes for line breaks (#5377).
1451 We previously added the attribute `type="textWrapping"`, but
1452 this causes problems on Word Online.
1454 * LaTeX template (Andrew Dunning):
1456 + Ensure correct heading/table order (#5365). Improve workaround
1457 (#1658) for tables following headings. The new solution works whether
1458 or not the `indent` variable is enabled.
1459 + Remove `subparagraph` variable. The default is now to use run-in
1460 style for level 4 and 5 headings (`\paragraph` and `\subparagraph`).
1461 To get the previous default behavior (where these were formatted as
1462 blocks, like `\subsubsection`), set the `block-headings` variable.
1463 + Add pandoc to PDF metadata (#5388).
1464 + Group graphics-related code (#5389).
1465 + Move `\setstretch` after front matter (#5179). Ensures that
1466 `\maketitle`, `\tableofcontents`, and so forth are not affected by
1467 changes to line spacing.
1469 * Update data/jats.csl to avoid commas between name-part elements
1470 (#5397).
1472 * Add support for golang (`go`) with `--listings` (#5427).
1474 * Text.Pandoc.Shared - improve `metaToJSON` behavior with numbers.
1475 We now do a better job marshalling numbers from MetaString
1476 or MetaInlines into JSON Number.
1478 * Text.Pandoc.Writers.Shared: `metaValueToJSON`: use Number Values for
1479 integers. Pandoc's MetaValue doesn't have a distinguished number type,
1480 so numbers are put in MetaStrings. If the MetaString consists
1481 entirely of digits, we convert it to a Number. We should probably
1482 consider adding a MetaNumber constructor to MetaValue, for better
1483 round-tripping with JSON etc. This change aids round-tripping in
1484 ipynb metadata fields, like `toc_depth`.
1486 * Text.Pandoc.Class: `fetchItem`: don't treat UNC paths as
1487 protocol-relative URLs (#5127). These are paths beginning `//?/UNC/...`.
1489 * Text.Pandoc.ImageSize: Improve `pdfSize` so it handles
1490 a wider range of PDFs (#4322, with help from Richard Davis).
1492 * Text.Pandoc.Pretty: avoid stack overflow by using strict sum (#5401).
1494 * Fix harmless error in file-scope code (#5422).
1496 * MANUAL.txt:
1498 + Improve 'header' and 'heading' usage (#5423, Andrew
1499 Dunning). The term 'header' was being used where 'heading'
1500 is more appropriate.
1501 + Add paragraph on options affecting markdown in ipynb.
1503 * stack.yaml - remove -Wmissing-home-modules
1504 This seems to cause problems with stack ghci. Remove RTS options.
1506 * Add ghc-options to cabal.project.
1508 * appveyor.yml - use ghc 8.6.4. Fixes segfault issues on Windows (#5037).
1510 * linux build process: Remove clone of pandoc-citeproc (#5366).
1511 It wasn't being used; cabal.project specifies the version to use.
1513## pandoc 2.7.1 (2019-03-14)
1515 * Add tectonic as an option for --pdf-engine (#5345, Cormac Relf).
1516 Runs tectonic on STDIN instead of a temporary .tex file, so that it
1517 looks in the working directory for `\include` and `\input` like the rest
1518 of the engines. Allows overriding the output directory
1519 args with `--pdf-engine-opt=--outdir --pdf-engine-opt="$DIR"`.
1521 * Allow `-o/--output` to be used with `--print-default-data-file`,
1522 `--print-highlighting-style`, `--print-default-template`.
1523 Note that `-o` must occur BEFORE the `--print*` command on the command
1524 line (this is documented, #5357).
1526 * LaTeX reader:
1528 + Support `\underline`, `\ul`, `\uline` (#5359, Paul
1529 Tilley). These are parsed as a Span with class `underline`, as
1530 with other readers.
1531 + Ensure that `\Footcite` and `\Footcites` get put in a note.
1533 * ipynb reader:
1535 + Remove sensitivity to `raw_html`, `raw_tex` extensions.
1536 We now include every output format. Pruning is handled by
1537 `--ipynb-output`.
1538 + Better handling of cell metadata. We now include even complex cell
1539 metadata in the Div's attributes (as JSON, in complex cases, or
1540 as plain strings in simple cases).
1542 * ipynb writer:
1544 + Recurse into native divs for output cell data (#5354).
1545 + Render cell metadata fields from div attributes.
1547 * Docx writer: avoid extra copy of abstractNum and num elements
1548 in numbering.xml. This caused pandoc-produced docx files to
1549 be uneditable using Word Online (#5358).
1551 * Markdown writer: improve handling of raw blocks/inline.
1552 We now emit raw content using `raw_attribute` when no more
1553 direct method is available. Use of `raw_attribute` can be
1554 forced by disabling `raw_html` and `raw_tex`.
1556 * LaTeX writer: Add classes for frontmatter support (#5353, Andrew Dunning)
1557 and remove frontmatter from `scrreprt`.
1559 * LaTeX template:
1561 + Improve readability (#5363, Andrew Dunning).
1562 + Robust section numbering removal (#5351, Andrew Dunning).
1563 Ensures that section numbering does not reappear with custom
1564 section levels. See <https://tex.stackexchange.com/questions/473653/>.
1565 + Better handling of front/main/backmatter (#5348).
1566 In pandoc 2.7 we assumed that every class with chapters would accept
1567 `\frontmatter`, `\mainmatter`, and `\backmatter`. This is not so (e.g.
1568 report does not). So pandoc 2.7 breaks on report class by including an
1569 unsupported command. Instead of the `book-class` variable, we use two
1570 variables, `has-chapters` and `has-frontmatter`, and set these
1571 intelligently in the writer.
1573 * Text.Pandoc.Shared: Improve `filterIpynbOutput`. Ensure that
1574 images are prioritized over text. `best` should include everything
1575 for ipynb.
1577 * Tests.Old: specify `--data-dir=../data` to ensure tests can find
1578 data files even if they haven't been installed. Remove old
1579 `pandoc_datadir` environment variable, which hasn't done anything for a
1580 long time.
1582 * MANUAL.txt: Add recommendation to use `raw_attribute` with ipynb (#5354).
1584 * Use cmark-gfm-hs 0.1.8 (note that 0.1.7 is buggy).
1586 * Use latest pandoc-citeproc, texmath.
1589## pandoc 2.7 (2019-03-03)
1591 * Use XDG data directory for user data directory (#3582). Instead of
1592 `$HOME/.pandoc`, the default user data directory is now
1593 `$XDG_DATA_HOME/pandoc`, where `XDG_DATA_HOME` defaults to
1594 `$HOME/.local/share` but can be overridden by setting the
1595 environment variable. If this directory is missing, then
1596 `$HOME/.pandoc` is searched instead, for backwards compatibility.
1597 However, we recommend moving local pandoc data files from
1598 `$HOME/.pandoc` to `$HOME/.local/share/pandoc`. On Windows the
1599 default user data directory remains the same.
1601 * Slide show formats behavior change: content under headers
1602 less than slide level is no longer ignored, but included in
1603 the title slide (for HTML slide shows) or in a slide after
1604 the title slide (for beamer). This change makes possible
1605 2D reveal.js slideshows with content in the top slide on
1606 each stack (#4317, #5237).
1608 * Add command line option `--ipynb-output=all|none|best` (#5339).
1609 Output cells in ipynb notebooks often contain several different
1610 versions of an output, with different MIME types, e.g. an HTML
1611 table and a plain-text fallback. Specifying `--ipynb-output=best`
1612 (the default) ensures that the best version for the output format
1613 is used. `all` includes all versions, and `none` suppresses them
1614 all, leaving output cells empty.
1616 * `asciidoctor` is now an output format separate from `asciidoc`,
1617 to accommodate some minor implementation-specific differences
1618 (currently just in the treatment of display math).
1620 * Add `latexmk` as an option for `--pdf-engine` (#3195).
1621 Note that you can use `--pdf-engine-opt=-outdir=bar` to specify
1622 a persistent temp directory.
1624 * Markdown reader:
1626 + Improve tight/loose list handling (#5285). Previously the
1627 algorithm allowed list items with a mix of Para and Plain, which
1628 is never wanted.
1629 + Add newline when parsing blocks in YAML (#5271). Otherwise last
1630 block gets parsed as a Plain rather than a Para. This is a
1631 regression in pandoc 2.x. This patch restores pandoc 1.19
1632 behavior.
1633 + Make `yamlToMeta` respect extensions (#5272, Mauro Bieg).
1634 This adds a `ReaderOptions` parameter to `yamlToMeta` [API change].
1635 + Fix bug parsing fenced code blocks (#5304). Previously parsing
1636 would break if the code block contained a string of backticks of
1637 sufficient length followed by something other than end of line.
1639 * LaTeX reader: don't let `\egroup` match `{`. `braced` now actually
1640 requires nested braces. Otherwise some legitimate command and
1641 environment definitions can break.
1643 * Docx reader (Jesse Rosenthal):
1645 + Rename `getDocumentPath` as `getDocumentXmlPath`.
1646 + Use field notation for setting `ReaderEnv`.
1647 + Figure out `document.xml` path once at the beginning of parsing, and
1648 add it to the environment, so we can avoid repeated lookups.
1649 + Dynamically determine main document xml path (#5277).
1650 The desktop Word program places the main document file in
1651 `word/document.xml`, but the online word places it in
1652 `word/document2.xml`. This file path is actually stated in the root
1653 `_rels/.rels` file, in the `Relationship` element with an
1654 `http://../officedocument` type.
1655 + Fix paths in archive to prevent Windows failure (#5277).
1656 Some paths in archives are absolute (have an opening slash) which, for
1657 reasons unknown, produces a failure in the test suite on MS
1658 Windows. This fixes that by removing the leading slash if it exists.
1659 + Add comments to aid code readability.
1660 + Trim space inside the last inline (#5273).
1661 + Unwrap sdt elements in footnotes and comments (#5302).
1663 * Muse reader (Alexander Krotov):
1665 + Test that block level markup does not break `<verbatim>`.
1666 + Add secondary note support.
1668 * ipynb reader: handle images referring to attachments. Previously
1669 we didn't strip off the attachment: prefix, so even though the
1670 attachment was available in the mediabag, pandoc couldn't find it.
1672 * JATS reader:
1674 + Fix parsing of figures (#5321). This ensures that a figure
1675 containing a single image is parsed as a pandoc "implicit
1676 figure" (i.e., a Para with a single Image whose title attribute
1677 begins with `fig:`). More complex figures will still be parsed
1678 as divs.
1679 + Support `fig-group` block element (#5317).
1680 + Handle citations with multiple references (#5310). The `rid`
1681 attribute can have a space-separated list of ids.
1683 * AsciiDoc Writer: Add `writeAsciiDoctor` [API change, Tarik Graba].
1684 Handle display math appropriately for Asciidoctor.
1686 * JATS writer: wrap figure caption in `<p>` to fix validation (#5290,
1687 Mauro Bieg).
1689 * HTML writer:
1691 + Implement WAI-ARIA roles for (end)notes, citations, and
1692 bibliography (#4213). Note that doc-biblioref is only used when
1693 link-citations produces links, since it belongs on links.
1694 + Include content (including speaker notes) in title slides
1695 (#4317, #5237).
1697 * ipynb writer:
1699 + Ensure final newline.
1700 + Only include metadata under `jupyter` field.
1701 + Don't create attachments for images with absolute URIs,
1702 including data: URIs (#5303).
1703 + Keep plain text fallbacks in output even if a richer format is
1704 included (#5293). We don't know what output format will be needed.
1705 See the `--ipynb-output` command line option for a way to control
1706 what formats are included in the output.
1708 * Markdown writer: use `markdown="1"` when appropriate for Divs:
1709 when `native_divs` and `markdown_in_html_blocks` are disabled
1710 but `raw_html` and `markdown_attribute` are enabled.
1712 * LaTeX writer:
1714 + Use right fold for `escapeString`. This is more elegant than
1715 the explicit recursive code we were using.
1716 + Avoid `{}` after control sequences when escaping.
1717 `\ldots{}.` doesn't behave as well as `\ldots.` with the latex
1718 ellipsis package. This patch causes pandoc to avoid emitting
1719 the `{}` when it is not necessary. Now `\ldots` and other
1720 control sequences used in escaping will be followed by either
1721 a `{}`, a space, or nothing, depending on context.
1722 + For beamer, include contents under headers superordinate to
1723 slidelevel (#4317). Currently we keep the fancy title slide, and
1724 add a new slide with the same title and whatever content was
1725 under the header.
1727 * Powerpoint writer (Jesse Rosenthal): support underlines.
1728 Use span with single class "underline" as in docx writer.
1730 * Muse writer: escape secondary notes (Alexander Krotov).
1732 * FB2 writer: add section identifiers support (#5229, John KetzerX).
1734 * Make `--fail-if-warnings` work for PDF output (#5343).
1736 * Lua filters (Albert Krewinkel):
1738 + Load module `pandoc` before calling `init.lua` (#5287). The file
1739 `init.lua` in pandoc's data directory is run as part of pandoc's
1740 Lua initialization process. Previously, the `pandoc` module was
1741 loaded in `init.lua`, and the structure for marshaling was
1742 set up after. This allowed simple patching of element
1743 marshaling, but made using `init.lua` more difficult. Now, all
1744 required modules are now loaded before calling `init.lua`. The
1745 file can be used entirely for user customization. Patching
1746 marshaling functions, while discouraged, is still possible via
1747 the `debug` module.
1748 + All Lua modules bundled with pandoc, i.e., `pandoc.List`,
1749 `pandoc.mediabag`, `pandoc.utils`, and `text` are re-exported from the
1750 `pandoc` module. They are assigned to the fields `List`, `mediabag`,
1751 `utils`, and `text`, respectively.
1753 * Text.Pandoc.Lua (Albert Krewinkel):
1755 + Split `StackInstances` into smaller Marshaling modules.
1756 + Get `CommonState` from Lua global. This allows more control over
1757 the common state from within Lua scripts.
1759 * LaTeX template:
1761 + Support the `subject` metadata variable (#5289, Pascal Wagler).
1762 + Add `\frontmatter`, `\mainmatter`, `\backmatter`
1763 for book classes (#5306).
1765 * epub3 template: Add titlepage class to section (#5269).
1767 * HTML5 template: Add ARIA role `doc-toc` for table of contents (#4213).
1769 * Make `--metadata-file` use selected extensions (#5279, #5272, Mauro Bieg).
1771 * Text.Pandoc.Shared:
1773 + Remove `withTempDir` [API change].
1774 + Add new exported function `defaultUserDataDirs` [API change].
1775 + Add `filterIpynbOutput` [API change].
1776 + `compactify`: Avoid lists with a mix of Plain and Para elements
1777 (#5285).
1779 * Text.Pandoc.Translations: reorder alphabetically and remove `Author`
1780 (#5334, Mauro Bieg).
1782 * Text.Pandoc.Extensions:
1784 + More carefully groom ipynb default extensions.
1785 + Add `all_symbols_escapable` to `githubMarkdownExtensions`.
1787 * Text.Pandoc.PDF:
1789 + Use system temp directory when possible (#1192). Previously we
1790 created temp dirs in the working directory, partly (a) because
1791 there were problems using the system temp directory on Windows,
1792 when their pathnames included tildes, and partly (b) because
1793 programs like `epstopdf.pl` would not be allowed to write to
1794 directories outside the working directory in restricted mode. We
1795 now (a) use the system temp dir except when the path includes
1796 tildes, and (b) set `TEXMFOUTPUT` when creating the PDF, so that
1797 subsidiary programs can use the system temp directory. This
1798 addresses problems that occurred when pandoc was used in a
1799 synced directory (such as Dropbox).
1800 + Change types of subsidiary functions to PandocIO, to allow
1801 warnings to be threaded through (#5343).
1803 * Text.Pandoc.MIME: add WebP (#5267, Mauro Bieg).
1805 * Tests: avoid calling `findPandoc` multiple times.
1807 * Old tests: remove need for temp files by using `pipeProcess`.
1809 * Added simple ipynb reader/writer tests (#5274).
1811 * Rearrange `--help` output in a more rational way, with common
1812 options at the beginning and options grouped by function (#5336).
1814 * trypandoc: Add JATS and other missing formats (Arfon Smith, #5291).
1816 * Add missing copyright notices and remove license boilerplate (#4592,
1817 Albert Krewinkel).
1819 * Use latest basement/foundation on 32bit windows.
1821 * Use latest skylighting (#5328). Custom syntax definitions no
1822 longer try to load `language.dtd`.
1824 * Require texmath 0.11.2.1
1826 * Use latest pandoc-citeproc (0.16.1.1).
1828 * MANUAL.txt:
1830 + Clarify variable substitution indentation in templates (#5338,
1831 Agustín Martín Barbero).
1832 + Reorder custom-styles section (#5324, Mauro Bieg).
1834## pandoc 2.6 (2019-01-30)
1836 * Support ipynb (Jupyter notebook) as input and output format.
1838 + Add `ipynb` as input and output format (extension `.ipynb`).
1839 + Added Text.Pandoc.Readers.Ipynb [API change].
1840 + Added Text.Pandoc.Writers.Ipynb [API change].
1841 + Add `PandocIpynbDecodingError` constructor to Text.Pandoc.Error.Error
1842 [API change].
1843 + Depend on ipynb library.
1844 + Note: there is no template for ipynb.
1846 * Add DokuWiki reader (#1792, Alexander Krotov). This adds
1847 Text.Pandoc.Readers.DokuWiki [API change], and adds `dokuwiki`
1848 as an input format.
1850 * Implement task lists (#3051, Mauro Bieg). Added `task_lists`
1851 extension. Task lists are supported from markdown and gfm input.
1852 They should work, to some degree, in all output formats, though in
1853 most formats you'll get a bullet list with a unicode character for
1854 the box. In HTML, you get checkboxes and in LaTeX/PDF output, a
1855 box is used as the list marker. API changes:
1857 + Added constructor `Ext_task_lists` to `Extension`.
1858 + Added `taskListItemFromAscii` and `taskListItemToAscii` to
1859 Text.Pandoc.Shared.
1861 * Allow some command line options to take URL in addition to FILE.
1862 `--include-in-header`, `--include-before-body`, `--include-after-body`.
1864 * HTML reader:
1866 + Handle empty `start` attribute (see #5162).
1867 + Treat `textarea` as a verbatim environment (#5241) and preserve
1868 spacing.
1870 * RST reader:
1872 + Change treatment of `number-lines` directive (Brian Leung,
1873 #5207). Directives of this type without numeric inputs should
1874 not have a `startFrom` attribute; with a blank value, the
1875 writers can produce extra whitespace.
1876 + Removed superfluous `sourceCode` class on code blocks (#5047).
1877 + Handle `sourcecode` directive as synonynm for `code` (#5204).
1879 * Markdown reader:
1881 + Remove `sourceCode` class for literate Haskell code blocks
1882 (#5047). Reverse order of `literate` and `haskell` classes on
1883 code blocks when parsing literate Haskell, so `haskell` is
1884 first.
1885 + Treat `<textarea>` as a verbatim environment (#5241).
1887 * Org reader:
1889 + Handle `minlevel` option differently (#5190, Brian Leung).
1890 When `minlevel` exceeds the original minimum level observed in
1891 the file to be included, every heading should be shifted
1892 rightward.
1893 + Allow for case of `:minlevel == 0` (#5190).
1894 + Fix treatment of links to images (#5191, Albert Krewinkel).
1895 Links with descriptions which are pointing to images are no
1896 longer parsed as inline images, but as links.
1897 + Add support for #+SELECT_TAGS (Brian Leung).
1898 + Separate filtering logic from conversion function (Brian Leung).
1900 * TWiki reader: Fix performance issue with underscores (#3921).
1902 * MediaWiki reader: use `_` instead of `-` in auto-identifiers (#4731).
1903 We may not still be exactly matching mediawiki's algorithm.
1905 * LaTeX reader:
1907 + Remove `sourceCode` class for literate Haskell code blocks
1908 (#5047). Reverse order of `literate` and `haskell` classes on
1909 code blocks when parsing literate Haskell, so `haskell` is
1910 first.
1911 + Support `\DeclareMathOperator` (#5149).
1912 + Support `\inputminted` (#5103).
1913 + Support `\endinput` (#5233).
1914 + Allow includes with dots like `cc_by_4.0`. Previously the `.0`
1915 was interpreted as a file extension, leading pandoc not to add
1916 `.tex` (and thus not to find the file). The new behavior matches
1917 tex more closely.
1919 * Man reader:
1921 + Use `mapLeft` from Shared instead of defining own.
1923 * Docx reader (Jesse Rosenthal):
1925 + Handle level overrides (#5134).
1927 * Docx writer:
1929 + Support custom properties (#3024, #5252, Agustín Martín Barbero).
1930 Also supports additional core properties: `subject`, `lang`,
1931 `category`, `description`.
1932 + Make Level into a real type, instead of an alias for a tuple
1933 (Jesse Rosenthal).
1935 * ICML writer (Mauro Bieg):
1937 + Support custom-styles (#5137, see #2106).
1938 + Support unnumbered headers (#5140).
1940 * Texinfo writer: Use header identifier for anchor if present (#4731).
1941 Previously we were overwriting an existing identifier with a new one.
1943 * Org writer: Preserve line-numbering for example and code blocks
1944 (Brian Leung).
1946 * Man/Ms writers: Don't escape `-` as `\-`. The `\-` gets rendered
1947 in HTML and PDF as a unicode minus sign.
1949 * Ms writer: Ensure we have a newline after .EN in disply math (#5251).
1951 * RST writer: Don't wrap simple table header lines (#5128).
1953 * Asciidoc writer: Shorter delimiters for tables, blockquotes
1954 (#4364). This matches asciidoctor reference docs.
1956 * Dokuwiki writer: Remove automatic `:` prefix before internal image
1957 links (#5183, Damien Clochard). This prevented users from making
1958 relative image links.
1960 * Zimwiki writer: remove automatic colon prefix before internal
1961 images (#5183, Damien Clochard).
1963 * MediaWiki writer: fix caption, use 'thumb' instead of 'frame'
1964 (#5105). Captions used to have the word 'caption' prepended; this
1965 has been removed. Also, 'thumb' is used instead of 'frame' to
1966 allow images to be resized.
1968 * reveal.js writer:
1970 + Ensure that we don't get > 2 levels of section nesting,
1971 even with slide level > 2 (#5168).
1972 + If slide level == N but there is no N-level header, make
1973 sure the next header with level > N gets treated as a slide
1974 and put in a section, rather than remaining loose (#5168).
1976 * Markdown writer:
1978 + Make `plain` RawBlocks pass through in `plain` output.
1979 + Include needed whitespace after HTML figure (#5121).
1980 We use HTML for a figure in markdown dialects that can't
1981 represent it natively.
1983 * Commonmark writer:
1985 + Fix handling of SoftBreak with `hard_line_breaks` (#5195).
1986 + Implement `--toc` (`writerTableOfContents`)
1987 in commonmark/gfm writers (#5172).
1989 * EPUB writer:
1991 + Ensure that picture transforms are done on metadata too.
1992 + Small fixes to `nav.xhtml`:
1993 Add 'landmarks' id attribute to the landmarks nav.
1994 Replace old default CSS removing numbers from ol.toc li
1995 with new rules that match `nav#toc ol, nav#landmarks ol`.
1996 We keep the `toc` class on `ol` for backwards compatibility.
1998 * LaTeX writer:
2000 + Make raw content marked `beamer` pass through in `beamer`
2001 output (pandoc/lua-filters#40).
2002 + Beamer: avoid duplicated `fragile` property in some cases
2003 (#5208).
2004 + Add `#` special characters for listings (#4939).
2005 This character needs special handling in `\lstinline`.
2007 * RTF writer: use `toTableOfContents` from Shared to replace
2008 old duplicated code.
2010 * Pptx writer:
2012 + Support custom properties. Also supports additional core
2013 properties: `subject`, `category`, `description` (#5252,
2014 Agustín Martín Barbero).
2015 + Use `toTableOfContents` from Shared to replace old duplicated code.
2017 * ODT writer (Augustín Martín Barbero):
2019 + Fix typo in custom properties (#2839).
2020 + Improve standard properties, including the following core
2021 properties: `generator` (Pandoc/VERSION), `description`, `subject`,
2022 `keywords`, `initial-creator` (from authors), `creation-date`
2023 (actual creation date) (#5252).
2025 * Custom writers:
2027 + Allow '-' in filenames for custom lua writers (#5187).
2028 + sample.lua: add `SingleQuoted`, `DoubleQuoted` (#5104).
2029 + sample.lua: Add a missing `>` (MichaWiedenmann).
2031 * reveal.js template: Add `zoomKey` config (#4249).
2033 * HTML5 template: Remove unnecessary type="text/css" on style and
2034 link for HTML5 (#5146).
2036 * LaTeX template (Andrew Dunning, except where noted):
2038 + Prevent fontspec from scaling `mainfont` to match the default
2039 font, Latin Modern. A main font set to 12pt could
2040 previously appear between 11pt to 13pt depending on its design.
2041 To return to the earlier rendering, use `-V
2042 mainfontoptions="Scale=MatchLowercase"` (#5212, #5218).
2043 + Display monospaced fonts without TeX ligatures when using
2044 `--pdf-engine=lualatex`. It now matches the behaviour of other
2045 engines (#5212, #5218).
2046 + Remove the deprecated `romanfont` variable. The functionality of
2047 `mainfont` is identical (#5218).
2048 + Render `\subtitle` with the standard document classes.
2049 Previously, `subtitle` only appeared when using the KOMA-Script
2050 classes or Beamer (#5213, #5244).
2051 + Use Babel instead of Polyglossia for LuaLaTeX. This avoids
2052 several language selection problems, notably with retaining
2053 French spacing conventions when switching to a verbatim
2054 environment or another language; and in printing Greek text
2055 without hyphenation (#5193).
2056 + Use the [`xurl`](https://ctan.org/pkg/xurl) package if
2057 available, improving the appearance of URLs by allowing them to
2058 break at additional points (#5193).
2059 + Use [`bookmark`](https://ctan.org/pkg/bookmark) if available
2060 to correct heading levels in PDF bookmarks: see the [KOMA-Script
2061 3.26 release notes](https://komascript.de/release3.26) (#5193).
2062 + Require the [`xcolor`](https://ctan.org/pkg/xcolor) package to
2063 avoid a possible error when using additional packages alongside
2064 footnotes in tables (#5193, closes #4861).
2065 + Remove obsolete `fixltx2e` package, which has no functionality
2066 with TeX Live 2015 or later (#5193).
2067 + Allow multiple `fontfamilies.options` (#5193, closes #5194).
2068 + Restrict `institute` variable to Beamer (#5219).
2069 + Use [`footnotehyper`](https://ctan.org/pkg/footnotehyper)
2070 package if available to make footnotes in tables compatible
2071 with `hyperref` (#5234).
2072 + Number parts and chapters in book classes only if the
2073 `numbersections` variable is set, for consistency with other
2074 output formats. To return to the previous behaviour, use
2075 `-V numbersections -V secnumdepth=0` (#5235).
2076 + Reindent file (#5193).
2077 + Use built-in parskip handling with KOMA-Script classes (#5143, Enno).
2078 + Set default listings language for lua, assembler (#5227, John
2079 MacFarlane). Otherwise we get an error when trying to compile code
2080 with lua or assembler code. To change the default dialect
2081 (currenty 5.3 for lua and x86masm for assembler), you can use
2082 `--include-in-header` to inject something like
2083 `\lstset{defaultdialect=[5.2]Lua}`.
2085 * Text.Pandoc.Readers: Changed types of `readJSON`; it now runs
2086 in an instance of PandocMonad, like the other readers and
2087 writers. [API change]
2089 * Text.Pandoc.Writers: Changed types of `writeJSON`; it now runs
2090 in an instance of PandocMonad, like the other readers and
2091 writers. [API change]
2093 * Text.Pandoc.Error: Added `PandocUTF8DecodingError` constructor
2094 for `PandocError`. [API change]
2096 * Text.Pandoc.Writers.Shared - add `toTableOfContents`. [API change]
2097 This is refactored out from the Markdown writer.
2098 It can be used in other writers to create a table of contents.
2100 * Improve error messages for UTF-8 decoding errors. Now we give
2101 the filename and byte offset (#4765).
2103 * Text.Pandoc.XML: Strip out illegal XML characters in
2104 `escapeXMLString` (#5119).
2106 * Text.Pandoc.Process: update `pipeProcess` (Albert Krewinkel).
2107 The implementation of `pipeProcess` was rewritten to fix sporadic
2108 failures caused by prematurely closed pipes.
2110 * Use `safeRead` instead of `read` everywhere in the code
2111 (John MacFarlane, Mauro Bieg, #5162, #5180).
2113 * Text.Pandoc.SelfContained: Decompress `.svgz` when
2114 converting to `data:` URI (#5163, Alexander Krotov).
2116 * Text.Pandoc.Parsing: Remove unused `HasHeaderMap`
2117 (#5175, Alexander Krotov). [API change]
2119 * Normalize Windows paths to account for change in ghc 8.6 (#5127).
2120 When pandoc is compiled with ghc 8.6, Windows paths are treated
2121 differently, and paths beginning `\\server` no longer work.
2122 This commit rewrites such patsh to `\\?\UNC\server` which works.
2123 The change operates at the level of argument parsing, so it
2124 only affects the command line program.
2126 * Simplify/fix reading of `--metadata` values on command line
2127 to avoid problems relating to hvr/HsYAML#7 (#5177).
2129 * data/pandoc.lua: auto-fix nested constructor arguments (Albert
2130 Krewinkel). Incorrect types to pandoc element constructors are
2131 automatically converted to the correct types when possible. This was
2132 already done for most constructors, but conversions are now also done
2133 for nested types (like lists of lists).
2135 * Removed custom Setup.hs, use build-type: simple. The only thing we
2136 gained from the custom build was automatic installation of the man
2137 page when using 'cabal install'. But custom builds cause problems,
2138 e.g., with cross-compilation. Installation of the man page is
2139 better handled by packagers. Note to packagers (e.g. Debian): it
2140 may be necessary to add a step installing the man page with the
2141 next release.
2143 * Allow latest http-client, tasty, zip-archive, Glob.
2145 * Require skylighting >= 0.7.5, adding support for sml, J,
2146 typescript.
2148 * Tests: Cleaned up `findPandoc` in `Tests.Helpers`, so it
2149 works well with cabal v2.
2151 * INSTALL.md:
2153 + Use button for installer links (John MacFarlane, Mauro Bieg,
2154 #5167).
2155 + Fix links and bump required stack version (max).
2156 + Improve installation notes on associated software (Andrew
2157 Dunning). Includes explanation of how to install related tools
2158 with package managers (since the method of installing
2159 `rsvg-convert` is not obvious).
2161 * doc/org.md: improve documentation of org features (Albert
2162 Krewinkel).
2164 * doc/lua-filters.md: use 3rd level headers for module fields.
2166 * MANUAL:
2168 + Clarify automatic identifiers (#5201). We remove
2169 non-alphanumerics. This includes, e.g., emojis.
2170 + Fix example for Div with id (Geoffrey Ely).
2171 + Update list of LaTeX packages used.
2172 + Make it clear that `hard_line_breaks` works in `gfm` (see #5195).
2173 + Mention `raw_attribute` in documentation for `raw_html` and
2174 `raw_tex` (#5240, thanks to @eiro).
2175 + Clarify that `$sep$` must come right before `$endfor$` in templates
2176 (#5243, Lev Givon).
2177 + Document metadata support for docx, odt, pptx writers (Agustín
2178 Martín Barbero).
2179 + Reorganize template variables (#5249, Andrew Dunning).
2180 Add additional headings to categorize variables, and
2181 alphabetize when there is large number; add more examples.
2182 + Document `date-meta` template variable (#5260, Tristan Stenner).
2184 * trypandoc: Fix CSS and viewport.
2186## pandoc 2.5 (2018-11-27)
2188 * Text.Pandoc.App: split into several unexported submodules (Albert
2189 Krewinkel): Text.Pandoc.App.FormatHeuristics,
2190 Text.Pandoc.App.Opt, Text.Pandoc.App.CommandLineOptions,
2191 Text.Pandoc.App.OutputSettings. This is motivated partly by the
2192 desire to reduce recompilations when something is modified,
2193 since App previously depended on virtually every other module.
2195 * Text.Pandoc.Extensions
2197 + Semantically, `gfm_auto_identifiers` is now a modifier of
2198 `auto_identifiers`; for identifiers to be set, `auto_identifiers` must
2199 be turned on, and then the type of identifier produced depends on
2200 `gfm_auto_identifiers` and `ascii_identifiers` are set. Accordingly,
2201 `auto_identifiers` is now added to `githubMarkdownExtensions` (#5057).
2202 + Remove `ascii_identifiers` from `githubMarkdownExtensions`.
2203 GitHub doesn't seem to strip non-ascii characters any more.
2205 * Text.Pandoc.Lua.Module.Utils (Albert Krewinkel)
2207 + Test AST object equality via Haskell (#5092). Equality of Lua
2208 objects representing pandoc AST elements is tested by unmarshalling
2209 the objects and comparing the result in Haskell.
2210 A new function `equals` which performs this test has been added to the
2211 `pandoc.utils` module.
2212 + Improve stringify. Meta value strings (MetaString)
2213 and booleans (MetaBool) are now converted to the literal string and the
2214 lowercase boolean name, respectively. Previously, all values of these
2215 types were converted to the empty string.
2217 * Text.Pandoc.Parsing: Remove Functor and Applicative constraints where Monad
2218 already exists (Alexander Krotov).
2220 * Text.Pandoc.Pretty: Don't render BreakingSpace at end of line
2221 or beginning of line (#5050).
2223 * Text.Pandoc.Readers.Markdown
2225 + Fix parsing of citations, quotes, and underline emphasis
2226 after symbols. Starting with pandoc 2.4, citations, quoted inlines,
2227 and underline emphasis were no longer recognized after certain
2228 symbols, like parentheses (#5099, #5053).
2229 + In pandoc 2.4, a soft break after an abbreviation would be
2230 relocated before it to allow for insertion of a nonbreaking
2231 space after the abbreviation. This behavior is here reverted.
2232 A soft break after an abbreviation will remain, and no nonbreaking
2233 space will be added. Those who care about this issue should take care not
2234 to end lines with an abbreviation, or to insert nonbreaking spaces
2235 manually.
2237 * Text.Pandoc.Readers.FB2: Do not throw error for unknown elements in
2238 `<body>` (Alexander Krotov). Some libraries include custom elements
2239 in their FB2 files.
2241 * Text.Pandoc.Readers.HTML
2243 + Allow `tfoot` before body rows (#5079).
2244 + Parse `<small>` as a Span with class "small" (#5080).
2245 + Allow thead containing a row with `td` rather than `th` (#5014).
2247 * Text.Pandoc.Readers.LaTeX
2249 + Cleaned up handling of dimension arguments. Allow decimal points,
2250 preceding space.
2251 + Don't allow arguments for verbatim, etc.
2252 + Allow space before bracketed options.
2253 + Allow optional arguments after `\\` in tables.
2254 + Improve parsing of `\tiny`, `\scriptsize`, etc. Parse as raw,
2255 but know that these font changing commands take no arguments.
2257 * Text.Pandoc.Readers.Muse
2259 + Trim whitespace before parsing grid table cells (Alexander Krotov).
2260 + Add grid tables support (Alexander Krotov).
2262 * Text.Pandoc.Shared
2264 + For bibliography match Div with id `refs`, not class `references`.
2265 This was a mismatch between pandoc's docx, epub, latex, and markdown
2266 writers and the behavior of pandoc-citeproc, which actually looks for a
2267 div with id `refs` rather than one with class `references`.
2268 + Exactly match GitHub's identifier generating algorithm (#5057).
2269 + Add parameter for `Extensions` to `uniqueIdent` and
2270 `inlineListToIdentifier` (#5057). [API change]
2271 This allows these functions to be sensitive to the settings of
2272 `Ext_gfm_auto_identifiers` and `Ext_ascii_identifiers`, and allows us to
2273 use `uniqueIdent` in the CommonMark reader, replacing custom code. It
2274 also means that `gfm_auto_identifiers` can now be used in all formats.
2276 * Text.Pandoc.Writers.AsciiDoc
2278 + Use `.`+ as list markers to support nested ordered lists (#5087).
2279 + Support list number styles (#5089).
2280 + Render Spans using `[#id .class]#contents#` (#5080).
2282 * Text.Pandoc.Writers.CommonMark
2284 + Respect `--ascii` (#5043, quasicomputational).
2285 + Make sure `--ascii` affects quotes, super/subscript.
2287 * Text.Pandoc.Writers.Docx
2289 + Fix bookmarks to headers with long titles (#5091).
2290 Word has a 40 character limit for bookmark names. In addition, bookmarks
2291 must begin with a letter. Since pandoc's auto-generated identifiers may
2292 not respect these constraints, some internal links did not work. With
2293 this change, pandoc uses a bookmark name based on the SHA1 hash of the
2294 identifier when the identifier isn't a legal bookmark name.
2295 + Add bookmarks to code blocks (Nikolay Yakimov).
2296 + Add bookmarks to images (Nikolay Yakimov).
2297 + Refactor common bookmark creation code into a function (Nikolay Yakimov).
2299 * Text.Pandoc.Writers.EPUB: Handle calibre metadata (#5098).
2300 Nodes of the form
2302 <meta name="calibre:series" content="Classics on War and Politics"/>
2304 are now included from an epub XML metadata file. You can also include
2305 this information in your YAML metadata, like so:
2307 calibre:
2308 series: Classics on War and Policitics
2310 In addition, ibooks-specific metadata can now be included via an XML
2311 file. (Previously, it could only be included via YAML metadata, see
2312 #2693.)
2314 * Text.Pandoc.Writers.HTML: Use plain `"` instead of `&quot;` outside of
2315 attributes.
2317 * Text.Pandoc.Writers.ICML: Consolidate adjacent strings, inc. spaces.
2318 This avoids splitting up the output unnecessarily into separate elements.
2320 * Text.Pandoc.Writers.LaTeX: Don't emit `[<+->]` unless beamer output, even
2321 if `writerIncremental` is True (#5072).
2323 * Text.Pandoc.Writers.Muse (Alexander Krotov).
2325 + Output tables as grid tables if they have multi-line cells.
2326 + Indent simple tables only on the top level.
2327 + Output tables with one column as grid tables.
2328 + Add support for `--reference-location`.
2329 + Internal improvements.
2331 * Text.Pandoc.Writers.OpenDocument: Fix list indentation (Nils Carlson,
2332 #5095). This was a regression in pandoc 2.4.
2334 * Text.Pandoc.Writers.RTF: Fix warnings for skipped raw inlines.
2336 * Text.Pandoc.Writers.Texinfo: Add blank line before `@menu` section (#5055).
2338 * Text.Pandoc.XML: in `toHtml5Entities`, prefer shorter entities
2339 when there are several choices for a particular character.
2341 * data/abbreviations
2343 + Add additional abbreviations (Andrew Dunning)
2344 Many of these borrowed from the Chicago Manual of Style 10.42,
2345 'Scholarly abbreviations'.
2347 * Templates
2349 + Asciidoc template: add :lang: to title header is lang is set in
2350 metadata (#5088).
2352 * pandoc.cabal: Add cabal flag `derive_json_via_th` (Albert Krewinkel)
2353 Disabling the flag will cause derivation of ToJSON and FromJSON
2354 instances via GHC Generics instead of Template Haskell. The flag is
2355 enabled by default, as deriving via Generics can be slow (see #4083).
2357 * trypandoc:
2359 + Tweaked drop-down lists.
2360 + Put link to site in footer.
2361 + Preselect output format.
2362 + Update on change of in or out format.
2363 + Add man input format.
2365 * MANUAL.txt:
2367 + Fix outdated description of latex_macros extension.
2368 + Clarified placement of bibliography.
2369 + Added "A note on security."
2370 + Fix note on curly brace syntx for locators.
2371 + Document new explicit syntax for citeproc locators.
2372 + Remove confusing cross-links for some extensions.
2373 + Don't put pandoc in code ticks in heading.
2374 + Document that `--ascii` works for gfm and commonmark too.
2375 + Add `man` to `--from` options.
2377 * doc/customizing-pandoc.md: various improvements (Mauro Bieg).
2380## pandoc 2.4 (2018-11-03)
2382### New features
2384 * New input format `man` (Yan Pashkovsky, John MacFarlane).
2386### Behavior changes
2388 * `--ascii` is now implemented in the writers, not in Text.Pandoc.App,
2389 via the new `writerPreferAscii` field in `WriterOptions`.
2390 Now the `write*` functions for Docbook, HTML, ICML, JATS, LaTeX,
2391 Ms, Markdown, and OPML are sensitive to `writerPreferAscii`.
2392 Previously the to-ascii translation was done in Text.Pandoc.App,
2393 and thus not available to those using the writer functions
2394 directly.
2396 * `--ascii` now works with Markdown output. HTML5 character reference
2397 entities are used.
2399 * `--ascii` now works with LaTeX output. 100% ASCII output can't be
2400 guaranteed, but the writer will use commands like `\"{a}` and `\l`
2401 whenever possible, to avoid emitting a non-ASCII character.
2403 * For HTML5 output, `--ascii` now uses HTML5 character reference
2404 entities rather than numerical entities.
2406 * Improved detection of format based on extension (in Text.Pandoc.App).
2407 We now ensure that if someone tries to convert a file for a
2408 format that has a pandoc writer but not a reader, it won't just
2409 default to markdown.
2411 * Add viz. to abbreviations file (#5007, Nick Fleisher).
2413 * AsciiDoc writer: always use single-line section headers,
2414 instead of the old underline style (#5038). Previously the single-line
2415 style would be used if `--atx-headers` was specified, but
2416 now it is always used.
2418 * RST writer: Use simple tables when possible (#4750).
2420 * CommonMark (and gfm) writer: Add plain text fallbacks. (#4528,
2421 quasicomputational). Previously, the writer would unconditionally
2422 emit HTML output for subscripts, superscripts, strikeouts (if the
2423 strikeout extension is disabled) and small caps, even with
2424 `raw_html` disabled. Now there are plain-text (and, where
2425 possible, fancy Unicode) fallbacks for all of these corresponding
2426 (mostly) to the Markdown fallbacks, and the HTML output is only
2427 used when `raw_html` is enabled.
2429 * Powerpoint writer: support raw openxml (Jesse Rosenthal, #4976).
2430 This allows raw openxml blocks and inlines to be used in the pptx
2431 writer. Caveats: (1) It's up to the user to write
2432 well-formed openxml. The chances for corruption, especially with
2433 such a brittle format as pptx, is high. (2) Because of
2434 the tricky way that blocks map onto shapes, if you are using
2435 a raw block, it should be the only block on a slide
2436 (otherwise other text might end up overlapping it). (3) The
2437 pptx ooxml namespace abbreviations are different from the
2438 docx ooxml namespaces. Again, it's up to the user to get it
2439 right. Unzipped document and ooxml specification should be
2440 consulted.
2442 * With `--katex` in HTML formats, do not use the autorenderer (#4946).
2443 We no longer surround formulas with `\(..\)` or `\[..\]`. Instead,
2444 we tell katex to convert the contents of span elements with
2445 class "math". Since math has already been identified, this
2446 avoids wasted time parsing for LaTeX delimiters. Note, however,
2447 that this may yield unexpected results if you have span elements
2448 with class "math" that don't contain LaTeX math.
2449 Also, use latest version of KaTeX by default (0.9.0).
2451 * The man writer now produces ASCII-only output, using groff escapes,
2452 for portability.
2454 * ODT writer:
2456 + Add title, author and date to metadata; any remaining
2457 metadata fields are added as `meta:user-defined` tags.
2458 + Implement table caption numbering (#4949, Nils Carlson).
2459 Captioned tables are numbered and labeled with format "Table 1:
2460 caption", where "Table" is replaced by a translation, depending
2461 on the value of `lang` in metadata. Uncaptioned tables are not
2462 enumerated.
2463 + OpenDocument writer: Implement figure numbering in captions (#4944,
2464 Nils Carlson). Figure captions are now numbered 1, 2, 3, ...
2465 The format in the caption is "Figure 1: caption" and so on
2466 (where "Figure" is replaced by a translation, depending on the
2467 value of `lang` in the metadata). Captioned figures are numbered
2468 consecutively and uncaptioned figures are not enumerated. This
2469 is necessary in order for LibreOffice to generate an
2470 Illustration Index (Table of Figures) for included figures.
2472 * RST reader: Pass through fields in unknown directives as div attributes
2473 (#4715). Support `class` and `name` attributes for all directives.
2475 * Org reader: Add partial support for `#+EXCLUDE_TAGS` option. (#4284,
2476 Brian Leung). Headers with the corresponding tags should not
2477 appear in the output.
2479 * Log warnings about missing title attributes now include a
2480 suggestion about how to fix the problem (#4909).
2482 * Lua filter changes (Albert Krewinkel):
2484 + Report traceback when an error occurs. A proper Lua traceback is
2485 added if either loading of a file or execution of a filter
2486 function fails. This should be of help to authors of Lua filters
2487 who need to debug their code.
2489 + Allow access to pandoc state (#5015). Lua filters and custom
2490 writers now have read-only access to most fields of pandoc's
2491 internal state via the global variable `PANDOC_STATE`.
2493 + Push ListAttributes via constructor (Albert Krewinkel).
2494 This ensures that ListAttributes, as present in OrderedList elements,
2495 have additional accessors (viz. `start`, `style`, and `delimiter`).
2497 + Rename ReaderOptions fields, use snake_case. Snake case is used
2498 in most variable names, using camelCase for these fields was an
2499 oversight. A metatable is added to ensure that the old field
2500 names remain functional.
2502 + Iterate over AST element fields when using `pairs`. This makes
2503 it possible to iterate over all ield names of an AST element by
2504 using a generic `for` loop with pairs`:
2506 for field_name, field_content in pairs(element) do
2507 ...
2508 end
2510 Raw table fields of AST elements should be considered an
2511 implementation detail and might change in the future. Accessing
2512 element properties should always happen through the fields
2513 listed in the Lua filter docs.
2515 Note that the iterator currently excludes the `t`/`tag` field.
2517 + Ensure that MetaList elements behave like Lists. Methods usable
2518 on Lists can also be used on MetaList objects.
2520 + Fix MetaList constructor (Albert Krewinkel). Passing a MetaList
2521 object to the constructor `pandoc.MetaList` now returns the
2522 passed list as a MetaList. This is consistent with the
2523 constructor behavior when passed an (untagged) list.
2525 * Custom writers: Custom writers have access to the global variable
2526 `PANDOC_DOCUMENT`(Albert Krewinkel, #4957). The variable contains
2527 a userdata wrapper around the full pandoc AST and exposes two
2528 fields, `meta` and `blocks`. The field content is only
2529 marshaled on-demand, performance of scripts not accessing the
2530 fields remains unaffected.
2532### API changes
2534 * Text.Pandoc.Options: add `writerPreferAscii` to `WriterOptions`.
2536 * Text.Pandoc.Shared:
2538 + Export `splitSentences`. This was previously duplicated in the Man and
2539 Ms writers.
2540 + Add `ToString` typeclass (Alexander Krotov).
2542 * New exported module Text.Pandoc.Filter (Albert Krewinkel).
2544 * Text.Pandoc.Parsing
2546 + Generalize `gridTableWith` to any `Char` Stream (Alexander Krotov).
2547 + Generalize `readWithM` from `[Char]` to any `Char` Stream
2548 that is a `ToString` instance (Alexander Krotov).
2550 * New exposed module Text.Pandoc.Filter (Albert Krewinkel).
2552 * Text.Pandoc.XML: add `toHtml5Entities`.
2554 * New exported module Text.Pandoc.Readers.Man (Yan Pashkovsky, John
2555 MacFarlane).
2557 * Text.Pandoc.Writers.Shared
2559 + Add exported functions `toSuperscript` and
2560 `toSubscript` (quasicomputational, #4528).
2561 + Remove exported functions `metaValueToInlines`,
2562 `metaValueToString`. Add new exported functions
2563 `lookupMetaBool`, `lookupMetaBlocks`, `lookupMetaInlines`,
2564 `lookupMetaString`. Use these whenever possible for uniformity
2565 in writers (Mauro Bieg, #4907). (Note that
2566 removed function `metaValueToInlines` was in previous
2567 released versions.)
2568 + Add `metaValueToString`.
2570 * Text.Pandoc.Lua
2572 + Expose more useful internals (Albert Krewinkel):
2574 - `runFilterFile` to run a Lua filter from file;
2575 - data type `Global` and its constructors; and
2576 - `setGlobals` to add globals to a Lua environment.
2578 This module also contains `Pushable` and `Peekable` instances
2579 required to get pandoc's data types to and from Lua. Low-level
2580 Lua operation remain hidden in Text.Pandoc.Lua.
2582 + Rename `runPandocLua` to `runLua` (Albert Krewinkel).
2584 + Remove `runLuaFilter`, merging this into Text.Pandoc.Filter.Lua's
2585 `apply` (Albert Krewinkel).
2587### Bug fixes and under-the-hood improvements
2589 * Text.Pandoc.Parsing
2591 + Make `uri` accept any stream with Char tokens (Alexander Krotov).
2592 + Rewrite `uri` without `withRaw` (Alexander Krotov).
2593 + Generalize `parseFromString` and `parseFromString'` to any
2594 streams with Char token (Alexander Krotov)
2595 + Rewrite `nonspaceChar` using `noneOf` (Alexander Krotov)
2597 * Text.Pandoc.Shared: Reimplement `mapLeft` using `Bifunctor.first`
2598 (Alexander Krotov).
2600 * Text.Pandoc.Pretty: Simplify `Text.Pandoc.Pretty.offset`
2601 (Alexander Krotov).
2603 * Text.Pandoc.App
2605 + Work around HXT limitation for --syntax-definition with windows
2606 drive (#4836).
2607 + Always preserve tabs for man format. We need it for tables.
2608 + Split command line parsing code into a separate unexported
2609 module, Text.Pandoc.App.CommandLineOptions (Albert Krewinkel).
2611 * Text.Pandoc.Readers.Roff: new unexported module for tokenizing
2612 roff documents.
2614 * New unexported module Text.Pandoc.RoffChar, provided character
2615 escape tables for roff formats.
2617 * Text.Pandoc.Readers.HTML: Fix `htmlTag` and `isInlineTag` to
2618 accept processing instructions (#3123, regression since 2.0).
2620 * Text.Pandoc.Readers.JATS: Use `foldl'` instead of `maximum` to
2621 account for empty lists (Alexander Krotov).
2623 * Text.Pandoc.Readers.RST: Don't allow single-dash separator in
2624 headerless table (#4382).
2626 * Text.Pandoc.Readers.Org: Parse empty argument array in inline src
2627 blocks (Brian Leung).
2629 * Text.Pandoc.Readers.Vimwiki:
2631 + Get rid of `F`, `runF` and `stateMeta'` in favor of `stateMeta`
2632 (Alexander Krotov).
2633 + Parse `Text` without converting to `[Char]` (Alexander Krotov).
2635 * Text.Pandoc.Readers.Creole: Parse `Text` without converting to
2636 `[Char]` (Alexander Krotov).
2638 * Text.Pandoc.Readers.LaTeX
2640 + Allow space at end of math after `\` (#5010).
2641 + Add support for `nolinkurl` command (#4992, Brian Leung).
2642 + Simplified type on `doMacros'`.
2643 + Tokenize before pulling tokens, rather than after (#4408). This
2644 has some performance penalty but is more reliable.
2645 + Make macroDef polymorphic and allow in inline context.
2646 Otherwise we can't parse something like `\lowercase{\def\x{Foo}}`.
2647 I have actually seen tex like this in the wild.
2648 + Improved parsing of `\def`, `\let`. We now correctly parse:
2649 ```
2650 \def\bar{hello}
2651 \let\fooi\bar
2652 \def\fooii{\bar}
2653 \fooi +\fooii
2655 \def\bar{goodbye}
2656 \fooi +\fooii
2657 ```
2658 + Improve parsing of `\def` argspec.
2659 + Skip `\PackageError` commands (see #4408).
2660 + Fix bugs omitting raw tex (#4527). The default is `-raw_tex`,
2661 so no raw tex should result unless we explicitly say `+raw_tex`.
2662 Previously some raw commands did make it through.
2663 + Moved `isArgTok` to Text.Pandoc.Readers.LaTeX.Parsing.
2664 + Moved `babelLangToBCP`, `polyglossiaLangToBCP` to new module,
2665 Text.Pandoc.Readers.LaTeX.Lang (unexported).
2666 + Simplified accent code using unicode-transforms.
2667 New dependency on unicode-transforms package for normalization.
2668 + Allow verbatim blocks ending with blank lines (#4624).
2669 + Support `breq` math environments: `dmath`, `dgroup`, `darray`.
2670 This collects some of the general-purpose code from the LaTeX reader,
2671 with the aim of making the module smaller.
2673 * Text.Pandoc.Readers.Markdown
2675 + Fix awkward soft break movements before abbreviations (#4635).
2676 + Add updateStrPos in a couple places where needed.
2678 * Text.Pandoc.Readers.Docx: Trigger bold/italic with bCs, iCs
2679 (#4947). These are variants for "complex scripts" like Arabic
2680 and are now treated just like b, i (bold, italic).
2682 * Text.Pandoc.Readers.Muse (Alexander Krotov)
2684 + Try to parse lists before trying to parse table.
2685 This ensures that tables inside lists are parsed correctly.
2686 + Forbid whitespace after opening and before closing markup
2687 elements.
2688 + Parse page breaks.
2689 + Simplify `museToPandocTable` to get rid of partial functions.
2690 + Allow footnotes to start with empty line.
2691 + Make sure that the whole text is parsed.
2692 + Allow empty headers. Previously empty headers caused parser to
2693 terminate without parsing the rest of the document.
2694 + Allow examples to be indented with tabs.
2695 + Remove indentation from examples indicated by `{{{` and `}}}`.
2696 + Fix parsing of empty cells.
2697 + Various changes to internals.
2698 + Rewrite some parsers in applicative style.
2699 + Avoid tagsoup dependency.
2700 + Allow table caption to contain `+`.
2702 * Text.Pandoc.Writers.LaTeX
2704 + Add newline if math ends in a comment (#4880). This prevents the
2705 closing delimiter from being swalled up in the comment.
2706 + With `--listings`, don't pass through org-babel attributes (#4889).
2707 + With `--biblatex`, use `\autocite` when possible (#4960).
2708 `\autocites{a1}{a2}{a3}` will not collapse the entries. So, if
2709 we don't have prefixes and suffixes, we use instead
2710 `\autocite{a1,a2,a3}`.
2711 + Fix description lists contining highlighted code (#4662).
2713 * Text.Pandoc.Writers.Man
2715 + Don't wrap `.SH` and `.SS` lines (#5019).
2716 + Avoid unnecessary `.RS`/`.RE` pair in definition lists with
2717 one paragraph definitions.
2718 + Moved common groff functions to Text.Pandoc.Writers.Groff.
2719 * Fix strong/code combination on man (should be `\f[CB]` not
2720 `\f[BC]`, see #4973).
2721 + Man writer: use `\f[R]` instead of `\f[]` to reset font
2722 (Alexander Krotov, #4973).
2723 + Move `splitSentences` to Text.Pandoc.Shared.
2725 * Text.Pandoc.Writers.Docx
2727 + Add framework for custom properties (#3034). So far, we don't
2728 actually write any custom properties, but we have the
2729 infrastructure to add this.
2731 + Handle tables in table cells (#4953). Although this is not
2732 documented in the spec, some versions of Word require a `w:p`
2733 element inside every table cell. Thus, we add one when the
2734 contents of a cell do not already include one (e.g. when a table
2735 cell contains a table).
2737 * Text.Pandoc.Writers.AsciiDoc: Prevent illegal nestings.
2738 Adjust header levels so that n+1 level headers are only
2739 found under n level headers, and the top level is 1.
2741 * Text.Pandoc.Writers.OpenDocument: Improve bullet/numbering
2742 alignment (#4385). This change eliminates the large gap we used
2743 to have between bullet and text, and also ensures that numbers
2744 in numbered lists will be right-aligned.
2746 * Text.Pandoc.Writers.ZimWiki
2748 + Number ordered list items sequentially, rather than always
2749 with 1 (#4962).
2750 + Remove extra indentation on lists (#4963).
2752 * Text.Pandoc.Writers.EPUB: Use metadata field `css` instead of
2753 `stylesheet` (Mauro Bieg, #4990).
2755 * Text.Pandoc.Writers.Markdown: Ensure blank between raw block and
2756 normal content (#4629). Otherwise a raw block can prevent a
2757 paragraph from being recognized as such.
2759 * Text.Pandoc.Writers.Ms
2761 + Removed old `escapeBar`. We don't need this now that we use
2762 `@` for math delim.
2763 + Moved common code to Text.Pandoc.Writers.Roff and to
2764 Text.Pandoc.RoffChar.
2765 + Move `splitSentences` to Text.Pandoc.Shared (to avoid duplication
2766 with the man writer).
2768 * Text.Pandoc.Writers.Muse (Alexander Krotov).
2770 + Add support for grid tables.
2771 + Fix Muse writer style.
2772 + Use `length` instead of `realLength` to calculate definition
2773 indentation. Muse parsers don't take character width into
2774 account when calculating indentation.
2775 + Do not insert newline before lists.
2776 + Use lightweight markup after `</em>` tag.
2778 * New unexported module Text.Pandoc.Writers.Roff, providing functions
2779 useful for all roff format writers (man, ms).
2781 * Text.Pandoc.Lua
2783 + Move globals handling to separate module Text.Pandoc.Lua.Global
2784 (Albert Krewinkel).
2786 + Lua filter internals: push Shared.Element as userdata (Albert
2787 Krewinkel). Hierarchical Elements were pushed to Lua as plain
2788 tables. This is simple, but has the disadvantage that marshaling
2789 is eager: all child elements will be marshaled as part of the
2790 object. Using a Lua userdata object instead allows lazy access
2791 to fields, causing content marshaling just (but also each time)
2792 when a field is accessed. Filters which do not traverse the full
2793 element contents tree become faster as a result.
2795### Default template changes
2797 * LaTeX template:
2799 + Add variable `hyperrefoptions` (#4925, Mathias Walter).
2800 + Add variable `romanfont`, `romanfontoptions` (#4665, OvidiusCicero).
2802 * AsciiDoc template: use single-line style for title.
2804 * revealjs template: Fix typo in the socket.io javascript plugin (#5006,
2805 Yoan Blanc).
2807 * Text.Pandoc.Lua.Util: add missing docstring to `defineHowTo`
2808 (Albert Krewinkel).
2810 * data/pandoc.lua: add datatype ListAttributes (Albert Krewinkel)
2812 * data/sample.lua: replace custom pipe function with pandoc.utils.pipe
2813 (Albert Krewinkel).
2815### Documentation improvements
2817 * INSTALL.md
2819 + Add chromeos install instructions (#4958) (Evan Pratten).
2820 + Add note about TinyTeX.
2822 * MANUAL.txt
2824 + Change `groff` -> `roff`.
2825 + Implement `--ascii` for Markdown writer.
2826 + Clarify LaTeX image dimensions output (Mauro Bieg).
2828 * doc/customizing-pandoc.md: added skeleton (Mauro Bieg, #3288).
2830 * doc/getting-started.md: Added title to test1.md to avoid warning.
2832 * doc/lua-filters.md: merge type references into main document,
2833 fix description of Code.text (Albert Krewinkel).
2835### Build infrastructure improvements
2837 * Makefile
2839 + Makefile: added quick-cabal, full-cabal targets.
2840 + Make .msi download targets insensitive to order of appveyor builds.
2842 * Update benchmarks for ghc 8.6.1.
2844 * pandoc.cabal:
2846 + Enable more compiler warnings (Albert Krewinkel).
2847 + Make base lower bound 4.8.
2848 + Bump upper bound for QuickCheck.
2849 + Bump upper bound for binary.
2850 + Updated version bounds for containers and haddock-library (#4974).
2851 + Added docx/docPropos/custom.xml to cabal data-files.
2852 + Require skylighting 0.7.4 (#4920).
2853 + New dependency on unicode-transforms package for normalization.
2855 * Improved .travis.yml testing and test with GHC 8.6.1 (Albert Krewinkel).
2857 * Added `tools/changelog-helper.sh`.
2859 * Added test/grofftest.sh for testing the man reader on real man pages.
2861## pandoc 2.3.1 (2018-09-28)
2863 * RST reader:
2865 + Parse RST inlines containing newlines (#4912, Francesco Occhipinti).
2866 This eliminates a regression introduced after pandoc 2.1.1, which
2867 caused inline constructions containing newlines not to be recognized.
2868 + Fix bug with internal link targets (#4919). They were gobbling up
2869 indented content underneath.
2871 * Markdown reader: distinguish autolinks in the AST. With this change,
2872 autolinks are parsed as Links with the `uri` class. (The same is true
2873 for bare links, if the `autolink_bare_uris` extension is enabled.)
2874 Email autolinks are parsed as Links with the `email` class. This
2875 allows the distinction to be represented in the AST.
2877 * Org reader:
2879 + Force inline code blocks to honor export options (Brian Leung).
2880 + Parse empty argument array in inline src blocks (Brian Leung).
2882 * Muse reader (Alexander Krotov):
2884 + Added additional tests.
2885 + Do not allow code markup to be followed by digit.
2886 + Remove heading level limit.
2887 + Simplify `<literal>` tag parsers
2888 + Parse Text instead of String. Benchmark shows 7% improvement.
2889 + Get rid of HTML parser dependency.
2890 + Various code improvements.
2892 * ConTeXt writer: change `\` to `/` in Windows image paths (#4918).
2893 We do this in the LaTeX writer, and it avoids problems.
2894 Note that `/` works as a LaTeX path separator on Windows.
2896 * LaTeX writer:
2898 + Add support for multiprenote and multipostnote arguments
2899 with `--biblatex` (Brian Leung, #4930). The multiprenotes occur before
2900 the first prefix of a multicite, and the multipostnotes follow the
2901 last suffix.
2902 + Fix a use of `last` that might take empty list. If you ran with
2903 `--biblatex` and have an empty document (metadata but no blocks),
2904 pandoc would previously raise an error because of the use of
2905 `last` on an empty list.
2907 * RTF writer: Fix build failure with ghc-8.6.1 caused by missing
2908 MonadFail instance (Jonas Scholl).
2910 * ODT Writer: Improve table header row style handling (Nils Carlson).
2911 This changes the way styles for cells in the header row
2912 and normal rows are handled in ODT tables.
2913 Previously a new (but identical) style was generated for
2914 every table, specifying the style of the cells within the table.
2915 After this change there are two style definitions for table cells,
2916 one for the cells in the header row, one for all other cells.
2917 This doesn't change the actual styles, but makes post-processing
2918 changes to the table styles much simpler as it is no longer
2919 necessary to introduce new styles for header rows and there are
2920 now only two styles where there was previously one per table.
2922 * HTML writer:
2924 + Don't add `uri` class to presumed autolinks. Formerly the `uri`
2925 class was added to autolinks by the HTML writer, but it had to
2926 guess what was an autolink and could not distinguish
2927 `[http://example.com](http://example.com)` from
2928 `<http://example.com>`. It also incorrectly recognized
2929 `[pandoc](pandoc)` as an autolink. Now the HTML writer
2930 simply passes through the `uri` attribute if it is present,
2931 but does not add anything.
2932 + Avoid adding extra section nestings for revealjs.
2933 Previously revealjs title slides at level (slidelevel - 1)
2934 were nested under an extra section element, even when
2935 the section contained no additional (vertical) content.
2936 That caused problems for some transition effects.
2937 + Omit unknown attributes in EPUB2 output. For example,
2938 `epub:type` attributes should not be passed through,
2939 or the epub produced will not validate.
2941 * JATS writer: remove 'role' attribute on 'bold' and 'sc' elements (#4937).
2942 The JATS spec does not allow these.
2944 * Textile writer: don't represent `uri` class explicitly
2945 for autolinks (#4913).
2947 * Lua filters (Albert Krewinkel):
2949 + Cleanup filter execution code.
2950 + Better error on test failure.
2952 * HTML, Muse reader tests: reduce time taken by round-trip test.
2954 * Added cabal.project.
2956 * MANUAL: `epub:type` is only useful for epub3 (Maura Bieg).
2958 * Use hslua v1.0.0 (Albert Krewinkel).
2960 * Fix `translations/ru` to use modern Russian orthography
2961 (Ivan Trubach).
2963 * Build Windows binary using ghc 8.6.1 and cabal new-build. This
2964 fixes issues with segfaults in the 32-bit Windows binaries (#4283).
2966## pandoc 2.3 (2018-09-16)
2968 * Add `--metadata-file` option (Mauro Bieg, #1960), which allows
2969 users to specify metadata in a YAML file, regardless of the
2970 input format (#1960).
2972 * Text.Pandoc.Writers.Shared: export `isDisplayMath` (API change).
2974 * Text.Pandoc.Readers.Markdown: export `yamlToMeta` (API change,
2975 Mauro Bieg).
2977 * Text.Pandoc.Readers.LaTeX.Types:
2979 + New type `ArgSpec` (API change).
2980 + Second parameter of `Macro` constructor is now `[ArgSpec]` instead of
2981 `Int` (API change).
2983 * Markdown reader:
2985 + Use `tex` instead of `latex` for raw tex-ish content. We can't
2986 always tell if it's LaTeX, ConTeXt, or plain TeX. Better just to
2987 use `tex` always. Note that if `context` or `latex` specifically
2988 is desired, you can still force that in a markdown document by
2989 using the raw attribute. Note that this change may affect some
2990 filters, if they assume that raw tex parsed by the Markdown reader
2991 will be RawBlock (Format `latex`). In most cases it should be
2992 trivial to modify the filters to accept `tex` as well.
2993 + Refactor and reorganize YAML code (Mauro Bieg).
2994 + Make `example_lists` work for interrupted lists
2995 without `startnum` (#4908).
2997 * HTML reader:
2999 + Parse `<script type="math/tex` tags as math (#4877).
3000 These are used by MathJax in some configurations.
3001 + Extract spaces inside links instead of trimming them
3002 (Alexander Krotov, #4845).
3003 + Added round-trip tests (Alexander Krotov).
3004 + Make parsing sensitive to the `raw_tex` extension (#1126). This now
3005 allows raw LaTeX environments, `\ref`, and `\eqref` to be parsed
3006 (which is helpful for translation HTML documents using MathJaX).
3008 * Org reader (Albert Krewinkel):
3010 + Respect export option `p` for planning info. Inclusion of planning info
3011 (`*DEADLINE*`, `*SCHEDULED*`, and `*CLOSED*`) can be controlled via the
3012 `p` export option: setting the option to `t` will add all planning
3013 information in a *Plain* block below the respective headline.
3014 + Org reader internals: don't rely on RecordWildCards and ViewPatterns
3015 ghc extensions.
3016 + Strip planning info from output. Planning info is parsed, but not
3017 included in the output (as is the default with Emacs Org-mode, #4867).
3019 * LaTeX reader:
3021 + Handle parameter patterns for `\def` (#4768, #4771).
3022 For example: `\def\foo#1[#2]{#1 and #2}`.
3023 + Allow `%` characters in URLs. This affects `\href` and `\url` (#4832).
3024 + Fixed parsing of `\texorpdfstring`. We were returning the wrong
3025 argument as the content.
3026 + Support `blockcquote`, `foreignblockquote`, `foreigncblockquote`,
3027 `hyphenblockquote`, `hyphencblockquote`, `enquote*`, `foreignquote`,
3028 `hyphenquote` from `csquotes` (#4848). Note that `foreignquote`
3029 will be parsed as a regular Quoted inline (not using the quotes
3030 appropriate to the foreign language).
3031 + Support more text-mode accents (#4652). Add support for `\|`, `\b`, `\G`,
3032 `\h`, `\d`, `\f`, `\r`, `\t`, `\U`, `\i`, `\j`, `\newtie`,
3033 `\textcircled`. Also fall back to combining characters when composed
3034 characters are not available.
3035 + Resolve `\ref` for figure numbers.
3036 + Support `mintinline` (#4365, Marc Schreiber).
3037 + Fix siunitx unit commands so they are only recognized in
3038 siunitx contexts (#4842). For example, `\l` outside of an
3039 siunitx context should be l-slash, not l (for liter).
3040 + Fix double `unnumbered` class (#4838). The `unnumbered` class
3041 was being included twice for starred sections.
3043 * RST reader: Don't skip link definitions after comments (#4860).
3045 * Muse reader (Alexander Krotov):
3047 + Close the `</quote>` in indented tag test.
3048 There is already a separate test for unclosed `</quote>`.
3049 + Autonumber sections in the correct order. Parsing now stops
3050 at each section header to ensure the header is registered before
3051 parsing of the next section starts.
3052 + Move duplicate code into `headingStart` function.
3053 + Allow newline after opening `*` or `**`.
3054 + Don't allow digits after closing marker in lightweight markup
3055 This change makes reader more compatible with Emacs Muse.
3056 + Parse `<verse>` tag in one pass instead of using
3057 `parseFromString`. This change makes it possible to have
3058 verbatim `</verse>` tag inside verse.
3060 * ODT reader: deal gracefully with missing `<office:font-face-decls/>`
3061 (#4336). This allows pandoc to parse ODT document produced by KDE's
3062 Calligra.
3064 * Muse writer (Alexander Krotov):
3066 + Output headers without asterisks if not on the top level.
3067 + Never wrap definition list terms.
3068 + Set `envInsideBlock = True` when rendering notes.
3069 + Use `""` instead of `[]` for empty String.
3070 + Check for whitespace in the beginning and end of Str's.
3071 + Escape `-`, `;` and `>` in the beginning of strings.
3072 + Escape list markers in the beginning of notes.
3073 + Normalize inline list before testing if tags should be used.
3074 + Use tags instead of lightweight markup for empty strings.
3075 + Use lightweight markup when possible.
3076 + Escape empty strings. This guarantees that `conditionalEscapeString`
3077 never returns empty string.
3078 + Wrap conditionalEscapeString result into `Muse` type.
3079 This removes the need to pass `envInsideLinkDescription` to it.
3080 + Separate `shouldEscapeString` function.
3081 + Simplify inline list rendering.
3082 + Replace newlines in strings with spaces.
3084 * Docx writer:
3086 + Add MetaString case for abstract, subtitle (#4900, Mauro Bieg).
3087 + Properly handle display math in spans (#4826). This isn't a
3088 complete solution, since other nestings of display math may still
3089 cause problems, but it should work for what is by far the most
3090 common case.
3092 * HTML writer:
3094 + Always output `<dt>` element, even if it is empty (#4883,
3095 Alexander Krotov).
3096 + Don't prefix `epub:` attributes with `data-`.
3098 * Org writer: Don't escape literal `_`, `^` (#4882). Org doesn't
3099 recognize these escapes.
3101 * ODT writer: Fix percentage image scaling (#4881, Nils Carlson).
3102 Image scaling was broken when a width was set to a percentage.
3104 * EPUB writer: set `epub:type` on body element in each chapter,
3105 depending on the `epub:type` of the first section (#4823). This
3106 only affects epub3. See
3107 http://www.idpf.org/epub/profiles/edu/structure/#h.l0bzsloklt10
3109 * FB2 writer: put `coverpage` element between title and date rather than in
3110 `document-info` element (#4854).
3112 * Markdown writer: Escape `~` if strikeout extension enabled (#4840).
3114 * Haddock writer: Use proper format for latex math in haddock (#4571, Joe
3115 Hermaszewski). Inline math in `\(..\)`, display math in `\[..\]`,
3116 tex is now used. Previously we'd "fake it with unicode" and fall
3117 back to tex when that didn't work. But newer haddock versions
3118 support latex math.
3120 * TEI writer:
3122 + Ensure that title element is always present, even if empty (#4839).
3123 + Put author tags in the template, rather than adding them in
3124 the writer (#4839).
3126 * LaTeX writer/template: be sensitive to `filecolor` variable (#4822).
3127 `linkcolor` only affects internal links, and `urlcolor` only
3128 affects linked URLs. For external links, the option to use is
3129 `filecolor`.
3131 * ConTeXt writer: output raw `tex` blocks as well as `context` (#969).
3133 * RST writer:
3135 + Use `.. raw:: latex` for `tex` content.
3136 + Use `.. container` for generic Divs, instead of raw HTML.
3137 + Render Divs with admonition classes as admonitions (#4833).
3138 Also omit Div with class `admonition-title`. These are generated
3139 by the RST reader and should be omitted on round-trip.
3141 * Text.Pandoc.PDF: fix message printed when rsvg-convert is not available
3142 (#4855, Antonio Terceiro).
3144 * HTML5 template: add the `title-block-header` identifier to the
3145 `header` element, to make it easier to style precisely (#4767,
3146 J. B. Rainsberger).
3148 * OpenDocument template: Remove unnecessary indenting of TOC title (#4798,
3149 José de Mattos Neto).
3151 * latex template: Add support for $toc-title$ to LaTeX (and PDF)
3152 (#4853, Wandmalfarbe).
3154 * TEI template: improve `publicationStmt`. Add support for
3155 `publisher`, `address`, `pubPlace`, and `date` variables.
3157 * beamer template: Support "toc-title" (#4835, Cyril Roelandt).
3159 * Text.Pandoc.Extensions: Fix haddock on `Ext_footnotes` (Chris Martin).
3161 * Lua: cleanup Lua utils, remove unused functions (Albert Krewinkel).
3163 * MANUAL.txt:
3165 + Clarify that `--biblatex/--natbib` don't work directly for PDF
3166 (#4904).
3167 + Document `epub:type` attribute (Mauro Bieg, #4901)
3168 + Clarify when `--resource-path` has an effect.
3169 + More detail on customization in syntax highlighting section.
3170 + Document encoding issue with `--listings` (#4871, Damien Clochard).
3171 + Remove docs on removed `--katex-stylesheet` (Mauro Bieg, #4862).
3172 + Use https for context wiki links (#4910).
3174 * CONTRIBUTING.md:
3176 + Link to lua-filters repository (#4874).
3177 + Fix mistake in REPL instructions for stack. (#4849, Brian Leung).
3179 * lua-filters.md: add links to filters, and to lua-filters repository
3180 (#4874).
3182 * INSTALL.md:
3184 + Indicate that cabal >= 2.0 is needed.
3185 + Added chocolatey installation method (#4844, Miodrag Milić).
3187 * Travis: exclude round-trip tests, except for nightly test which can fail.
3189 * Use latest texmath, pandoc-citeproc.
3191 * Use a patched version of foundation until
3192 https://github.com/haskell-foundation/foundation/pull/503
3193 is fixed.
3195 * Clean up appveyor build and Windows package creation.
3196 We now use 64-bit stack and ghc 8.4.3, lts-12 for the 64-bit build. The
3197 WiX-based msi is now 64-bit for 64-bit builds (fixing #4795).
3199 * Remove obsolete RELEASE-CHECKLIST.md.
3201 * Added additional compiler warnings in Makefile and CI builds.
3203## pandoc 2.2.3.2 (2018-08-07)
3205 * Markdown reader: Properly handle boolean values in YAML metadata (#4819).
3206 This fixes a regression in 2.2.3, which cause boolean values to
3207 be parsed as MetaInlines instead of MetaBool.
3209 We here record another undocumented (but desirable) change in 2.2.3:
3210 numerical metadata fields are now parsed as MetaInlines rather than
3211 MetaString.
3213## pandoc 2.2.3.1 (2018-08-06)
3215 * Markdown reader: Fix parsing of embedded mappings in YAML metadata
3216 (#4817). This fixes a regression in 2.2.3 which caused embedded
3217 mappings (e.g. mappings in sequences) not to work in YAML metadata.
3219## pandoc 2.2.3 (2018-08-05)
3221 * RST reader: improve parsing of inline interpreted text roles (#4811).
3223 + Use a Span with class "title-reference" for the default
3224 title-reference role.
3225 + Use `B.text` to split up contents into `Space`s, `SoftBreak`s,
3226 and `Str`s for `title-reference`.
3227 + Use Code with class "interpreted-text" instead of Span and Str for
3228 unknown roles. (The RST writer has also been modified to round-trip
3229 this properly.)
3230 + Disallow blank lines in interpreted text.
3231 + Backslash-escape now works in interpreted text.
3232 + Backticks followed by alphanumerics no longer end interpreted text.
3233 + Remove support for nested inlines (Francesco Occhipinti).
3234 RST does not allow nested emphasis, links, or other inline
3235 constructs. This fixes several bugs (#4581, #4561, #4792).
3237 * Org reader: fix parsers relying on `parseFromString` (#4784, Albert
3238 Krewinkel). Emphasis was not parsed when it followed directly after
3239 some block types (e.g., lists).
3241 * Markdown reader: Allow unquoted numbers and booleans as YAML mapping
3242 keys. Previously in 2.2.2 you could not do
3243 ```
3244 ---
3245 0: bar
3246 ...
3247 ```
3248 but only
3249 ```
3250 ---
3251 '0': bar
3252 ...
3253 ```
3254 With this change, both forms work.
3256 * DocBook reader: metadata handling improvements.
3257 Now we properly parse title and subtitle elements that are direct
3258 children of book and article (as well as children of bookinfo,
3259 articleinfo, or info). We also now use the `subtitle` metadata
3260 field for subtitles, rather than tacking the subtitle on to the
3261 title.
3263 * RST writer:
3265 + Allow images to be directly nested within links (#4810, Francesco
3266 Occhipinti).
3267 + Use `titleblock` instead of `title` variable for title block (#4803,
3268 Francesco Occhipinti). `titleblock` contains a properly formatted
3269 title and subtitle (using top-level headers). `title` and
3270 `subtitle` variables are still available and just contain the
3271 title and subtitle text. Note that this change will require an
3272 update to custom rst templates.
3273 + Render Code with class "interpreted-text" as interpreted text role.
3275 * MediaWiki writer: Avoid extra blank line in tables with empty cells
3276 (#4794). Note that the old output is semantically identical, but the
3277 new output looks better.
3279 * Lua Utils module: add function `blocks_to_inlines` (#4799, Albert
3280 Krewinkel). Exposes a function converting which flattenes a list of
3281 blocks into a list of inlines. An example use case would be the
3282 conversion of Note elements into other inlines.
3284 * RST template: use `titleblock` instead of `title`. Users of
3285 custom RST templates will want to update this.
3287 * LaTeX template: Moved some beamer code in default.latex template.
3288 This change allows beamer themes to change the template and font (as
3289 Metropolis does) (#4450).
3291 * Better error message on `-t pdf -o out.pdf` (#1155, Mauro Bieg).
3293 * Added test case for #4669 to repository.
3295 * INSTALL.md: Fix broken link for cabal-install (#4806, ChanHoHo).
3297 * MANUAL.txt:
3299 + Add beamer info for slide backgrounds (#4802, John Muccigrosso).
3300 + Clarify when `csquotes` is used in LaTeX writer (#4514).
3301 + Add `commonmark` to list of output formats where `raw_tex` has an
3302 effect (see #4527).
3305## pandoc 2.2.2.1 (2018-07-19)
3307 * Fix regression finding templates in user data directory (#4777).
3308 Under version 2.2.1 and prior pandoc found latex templates in the
3309 templates directory under the data directory, but this broke in 2.2.2.
3311 * Fix for bug in parsing `\input` in `rawLaTeXBlock` and
3312 `rawLaTeXInline` (#4781). (This primarily affects the markdown
3313 reader, and other readers that accept raw tex.)
3314 Starting in 2.2.2, everything after an `\input` (or `\include`)
3315 in a markdown file would be parsed as raw LaTeX.
3317 * MANUAL:
3319 + Clarify `gfm` vs `markdown_github` (#4783, Mauro Bieg).
3320 * Use `keywords` instead of `tags` in YAML metadata example (#4779).
3321 Unlike `tags`, `keywords` is used in some of the writers
3322 and default templates.
3324 * Add missing `rollingLinks` option to revealjs template (#4778,
3325 Igor Khorlo).
3327## pandoc 2.2.2 (2018-07-16)
3329 * Use HsYAML instead of yaml for translations and YAML metadata (#4747).
3330 yaml wraps a C library; HsYAML is pure Haskell. Advances #4535.
3332 Note: HsYAML implements YAML 1.2, in which the valid true
3333 values are `true`, `True`, `TRUE`. This means a change in
3334 the semantics of YAML metadata that could affect users:
3335 `y`, `yes`, and `on` no longer count as true values.
3337 * Fix regression: make `--pdf-engine` work with full paths (#4681, Mauro
3338 Bieg).
3340 * CommonMark reader: Handle `ascii_identifiers` extension (#4742,
3341 Anders Waldenborg). Non-ascii characters were not stripped from
3342 identifiers even if the `ascii_identifiers` extension was
3343 enabled (which is is by default for gfm).
3345 * TikiWiki reader: Improve list parsing (#4722, Mauro Bieg).
3346 Remove trailing Space from list items. Parse lists that have no space
3347 after marker.
3349 * LaTeX reader:
3351 + Treat `lilypond` as a verbatim environment (#4725).
3352 + Parse figure label into Image id (#4700, Mauro Bieg).
3353 + Beamer: Allow "noframenumbering" option (#4696, Raymond Ehlers).
3354 + Allow spaces around `\graphicspath` arguments (#4698).
3355 + Handle includes without surrounding blanklines (#4553).
3356 In addition, `\input` can now be used in an inline context,
3357 e.g. to provide part of a paragraph, as it can in LaTeX.
3358 + In `rawLaTeXBlock`, handle macros that resolve to a
3359 `\begin` or `\end` (#4667).
3360 + In `rawLaTeXBlock`, don't expand macros in macro definitions (#4653).
3361 Note that this only affected LaTeX in markdown.
3362 + Tighten up reading of beamer overlay specifications (#4669).
3363 Ideally we'd turn these on only when reading beamer, but currently
3364 beamer is not distinguished from latex as an input format.
3365 This commit also activates parsing of overlay specifications
3366 after commands in general (e.g. `\item`), since they can occur
3367 in many contexts in beamer.
3368 + Parse more siunitx unit commands (#4296, #4773).
3369 + Be more forgiving in key/value option parsing (#4761).
3371 * Markdown reader:
3373 + Allow empty code spans, e.g. `` ` ` ``.
3374 + Emojis are now wrapped in Spans with class `emoji` and
3375 attribute `data-emoji` (Anders Waldenborg, #4743).
3376 This allows the writer to handle them in a special way
3377 (e.g. using a special font, or just rendering the
3378 emoji name).
3380 * Muse reader (Alexander Krotov, except where indicated):
3382 + Get rid of non-exhaustive pattern match warning (Mauro Bieg).
3383 + Add support for floating images.
3384 + Add support for images with specified width.
3385 + Parse image URLs without "guard" and "takeExtension".
3386 + Split link and image parsing into separate functions.
3387 + Parse links starting with "URL:" explicitly instead of trying to strip
3388 "URL:" prefix after parsing.
3390 * Texinfo writer: Use `@sup` and `@sub` instead of custom macros (#4728,
3391 Alexander Krotov).
3393 * Markdown writer: Preserve `implicit_figures` with attributes, even if
3394 `implicit_attributes` is not set, by rendering in raw HTML (#4677).
3396 * Markdown and commonmark/github writers now respect the `emoji`
3397 extension. So, `-f markdown+emoji -t markdown+emoji` now leaves
3398 `:smile:` as `:smile:` rather than converting it to a smile
3399 character.
3401 * Docx writer: Be sensitive to `toc` in YAML metadata (#4645).
3403 * ODT/OpenDocument writer: Make internal links work (#4358).
3404 This adds proper bookmarks to the headers with non-null IDs.
3406 * EPUB writer: Properly escape pagetitle. Previously we weren't
3407 escaping `&` and other XML characters in the pagetitle, so a title
3408 containing a `&` would be invalid.
3410 * AsciiDoc Writer: Eescape square brackets at start of line (#4545,
3411 Mauro Bieg).
3413 * RST writer:
3415 + Don't treat 'example' as a syntax name (#4748).
3416 This fixes conversions from org with example blocks.
3417 + Support `--number-sections` via the `section-numbering`
3418 directive in standalone output.
3420 * reveal.js writer and template: reuse mathjax URL
3421 provided by the argument to `--mathjax` or the normal pandoc default,
3422 rather than a hard-coded one in the template (#4701).
3424 * LaTeX writer:
3426 + Properly handle footnotes in table captions (#4683).
3427 Refactored code from figure captions to use in both places.
3428 + In beamer output, fix single digit column percentage (#4690, Mauro
3429 Bieg).
3431 * FB2 writer (Alexander Krotov):
3433 + Convert Plain to Para in annotation (#2424).
3434 + Fix order of items in title-info (#2424).
3436 * Custom writer: fix error message on script failure (Albert Krewinkel).
3437 Error messages produced by Lua were not displayed by Pandoc.
3439 * Text.Pandoc.Emoji now exports `emojiToInline`, which returns a Span
3440 inline containing the emoji character and some attributes with metadata
3441 (class `emoji`, attribute `data-emoji` with emoji name). (API change,
3442 Anders Waldenborg, #4743).
3444 * Text.Pandoc.PDF:
3446 + Revert fix for #4484 (only compress images on last run, #4755).
3447 This will mean some increase in the time it takes to
3448 produce an image-heavy PDF with xelatex, but it will
3449 make tables of contents correct, which is more important.
3450 + Fix logic error in `runTeXProgram`. We were running the tex program
3451 one more time than requested. This should speed up PDF production.
3453 * Allow `--template` to take a URL as argument.
3455 * Text.Pandoc.Highlighting: Add missing re-export of `breezeDark`
3456 highlighting style (#4687, Adrian Sieber, API change).
3458 * Clarify macOS install in INSTALL.md (#4661). Make the binary package
3459 installer the recommended method, and note that on some older versions of
3460 macOS, homebrew installs from source and takes a lot of disk space
3461 (#4664, Ian).
3463 * MANUAL:
3465 + Clarify EPUB linked media (#4756, Mauro Bieg)
3466 + Update manual for "true" YAML values. Now that we're using HsYAML and
3467 YAML 1.2, the valid true values are `true`, `True`, `TRUE`. NOTE!
3468 `y`, `yes`, `on` no longer count as true values.
3469 + Document `-F` as alias for `--filter` (thanks to Gandalf Saxe).
3470 + Update manual on how math is rendered in LaTeX.
3471 + Add proxy description (#4131, Mauro Bieg).
3472 + Clarify that `--toc` requires `--standalone` (#4703).
3473 + Update citation styles link (#4699, wiefling).
3475 * In API docs, clarify how `Ext_east_asian_line_breaks` extension works
3476 (kaizshang91). Note that it will not take effect when readers/writers
3477 are called as libraries (#4674).
3479 * Improved translations/fr (#4766, lux-lth).
3481 * Removed inadvertently added `.orig` files from repository (#4648).
3483 * Remove `network-uri` flag and use 'Network.Socket'.
3484 This removes a compiler warning. There is no need for the old
3485 `network-uri` flag, since network 2.6 was released in 2014.
3487 * Add stack.lts10.yaml, stack.lts11.yaml. use lts-12 in stack.yaml.
3489 * Bump upper bounds for dependent packages.
3491 * Exclude foundation 0.0.21 for ghc 7.10. Otherwise cabal gets
3492 confused because of the way ghc 7.10 is excluded in foundation's
3493 cabal file. This can be removed when haskell-foundation/foundation#500
3494 is fixed.
3496 * Require cabal-version >= 2.0. This is needed for haddock-library.
3501## pandoc 2.2.1 (2018-05-10)
3503 * Restored and undeprecated gladtex for HTML math (#4607).
3505 + Added `GladTeX` constructor to `Text.Pandoc.Options.HTMLMathMethod`
3506 [API change, reverts removal in v2.2]
3507 + Restored and undeprecated `--gladtex` option, removed in v2.2.
3509 * LaTeX reader: Handle `$` in `/text{..}` inside math (#4576).
3511 * Org reader: Fix image filename recognition (Albert Krewinkel).
3512 Use a function from the filepath library to check whether a string is a
3513 valid file name. The custom validity checker that was used before gave
3514 wrong results (e.g. for absolute file paths on Windows,
3515 kawabata/ox-pandoc#52).
3517 * FB2 reader: Replace some errors with warnings (Alexander Krotov).
3519 * HTML writer:
3521 + Strip links from headers when creating TOC (#4340).
3522 Otherwise the TOC entries will not link to the sections.
3523 + Fix regression with tex math environments in HTML + MathJax (#4639).
3525 * Muse writer (Alexander Krotov): Add support for left-align and
3526 right-align classes (#4542).
3528 * Docx writer: Support underline (#4633).
3530 * Text.Pandoc.Parsing: Lookahead for non-whitespace after
3531 `singleQuoteStart` and `doubleQuoteStart` (#4637).
3533 * `test-pandoc-utils.lua`: more robust testing on both windows
3534 and \*nix. Previously the pipe tests were only run if
3535 `\bin/false` and `/bin/sed` were present, which they aren't
3536 in default MacOS and Windows systems. Fixed by using `tr`
3537 and `false`, which should always be in the path on a \*nix
3538 system, and `find` and `echo` for Windows.
3540 * Text.Pandoc.Shared: add `uriPathToPath`.
3541 This adjusts the path from a file: URI in a way that is sensitive
3542 to Windows/Linux differences. Thus, on Windows,
3543 `/c:/foo` gets interpreted as `c:/foo`, but on Linux,
3544 `/c:/foo` gets interpreted as `/c:/foo`. See #4613.
3546 * Use `uriPathToPath` with file: URIs (#4613).
3548 * Revert piping HTML to pdf-engine (Mauro Bieg, #4413). Use a temp
3549 file as before.
3551 * Text.Pandoc.Class: Catch IO errors when writing media files
3552 and issue a warning, rather than an error (Francesco Occhipinti, #4559).
3554 * Don't lowercase custom writer filename (Alexander Krotov, #4610).
3556 * MANUAL (Mauro Bieg):
3558 + Clarify truthiness in template variables (#2281).
3559 + Clarify pipe table width calculation (#4520).
3561 * ConTeXt template: New Greek fallback typeface (Pablo Rodríguez, #4405).
3562 CMU Serif gives better typographic results than the previous
3563 Greek fallback DejaVu Serif.
3565 * Make HTML template polyglot (#4606, OvidiusCicero), by making
3566 `<link rel="stylesheet" href="$css$">` self-closing.
3568 * Use texmath 0.11, allowing better translation of non-ASCII
3569 characters in math (#4642).
3572## pandoc 2.2 (2018-04-27)
3574 * New input format: `fb2` (FictionBook2) (Alexander Krotov).
3576 * Make `--ascii` work for all XML formats (ICML, OPML, JATS,...),
3577 and for `ms` and `man`.
3579 * Remove deprecated `--latexmathml`, `--gladtex`, `--mimetex`, `--jsmath`, `-m`,
3580 `--asciimathml` options.
3582 * New module Text.Pandoc.Readers.FB2, exporting readFB2 (Alexander
3583 Krotov, API change).
3585 * Markdown reader:
3587 + Allow empty key-value attributes, like `title=""` (#2944).
3588 + Handle table w/o following blank line in fenced div (#4560).
3589 + Remove "fallback" for `doubleQuote` parser. Previously the
3590 parser tried to be efficient -- if no end double quote was found,
3591 it would just return the contents. But this could backfire in a
3592 case `**this should "be bold**`, since the fallback would return
3593 the content `"be bold**` and the closing boldface delimiter
3594 would never be encountered.
3595 + Improve computation of the relative width of the last column in a
3596 multiline table, so we can round-trip tables without constantly
3597 shrinking the last column.
3599 * EPUB reader:
3601 + Fix images with space in file path (#4344).
3603 * LaTeX reader:
3605 + Properly resolve section numbers with `\ref` and chapters (#4529).
3606 + Parse sloppypar environment (#4517, Marc Schreiber).
3607 + Improve handling of raw LaTeX (for markdown etc.) (#4589, #4594).
3608 Previously there were some bugs in how macros were handled.
3609 + Support `\MakeUppercase`, `\MakeLowercase`, `\uppercase`,
3610 `\lowercase`, and also `\MakeTextUppercase` and
3611 `\MakeTextLowercase` from textcase (#4959).
3613 * Textile reader:
3615 + Fixed tables with no body rows (#4513).
3616 Previously these raised an exception.
3618 * Mediawiki reader:
3620 + Improve table parsing (#4508). This fixes detection of table
3621 attributes and also handles `!` characters in cells.
3623 * DocBook reader:
3625 + Properly handle title in `section` element (#4526).
3626 Previously we just got `section_title` for `section` (though `sect1`,
3627 `sect2`, etc. were handled properly).
3628 + Read tex math as output by asciidoctor (#4569, Joe Hermaszewski).
3630 * Docx reader:
3632 + Combine adjacent CodeBlocks with the same attributes into
3633 a single CodeBlock. This prevents a multiline codeblock in
3634 Word from being read as different paragraphs.
3636 * RST reader:
3638 + Allow < 3 spaces indent under directives (#4579).
3639 + Fix anonymous redirects with backticks (#4598).
3641 * Muse reader (Alexander Krotov):
3643 + Add support for Text::Amuse multiline headings.
3644 + Add `<math>` tag support.
3645 + Add support for `<biblio>` and `<play>` tags.
3646 + Allow links to have empty descriptions.
3647 + Require block `<literal>` tags to be on separate lines.
3648 + Allow `-` in anchors.
3649 + Allow verse to be indented.
3650 + Allow nested footnotes.
3651 + Internal improvements.
3653 * Muse writer (Alexander Krotov):
3655 + Escape `>` only at the beginning of a line.
3656 + Escape `]` in image title.
3657 + Escape `]` brackets in URLs as `%5D`.
3658 + Only escape brackets when necessary.
3659 + Escape ordered list markers.
3660 + Do not escape list markers unless preceded by space.
3661 + Escape strings starting with space.
3662 + Escape semicolons and markers after line break.
3663 + Escape `;` to avoid accidental comments.
3664 + Don't break headers, line blocks and tables with line breaks.
3665 + Correctly output empty headings.
3666 + Escape horizontal rule only if at the beginning of the line.
3667 + Escape definition list terms starting with list markers.
3668 + Place header IDs before header.
3669 + Improve span writing.
3670 + Do not join Spans in normalization.
3671 + Don't align ordered list items.
3672 + Remove key-value pairs from attributes before normalization.
3673 + Enable `--wrap=preserve` for all tests by default.
3674 + Reduced `<verbatim>` tags in output.
3675 + Internal changes.
3677 * RST writer:
3679 + Use more consistent indentation (#4563). Previously we
3680 used an odd mix of 3- and 4-space indentation. Now we use 3-space
3681 indentation, except for ordered lists, where indentation must
3682 depend on the width of the list marker.
3683 + Flatten nested inlines (#4368, Francesco Occhipinti).
3684 Nested inlines are not valid RST syntax, so we flatten them following
3685 some readability criteria discussed in #4368.
3687 * EPUB writer:
3689 + Ensure that `pagetitle` is always set, even when structured titles
3690 are used. This prevents spurious warnings about empty title
3691 elements (#4486).
3693 * FB2 writer (Alexander Krotov):
3695 + Output links inline instead of producing notes. Previously all links
3696 were turned into footnotes with unclickable URLs inside.
3697 + Allow emphasis and notes in titles.
3698 + Don't intersperse paragraph with empty lines.
3699 + Convert metadata value `abstract` to book annotation.
3700 + Use `<empty-line />` for `HorizontalRule` rather than `LineBreak`.
3701 FB2 does not have a way to represent line breaks inside paragraphs;
3702 previously we used `<empty-line />` elements, but these are not allowed
3703 inside paragraphs.
3705 * Powerpoint writer (Jesse Rosenthal):
3707 + Handle Quoted Inlines (#4532).
3708 + Simplify code with `ParseXml`.
3709 + Allow fallback options when looking for placeholder type.
3710 + Check reference-doc for all layouts.
3711 + Simplify speaker notes logic.
3712 + Change notes state to a simpler per-slide value.
3713 + Remove `Maybe` from `SpeakerNotes` in `Slide`. `mempty`
3714 means no speaker notes.
3715 + Add tests for improved speaker notes.
3716 + Handle speaker notes earlier in the conversion process.
3717 + Keep notes with related blocks (#4477). Some blocks automatically
3718 split slides (imgs, tables, `column` divs). We assume that any
3719 speaker notes immediately following these are connected to these
3720 elements, and keep them with the related blocks, splitting after them.
3721 + Remove `docProps/thumbnail.jpeg` in data dir (Jesse Rosenthal, #4588).
3722 It contained a nonfree ICC color calibration profile and is not needed
3723 for production of a powerpoint document.
3725 * Markdown writer:
3727 + Include a blank line at the end of the row in a single-row multiline
3728 table, to prevent it from being interpreted as a simple table (#4578).
3730 * CommonMark writer:
3732 + Correctly ignore LaTeX raw blocks when `raw_tex` is not
3733 enabled (#4527, quasicomputational).
3735 * EPUB writer:
3737 + Add `epub:type="footnotes"` to notes section in EPUB3 (#4489).
3739 * LaTeX writer:
3741 + In beamer, don't use format specifier for default ordered lists
3742 (#4556). This gives better results for styles that put ordered list
3743 markers in boxes or circles.
3744 + Update `\lstinline` delimiters (#4369, Tim Parenti).
3746 * Ms writer:
3748 + Use `\f[R]` rather than `\f[]` to reset font (#4552).
3749 + Use `\f[BI]` and `\f[CB]` in headers, instead of `\f[I]` and `\f[C]`,
3750 since the header font is automatically bold (#4552).
3751 + Use `\f[CB]` rather than `\f[BC]` for monospace bold (#4552).
3752 + Create pdf anchor for a Div with an identifier (#4515).
3753 + Escape `/` character in anchor ids (#4515).
3754 + Improve escaping for anchor ids: we now use _uNNN_ instead of uNNN
3755 to avoid ambiguity.
3757 * Man writer:
3759 + Don't escape U+2019 as `'` (#4550).
3761 * Text.Pandoc.Options:
3763 + Removed `JsMath`, `LaTeXMathML`, and `GladTeX` constructors from
3764 `Text.Pandoc.Options.HTMLMathMethod` [API change].
3766 * Text.Pandoc.Class:
3768 + `writeMedia`: unescape URI-escaping in file path. This avoids
3769 writing things like `file%20one.png` to the file system.
3771 * Text.Pandoc.Parsing:
3773 + Fix `romanNumeral` parser (#4480). We previously accepted 'DDC'
3774 as 1100.
3775 + `uri`: don't treat `*` characters at end as part of URI (#4561).
3777 * Text.Pandoc.MIME:
3779 + Use the alias `application/eps` for EPS (#2067).
3780 This will ensure that we retain the eps extension after reading the
3781 image into a mediabag and writing it again.
3783 * Text.Pandoc.PDF:
3785 + Use `withTempDir` in `html2pdf`.
3786 + With `xelatex`, don't compress images til the last run (#4484).
3787 This saves time for image-heavy documents.
3788 + Don't try to convert EPS files (#2067). `pdflatex` converts them
3789 itself, and JuicyPixels can't do it.
3790 + For `pdflatex`, use a temp directory in the working directory.
3791 Otherwise we can have problems with the EPS conversion pdflatex
3792 tries to do, which can't operate on a file above the working
3793 directory without `--shell-escape`.
3795 * Changes to tests to accommodate changes in pandoc-types.
3796 In <https://github.com/jgm/pandoc-types/pull/36> we changed
3797 the table builder to pad cells. This commit changes tests
3798 (and two readers) to accord with this behavior.
3800 * Set default extensions for `beamer` same as `latex`.
3802 * LaTeX template:
3804 + Add `beameroption` variable (#4359, Étienne Bersac).
3805 + Use `pgfpages` package; this is needed for notes on second
3806 screen in beamer (Étienne Bersac).
3807 + Add `background-image` variable (#4601, John Muccigrosso).
3809 * reveal.js template: Add `background-image` variable (#4600,
3810 John Muccigrosso).
3812 * ms template: Fix date. Previously `.ND` was used, but this only
3813 works if you have a title page, which we don't. Thanks to @teoric.
3815 * Removed pragmas for unused extensions (#4506, Anabra).
3817 * Fix bash completion for `--print-default-data-file` (#4549).
3818 Previously this looked in the filesystem, even if pandoc
3819 was compiled with `embed_data_files` (and sometimes it looked
3820 in a nonexistent build directory). Now the bash completion
3821 script just includes a hard-coded list of data file names.
3823 * MANUAL:
3825 + Clarify template vs metadata variables (#4501, Mauro Bieg).
3826 + Fix raw content example (#4479, Mauro Bieg).
3827 + Specify that you use html for raw output in epub.
3828 + Add examples for raw docx blocks (#4472, Tristan Stenner).
3829 The documentation states that the target format name should match
3830 the output format, which isn't the case for `docx`/`openxml` and
3831 some others.
3832 + Don't say that `empty_paragraphs` affects markdown output (#4540).
3833 + Consolidate input/output format documentation (#4577, Mauro Bieg).
3835 * New README template. Take in/out formats from manual.
3837 * Fix example in lua-filters docs (#4459, HeirOfNorton).
3839 * Use the `-threaded` GHC flag when building benchmarks (#4587,
3840 Francesco Occhipinti).
3842 * Bump temporary upper bound to 1.4.
3844 * Use pandoc-citeproc 0.14.3.1.
3846 * Use texmath-0.10.1.2 (fixes escapes in math in ms, #4597).
3848 * Removed old lib directory. This was used for something long ago,
3849 but plays no role now.
3851 * Removed unneeded data file `LaTeXMathML.js`.
3853 * Create 64- and 32-bit versions of Windows binary packages.
3855## pandoc 2.1.3 (2018-03-18)
3857 * Docx reader (Jesse Rosenthal):
3859 + Add tests for nested smart tags.
3860 + Parse nested smart tags.
3861 + Make unwrapSDT into a general `unwrap` function that can unwrap both
3862 nested SDT tags and smartTags. This makes the SmartTags constructor in
3863 the Docx type unnecessary, so we remove it (#4446).
3864 + Remove unused `docxWarnings` (Alexander Krotov).
3866 * RST reader: Allow unicode bullet characters (#4454).
3868 * Haddock reader: Better table handling, using haddock-library's
3869 new table support, if compiled against a version that
3870 includes it. Note that tables with col/rowspans will not
3871 translate well into Pandoc.
3873 * Muse reader (Alexander Krotov):
3875 + Various internal improvements.
3876 + Require closing tag to have the same indentation as opening.
3877 + Do not reparse blocks inside unclosed block tag (#4425).
3878 + Parse `<class>` tag (supported by Emacs Muse).
3879 + Do not produce empty Str element for unindented verse lines.
3881 * LaTeX reader:
3883 + Add support to parse unit string of `\SI` command (closes #4296,
3884 Marc Schreiber).
3886 * Haddock writer: In the writer, we now render tables always as
3887 grid tables, since Haddock supports these.
3889 * DokuWiki writer: rewrite backSlashLineBreaks (#4445, Mauro Bieg).
3891 * Docx writer: Fixed formatting of `DefaultStyle` ordered lists in
3892 docx writer. We want decimal for the top level, not lower roman.
3894 * RST writer:
3896 + Strip whitespace at beginning and ending of inline containers
3897 (#4327, Francesco Occhipinti).
3898 + Filter out empty inline containers (#4434). There is nothing in
3899 RST that corresponds to e.g. `Emph []`, so we just ignore elements
3900 like this (Francesco Occhipinti).
3902 * Muse writer (Alexander Krotov):
3904 + Support spans with anchors.
3905 + Replace smallcaps with emphasis before normalization.
3906 + Output smallcaps as emphasis.
3907 + Expand Cite before list normalization.
3908 + Write empty inline lists as `<verbatim></verbatim>`.
3909 + Remove empty Str from the beginning of inline lists during normalization.
3910 + Escape "-" to avoid creating bullet lists.
3911 + Fix math expansion for more than one expression per paragraph.
3912 + Expand math before inline list normalization.
3914 * Dokuwiki writer: fix LineBreaks in Tables (#4313, Mauro Bieg).
3916 * Ms writer:
3918 + Asciify pdf anchors, since unicode anchors don't work (#4436).
3919 Internal links should be converted automatically, so this shouldn't
3920 affect users directly.
3921 + Don't escape hyphens as `\-`; that's for a minus sign (#4467).
3923 * Beamer writer: put hyperlink after `\begin{frame}` and not in the title
3924 (#4307). If it's in the title, then we get a titlebar on slides with
3925 the `plain` attribute, when the id is non-null. This fixes a regression
3926 in 2.0.
3928 * EPUB writer: Remove notes from TOC in nav.xhtml (#4453, Mauro Bieg).
3930 * JATS writer: Remove extraneous, significant whitespace (#4335,
3931 Nokome Bentley).
3933 * html2pdf: inject base tag with current working directory (#4413, Mauro
3934 Bieg). This helps ensure that linked resources are included.
3936 * Add Semigroup instances for everything for which we defined a
3937 Monoid instance previously (API change):
3939 + Text.Pandoc.Class.FileTree.
3940 + Text.Pandoc.Translations.Translations.
3941 + Text.Pandoc.Extensions.Extensions.
3942 + Text.Pandoc.Readers.Odt.StyleReader.Styles.
3943 + Text.Pandoc.Pretty.Doc.
3944 + Text.Pandoc.MediaBag.MediaBag.
3946 * Add custom Prelude to give clean code for Monoid and Semigroup
3947 that works with ghc 7.10-8.4. The custom Prelude (`prelude/Prelude`)
3948 is used for ghc versions < 8.4. `NoImplicitPrelude` is used
3949 in all source files, and Prelude is explicitly imported
3950 (this is necessary for ghci to work properly with the custom prelude).
3952 * Text.Pandoc.Writers.Shared (Francesco Occhipinti):
3954 + Export `stripLeadingTrailingSpace`.
3955 + Don't wrap lines in grid tables when `--wrap=none` (#4320).
3956 + `gridTable`: Don't wrap lines in tables when `--wrap=none`. Instead,
3957 expand cells, even if it results in cells that don't respect relative
3958 widths or surpass page column width. This change affects RST,
3959 Markdown, and Haddock writers.
3961 * Raise error if someone tries to print docx, odt, etc. template (#4441).
3963 * LaTeX template: Provide `bidi` package's option using
3964 `\PassOptionsToPackage` (#4357, Václav Haisman). This avoid a
3965 clash when `polyglossia` loads it first and then it is loaded again
3966 for XeLaTeX.
3968 * ConTeXt template: Added `pdfa` variable to generate PDF/A (#4294, Henri
3969 Menke). Instructions on how to install the ICC profiles on ConTeXt
3970 standalone can be found in the wiki:
3971 <http://wiki.contextgarden.net/PDFX#ICC_profiles>.
3972 If the ICC profiles are not available the log will contain error
3973 messages.
3975 * Use latest pandoc-types, skylighting
3977 * Use latest pandoc-citeproc in binary package.
3979 * Bump upper bound for time, criterion, haddock-library, exceptions,
3980 http-types, aeson, haddock-library.
3982 * Bump upper bound tasty-quickcheck 0.10 (#4429, Felix Yan).
3984 * pandoc.cabal: fix up other-extensions and language fields.
3985 Language is now consistently `Haskell2010`, and other-extensions
3986 is consistently `NoImplicitPrelude`. Everything else to be specified
3987 in the module header as needed.
3989 * Removed `old-locale` flag and Text.Pandoc.Compat.Time.
3990 This is no longer necessary since we no longer support ghc 7.8.
3992 * Make `weigh-pandoc` into a benchmark program.
3993 Remove `weigh-pandoc` flag. `weigh-pandoc` is now built (and run)
3994 automatically when you build (and run) benchmarks.
3996 * MANUAL: add instructions for background images reveal.js (#4325, John
3997 Muccigrosso).
3999 * appveyor: use VS 2013 environment instead of VS 2015 for Windows builds.
4001## pandoc 2.1.2 (2018-03-02)
4003 * Markdown reader:
4005 + Fix parsing bug with nested fenced divs (#4281). Previously we allowed
4006 "nonindent spaces" before the opening and closing `:::`, but this
4007 interfered with list parsing, so now we require the fences to be flush with
4008 the margin of the containing block.
4010 * Commonmark reader:
4012 + `raw_html` is now on by default. It can be disabled explicitly
4013 using `-f commonmark-raw_html`.
4015 * Org reader (Albert Krewinkel):
4017 + Move citation tests to separate module.
4018 + Allow changing emphasis syntax (#4378). The characters allowed before
4019 and after emphasis can be configured via `#+pandoc-emphasis-pre` and
4020 `#+pandoc-emphasis-post`, respectively. This allows to change which
4021 strings are recognized as emphasized text on a per-document or even
4022 per-paragraph basis. Example:
4024 #+pandoc-emphasis-pre: "-\t ('\"{"
4025 #+pandoc-emphasis-post: "-\t\n .,:!?;'\")}["
4027 * LaTeX reader:
4029 + Fixed comments inside citations (#4374).
4030 + Fix regression in package options including underscore (#4424).
4031 + Make `--trace` work.
4032 + Fixed parsing of `tabular*` environment (#4279).
4034 * RST reader:
4036 + Fix regression in parsing of headers with trailing space (#4280).
4038 * Muse reader (Alexander Krotov):
4040 + Enable `<literal>` tags even if amuse extension is enabled.
4041 Amusewiki disables <literal> tags for security reasons.
4042 If user wants similar behavior in pandoc, RawBlocks and RawInlines
4043 can be removed or replaced with filters.
4044 + Remove space prefix from `<literal>` tag contents.
4045 + Do not consume whitespace while looking for closing end tag.
4046 + Convert alphabetical list markers to decimal in round-trip test.
4047 Alphabetical lists are an addition of Text::Amuse.
4048 They are not present in Emacs Muse and can be ambiguous
4049 when list starts with "i.", "c." etc.
4050 + Allow `<quote>` and other tags to be indented.
4051 + Allow single colon in definition list term.
4052 + Fix parsing of verse in lists.
4053 + Improved parsing efficiency. Avoid `parseFromString`.
4054 Lists are parsed in linear instead of exponential time now.
4055 + Replace ParserState with MuseState.
4056 + Prioritize lists with roman numerals over alphabetical lists.
4057 This is to make sure "i." starts a roman numbered list,
4058 instead of a list with letter "i" (followed by "j", "k", ...").
4059 + Fix directive parsing.
4060 + Parse definition lists with multiple descriptions.
4061 + Parse next list item before parsing more item contents.
4062 + Fixed a bug: headers did not terminate lists.
4063 + Move indentation parsing from `definitionListItem` to `definitionList`.
4064 + Paragraph indentation does not indicate nested quote.
4065 Muse allows indentation to indicate quotation or alignment,
4066 but only on the top level, not within a <quote> or list.
4067 + Require that block tags are on separate lines.
4068 Text::Amuse already explicitly requires it anyway.
4069 + Fix matching of closing inline tags.
4070 + Various internal changes.
4071 + Fix parsing of nested definition lists.
4072 + Require only one space for nested definition list indentation.
4073 + Do not remove trailing whitespace from `<code>`.
4074 + Fix parsing of trailing whitespace. Newline after whitespace now
4075 results in softbreak instead of space.
4077 * Docx reader (Jesse Rosenthal, except where noted):
4079 + Handle nested sdt tags (#4415).
4080 + Don't look up dependant run styles if `+styles` is enabled.
4081 + Move pandoc inline styling inside custom-style span.
4082 + Read custom styles (#1843). This will read all paragraph and
4083 character classes as divs and spans, respectively. Dependent styles
4084 will still be resolved, but will be wrapped with appropriate style
4085 tags. It is controlled by the `+styles` extension (`-f docx+styles`).
4086 This can be used in conjunction with the `custom-style` feature in the
4087 docx writer for a pandoc-docx editing workflow. Users can convert from
4088 an input docx, reading the custom-styles, and then use that same input
4089 docx file as a reference-doc for producing an output docx file. Styles
4090 will be maintained across the conversion, even if pandoc doesn't
4091 understand them.
4092 + Small change to Fields hyperlink parser. Previously, unquoted string
4093 required a space at the end of the line (and consumed it). Now we
4094 either take a space (and don't consume it), or end of input.
4095 + Pick table width from the longest row or header (Francesco Occhipinti,
4096 #4360).
4098 * Muse writer (Alexander Krotov):
4100 + Change verse markup: `> ` instead of `<verse>` tag.
4101 + Remove empty strings during inline normalization.
4102 + Don't indent nested definition lists.
4103 + Use unicode quotes for quoted text.
4104 + Write image width specified in percent in Text::Amuse mode.
4105 + Don't wrap displayMath into `<verse>`.
4106 + Escape nonbreaking space (`~~`).
4107 + Join code with different attributes during normalization.
4108 + Indent lists inside Div.
4109 + Support definitions with multiple descriptions.
4111 * Powerpoint writer (Jesse Rosenthal):
4113 + Use table styles This will use the default table style in the
4114 reference-doc file. As a result they will be easier when using
4115 in a template, and match the color scheme.
4116 + Remove empty slides. Because of the way that slides were split, these
4117 could be accidentally produced by comments after images. When animations
4118 are added, there will be a way to add an empty slide with either
4119 incremental lists or pauses.
4120 + Implement syntax highlighting. Note that background colors can't
4121 be implemented in PowerPoint, so highlighting styles that require
4122 these will be incomplete.
4123 + New test framework for pptx. We now compare the output of the
4124 Powerpoint writer with files that we know to (a) not be corrupt,
4125 and (b) to show the desired output behavior (details below).
4126 + Add `notesMaster` to `presentation.xml` if necessary.
4127 + Ignore links and (end)notes in speaker notes.
4128 + Output speaker notes.
4129 + Read speaker note templates conditionally. If there are speaker
4130 notes in the presentation, we read in the notesMasters templates
4131 from the reference pptx file.
4132 + Fix deletion track changes (#4303, Jesse Rosenthal).
4134 * Markdown writer: properly escape @ to avoid capture as citation
4135 (#4366).
4137 * LaTeX writer:
4139 + Put hypertarget inside figure environment (#4388).
4140 This works around a problem with the endfloat package and
4141 makes pandoc's output compatible with it.
4142 + Fix image height with percentage (#4389). This previously caused
4143 the image to be resized to a percentage of textwidth, rather than
4144 textheight.
4146 * ConTeXt writer (Henri Menke):
4148 + New section syntax and support `--section-divs` (#2609).
4149 `\section[my-header]{My Header}` ->
4150 `\section[title={My Header},reference={my-header}]`.
4151 The ConTeXt writer now supports the `--section-divs` option to
4152 write sections in the fenced style, with `\startsection` and
4153 `\stopsection`.
4154 + xtables: correct wrong usage of caption (Henri Menke).
4156 * Docx writer:
4158 + Fix image resizing with multiple images (#3930, Andrew Pritchard).
4159 + Use new golden framework (Jesse Rosenthal).
4160 + Make more deterministic to facilitate testing (Jesse Rosenthal).
4161 - `getUniqueId` now calls to the state to get an incremented digit,
4162 instead of calling to P.uniqueHash.
4163 - we always start the PRNG in mkNumbering/mkAbstractNum with the same
4164 seed (1848), so our randoms should be the same each time.
4165 + Fix ids in comment writing (Jesse Rosenthal). Comments from
4166 `--track-changes=all` were producing corrupt docx, because the
4167 writer was trying to get id from the `(ID,_,_)` field of
4168 the attributes, and ignoring the "id" entry in the key-value pairs. We
4169 now check both.
4171 * Ms writer: Added papersize variable.
4173 * TEI writer:
4175 + Use `height` instead of `depth` for images (#4331).
4176 + Ensure that id prefix is always used.
4177 + Don't emit `role` attribute; that was a leftover from the
4178 Docbook writer.
4179 + Use 'xml:id', not 'id' attribute (#4371).
4181 * AsciiDoc writer:
4183 + Do not output implicit heading IDs (#4363, Alexander
4184 Krotov). Convert to `asciidoc-auto_identifiers` for old behaviour.
4186 * RST writer:
4188 + Remove `blockToRST'` moving its logic into `fixBlocks`
4189 (Francesco Occhipinti).
4190 + Insert comment between lists and quotes (#4248, Francesco Occchipinti).
4192 * RST template: remove definition of 'math' role as raw.
4193 This used to be needed prior to v 0.8 of docutils, but
4194 now math support is built-in.
4196 * Slides: Use divs to set incremental/non-incremental (#4381,
4197 Jesse Rosenthal). The old method (list inside blockquote) still
4198 works, but we are encouraging the use of divs with class
4199 `incremental` or `nonincremental`.
4201 * Text.Pandoc.ImageSize:
4203 + Make image size detection for PDFs more robust (#4322).
4204 + Determine image size for PDFs (#4322).
4205 + EMF Image size support (#4375, Andrew Pritchard).
4207 * Text.Pandoc.Extensions:
4209 + Add `Ext_styles` (Jesse Rosenthal, API change). This will be used in
4210 the docx reader (defaulting to off) to read pargraph and character
4211 styles not understood by pandoc (as divs and spans, respectively).
4212 + Made `Ext_raw_html` default for `commonmark` format.
4214 * Text.Pandoc.Parsing:
4216 + Export `manyUntil` (Alexander Krotov, API change).
4217 + Export improved `sepBy1` (Alexander Krotov).
4218 + Export list marker parsers: `upperRoman`, `lowerRoman`,
4219 `decimal`, `lowerAlpha`, `upperAlpha` (Alexander Krotov, API change).
4221 * Tests/Lua: fix tests on windows (Albert Krewinkel).
4223 * Lua: register script name in global variable (#4393). The name of the Lua
4224 script which is executed is made available in the global Lua variable
4225 `PANDOC_SCRIPT_FILE`, both for Lua filters and custom writers.
4227 * Tests: Abstract powerpoint tests out to OOXML tests (Jesse Rosenthal).
4228 There is very little pptx-specific in these tests, so we abstract out
4229 the basic testing function so it can be used for docx as well. This
4230 should allow us to catch some errors in the docx writer that slipped
4231 by the roundtrip testing.
4233 * Lua filters: store constructors in registry (Albert Krewinkel). Lua
4234 functions used to construct AST element values are stored in the Lua
4235 registry for quicker access. Getting a value from the registry is much
4236 faster than getting a global value (partly to idiosyncrasies of hslua);
4237 this change results in a considerable performance boost.
4239 * Documentation:
4241 + `doc/org.md` Add draft of Org-mode documentation (Albert Krewinkel).
4242 + `doc/lua-filters.md`: document global vars set for filters
4243 (Albert Krewinkel).
4244 + INSTALL.md: mention Stack version. (#4343, Adam Brandizzi).
4245 + MANUAL: add documentation on custom styles (Jesse Rosenthal).
4246 + MANUAL.txt: Document incremental and nonincremental divs (Jesse
4247 Rosenthal). Blockquoted lists are still described, but fenced divs are
4248 presented in preference.
4249 + MANUAL.txt: document header and footer variables (newmana).
4250 + MANUAL.txt: self-contained implies standalone (#4304, Daniel Lublin).
4251 + CONTRIBUTING.md: label was renamed. (#4310, Alexander Brandizzi).
4253 * Require tagsoup 0.14.3 (#4282), fixing HTML tokenization bug.
4255 * Use latest texmath.
4257 * Use latest pandoc-citeproc.
4259 * Allow exceptions 0.9.
4261 * Require aeson-pretty 0.8.5 (#4394).
4263 * Bump blaze-markup, blaze-html lower bounds to 0.8, 0.9 (#4334).
4265 * Update tagsoup to 0.14.6 (Alexander Krotov, #4282).
4267 * Removed ghc-prof-options. As of cabal 1.24, sensible defaults are used.
4269 * Update default.nix to current nixpkgs-unstable for hslua-0.9.5 (#4348,
4270 jarlg).
4272## pandoc 2.1.1 (2018-01-18)
4274 * Markdown reader:
4276 + Don't coalesce adjacent raw LaTeX blocks if they are separated by a
4277 blank line. See lierdakil/pandoc-crossref#160.
4278 + Improved `inlinesInBalancedBrackets` (#4272, jgm/pandoc-citeproc#315).
4279 The change both improves performance and fixes a regression whereby
4280 normal citations inside inline notes and figure captions were not
4281 parsed correctly.
4283 * RST reader:
4285 + Better handling for headers with an anchor (#4240). Instead of creating a
4286 Div containing the header, we put the id directly on the header.
4287 This way header promotion will work properly.
4288 + Add aligned environment when needed in math (#4254). `rst2latex.py`
4289 uses an `align*` environment for math in `.. math::` blocks, so this
4290 math may contain line breaks. If it does, we put the math in an
4291 `aligned` environment to simulate `rst2latex.py`'s behavior.
4293 * HTML reader:
4295 + Fix col width parsing for percentages < 10% (#4262, n3fariox).
4297 * LaTeX reader:
4299 + Advance source position at end of stream.
4300 + Pass through macro defs in `rawLaTeXBlock` even if the `latex_macros`
4301 extension is set (#4246). This reverts to earlier behavior and is
4302 probably safer on the whole, since some macros only modify things in
4303 included packages, which pandoc's macro expansion can't modify.
4304 + Fixed pos calculation in tokenizing escaped space.
4305 + Allow macro definitions inside macros (#4253). Previously we went into
4306 an infinite loop with
4307 ```
4308 \newcommand{\noop}[1]{#1}
4309 \noop{\newcommand{\foo}[1]{#1}}
4310 \foo{hi}
4311 ```
4312 + Fix inconsistent column widths (#4238). This fixes a bug whereby column
4313 widths for the body were different from widths for the header in some
4314 tables.
4316 * Docx reader (Jesse Rosenthal):
4318 + Parse hyperlinks in `instrText` tags (#3389, #4266). This was a form of
4319 hyperlink found in older versions of word. The changes introduced for
4320 this, though, create a framework for parsing further fields in MS Word
4321 (see the spec, ECMA-376-1:2016, §17.16.5, for more on these fields).
4322 We introduce a new module, `Text.Pandoc.Readers.Docx.Fields` which
4323 contains a simple parsec parser. At the moment, only simple hyperlink
4324 fields are accepted, but that can be extended in the future.
4326 * Muse reader (Alexander Krotov):
4328 + Parse `~~` as non-breaking space in Text::Amuse mode.
4329 + Refactor list parsing.
4331 * Powerpoint writer (Jesse Rosenthal):
4333 + Change reference to `notesSlide` to `endNotesSlide`.
4334 + Move image sizing into `picProps`.
4335 + Improve table placement.
4336 + Make our own `_rels/.rels` file.
4337 + Import reference-doc images properly.
4338 + Move `Presentation.hs` out of `PandocMonad`.
4339 + Refactor into separate modules. T.P.W.Powerpoint.Presentation
4340 defines the Presentation datatype and goes Pandoc->Presentation;
4341 T.P.W.Pandoc.Output goes Presentation->Archive.
4342 Text.Pandoc.Writers.Powerpoint a thin wrapper around the two modules.
4343 + Avoid overlapping blocks in column output.
4344 + Position images correctly in two-column layout.
4345 + Make content shape retrieval environment-aware.
4346 + Improve image handling. We now determine image and caption placement
4347 by getting the dimensions of the content box in a given layout.
4348 This allows for images to be correctly sized and positioned in a
4349 different template. Note that images without captions and headers are
4350 no longer full-screened. We can't do this dependably in different
4351 layouts, because we don't know where the header is (it could be to
4352 the side of the content, for example).
4353 + Read presentation size from reference file. Our presentation size is
4354 now dependent on the reference/template file we use.
4355 + Handle (sub)headers above slidelevel correctly. Above the slidelevel,
4356 subheaders will be printed in bold and given a bit of extra space
4357 before them. Note that at the moment, no distinction is made between
4358 levels of headers above the slide header, though that can be changed.
4359 + Check for required files. Since we now import from reference/dist
4360 file by glob, we need to make sure that we're getting the files we
4361 need to make a non-corrupt Powerpoint. This performs that check.
4362 + Improve templating using `--reference-doc`. Templating should work
4363 much more reliably now.
4364 + Include Notes slide in TOC.
4365 + Set notes slide header to slide-level.
4366 + Add table of contents. This is triggered by the `--toc` flag. Note
4367 that in a long slide deck this risks overrunning the text box. The user
4368 can address this by setting `--toc-depth=1`.
4369 + Set notes slide number correctly.
4370 + Clean up adding metadata slide. We want to count the slide numbers
4371 correctly if it's in there.
4372 + Add anchor links. For anchor-type links (`[foo](#bar)`) we produce
4373 an anchor link. In powerpoint these are links to slides, so we keep
4374 track of a map relating anchors to the slides they occur on.
4375 + Make the slide number available to the blocks. For anchors,
4376 block-processing functions need to know what slide number
4377 they're in. We make the `envCurSlideId` available to blocks.
4378 + Move `curSlideId` to environment.
4379 + Allow setting `toc-title` in metadata.
4380 + Link notes to endnotes slide.
4382 * Markdown writer:
4384 + Fix cell width calculation (#4265). Previously we could get
4385 ever-lengthening cell widths when a table was run repeatedly through
4386 `pandoc -f markdown -t markdown`.
4388 * LaTeX writer:
4390 + Escape `&` in lstinline (Robert Schütz).
4392 * ConTeXt writer:
4394 + Use xtables instead of Tables (#4223, Henri Menke).
4395 Default to xtables for context output. Natural Tables are used
4396 if the new `ntb` extension is set.
4398 * HTML writer:
4400 + Fixed footnote backlinks with `--id-prefix` (#4235).
4402 * `Text.Pandoc.Extensions`: Added `Ext_ntb` constructor (API change,
4403 Henri Menke).
4405 * `Text.Pandoc.ImageSize`: add derived `Eq` instance to `Dimension`
4406 (Jesse Rosenthal, API change).
4408 * Lua filters (Albert Krewinkel):
4410 + Make `PANDOC_READER_OPTIONS` available.
4411 The options which were used to read the document are made available to
4412 Lua filters via the `PANDOC_READER_OPTIONS` global.
4413 + Add lua module `pandoc.utils.run_json_filter`, which runs a JSON filter
4414 on a Pandoc document.
4415 + Refactor filter-handling code into `Text.Pandoc.Filter.JSON`,
4416 `Text.Pandoc.Filter.Lua`, and `Text.Pandoc.Filter.Path`.
4417 + Improve error messages. Provide more context about the task
4418 which caused an error.
4420 * data/pandoc.lua (Albert Krewinkel):
4422 + Accept singleton inline as a list. Every constructor which accepts a
4423 list of inlines now also accepts a single inline element for
4424 convenience.
4425 + Accept single block as singleton list. Every constructor which accepts
4426 a list of blocks now also accepts a single block element for
4427 convenience. Furthermore, strings are accepted as shorthand for
4428 `{pandoc.Str "text"}` in constructors.
4429 + Add attr, listAttributes accessors. Elements with
4430 attributes got an additional `attr` accessor. Attributes were
4431 accessible only via the `identifier`, `classes`, and `attributes`,
4432 which was in conflict with the documentation, which indirectly states
4433 that such elements have the an `attr` property.
4434 + Drop `_VERSION`. Having a `_VERSION` became superfluous, as this
4435 module is closely tied to the pandoc version, which is available via
4436 `PANDOC_VERSION`.
4437 + Fix access to Attr components. Accessing an Attr value (e.g.,
4438 ` Attr().classes`) was broken; the more common case of accessing it via
4439 an Inline or Block element was unaffected by this.
4441 * Move `metaValueToInlines` to from Docx writer to
4442 `Text.Pandoc.Writers.Shared`, so it can be used by other writers
4443 (Jesse Rosenthal).
4445 * MANUAL.txt:
4447 + Clarify otherlangs in LaTeX (#4072).
4448 + Clarify `latex_macros` extension.
4449 + Recommend use of `raw_attribute` extension in header includes (#4253).
4451 * Allow latest QuickCheck, tasty, criterion.
4453 * Remove custom prelude and ghc 7.8 support.
4455 * Reduce compiler noise (exact paths for compiled modules).
4457## pandoc 2.1 (2018-01-07)
4459 * Allow filters and lua filters to be interspersed (#4196). Previously
4460 we ran all lua filters before JSON filters. Now we run filters in
4461 the order they are presented on the command line, whether lua or JSON.
4462 There are two incompatible API changes: The type of `applyFilters`
4463 has changed, and `applyLuaFilters` has been removed. `Filter` is
4464 also now exported.
4466 * Use latest skylighting and omit the `missingIncludes` check, fixing
4467 a major performance regression in earlier releases of the 2.x series
4468 (#4226). Behavior change: If you use a custom syntax definition that
4469 refers to a syntax you haven't loaded, pandoc will now complain when
4470 it is highlighting the text, rather than doing a check at the start.
4471 This change dramatically speeds up invocations of pandoc on short
4472 inputs.
4474 * Text.Pandoc.Class: make `FileTree` opaque (don't export
4475 `FileTree` constructor). This forces users to interact with it using
4476 `insertInFileTree` and `getFileInfo`, which normalize file names.
4478 * Markdown reader:
4480 + Rewrite `inlinesInBalancedBrackets`. The rewrite is much more
4481 direct, avoiding `parseFromString`. And it performs significantly
4482 better; unfortunately, parsing time still increases exponentially
4483 (see #1735).
4484 + Avoid parsing raw tex unless `\` + letter seen. This seems to
4485 help with the performance problem, #4216.
4487 * LaTeX reader: Simplified a check for raw tex command.
4489 * Muse reader (Alexander Krotov):
4491 + Enable round trip test (#4107).
4492 + Automatically translate `#cover` into `#cover-image`.
4493 Amusewiki uses #cover directive to specify cover image.
4495 * Docx reader (Jesse Rosenthal):
4497 + Allow for insertion/deletion of paragraphs (#3927).
4498 If the paragraph has a deleted or inserted paragraph break (depending
4499 on the track-changes setting) we hold onto it until the next
4500 paragraph. This takes care of accept and reject. For this we introduce
4501 a new state which holds the ils from the previous para if necessary.
4502 For `--track-changes=all`, we add an empty span with class
4503 `paragraph-insertion`/`paragraph-deletion` at the end of the paragraph
4504 prior to the break to be inserted or deleted.
4505 + Remove unused anchors (#3679). Docx produces a lot of anchors with
4506 nothing pointing to them---we now remove these to produce cleaner
4507 output. Note that this has to occur at the end of the process
4508 because it has to follow link/anchor rewriting.
4509 + Read multiple children of `w:sdtContents`.
4510 + Combine adjacent anchors. There isn't any reason to have numerous
4511 anchors in the same place, since we can't maintain docx's
4512 non-nesting overlapping. So we reduce to a single anchor.
4513 + Improved tests.
4515 * Muse writer (Alexander Krotov): don't escape URIs from AST
4517 * Docx writer:
4519 + Removed redundant subtitle in title (Sebastian Talmon).
4520 + `firstRow` table definition compatibility for Word 2016 (Sebastian
4521 Talmon). Word 2016 seems to use a default value of "1" for table
4522 headers, if there is no firstRow definition (although a default
4523 value of 0 is documented), so all tables get the first Row formatted
4524 as header. Setting the parameter to 0 if the table has no header
4525 row fixes this for Word 2016
4526 + Fix custom styles with spaces in the name (#3290).
4528 * Powerpoint writer (Jesse Rosenthal):
4530 + Ignore Notes div for parity with other slide outputs.
4531 + Set default slidelevel correctly. We had previously defaulted to
4532 slideLevel 2. Now we use the correct behavior of defaulting to the
4533 highest level header followed by content. We change an expected test
4534 result to match this behavior.
4535 + Split blocks correctly for linked images.
4536 + Combine adjacent runs.
4537 + Make inline code inherit code size. Previously (a) the code size
4538 wasn't set when we force size, and (b) the properties was set from
4539 the default, instead of inheriting.
4540 + Simplify `replaceNamedChildren` function.
4541 + Allow linked images. The following markdown:
4542 `[![Image Title](image.jpg)](http://www.example.com)`
4543 will now produce a linked image in the resulting PowerPoint file.
4544 + Fix error with empty table cell. We require an empty `<a:p>` tag,
4545 even if the cell contains no paragraphs---otherwise PowerPoint
4546 complains of corruption.
4547 + Implement two-column slides. This uses the columns/column div
4548 format described in the pandoc manual. At the moment, only two
4549 columns (half the screen each) are allowed. Custom widths are not
4550 supported.
4551 + Added more tests.
4553 * OpenDocument/ODT writers: improved rendering of formulas (#4170, oltolm).
4555 * Lua filters (Albert Krewinkel):
4557 + `data/pandoc.lua`: drop 'pandoc-api-version' from Pandoc objects
4558 + The current pandoc-types version is made available to Lua programs in
4559 the global `PANDOC_API_VERSION`. It contains the version as a list of
4560 numbers.
4561 + The pandoc version available as a global `PANDOC_VERSION` (a list
4562 of numbers).
4563 + `data/pandoc.lua`: make `Attr` an `AstElement`.
4564 + `data/pandoc.lua`: make all types subtypes of `AstElement`.
4565 `Pandoc`, `Meta`, and `Citation` were just plain functions and did
4566 not set a metatable on the returned value, which made it difficult
4567 to amend objects of these types with new behavior. They are now
4568 subtypes of AstElement, meaning that all their objects can gain
4569 new features when a method is added to the behavior object
4570 (e.g., `pandoc.Pandoc.behavior`).
4571 + `data/pandoc.lua`: split type and behavior tables. Clearly distinguish
4572 between a type and the behavioral properties of an instance of that
4573 type. The behavior of a type (and all its subtypes) can now be
4574 amended by adding methods to that types `behavior` object, without
4575 exposing the type objects internals. E.g.:
4576 ```lua
4577 pandoc.Inline.behavior.frob = function () print'42' end
4578 local str = pandoc.Str'hello'
4579 str.frob() -- outputs '42'
4580 ```
4581 + `data/pandoc.lua`: fix Element inheritance. Extending all elements
4582 of a given type (e.g., all inline elements) was difficult, as the
4583 table used to lookup unknown methods would be reset every time a
4584 new element of that type was created, preventing recursive property
4585 lookup. This is was changed in that all methods and attributes of
4586 supertypes are now available to their subtypes.
4587 + `data/pandoc.lua`: fix attribute names of Citation (#4222). The
4588 fields were named like the Haskell fields, not like the documented,
4589 shorter version. The names are changed to match the documentation
4590 and Citations are given a shared metatable to enable simple
4591 extensibility.
4592 + `data/pandoc.lua`: drop function `pandoc.global_filter`.
4593 + Bump `hslua` version to 0.9.5. This version fixes a bug that made it
4594 difficult to handle failures while getting lists or a Map from Lua.
4595 A bug in pandoc, which made it necessary to always pass a tag when
4596 using MetaList or MetaBlock, is fixed as a result. Using the pandoc
4597 module's constructor functions for these values is now optional
4598 (if still recommended).
4599 + Stop exporting `pushPandocModule` (API change). The introduction
4600 of `runPandocLua` renders direct use of this function obsolete.
4601 + Update generation of module docs for lua filters.
4602 + `Lua.Module.Utils`: make stringify work on `MetaValues` (John
4603 MacFarlane). I'm sure this was intended in the first place,
4604 but currently only `Meta` is supported.
4606 * Improve benchmarks.
4608 + Set the default extensions properly.
4609 + Improve benchmark argument parsing. You can now say
4610 `make bench BENCHARGS="markdown latex reader"` and both the
4611 markdown and latex readers will be benchmarked.
4613 * MANUAL.txt simplify and add more structure (Mauro Bieg).
4615 * Generate README.md from template and MANUAL.txt.
4616 `make README.md` will generate the README.md after changes
4617 to MANUAL.txt have been made.
4619 * Update copyright notices to include 2018 (Albert Krewinkel).
4621## pandoc 2.0.6 (2017-12-28)
4623 * Added `jats` as an input format.
4625 + Add Text.Pandoc.Readers.JATS, exporting `readJATS` (API
4626 change) (Hamish Mackenzie).
4627 + Improved citation handling in JATS reader. JATS citations
4628 are now converted to pandoc citations, and JATS ref-lists
4629 are converted into a `references` field in metadata, suitable
4630 for use with pandoc-citeproc. Thus a JATS article with embedded
4631 bibliographic information can be processed with pandoc and
4632 pandoc-citeproc to produce a formatted bibliography.
4634 * Allow `--list-extensions` to take an optional FORMAT argument.
4635 This lists the extensions set by default for the selected FORMAT.
4636 The extensions are now alphabetized, and the `+` or `-`
4637 indicating the default setting comes before, rather than after,
4638 the extension.
4640 * Markdown reader:
4642 + Preserve original whitespace between blocks.
4643 + Recognize `\placeformula` as context.
4644 + Be pickier about table captions. A caption starts with a `:` which
4645 can't be followed by punctuation. Otherwise we can falsely interpret
4646 the start of a fenced div, or even a table header line like
4647 `:--:|:--:`, as a caption.
4648 + Always use four space rule for example lists. It would be awkward
4649 to indent example list contents to the first non-space character after
4650 the label, since example list labels are often long. Thanks to
4651 Bernhard Fisseni for the suggestion.
4652 + Improve raw tex parsing. Note that the Markdown reader is also
4653 affected by the `latex_macros` extension changes described below
4654 under the LaTeX reader.
4656 * LaTeX reader:
4658 + `latex_macros` extension changes (#4179). Don't pass through macro
4659 definitions themselves when `latex_macros` is set. The macros
4660 have already been applied. If `latex_macros` is enabled, then
4661 `rawLaTeXBlock` in Text.Pandoc.Readers.LaTeX will succeed in parsing
4662 a macro definition, and will update pandoc's internal macro map
4663 accordingly, but the empty string will be returned.
4664 + Export `tokenize`, `untokenize` (API change).
4665 + Use `applyMacros` in `rawLaTeXBlock`, `rawLaTeXInline`.
4666 + Refactored `inlineCommand`.
4667 + Fix bug in tokenizer. Material following `^^` was
4668 dropped if it wasn't a character escape. This only affected
4669 invalid LaTeX, so we didn't see it in the wild, but it appeared
4670 in a QuickCheck test failure.
4671 + Fix regression in LateX tokenization (#4159). This mainly affects the
4672 Markdown reader when parsing raw LaTeX with escaped spaces.
4673 + Add tests of LaTeX tokenizer.
4674 + Support `\foreignlanguage` from babel.
4675 + Be more tolerant of `&` character (#4208). This allows us to parse
4676 unknown tabular environments as raw LaTeX.
4678 * Muse reader (Alexander Krotov):
4680 + Parse anchors immediately after headings as IDs.
4681 + Require that note references does not start with 0.
4682 + Parse empty comments correctly.
4684 * Org reader (Albert Krewinkel):
4686 + Fix asterisks-related parsing error (#4180).
4687 + Support minlevel option for includes (#4154). The level of headers
4688 in included files can be shifted to a higher level by specifying a
4689 minimum header level via the `:minlevel` parameter. E.g.
4690 `#+include: "tour.org" :minlevel 1` will shift the headers in
4691 tour.org such that the topmost headers become level 1 headers.
4692 + Break-up org reader test file into multiple modules.
4694 * OPML reader:
4696 + Enable raw HTML and other extensions by default for notes
4697 (#4164). This fixes a regression in 2.0. Note that extensions can
4698 now be individually disabled, e.g. `-f opml-smart-raw_html`.
4700 * RST reader:
4702 + Allow empty list items (#4193).
4703 + More accurate parsing of references (#4156). Previously we erroneously
4704 included the enclosing backticks in a reference ID (#4156). This
4705 change also disables interpretation of syntax inside references, as
4706 in docutils. So, there is no emphasis in `` `my *link*`_ ``.
4708 * Docx reader:
4710 + Continue lists after interruption (#4025, Jesse Rosenthal).
4711 Docx expects that lists will continue where they left off after an
4712 interruption and introduces a new id if a list is starting again. So
4713 we keep track of the state of lists and use them to define a "start"
4714 attribute, if necessary.
4715 + Add tests for structured document tags unwrapping (Jesse Rosenthal).
4716 + Preprocess Document body to unwrap `w:sdt` elements (Jesse Rosenthal,
4717 #4190).
4719 * Plain writer:
4721 + Don't linkify table of contents.
4723 * RST writer:
4725 + Fix anchors for headers (#4188). We were missing an `_`.
4727 * PowerPoint writer (Jesse Rosenthal):
4729 + Treat lists inside BlockQuotes as lists. We don't yet produce
4730 incremental lists in PowerPoint, but we should at least treat lists
4731 inside BlockQuotes as lists, for compatibility with other slide formats.
4732 + Add ability to force size. This replaces the more specific
4733 `blockQuote runProp`, which only affected the size of blockquotes. We
4734 can use this for notes, etc.
4735 + Implement notes. This currently prints all notes on a final slide.
4736 Note that at the moment, there is a danger of text overflowing the
4737 note slide, since there is no logic for adding further slides.
4738 + Implement basic definition list functionality to PowerPoint writer.
4739 + Don't look for default template file for Powerpoint (#4181).
4740 + Add pptx to isTextFormat list. This is used to check standalone
4741 and not writing to the terminal.
4742 + Obey slide level option (Jesse Rosenthal).
4743 + Introduce tests.
4745 * Docx writer:
4747 + Ensure that `distArchive` is the one that comes with pandoc
4748 (#4182). Previously a `reference.docx` in `~/.pandoc` (or the user data
4749 dir) would be used instead, and this could cause problems because a
4750 user-modified docx sometimes lacks vital sections that we count
4751 on the `distArchive` to supply.
4753 * Org writer:
4755 + Do not wrap "-" to avoid accidental bullet lists (Alexander Krotov).
4756 + Don't allow fn refs to wrap to beginning of line (#4171, with help from
4757 Alexander Krotov). Otherwise they can be interpreted as footnote
4758 definitions.
4760 * Muse writer (Alexander Krotov):
4762 + Don't wrap note references to the next line (#4172).
4764 * HTML writer:
4766 + Use br elements in line blocks instead of relying on CSS
4767 (#4162). HTML-based templates have had the custom CSS for
4768 `div.line-block` removed. Those maintaining custom templates will want
4769 to remove this too. We still enclose line blocks in a div with class
4770 `line-block`.
4772 * LaTeX writer:
4774 + Use `\renewcommand` for `\textlatin` with babel (#4161).
4775 This avoids a clash with a deprecated `\textlatin` command defined
4776 in Babel.
4777 + Allow fragile=singleslide attribute in beamer slides (#4169).
4778 + Use `\endhead` after `\toprule` in headerless tables (#4207).
4780 * FB2 writer:
4782 + Add cover image specified by `cover-image` meta (Alexander Krotov,
4783 #4195).
4785 * JATS writer (Hamish Mackenzie):
4787 + Support writing `<fig>` and `<table-wrap>` elements
4788 with `<title>` and `<caption>` inside them by using Divs with class set
4789 to one of `fig`, `table-wrap` or `caption` (Hamish Mackenzie). The
4790 title is included as a Heading so the constraint on where Heading can
4791 occur is also relaxed.
4792 + Leave out empty alt attributes on links.
4793 + Deduplicate image mime type code.
4794 + Make `<p>` optional in `<td>` and `<th>` (#4178).
4795 + Self closing tags for empty xref (#4187).
4796 + Improve support for code language.
4798 * Custom writer:
4800 + Use init file to setup Lua interpreter (Albert Krewinkel).
4801 The same init file (`data/init`) that is used to setup the Lua
4802 interpreter for Lua filters is also used to setup the interpreter of
4803 custom writers.lua.
4804 + Define instances for newtype wrapper (Albert Krewinkel). The custom
4805 writer used its own `ToLuaStack` instance definitions, which made
4806 it difficult to share code with Lua filters, as this could result
4807 in conflicting instances. A `Stringify` wrapper is introduced to
4808 avoid this problem.
4809 + Added tests for custom writer.
4810 + Fixed definition lists and tables in `data/sample.lua`.
4812 * Fixed regression: when target is PDF, writer extensions were being
4813 ignored. So, for example, `pandoc -t latex-smart -o file.pdf`
4814 did not work properly.
4816 * Lua modules (Albert Krewinkel):
4818 + Add `pandoc.utils` module, to hold utility functions.
4819 + Create a Haskell module Text.Pandoc.Lua.Module.Pandoc to
4820 define the `pandoc` lua module.
4821 + Make a Haskell module for each Lua module. Move definitions for the
4822 `pandoc.mediabag` modules to a separate Haskell module.
4823 + Move `sha1` from the main `pandoc` module to `pandoc.utils`.
4824 + Add function `pandoc.utils.hierarchicalize` (convert list of
4825 Pandoc blocks into (hierarchical) list of Elements).
4826 + Add function `pandoc.utils.normalize_date` (parses a date and
4827 converts it (if possible) to "YYYY-MM-DD" format).
4828 + Add function `pandoc.utils.to_roman_numeral` (allows conversion
4829 of numbers below 4000 into roman numerals).
4830 + Add function `pandoc.utils.stringify` (converts any AST element
4831 to a string with formatting removed).
4832 + `data/init.lua`: load `pandoc.utils` by default
4833 + Turn pipe, read into full Haskell functions. The `pipe` and `read`
4834 utility functions are converted from hybrid lua/haskell functions
4835 into full Haskell functions. This avoids the need for intermediate
4836 `_pipe`/`_read` helper functions, which have dropped.
4837 + pandoc.lua: re-add missing MetaMap function. This was a bug
4838 introduced in version 2.0.4.
4840 * Text.Pandoc.Class: Add `insertInFileTree` [API change]. This gives
4841 a pure way to insert an ersatz file into a `FileTree`. In addition, we
4842 normalize paths both on insertion and on lookup.
4844 * Text.Pandoc.Shared: export `blocksToInlines'` (API change, Maura Bieg).
4846 * Text.Pandoc.MIME: Add opus to MIME type table as audio/ogg (#4198).
4848 * Text.Pandoc.Extensions: Alphabetical order constructors for
4849 `Extension`. This makes them appear in order in `--list-extensions`.
4851 * Allow lenient decoding of latex error logs, which are not always
4852 properly UTF8-encoded (#4200).
4854 * Update latex template to work with recent versions of beamer.
4855 The old template produced numbered sections with some recent
4856 versions of beamer. Thanks to Thomas Hodgson.
4858 * Updated reference.docx (#4175). Instead of just "Hello, world", the
4859 document now contains exemplars of most of the styles that have an
4860 effect on pandoc documents. This makes it easier to see the effect
4861 of style changes.
4863 * Removed `default.theme` data file (#4096). It is no longer needed now
4864 that we have `--print-highlight-style`.
4866 * Added `stack.lts9.yaml` for building with lts 9 and ghc 8.0.2.
4867 We still need this for the alpine static linux build, since
4868 we don't have ghc 8.2.2 for that yet.
4870 * Removed `stack.pkg.yaml`. We only really need `stack.yaml`; we
4871 can put flag settings for pandoc-citeproc there.
4873 * Makefile: Add 'trypandoc' and 'pandoc-templates' targets to
4874 make releases easier.
4876 * MANUAL.txt:
4878 + Add note on what formats have `+smart` by default.
4879 + Use native syntax for custom-style (#4174, Mauro Bieg).
4880 + Introduce dedicated Extensions section, since some extensions
4881 affect formats other than markdown (Mauro Bieg, #4204).
4882 + Clarify default html output for `--section-divs` (Richard Edwards).
4884 * filters.md: say that Text.Pandoc.JSON comes form pandoc-types.
4885 Closes jgm/pandoc-website#16.
4887 * epub.md: Delete removed `-S` option from command (#4151, Georger Araújo).
4889## pandoc 2.0.5 (2017-12-12)
4891 * Fix a bug in 2.0.4, whereby pandoc could not read the theme files
4892 generated with `--print-highlight-style` (#4133). Improve JSON
4893 serialization of styles.
4895 * Fix CSS issues involving line numbers (#4128).
4896 Highlighted code blocks are now enclosed in a div with class `sourceCode`.
4897 Highlighting CSS no longer sets a generic color for pre and code; we only
4898 set these for class `sourceCode`.
4900 * `--pdf-engine-opt`: fix bug where option order was reversed (#4137).
4902 * Add PowerPoint (pptx) writer (Jesse Rosenthal).
4903 It works following the standard Pandoc conventions for making other
4904 sorts of slides. Caveats:
4906 + Syntax highlighting is not yet implemented. (This is difficult
4907 because there are no character classes in Powerpoint.)
4908 + Footnotes and Definition lists are not yet implemented. (Notes will
4909 usually take the form of a final slide.
4910 + Image placement and auto-resizing has a few glitches.
4911 + Reference powerpoint files don't work dependably from the command
4912 line. This will be implemented, but at the moment users are advised
4913 to change themes from within Powerpoint.
4915 * Create shared Text.Pandoc.Writers.OOXML module (Jesse Rosenthal).
4916 This is for functions used by both Powerpoint and Docx writers.
4918 * Add default pptx data for Powerpoint writer (Jesse Rosenthal).
4920 * Add `empty_paragraphs` extension.
4922 + Deprecate `--strip-empty-paragraphs` option. Instead we now
4923 use an `empty_paragraphs` extension that can be enabled on
4924 the reader or writer. By default, disabled.
4925 + Add `Ext_empty_paragraphs` constructor to `Extension`.
4926 + Revert "Docx reader: don't strip out empty paragraphs."
4927 This reverts commit d6c58eb836f033a48955796de4d9ffb3b30e297b.
4928 + Implement `empty_paragraphs` extension in docx reader and writer,
4929 opendocument writer, html reader and writer.
4930 + Add tests for `empty_paragraphs` extension.
4932 * Markdown reader:
4934 + Don't parse native div as table caption (#4119).
4935 + Improved computation of column widths in pipe tables.
4936 Pipe tables with lines longer than the text width (as set
4937 by `--columns`) are now scaled to text width, with the relative
4938 widths of columns determined by the ratios between the
4939 header lines. Previously we computed column widths using
4940 the ratio of header line lengths to column width, so that
4941 tables with narrow header lines were extremely thin, which
4942 was very rarely the desired result.
4944 * LaTeX reader: fix `\` before newline (#4134). This should be a space,
4945 as long as it's not followed by a blank line. This has been fixed at the
4946 tokenizer level.
4948 * Muse reader (Alexander Krotov):
4950 + Add test for `#disable-tables` directive in Emacs mode.
4951 + Don't allow emphasis to be preceded by letter.
4952 + Add underline support in Emacs Muse mode..
4953 + Support multiline directives in Amusewiki mode
4955 * Man writer: omit internal links (#4136). That is, just print the link
4956 text without the URL.
4958 * Markdown reader: accept processing instructions as raw HTML (#4125).
4960 * Lua filters (Albert Krewinkel):
4962 + Use script to initialize the interpreter. The file `init.lua` is
4963 used to initialize the Lua interpreter which is used in Lua filters.
4964 This gives users the option to require libraries which they want to
4965 use in all of their filters, and to extend default modules.
4966 + Fix package loading for Lua 5.1. The list of package searchers is
4967 named `package.loaders` in Lua 5.1 and LuaJIT, and `package.searchers`
4968 in Lua 5.2 and later.
4969 + Refactor lua module handling. The integration with Lua's package/module
4970 system is improved: A pandoc-specific package searcher is prepended to
4971 the searchers in `package.searchers`. The modules `pandoc` and
4972 `pandoc.mediabag` can now be loaded via `require`.
4973 + Bump lower bound of hslua. The release hslua 0.9.3 contains a new
4974 function which makes using Haskell functions as package loaders much
4975 easier.
4977 * reveal.js template: add title-slide identifier to title slide (#4120).
4978 This allows it to be styled more easily.
4980 * LaTeX template: Added support for `pagestyle` variable (#4135,
4981 Thomas Hodgson)
4983 * Add `-threaded` to ghc-options for executable (#4130, fixes a build
4984 error on linux).
4987## pandoc 2.0.4 (2017-12-03)
4989 * Add `--print-highlight-style` option. This generates a JSON version
4990 of a highlighting style, which can be saved as a `.theme` file, modified,
4991 and used with `--highlight-style` (#4106, #4096).
4993 * Add `--strip-empty-paragraphs` option. This works for any input format.
4994 It is primarily intended for use with docx and odt documents where
4995 empty paragraphs have been used for inter-paragraph spaces.
4997 * Support `--webtex` for `gfm` output.
4999 * Recognize `.muse` file extension.
5001 * Support beamer `\alert` in LaTeX reader. Closes #4091.
5003 * Docx reader: don't strip out empty paragraphs (#2252).
5004 Users who have a conversion pipeline from docx may want to consider adding
5005 `--strip-empty-paragraphs` to the command line.
5007 * Org reader (Albert Krewinkel): Allow empty list items (#4090).
5009 * Muse reader (Alexander Krotov):
5011 + Parse markup in definition list terms.
5012 + Allow definition to end with EOF.
5013 + Make code blocks round trip.
5014 + Drop common space prefix from list items.
5015 + Add partial round trip test.
5016 + Don't interpret XML entities.
5017 + Remove `nested`.
5018 + Parse `~~` as non-breaking space in Emacs mode.
5019 + Correctly remove indentation from notes. Exactly one space is
5020 required and considered to be part of the marker.
5021 + Allow list items to be empty.
5022 + Add ordered list test.
5023 + Add more multiline definition tests.
5024 + Don't allow blockquotes within lists.
5025 + Fix reading of multiline definitions.
5026 + Add inline `<literal>` support.
5027 + Concatenate inlines of the same type
5029 * Docx writer: allow empty paragraphs (#2252).
5031 * CommonMark/gfm writer:
5033 + Use raw html for native divs/spans (#4113). This allows a pandoc
5034 markdown native div or span to be rendered in gfm using raw html tags.
5035 + Implement `raw_html` and `raw_tex` extensions. Note that `raw_html`
5036 is enabled by default for `gfm`, while `raw_tex` is disabled by default.
5038 * Muse writer (Alexander Krotov):
5040 + Test that inline math conversion result is normalized.
5041 Without normalization this test produced
5042 `<em>a</em><em>b</em><em>c</em>`.
5043 + Improve inline list normalization and move to writer.
5044 + Escape hash symbol.
5045 + Escape `----` to avoid accidental horizontal rules.
5046 + Escape only `</code>` inside code tag.
5047 + Additional `<verbatim>` is not needed as `<code>` is verbatim already.
5049 * LaTeX writer:
5051 + Allow specifying just width or height for image size.
5052 Previously both needed to be specified (unless the image was
5053 being resized to be smaller than its original size).
5054 If height but not width is specified, we now set width to
5055 textwidth. If width but not height is specified, we now set
5056 height to textheight. Since we have `keepaspectratio`, this
5057 yields the desired result.
5058 + Escape `~` and `_` in code with `--listings` (#4111).
5060 * HTML writer: export `tagWithAttributes`. This is a helper allowing
5061 other writers to create single HTML tags.
5063 * Let papersizes `a0`, `a1`, `a2`, ... be case-insensitive by
5064 converting the case as needed in LaTeX and ConTeXt writers.
5066 * Change `fixDisplayMath` from `Text.Pandoc.Writers.Shared`
5067 so that it no longer produces empty `Para`'s as an artifact.
5069 * `Text.Pandoc.Shared.blocksToInlines`: rewrote using builder.
5070 This gives us automatic normalization, so we don't get
5071 for example two consecutive Spaces.
5073 * Include default CSS for 'underline' class in HTML-based templates.
5075 * revealjs template: add `tex2jax` configuration for the
5076 math plugin. With the next release of reveal.js, this will
5077 fix the problem of `$`s outside of math contexts being
5078 interpreted as math delimiters (#4027).
5080 * `pandoc.lua` module for use in lua filters (Albert Krewinkel):
5082 + Add basic lua List module (#4099, #4081). The List module is
5083 automatically loaded, but not assigned to a global variable. It can be
5084 included in filters by calling `List = require 'List'`. Lists of blocks,
5085 lists of inlines, and lists of classes are now given `List` as a metatable,
5086 making working with them more convenient. E.g., it is now possible to
5087 concatenate lists of inlines using Lua's concatenation operator `..`
5088 (requires at least one of the operants to have `List` as a metatable):
5090 function Emph (emph)
5091 local s = {pandoc.Space(), pandoc.Str 'emphasized'}
5092 return pandoc.Span(emph.content .. s)
5093 end
5095 The `List` metatable is assigned to the tables which get passed to
5096 the constructors `MetaBlocks`, `MetaInline`, and `MetaList`. This
5097 enables the use of the resulting objects as lists.
5098 + `Lua/StackInstances`: push Pandoc and Meta via constructor.
5099 Pandoc and Meta elements are now pushed by calling the respective
5100 constructor functions of the pandoc Lua module. This makes serialization
5101 consistent with the way blocks and inlines are pushed to lua and allows
5102 to use List methods with the `blocks` value.
5103 + Add documentation for pandoc.List in `lua-filters.md`.
5105 * Use latest tagsoup. This fixes a bug in parsing HTML tags with
5106 `&` (but not a valid entity) following them (#4094, #4088).
5108 * Use skylighting 0.4.4.1, fixing the color of unmarked code text
5109 when `numberLines` is used (#4103).
5111 * Make `normalizeDate` more forgiving (Mauro Bieg, #4101), not
5112 requiring a leading 0 on single-digit days.
5114 * Fix `--help` output for `--highlight-style` to include `FILE` (Mauro
5115 Bieg, #4095).
5117 * Clearer deprecation warning for `--latexmathml, --asciimathml, -m`.
5118 Previously we only mentioned `--latexmathml`, even if `-m` was
5119 used.
5121 * Changelog: fix description of lua filters in 2.0 release
5122 (Albert Krewinkel). Lua filters were initially run *after* conventional
5123 (JSON) filters. However, this was changed later to make it easier to deal
5124 with files in the mediabag. The changelog is updated to describe that
5125 feature of the 2.0 release correctly.
5127 * Change Generic JSON instances to TemplateHaskell (Jasper Van der Jeugt,
5128 #4085). This reduces compile time and memory usage significantly.
5130 * `lua-filters.md`: Added tikz filter example.
5132 * Create alternative zip file for macOS binaries.
5134 * Create alternative zip file for Windows binaries.
5136 * Update INSTALL.md since we now provide zips for binaries.
5138 * Relax `http-types` dependency (Justus Sagemüller, #4084).
5140 * Add `epub.md`, `getting-started.md` to docs. These used to live in
5141 the website repo.
5143 * Add `packages` target to Makefile.
5145 * Bump bounds for binary, http-types, tasty-hunit
5147## pandoc 2.0.3 (2017-11-20)
5149 * Lua filters: preload text module (Albert Krewinkel, #4077).
5150 The `text` module is preloaded in lua. The module contains some UTF-8
5151 aware string functions, implemented in Haskell. The module is loaded on
5152 request only, e.g.:
5154 text = require 'text'
5155 function Str (s)
5156 s.text = text.upper(s.text)
5157 return s
5158 end
5160 * Allow table-like access to attributes in lua filters (Albert Krewinkel,
5161 #4071). Attribute lists are represented as associative lists in Lua. Pure
5162 associative lists are awkward to work with. A metatable is attached to
5163 attribute lists, allowing to access and use the associative list as if
5164 the attributes were stored in as normal key-value pair in table.
5165 Note that this changes the way `pairs` works on attribute lists. Instead
5166 of producing integer keys and two-element tables, the resulting iterator
5167 function now returns the key and value of those pairs. Use `ipairs` to
5168 get the old behavior. Warning: the new iteration mechanism only works if
5169 pandoc has been compiled with Lua 5.2 or later (current default: 5.3).
5171 * Text.Pandoc.Parsing.uri: allow `&` and `=` as word characters (#4068).
5172 This fixes a bug where pandoc would stop parsing a URI with an
5173 empty attribute: for example, `&a=&b=` wolud stop at `a`.
5174 (The uri parser tries to guess which punctuation characters
5175 are part of the URI and which might be punctuation after it.)
5177 * Introduce `HasSyntaxExtensions` typeclass (Alexander Krotov, #4074).
5179 + Added new `HasSyntaxExtensions` typeclass for `ReaderOptions` and
5180 `WriterOptions`.
5181 + Reimplemented `isEnabled` function from `Options.hs` to accept both
5182 `ReaderOptions` and `WriterOptions`.
5183 + Replaced `enabled` from `CommonMark.hs` with new `isEnabled`.
5185 * Add `amuse` extension (Alexander Krotov) to enable Amuse wiki
5186 behavior for `muse`. New `Ext_amuse` constructor for
5187 `Extension`. Note: this is switched on by default; for
5188 Emacs behavior, use `muse-amuse`.
5190 * Muse reader (Alexander Krotov):
5192 + Count only one space as part of list item marker.
5193 + Produce SoftBreaks on newlines. Now wrapping can be preserved
5194 with `--wrap=preserve`.
5195 + Add Text::Amuse footnote extensions. Footnote end is indicated by
5196 indentation, so footnotes can be placed anywhere in the text,
5197 not just at the end of it.
5198 + Accept Emacs Muse definition lists when `-amuse`.
5199 Emacs Muse does not require indentation.
5201 * HTML reader:
5203 + Ensure we don't produce level 0 headers (#4076), even for chapter
5204 sections in epubs. This causes problems because writers aren't set
5205 up to expect these.
5206 + Allow spaces after `\(` and before `\)` with `tex_math_single_backslash`.
5207 Previously `\( \frac{1}{a} < \frac{1}{b} \)` was not parsed as math in
5208 `markdown` or `html` `+tex_math_single_backslash`.
5210 * MANUAL: clarify that math extensions work with HTML.
5211 Clarify that `tex_math_dollars` and `tex_math_single_backslash`
5212 will work with HTML as well as Markdown.
5214 * Creole reader: Fix performance issue for longer lists (Sascha Wilde,
5215 #4067).
5217 * RST reader: better support for 'container' directive (#4066).
5218 Create a div, incorporate name attribute and classes.
5220 * LaTeX reader:
5222 + Support column specs like `*{2}{r}` (#4056). This is equivalent to
5223 `rr`. We now expand it like a macro.
5224 + Allow optional args for parbox (#4056).
5225 + Allow optional arguments on `\footnote` (#4062).
5227 * EPUB writer: Fixed path for cover image (#4069). It was previously
5228 `media/media/imagename`, and should have been `media/imagename`.
5230 * Markdown writer: fix bug with doubled footnotes in grid tables
5231 (#4061).
5233 * LaTeX template: include natbib/biblatex after polyglossia (#4073).
5234 Otherwise we seem to get an error; biblatex wants polyglossia
5235 language to be defined.
5237 * Added examples to lua filters documentation.
5240## pandoc 2.0.2 (2017-11-12)
5242 * Deprecated ancient HTML math methods: `--latexmathml`, `--gladtex`,
5243 `--mimetex`, `--jsmath`.
5245 * Fixed URIs in `data/jats.csl`. They were being rendered twice,
5246 leading to invalid XML in default JATS output with pandoc-citeproc.
5248 * `lua-filters.md`: use real-world man page filter as example.
5250 * Add lua filter functions `walk_inline` and `walk_block`
5251 in the pandoc module, to apply filters inside particular
5252 inline and block elements.
5254 * Refactored some code from `Text.Pandoc.Lua.PandocModule`
5255 into new internal module `Text.Pandoc.Lua.Filter`.
5257 * Markdown reader:
5259 + Allow fenced code blocks to be indented 1-3 spaces (#4011).
5260 This brings our handling of them into alignment with CommonMark's.
5261 + Fix YAML metadata with "chomp" (`|-`). Previously if a
5262 YAML block under `|-` contained a blank line, pandoc would
5263 not parse it as metadata.
5265 * Removed `etc.` from abbreviations file. Often `etc.` ends a
5266 sentence, and we want the period to be treated as a
5267 sentence-ending period.
5269 * Fix regression with `--metadata` (#4054). Values specified with
5270 `--metadata` should replace a metadata value set in the document
5271 itself, rather than creating a list including a new value.
5273 * EPUB writer:
5275 + Fix EPUB OCF structure. #3720 had been improperly implemented.
5276 + Fix modified paths for raw HTML tags (src, poster, etc.)
5277 (#4050, #4055). This had not been updated for the new EPUB
5278 container layout, with a separate text/ subdirectory.
5279 + Fix image paths with empty `--epub-subdirectory`.
5281 * Miscellaneous code cleanup (Alexander Krotov).
5283 * Use pandoc-types 1.17.3, which adds `Walkable` instances
5284 for `[Block] Block` and `[Inline] Inline`.
5286 * Remove obsolete `stack.full.yaml` (#4052).
5288 * Change to using pandoc-citeproc 0.12.1 in binary packages.
5290 * Consolidate math output method documentation (#4049, Mauro Bieg).
5292 * `MANUAL.txt`: fix header level of "Extension: emoji" (Albert Krewinkel).
5294 * Use lua filter to generate man page from `MANUAL.txt`, replacing old
5295 Haskell filters. This is easier and faster.
5297 * Improved `INSTALL.md`.
5299 * Update commands to extract deb archive on Linux (#4043, Salim B).
5302## pandoc 2.0.1.1 (2017-11-04)
5304 * Improved fix to #3989 (parsing of HTML tags containing
5305 `>` in an attribute or comment). The previous fix (in 2.0.1) only
5306 worked in certain cases.
5308 * FB2 writer (Alexander Krotov):
5310 + Add `unrecognised` genre to `<title-info>`
5311 (Alexander Krotov). XML schema requires at least one genre.
5312 + Remove `<annotation>` from `<body>`.
5314 * CommonMark writer: fix strikethrough for `gfm` (#4038).
5316 * Use texmath 0.10, which adds support for a wider range of
5317 symbols and fixes default column alignments in MathML
5318 and OMML.
5320 * Highlighting fixes, using skylighting 0.4.3.2:
5322 + Fix invalid CSS.
5323 + Support `lineAnchors` (or `line-anchors`) in HTML code blocks.
5324 + Ensure that code lines don't get duplicate identifiers (#4031).
5325 The line identifiers are built using the code block's identifier
5326 as a prefix. If the code block has null identifier, we use
5327 `cb1`, `cb2`, etc.
5329 * Added a few abbreviations to `data/abbreviations`,
5330 and sorted the list (#3984, Wandmalfarbe).
5332 * Improved support for columns in HTML writer (#4028).
5334 + Remove `width` attribute from the `div`.
5335 + Remove space between `<div class="column">` elements,
5336 since this prevents columns whose widths sum to 100%
5337 (the space takes up space).
5338 + Move as much as possible of the CSS to the template.
5339 + Ensure that all the HTML-based templates (including epub)
5340 contain the CSS for columns.
5341 + Columns default to 50% width unless they are given a width
5342 attribute. So if you want two equal-width columns, you
5343 can use a div with class `column` and no `width` attribute.
5345 * SelfContained: use `base64` for css links with media attribute (#4026).
5346 This fixes `--self-contained` with S5.
5348 * Improve `pandoc-template-mode.el` (Vaclav Haisman).
5350 * INSTALL.md: MacOS instructions needed xar -f (adam234).
5352 * MANUAL.txt:
5354 + Clarify that --setext-headers doesn't affect gfm output (#4035).
5355 + Clarify what is needed to open and close a div in `fenced_divs`
5356 (#4039, Tristano Ajmone).
5357 + Removed reference to `default.beamer` in docs (#4024).
5358 Also added mention of other templates affecting PDF output
5359 with different settings.
5362## pandoc 2.0.1 (2017-10-31)
5364 * Fixed regression in parsing of HTML comments in markdown and other
5365 non-HTML formats (`Text.Pandoc.Readers.HTML.htmlTag`) (#4019).
5366 The parser stopped at the first `>` character, even if it wasn't
5367 the end of the comment.
5369 * Creole reader (Sascha Wilde):
5371 + Fix some minor typos and formatting.
5372 + Add additional test on nowiki-block after para.
5373 + Fix lists with trailing white space.
5375 * LaTeX reader: handle `%` comment right after command.
5376 For example, `\emph%`.
5378 * Markdown reader: make sure fenced div closers work in lists.
5379 Previously the following failed:
5381 ::: {.class}
5382 1. one
5383 2. two
5384 :::
5386 and you needed a blank line before the closing `:::`.
5388 * Make `fenced_divs` affect the Markdown writer. If `fenced_divs` is
5389 enabled, Divs will be rendered as fenced divs.
5391 * LaTeX/Beamer writer: support "blocks" inside columns and other Divs
5392 (#4016).
5394 * HTML Writer: consistently use dashed class-names (Mauro Bieg, #3556).
5395 Note: this change may require some changes in CSS rules.
5396 `footnoteRef` has become `footnote-ref`, `titleslide` has
5397 become `title-slide`, and `footnoteBack` has become `footnote-back`.
5399 * JATS writer: Properly pass through author metadata (#4020).
5401 * FB2 writer (Alexander Krotov):
5403 + Write blocks outside of `<p>` in definitions.
5404 + Make bullet lists consistent with ordered lists, repeating
5405 the marker for the outer list rather than indenting sublists,
5406 since indentation does not work in readers.
5407 + Add new style FB2 tests.
5409 * `Text.Pandoc.ImageSize`: Add `Millimeter` constructor to `Dimension`
5410 (#4012) [API change]. Now sizes given in 'mm' are no longer converted
5411 to 'cm'.
5413 * Revise documentation of small caps syntax (Andrew Dunning, #4013).
5415 * Fix broken reference links in manual (Andrew Dunning, #4014)
5417 * Fixed example of slide columns structure in changelog (#4015).
5418 Also documented this feature in MANUAL.txt.
5421## pandoc 2.0.0.1 (2017-10-30)
5423 * EPUB writer:
5425 + Fixed filepaths for nonstandard epub-subdirectory values.
5426 + Ensure that epub2 is recognized as a non-text format,
5427 so that a template is used.
5428 + Don't include "prefix" attribute for ibooks for epub2.
5429 It doesn't validate.
5430 + Fix stylesheet paths; previously we had an incorrect
5431 stylesheet path for the cover page and nav page.
5433 * LaTeX reader:
5435 + Insert space when needed in macro expansion (#4007).
5436 Sometimes we need to insert a space after a control sequence
5437 to prevent it merging with a following letter.
5438 + Allow unbraced arguments for macros (#4007).
5439 + Allow body of macro definition to be unbraced (#4007).
5441 * Linux package build: ensure that pandoc-citeproc is statically linked.
5443 * trypandoc: add native, ms.
5446## pandoc 2.0 (2017-10-29)
5448### New features
5450 * New output format `ms` (groff ms). Complete support, including
5451 tables, math, syntax highlighting, and PDF bookmarks. The writer uses
5452 texmath's new eqn writer to convert math to eqn format, so a ms file
5453 produced with this writer should be processed with `groff -ms -e` if
5454 it contains math.
5456 * New output format `jats` (Journal Article Tag Suite). This is an XML
5457 format used in archiving and publishing articles. Note that a
5458 URI-encoded CSL stylesheet (`data/jats.csl`) is added automatically
5459 unless a stylesheet is specified using `--css`.
5461 * New output format `gfm` (GitHub-flavored CommonMark) (#3841).
5462 This uses bindings to GitHub's fork of cmark, so it should parse
5463 gfm exactly as GitHub does (excepting certain postprocessing
5464 steps, involving notifications, emojis, etc.). `markdown_github`
5465 has been deprecated in favor of `gfm`.
5467 * New output format `muse` (Emacs Muse) (Alexander Krotov, #3489).
5469 * New input format `gfm` (GitHub-flavored CommonMark) (#3841).
5470 This uses bindings to GitHub's fork of cmark. `markdown_github`
5471 has been deprecated in favor of `gfm`.
5473 * New input format `muse` (Emacs Muse) reader (Alexander Krotov, #3620).
5475 * New input format `tikiwiki` (TikiWiki markup) (rlpowell, #3800).
5477 * New input format `vimwiki` (Vimwiki markup) (Yuchen Pei, #3705).
5478 Note that there is a new data file, `data/vimwiki.css`, which can
5479 be used to display the HTML produced by this reader and
5480 pandoc's HTML writer in the style of vimwiki's own HTML
5481 export.
5483 * New input format `creole` (Creole 1.0) (#3994, Sascha Wilde).
5485 * New syntax for Divs, with `fenced_divs` extension enabled by
5486 default (#168). This gives an attractive, plain-text way to create
5487 containers for block-level content.
5489 * Added new syntax for including raw content in any output format,
5490 enabled by the `raw_attribute` extension (which is on by default
5491 for `markdown` and `multimarkdown`). The syntax is the same as
5492 for fenced code blocks or code inlines, only with `{=FORMAT}` for
5493 attributes, where `FORMAT` is the name of the output format
5494 (e.g., `ms`, `html`).
5496 * Implement multicolumn support for slide formats (#1710).
5497 The structure expected is:
5499 :::::::::::::: {.columns}
5500 ::: {.column width="40%"}
5501 contents...
5502 :::
5503 ::: {.column width="60%"}
5504 contents...
5505 :::
5506 ::::::::::::::
5508 Support has been added for beamer and all HTML slide formats.
5510 * Allows line comments in templates, beginning with `$--` (#3806).
5511 (Requires doctemplates 0.2.1.)
5513 * Add `--eol=crlf|lf|native` flag and writer option to control line endings
5514 (Stefan Dresselhaus, #3663, #2097).
5516 * Add `--log` option to save log messages in JSON format to a file (#3392).
5518 * Add `--request-header` option, to set request headers when pandoc
5519 makes HTTP requests to fetch external resources. For example:
5520 `--request-header User-Agent:blah`.
5522 * Added lua filters (Albert Krewinkel, #3514). The new `--lua-filter`
5523 option works like `--filter` but takes pathnames of special lua filters
5524 and uses the lua interpreter baked into pandoc, so that no external
5525 interpreter is needed. Note that lua filters are all applied after
5526 regular filters, regardless of their position on the command line.
5527 For documentation of lua filters, see `doc/lua-filters.md`.
5529 * Set `PANDOC_READER_OPTIONS` in environment where filters are run.
5530 This contains a JSON representation of `ReaderOptions`, so filters
5531 can access it.
5533 * Support creation of pdf via groff `ms` and pdfroff.
5534 `pandoc -t ms -o output.pdf input.txt`.
5536 * Support for PDF generation via HTML and `weasyprint` or `prince`
5537 (Mauro Bieg, #3909). `pandoc -t html5 -o output.pdf --pdf-engine=prince`.
5539 * Added `--epub-subdirectory` option (#3720). This specifies the
5540 subdirectory in the OCF container that holds the EPUB specific content.
5541 We now put all EPUB related content in an `EPUB/` subdirectory by default
5542 (later this will be configurable).
5544 ```
5545 mimetype
5546 META-INF/
5547 com.apple.ibooks.display-options.xml
5548 container.xml
5549 EPUB/ <<--configurable-->>
5550 fonts/ <<--static-->>
5551 font.otf
5552 media/ <<--static-->>
5553 cover.jpg
5554 fig1.jpg
5555 styles/ <<--static-->>
5556 stylesheet.css
5557 content.opf
5558 toc.ncx
5559 text/ <<--static-->>
5560 ch001.xhtml
5561 ```
5563 * Added `--resource-path=SEARCHPATH` command line option (#852).
5564 SEARCHPATH is separated by the usual character, depending on OS
5565 (: on unix, ; on windows). Default resource path is just working
5566 directory. However, the working directory must be explicitly
5567 specified if the `--resource-path` option is used.
5569 * Added --abbreviations=FILE option for custom abbreviations file
5570 (#256). Dfault abbreviations file (`data/abbreviations`) contains
5571 a list of strings that will be recognized by pandoc's
5572 Markdown parser as abbreviations. (A nonbreaking space will
5573 be inserted after the period, preventing a sentence space in
5574 formats like LaTeX.) Users can override the default by putting a file
5575 abbreviations in their user data directory (`~/.pandoc` on *nix).
5577 * Allow a theme file as argument to `--highlight-style`.
5578 Also include a sample, `default.theme`, in `data/`.
5580 * Allow `--syntax-definition` option for dynamic loading of syntax
5581 highlighting definitions (#3334).
5583 * Lists in `markdown` by default now use the CommonMark variable
5584 nesting rules (#3511). The indentation required for a block-level
5585 item to be included in a list item is no longer fixed, but is
5586 determined by the first line of the list item. To be included in
5587 the list item, a block must be indented to the level of the first
5588 non-space content after the list marker. Exception: if are 5 or more
5589 spaces after the list marker, then the content is interpreted as an
5590 indented code block, and continuation paragraphs must be indented
5591 two spaces beyond the end of the list marker. See the CommonMark
5592 spec for more details and examples.
5594 Documents that adhere to the four-space rule should, in most cases,
5595 be parsed the same way by the new rules. Here are some examples
5596 of texts that will be parsed differently:
5598 - a
5599 - b
5601 will be parsed as a list item with a sublist; under the four-space
5602 rule, it would be a list with two items.
5604 - a
5606 code
5608 Here we have an indented code block under the list item, even though it
5609 is only indented six spaces from the margin, because it is four spaces
5610 past the point where a continuation paragraph could begin. With the
5611 four-space rule, this would be a regular paragraph rather than a code
5612 block.
5614 - a
5616 code
5618 Here the code block will start with two spaces, whereas under
5619 the four-space rule, it would start with `code`. With the four-space
5620 rule, indented code under a list item always must be indented eight
5621 spaces from the margin, while the new rules require only that it
5622 be indented four spaces from the beginning of the first non-space
5623 text after the list marker (here, `a`).
5625 This change was motivated by a slew of bug reports from people
5626 who expected lists to work differently (#3125, #2367, #2575, #2210,
5627 #1990, #1137, #744, #172, #137, #128) and by the growing prevalance
5628 of CommonMark (now used by GitHub, for example). Those who
5629 prefer the old behavior can use `-f markdown+four_space_rule`.
5631 * Added `four_space_rule` extension. This triggers the old pandoc
5632 parsing rule for content nested under list items (the "four space
5633 rule").
5635 * Added `spaced_reference_links` extension (#2602). It allows whitespace
5636 between the two parts of a reference link: e.g.
5638 [a] [b]
5640 [b]: url
5642 This was previously enabled by default; now it is forbidden by default.
5644 * Add `space_in_atx_header` extension (#3512). This is enabled by default
5645 in pandoc and GitHub markdown but not the other flavors.
5646 This requirse a space between the opening #'s and the header
5647 text in ATX headers (as CommonMark does but many other implementations
5648 do not). This is desirable to avoid falsely capturing things ilke
5650 #hashtag
5652 or
5654 #5
5656 * Add `sourcefile` and `outputfile` template variables (Roland Hieber,
5657 #3431).
5659 * Allow ibooks-specific metadata in epubs (#2693). You can now have
5660 the following fields in your YAML metadata, and it will be treated
5661 appropriately in the generated EPUB:
5663 ```
5664 ibooks:
5665 version: 1.3.4
5666 specified-fonts: false
5667 ipad-orientation-lock: portrait-only
5668 iphone-orientation-lock: landscape-only
5669 binding: true
5670 scroll-axis: vertical
5671 ```
5674### Behavior changes
5676 * Reader functions no longer presuppose that CRs have been
5677 stripped from the input. (They strip CRs themselves, before
5678 parsing, to simplify the parsers.)
5680 * Added support for translations (localization) (#3559).
5681 Currently this only affects the LaTeX reader, for things
5682 like `\figurename`. Translation data files for 46 languages
5683 can be found in `data/translations`.
5685 * Make `--ascii` work with DocBook output too.
5687 * Rename `--latex-engine` to `--pdf-engine`,
5688 and `--latex-engine-opt` to `--pdf-engine-opt`.
5690 * Removed `--parse-raw` and `readerParseRaw`. These were confusing.
5691 Now we rely on the `+raw_tex` or `+raw_html` extension with latex or html
5692 input. Thus, instead of `--parse-raw -f latex` we use `-f latex+raw_tex`,
5693 and instead of `--parse-raw -f html` we use `-f html+raw_html`.
5695 * With `--filter` R filters are now recognized, even if they are
5696 not executable (#3940, #3941, Andrie de Vries).
5698 * Support SVG in PDF output, converting with `rsvg2pdf` (#1793).
5700 * Make epub an alias for epub3, not epub2.
5702 * Removed `--epub-stylesheet`; use `--css` instead (#3472, #847).
5703 Multiple stylesheets may be used. Stylesheets will be taken both from
5704 `--css` and from the `stylesheet` metadata field (which can contain
5705 either a file path or a list of them).
5707 * `--mathml` and MathML in HTMLMathMethod no longer take an argument.
5708 The argument was for a bridge JavaScript that used to be necessary
5709 in 2004. We have removed the script already.
5711 * `--katex` improvements. The latest version is used, and the
5712 autoload script is loaded by default.
5714 * Change MathJax CDN default since old one is shutting down (#3544).
5715 Note: The new URL requires a version number, which we'll have
5716 to update manually in subsequent pandoc releases in order to
5717 take advantage of mathjax improvements.
5719 * `--self-contained`: don't incorporate elements with `data-external="1"`
5720 (#2656). You can leave an external link as it is by adding the attribute
5721 data-external="1" to the element. Pandoc will then not try to
5722 incorporate its content when `--self-contained` is used. This is
5723 similar to a feature already supported by the EPUB writer.
5725 * Allow `--extract-media` to work with non-binary input formats
5726 (#1583, #2289). If `--extract-media` is supplied with a non-binary
5727 input format, pandoc will attempt to extract the contents of all
5728 linked images, whether in local files, data: uris, or external uris.
5729 They will be named based on the sha1 hash of the contents.
5731 * Make `papersize: a4` work regardless of the case of `a4`.
5732 It is converted to `a4` in LaTeX and `A4` in ConTeXt.
5734 * Make `east_asian_line_breaks` affect all readers/writers (#3703).
5736 * Underlined elements are now treated consistently by readers
5737 (#2270, hftf); they are always put in a Span with class `underline`.
5738 This allows the user to treat them differently from other emphasis,
5739 using a filter. Docx, Org, Textile, Txt2Tags, and HTML readers
5740 have been changed.
5742 * Improved behavior of `auto_identifiers` when there are explicit ids
5743 (#1745). Previously only autogenerated ids were added to the list
5744 of header identifiers in state, so explicit ids weren't taken
5745 into account when generating unique identifiers. Duplicated
5746 identifiers could result. This simple fix ensures that explicitly given
5747 identifiers are also taken into account.
5749 * Use `table-of-contents` for contents of toc, make `toc` a boolean
5750 (#2872). Changed markdown, rtf, and HTML-based templates accordingly.
5751 This allows you to set `toc: true` in the metadata; this
5752 previously produced strange results in some output formats.
5753 For backwards compatibility, `toc` is still set to the
5754 toc contents. But it is recommended that you update templates
5755 to use `table-of-contents` for the toc contents and `toc`
5756 for a boolean flag.
5758 * Change behavior with binary format output to stdout.
5759 Previously, for binary formats, output to stdout was disabled
5760 unless we could detect that the output was being piped (and not
5761 sent to the terminal). Unfortunately, such detection is not
5762 possible on Windows, leaving windows users no way to pipe binary
5763 output. So we have changed the behavior in the following way:
5765 + Output to stdout is allowed when it can be determined that
5766 the output is being piped (on non-Windows platforms).
5767 + If the `-o` option is not used, binary output is never sent
5768 to stdout by default; instead, an error is raised.
5769 + If `-o -` is used, binary output is sent to stdout, regardless
5770 of whether it is being piped. This works on Windows too.
5772 * Better error behavior: uses of `error` have been replaced by
5773 raising of `PandocError`, which can be trapped and handled by the
5774 calling program.
5776 * Removed `hard_line_breaks` extension from `markdown_github` (#3594).
5777 GitHub has two Markdown modes, one for long-form documents like READMEs
5778 and one for short things like issue coments. In issue comments, a line
5779 break is treated as a hard line break. In README, wikis, etc., it is
5780 treated as a space as in regular Markdown. Since pandoc is more likely to
5781 be used to convert long-form documents from GitHub Markdown,
5782 `-hard_line_breaks` is a better default.
5784 * Include `backtick_code_blocks` extension in `mardkown_mmd` (#3637).
5786 * Escape `MetaString` values (as added with `-M/--metadata` flag) (#3792).
5787 Previously they would be transmitted to the template without any
5788 escaping. Note that `--M title='*foo*'` yields a different result from
5790 ---
5791 title: *foo*
5792 ---
5794 In the latter case, we have emphasis; in the former case, just
5795 a string with literal asterisks (which will be escaped
5796 in formats, like Markdown, that require it).
5798 * Allow `em`, `cm`, `in` for image height/width in HTML, LaTeX (#3450).
5800 * HTML writer: Insert `data-` in front of unsupported attributes. Thus,
5801 a span with attribute `foo` gets written to HTML5 with `data-foo`, so
5802 it is valid HTML5. HTML4 is not affected. This will allow us to use
5803 custom attributes in pandoc without producing invalid HTML. (With help
5804 from Wandmalfarbe, #3817.)
5806 * Plain writer: improved super/subscript rendering. We now
5807 handle more non-digit characters for which there are
5808 sub/superscripted unicode characters. When unicode
5809 sub/superscripted characters are not available, we use
5810 `_(..)` or `^(..)` (#3518).
5812 * Docbook, JATS, TEI writers: print INFO message when omitting interior
5813 header (#3750). This only applies to section headers inside list items,
5814 e.g., which were otherwise silently omitted.
5816 * Change to `--reference-links` in Markdown writer (#3701). With
5817 `--reference-location` of `section` or `block`, pandoc will now repeat
5818 references that have been used in earlier sections. The Markdown
5819 reader has also been modified, so that *exactly* repeated references
5820 do not generate a warning, only references with the same label but
5821 different targets. The idea is that, with references after every block,
5822 one might want to repeat references sometimes.
5824 * ODT/OpenDocument writer:
5826 + Support `lang` attribute (#1667).
5827 + Added support for `--toc` (#2836). Thanks to @anayrat.
5829 * Docx writer:
5831 + `lang` meta, see #1667 (Mauro Bieg, #3515).
5832 + Change `FigureWithCaption` to `CaptionedFigure` (iandol, #3658).
5833 + Use `Table` rather than `Table Normal` for table style (#3275).
5834 `Table Normal` is the default table style and can't be modified.
5835 + Pass through comments (#2994). We assume that comments are defined as
5836 parsed by the docx reader:
5838 I want <span class="comment-start" id="0" author="Jesse Rosenthal"
5839 date="2016-05-09T16:13:00Z">I left a comment.</span>some text to
5840 have a comment <span class="comment-end" id="0"></span>on it.
5842 We assume also that the id attributes are unique and properly
5843 matched between comment-start and comment-end.
5844 + Bookmark improvements. Bookmark start/end now surrounds content rather
5845 than preceding it. Bookmarks generated for Div with id
5846 (jgm/pandoc-citeproc#205).
5847 + Add `keywords` metadata to docx document properties (Ian).
5849 * RST writer: support unknown interpreted text roles by
5850 parsing them as `Span` with `role` attributes (#3407). This
5851 way they can be manipulated in the AST.
5853 * HTML writer:
5855 + Line block: Use class instead of style attribute (#1623). We now
5856 issue `<div class="line-block">` and include a default definition
5857 for `line-block` in the default templates, instead of hard-coding a
5858 `style` on the div.
5859 + Add class `footnoteBack` to footnote back references (Timm Albers).
5860 This allows for easier CSS styling.
5861 + Render SmallCaps as span with smallcaps class (#1592), rather than
5862 using a style attribute directly. This gives the user more flexibility
5863 in styling small caps in CSS.
5864 + With reveal.js we use `data-src` instead of `src` for images for
5865 lazy loading.
5866 + Special-case `.stretch` class for images in reveal.js (#1291).
5867 Now in reveal.js, an image with class `stretch` in a paragraph
5868 by itself will stretch to fill the whole screen, with no
5869 caption or figure environment.
5871 * Added warnings for non-rendered blocks to writers.
5873 * Writers now raise an error on template failure.
5875 * When creating a PDF via LaTeX, warn if the font is missing some
5876 characters (#3742).
5878 * Remove initial check for PDF-creating program (#3819).
5879 Instead, just try running it and raise the exception if it
5880 isn't found at that point. This improves things for users of Cygwin
5881 on Windows, where the executable won't be found by `findExecutable`
5882 unless `.exe` is added. The same exception is raised as before, but
5883 at a later point.
5885 * Readers issue warning for duplicate header identifiers (#1745).
5886 Autogenerated header identifiers are given suffixes so as not to clash
5887 with previously used header identifiers. But they may still coincide with
5888 an explicit identifier that is given for a header later in the document,
5889 or with an identifier on a div, span, link, or image. We now issue
5890 a warning in this case, so users can supply an explicit identifier.
5892 * CommonMark reader now supports `emoji`, `hard_line_breaks`, `smart`,
5893 and `raw_html` extensions.
5895 * Markdown reader:
5897 + Don't allow backslash + newline to affect block structure (#3730).
5898 Note that as a result of this change, the following, which formerly
5899 produced a header with two lines separated by a line break, will
5900 now produce a header followed by a paragraph:
5902 # Hi\
5903 there
5905 This may affect some existing documents that relied on
5906 this undocumented and unintended behavior. This change makes pandoc
5907 more consistent with other Markdown implementations, and with itself
5908 (since the two-space version of a line break doesn't work inside ATX
5909 headers, and neither version works inside Setext headers).
5912 * Org reader (Albert Krewinkel, unless noted):
5914 + Support `table.el` tables (#3314).
5915 + Support macros (#3401).
5916 + Support the `#+INCLUDE:` file inclusion mechanism (#3510).
5917 Recognized include types are `example`, `export`, `src`, and
5918 normal org file inclusion. Advanced features like line numbers
5919 and level selection are not implemented yet.
5920 + Interpret more meta value as inlines. The values of the following
5921 meta variables are now interpreted using org-markup instead of
5922 treating them as pure strings: `keywords` (comma-separated list of
5923 inlines), `subtitle` (inline values), `nocite` (inline values, can
5924 be repeated).
5925 + Support `\n` export option (#3940). This turns all newlines in the
5926 text into hard linebreaks.
5928 * RST reader:
5930 + Improved admonition support (#223). We no longer add an
5931 `admonition` class, we just use the class for the type of admonition,
5932 `note` for example. We put the word corresponding to the label in
5933 a paragraph inside a `Div` at the beginning of the admonition with
5934 class `admonition-title`. This is about as close as we can get to
5935 RST's own output.
5936 + Initial support of `.. table` directive. This allows adding captions
5937 to tables.
5938 + Support `.. line-block` directive. This is deprecated but may still
5939 be in older documents.
5940 + Support scale and align attributes of images (#2662).
5941 + Implemented implicit internal header links (#3475).
5942 + Support RST-style citations (#853). The citations appear at the end
5943 of the document as a definition list in a special div with id
5944 `citations`. Citations link to the definitions.
5945 + Recurse into bodies of unknown directives (#3432).
5946 In most cases it's better to preserve the content than
5947 to emit it. This isn't guaranteed to have good results;
5948 it will fail spectacularly for unknown raw or verbatim directives.
5949 + Handle chained link definitions (#262). For example,
5951 .. _hello:
5952 .. _goodbye: example.com
5954 Here both `hello` and `goodbye` should link to `example.com`.
5955 + Support anchors (#262). E.g.
5957 `hello`
5959 .. _hello:
5961 paragraph
5963 This is supported by putting "paragraph" in a `Div` with id `hello`.
5964 + Support `:widths:` attribute for table directive.
5965 + Implement csv-table directive (#3533). Most attributes are supported,
5966 including `:file:` and `:url:`.
5967 + Support unknown interpreted text roles by parsing them as Span
5968 with "role" attributes (#3407). This way they can be manipulated in
5969 the AST.
5971 * HTML reader: parse a span with class `smallcaps` as `SmallCaps`.
5973 * LaTeX reader:
5975 + Implemented `\graphicspath` (#736).
5976 + Properly handle column prefixes/suffixes. For example, in
5977 `\begin{tabular}{>{$}l<{$}>{$}l<{$} >{$}l<{$}}`
5978 each cell will be interpreted as if it has a `$`
5979 before its content and a `$` after (math mode).
5980 + Handle komascript `\dedication` (#1845). It now adds a
5981 `dedication` field to metadata. It is up to the user to supply
5982 a template that uses this variable.
5983 + Support all `\textXX` commands, where XX = `rm`, `tt`, `up`, `md`,
5984 `sf`, `bf` (#3488). Spans with a class are used when there is
5985 nothing better.
5986 + Expand `\newenvironment` macros (#987).
5987 + Add support for LaTeX subfiles package (Marc Schreiber, #3530).
5988 + Better support for subfigure package (#3577).
5989 A figure with two subfigures turns into two pandoc
5990 figures; the subcaptions are used and the main caption
5991 ignored, unless there are no subcaptions.
5992 + Add support for `\vdots` (Marc Schreiber, #3607).
5993 + Add basic support for hyphenat package (Marc Schreiber, #3603).
5994 + Add basic `\textcolor` support (Marc Schreiber).
5995 + Add support for `tabularx` environment (Marc Schreiber, #3632).
5996 + Better handling of comments inside math environments (#3113).
5997 This solves a problem with commented out `\end{eqnarray}` inside
5998 an eqnarray (among other things).
5999 + Parse tikzpicture as raw verbatim environment if `raw_tex` extension
6000 is selected (#3692). Otherwise skip with a warning. This is better
6001 than trying to parse it as text!
6002 + Add `\colorbox` support (Marc Schreiber).
6003 + Set identifiers on Spans used for `\label`.
6004 + Have `\setmainlanguage` set `lang` in metadata.
6005 + Support etoolbox's `\ifstrequal`.
6006 + Support `plainbreak`, `fancybreak` et al from the memoir class
6007 (bucklereed, #3833).
6008 + Support `\let`. Also, fix regular macros so they're expanded at the
6009 point of use, and NOT also the point of definition. `\let` macros,
6010 by contrast, are expanded at the point of definition. Added an
6011 `ExpansionPoint` field to `Macro` to track this difference.
6012 + Support simple `\def` macros. Note that we still don't support
6013 macros with fancy parameter delimiters, like `\def\foo#1..#2{...}`.
6014 + Support `\chaptername`, `\partname`, `\abstractname`, etc. (#3559,
6015 obsoletes #3560).
6016 + Put content of `\ref`, `\label`, `\eqref` commands into `Span` with
6017 attributes, so they can be handled in filters (Marc Schreiber, #3639)
6018 + Add Support for `glossaries` and `acronym` package (Marc Schreiber,
6019 #3589). Acronyms are not resolved by the reader, but acronym and
6020 glossary information is put into attributes on Spans so that they
6021 can be processed in filters.
6022 + Use `Link` instead of `Span` for `\ref`. This makes more sense
6023 semantically and avoids unnecessary `Span [Link]` nestings when
6024 references are resolved.
6025 + Rudimentary support for `\hyperlink`.
6026 + Support `\textquoteleft|right`, `\textquotedblleft|right` (#3849).
6027 + Support `\lq`, `\rq`.
6028 + Implement `\newtoggle`, `\iftoggle`, `\toggletrue|false` from etoolbox
6029 (#3853).
6030 + Support `\RN` and `\Rn`, from biblatex (bucklereed, #3854).
6031 + Improved support for `\hyperlink`, `\hypertarget` (#2549).
6032 + Support `\k` ogonek accent.
6033 + Improve handling of accents. Handle ogonek, and fall back correctly
6034 with forms like `\"{}`.
6035 + Better support for ogonek accents.
6036 + Support for `\faCheck` and `\faClose` (Marc Schreiber, #3727).
6037 + Support for `xspace` (Marc Schreiber, #3797).
6038 + Support `\setmainlanguage` or `\setdefaultlanguage` (polyglossia)
6039 and `\figurename`.
6040 + Better handling of `\part` in LaTeX (#1905). Now we parse chapters as
6041 level 0 headers, and parts as level -1 headers. After parsing, we
6042 check for the lowest header level, and if it's less than 1 we bump
6043 everything up so that 1 is the lowest header level. So `\part` will
6044 always produce a header; no command-line options are needed.
6045 + Add block version of `\textcolor` (Marc Schreiber).
6046 + `\textcolor` works as inline and block command (Marc Schreiber).
6047 + `\textcolor` will be parse as span at the beginning of a paragraph
6048 (Marc Schreiber).
6049 + Read polyglossia/babel `\text(LANG){...}` (bucklereed)
6050 + Improved handling of include files in LaTeX reader (#3971).
6051 Previously `\include` wouldn't work if the included file
6052 contained, e.g., a begin without a matching end.
6053 + Support `\expandafter` (#3983).
6054 + Handle `\DeclareRobustCommand` (#3983). Currently it's just treated
6055 as a synonym for `\newcommand`.
6056 + Handle `\lettrine` (Mauro Bieg).
6058 * Math improvements due to updates in texmath:
6060 + Improved handling of accents and upper/lower delimiters.
6061 + Support for output in GNU eqn format (used with *roff).
6062 + Allow `\boldsymbol` + a token without braces, and similarly
6063 with other styling commands.
6064 + Improve parsing of `\mathop` to allow multi-character operator names.
6065 + Add thin space after math operators when "faking it with
6066 unicode."
6068 * `walk` is now used instead of `bottomUp` in the `ToJSONFilter`
6069 instance for `a -> [a]` (pandoc-types). Note that behavior
6070 will be slightly different, since `bottomUp`'s treatment of
6071 a function `[a] -> [a]` is to apply it to each sublist of a
6072 list, while walk applies it only to maximal sublists.
6073 Usually the latter behavior is what is wanted, and the
6074 former can be simulated when needed. But there may be
6075 existing filters that need to be rewritten in light of the
6076 new behavior. Performance should be improved.
6078 * There are some changes to syntax highlighting due to revisions
6079 in the `skylighting` library:
6081 + Support for `powershell` has been added, and many syntax
6082 definitions have been updated.
6083 + Background colors have been added to the `kate` style.
6084 + The way highlighted code blocks are formatted in HTML has
6085 been changed (David Baynard), in ways that may require
6086 changes in hard-coded CSS affecting highlighting.
6087 (If you haven't included hard-coded highlighting CSS in
6088 your template, you needn't change anything.)
6091### API changes
6093 * New module `Text.Pandoc.Class` (Jesse Rosenthal, John MacFarlane).
6094 This contains definitions of the `PandocMonad` typeclass, the
6095 `PandocIO` and `PandocPure` monads, and associated functions.
6097 * Changed types of all writers and readers.
6099 + We now use `Text` instead of `String` in the interface (#3731).
6100 (We have not yet changed the internals of most readers to work
6101 with `Text`, but making this change in the API now opens up a
6102 path to doing that.)
6103 + The result is now of form `m a` with constraint `PandocMonad m`.
6104 Readers and writers can be combined to form monadic values which
6105 can be run using either `runIO` or `runPure`. If `runIO` is used,
6106 then both readers and writers will be able to do IO when needed
6107 (for include files, for example); if `runPure` is used,
6108 then the functions are pure and will not touch IO.
6109 + Where previously you used
6110 `writeRST def (readMarkdown def "[foo](url)")`, now you
6111 would use
6112 `runPure $ readMarkdown def (pack "[foo](url)") >>= writeRST def`.
6114 * New module `Text.Pandoc.Readers` (Albert Krewinkel). This
6115 contains reader helper functions formerly defined in the
6116 top-level `Text.Pandoc` module.
6118 + Changed `StringReader` -> `TextReader`.
6119 + `getReader` now returns a pair of a reader and
6120 `Extensions`, instead of building the extensions into the
6121 reader (#3659). The calling code must explicitly set
6122 `readerExtensions` using the `Extensions` returned. The
6123 point of the change is to make it possible for the calling
6124 code to determine what extensions are being used.
6126 * New module `Text.Pandoc.Writers` (Albert Krewinkel).
6127 This contains writer helper functions formerly defined in the
6128 top-level `Text.Pandoc` module.
6130 + Changed `StringWriter` -> `TextWriter`.
6131 + `getWriter` now retuns a pair of a reader and
6132 `Extensions`, instead of building the extensions into the
6133 reader (#3659). The calling code must explicitly set
6134 `readerExtensions` using the `Extensions` returned. The
6135 point of the change is to make it possible for the calling
6136 code to determine what extensions are being used.
6138 * New module `Text.Pandoc.Lua`, exporting `runLuaFilter` (Albert Krewinkel,
6139 #3514).
6141 * New module `Text.Pandoc.App`. This abstracts out the functionality
6142 of the command line program (`convertWithOpts`), so it can be reproduced
6143 e.g. in a desktop or web application. Instead of exiting, we throw errors
6144 (#3548), which are caught (leading to exit) in pandoc.hs, but allow other
6145 users of `Text.Pandoc.App` to recover. `pandoc.hs` is now a 2-liner.
6146 The module also exports some utility functions for parsing options
6147 and running filters.
6149 * New module `Text.Pandoc.Logging` (exported module) (#3392).
6150 This now contains the `Verbosity` definition previously in
6151 `Text.Pandoc.Options`, as well as a new `LogMessage` datatype that will
6152 eventually be used instead of raw strings for warnings. This will enable
6153 us, among other things, to provide machine-readable warnings if desired.
6154 Include ToJSON instance and showLogMessage. This gives us the possibility
6155 of both machine-readable and human-readable output for log messages.
6157 * New module `Text.Pandoc.BCP47`, with `getLang`, `Lang(..)`, `parseBCP47`.
6159 * New module `Text.Pandoc.Translations`, exporting `Term`,
6160 `Translations`, `readTranslations`.
6162 * New module `Text.Pandoc.Readers.LaTeX.Types', exporting `Macro`, `Tok`,
6163 `TokType`, `Line`, `Column`.
6165 * `Text.Pandoc.Error`: added many new constructors for `PandocError`.
6167 * Expose some previously private modules (#3260). These are often
6168 helpful to people writing their own reader or writer modules:
6170 + `Text.Pandoc.Writers.Shared`
6171 + `Text.Pandoc.Parsing`
6172 + `Text.Pandoc.Asciify`
6173 + `Text.Pandoc.Emoji`
6174 + `Text.Pandoc.ImageSize`
6175 + `Text.Pandoc.Highlighting`
6177 * New module `Text.Pandoc.Extensions` (Albert Krewinkel):
6178 Extension parsing and processing functions were defined in the top-level
6179 `Text.Pandoc` module. These functions are moved to the Extensions
6180 submodule as to enable reuse in other submodules.
6182 * Add `Ext_raw_attribute` constructor for `Extension`.
6184 * Add `Ext_fenced_divs` constructor for `Extension'.
6186 * Add `Ext_four_space_rule` constructor in `Extension`.
6188 * Add `Ext_gfm_auto_identifiers` constructor for `Extension`.
6190 * Add `Monoid` instance for `Extensions`.
6192 * Add `Text.Pandoc.Writers.Ms`, exporting `writeMs`.
6194 * Add `Text.Pandoc.Writers.JATS`, exporting `writeJATS`.
6196 * Add `Text.Pandoc.Writers.Muse`, exporting `writeMuse`.
6198 * Add `Text.Pandoc.Readers.Muse`, exporting `readMuse`.
6200 * Add `Text.Pandoc.Readers.TikiWiki`, exporting `readTikiWiki`.
6202 * Add `Text.Pandoc.Readers.Vimwiki`, exporting `readVimwiki`.
6204 * Add `Text.Pandoc.Readers.Creole`, exporting `readCreole`.
6206 * Export `setVerbosity` from `Text.Pandoc`.
6208 * `Text.Pandoc.Pretty`: Add `Eq` instance for `Doc`.
6210 * `Text.Pandoc.XML`: `toEntities`: changed type to `Text -> Text`.
6212 * `Text.Pandoc.UTF8`:
6214 + Export `fromText`, `fromTextLazy`, `toText`, `toTextLazy`.
6215 Define `toString`, `toStringLazy` in terms of them.
6216 + Add new functions parameterized on `Newline`: `writeFileWith`,
6217 `putStrWith`, `putStrLnWith`, `hPutStrWith`, `hPutStrLnWith`.
6219 * `Text.Pandoc.MediaBag`: removed `extractMediaBag`.
6221 * `Text.Pandoc.Highlighting`:
6223 + `highlighting` now returns an Either rather than Maybe.
6224 This allows us to display error information returned by the skylighting
6225 library. Display a warning if the highlighting library throws an error.
6226 + Add parameter for `SyntaxMap` to `highlight`.
6228 * `Text.Pandoc.Writers.Math`:
6230 + Export `defaultMathJaxURL`, `defaultKaTeXURL`. This will ensure that
6231 we only need to update these in one place.
6233 * `Text.Pandoc.SelfContained`:
6235 + Removed `WriterOptions` parameter from `makeSelfContained`.
6236 + Put `makeSelfContained` in PandocMonad instead of IO. This removes
6237 the need to pass MediaBag around and improves exceptions. It also
6238 opens up the possibility of using makeSelfContained purely.
6239 + Export `makeDataURI`.
6241 * `Text.Pandoc.ImageSize`:
6243 + Export `lengthToDim`, new function `scaleDimension`.
6244 + Export `inEm` from ImageSize (#3450).
6245 + Change `showFl` and `show` instance for `Dimension` so
6246 extra decimal places are omitted.
6247 + Added `Em` as a constructor of `Dimension`.
6248 + Add `WriterOptions` parameter to `imageSize` signature (Mauro Bieg).
6250 * `Text.Pandoc.Templates`:
6252 + Change type of `renderTemplate'`. Now it runs in `PandocMonad`
6253 and raises a proper `PandocTemplateError` if there are problems, rather
6254 than failing with uncatchable `error`.
6255 + Change signature of `getDefaultTemplate`. Now it runs in any instance
6256 of `PandocMonad`, and returns a `String` rather than an `Either` value.
6257 And it no longer takes a `datadir` parameter, since this can be
6258 retrieved from `CommonState`.
6260 * `Text.Pandoc.Options`:
6262 + Added `writerEpubSubdirectory` to `WriterOptions` (#3720).
6263 The EPUB writer now takes its EPUB subdirectory from this option.
6264 + In `WriterOptions`, rename `writerLaTeXEngine` to `writerPdfEngine`
6265 and `writerLaTeXArgs` to `writerPdfArgs` (Mauro Bieg, #3909).
6266 + Add `writerSyntaxMap` to `WriterOptions`.
6267 + Removed `writerEpubStylesheet` from `WriterOptions`.
6268 + Remove `writerUserDataDir` from `WriterOptions`. It is now carried
6269 in `CommonState` in `PandocMonad` instances. (And thus it can be used
6270 by readers too.)
6271 + Changed `writerEpubMetadata` to a `Maybe String`.
6272 + Removed `readerApplyMacros` from `ReaderOptions`. Now we just check
6273 the `latex_macros` reader extension.
6274 + FromJSON/ToJSON instances for `ReaderOptions`.
6275 + In `HTMLMathMethod`, the `KaTeX` contsructor now takes only
6276 one string (for the KaTeX base URL), rather than two.
6277 + Removed `writerSourceURL` from `WriterOptions`. We now use
6278 `stSourceURL` in `CommonState`, which is set by `setInputFiles`.
6280 * `Text.Pandoc.Shared`:
6282 + `tabFilter` now takes a `Text`, not `String`.
6283 + `openURL`: Changed type from an Either. Now it will just raise
6284 an exception to be trapped later.
6285 + Remove `normalizeSpaces` (#1530).
6286 + Remove `warn`. (Use `report` from `Text.Pandoc.Class` instead.)
6287 + Export a new function `crFilter`.
6288 + Add `eastAsianLineBreakFilter` (previously in Markdown reader).
6289 + Provide custom `isURI` that rejects unknown schemes.
6290 (Albert Krewinkel, #2713). We also export the set of known
6291 `schemes`. The new function replaces the function of the same name
6292 from `Network.URI`, as the latter did not check whether a scheme is
6293 well-known. All official IANA schemes (as of 2017-05-22) are
6294 included in the set of known schemes. The four non-official schemes
6295 `doi`, `isbn`, `javascript`, and `pmid` are kept.
6296 + Remove `err`.
6297 + Remove `readDataFile`, `readDefaultDataFile`, `getReferenceDocx`,
6298 `getReferenceODT`. These now live in `Text.Pandoc.Class`,
6299 where they are defined in terms of `PandocMonad`
6300 primitives and have different signatures.
6301 + Remove `openURL`. Use `openURL` from `Text.Pandoc.Class` instead.
6302 + Add `underlineSpan`.
6304 * `Text.Pandoc.Readers.HTML`: export new `NamedTag` class.
6306 * `Text.Pandoc.Readers.Markdown`: remove `readDocxWithWarnings`.
6307 With the new API one can simply use `getLog` after running
6308 the reader.
6310 * `Text.Pandoc.Readers.LaTeX`: Changed types for `rawLaTeXInline`
6311 and `rawLaTeXBlock`. (Both now return a `String`, and they are
6312 polymorphic in state.)
6315### Bug fixes and under-the-hood improvements
6317 * TEI writer: Added identifiers on `<div>` elements.
6319 * DokuWiki reader: Better handling for code block in list item (#3824).
6321 * Custom writer: Remove old preprocesesor conditionals (Albert Krewinkel).
6323 * ZimWiki writer: Removed internal formatting from note and table cells,
6324 because ZimWiki does not support it (Alex Ivkin, #3446).
6326 * MediaWiki writer:
6328 + Updated list of syntax highlighting languages (#3461).
6329 Now `r` gets you `<source>` rather than `<code>` (among others).
6330 + Add display attribute on `<math>` tags (#3452). This allows display
6331 math to be rendered properly.
6332 + Remove newline before `</ref>` (#2652).
6333 + Don't softbreak lines inside list items (#3531).
6335 * Org writer:
6337 + Reduce to two spaces after bullets (#3417, Albert Krewinkel).
6338 + Add unit tests (Alexander Krotov).
6339 + Stop using raw HTML to wrap divs (Albert Krewinkel, #3771).
6340 + Do not strip `#` from Org anchor links (Alexander Krotov).
6342 * CommonMark writer:
6344 + Avoid excess blank lines at end of output.
6345 + Prefer pipe tables to HTML tables even if it means losing relative
6346 column width information (#3734).
6347 + Support table, strikethrough extensions, when enabled (as with gfm).
6348 Note that we bypass the commonmark writer from cmark and construct our
6349 own pipe tables, with better results.
6350 + Properly support `--wrap=none`.
6351 + Use smallcaps class for `SmallCaps` (#1592).
6352 + Omit "fig:" prefix in image titles. This is used internally to
6353 indicate internal figures.
6355 * RST writer:
6357 + Properly handle table captions.
6358 + Don't wrap lines in in definition list terms. Wrapping is not allowed.
6359 + Implemented `+/-smart` and improved escaping with `+smart`.
6360 + Add empty comments when needed to avoid including a blockquote
6361 in the indented content of a preceding block (#3675).
6362 + Improve grid table output, fix bug with empty rows (#3516).
6363 Uses the new `gridTable` in Writers.Shared, which is here
6364 improved to better handle 0-width cells.
6365 + Remove space at beginning/end of RST code span (#3496). Otherwise
6366 we get invalid RST. There seems to be no way to escape the space.
6367 + Add header anchors when header has non-standard id (#3937).
6368 + Correctly handle inline code containing backticks, using a `:literal:`
6369 role (#3974).
6370 + Don't backslash-escape word-internal punctuation (#3978).
6372 * Markdown writer:
6374 + Don't include variables in metadata blocks. Previously variables set
6375 on the command line were included in e.g. YAML metadata, contrary to
6376 documentation and intentions.
6377 + Improved escaping with `+smart`.
6378 + Fixed grid tables embedded in grid tables (#2834).
6379 + Use span with class 'smallcaps' for SmallCaps, instead of a style
6380 attribute as before (#1592).
6381 + Escape initial `%` in a paragraph if the `pandoc_title_blocks`
6382 extension is enabled (#3454). Otherwise in a document starting with
6383 a literal `%` the first line is wrongly interpreted as a title.
6384 + Fixed false ordered lists in YAML metadata (#3492, #1685). Now we
6385 properly escape things that would otherwise start ordered lists,
6386 such as
6388 ---
6389 title: 1. inline
6390 ...
6391 + Better handling of tables with empty columns (#3337). We now
6392 calculate the number of columns based on the longest row (or the
6393 length of aligns or widths).
6394 + Escape unordered list markers at beginning of paragraph (#3497), to
6395 avoid false interpretation as a list.
6396 + Escape `|` appropriately.
6397 + Ensure space before list at top level (#3487).
6398 + Avoid spurious blanklines at end of document after tables and list,
6399 for example.
6400 + Fixed bugs in simple/multiline list output (#3384).
6401 Previously we got overlong lists with `--wrap=none`. This is fixed.
6402 Previously a multiline list could become a simple list (and would
6403 always become one with `--wrap=none`).
6404 + Don't emit a simple table if `simple_tables` disabled (#3529).
6405 + Case-insensitive reference links (David A Roberts, #3616).
6406 Ensure that we do not generate reference links whose labels differ only
6407 by case. Also allow implicit reference links when the link
6408 text and label are identical up to case.
6409 + Put space before reference link definitions (Mauro Bieg, #3630).
6410 + Better escaping for links (David A. Roberts, #3619). Previously the
6411 Markdown writer would sometimes create links where there were none
6412 in the source. This is now avoided by selectively escaping bracket
6413 characters when they occur in a place where a link might be created.
6414 + Added missing `\n` (David A. Roberts, #3647).
6415 + Fixed duplicated reference links with `--reference-links`
6416 and `--reference-location=section` (#3674). Also ensure that there
6417 are no empty link references `[]`.
6418 + Avoid inline surround-marking with empty content (#3715).
6419 E.g. we don't want `<strong></strong>` to become `****`.
6420 Similarly for emphasis, super/subscript, strikeout.
6421 + Don't allow soft break in header (#3736).
6422 + Make sure `plain`, `markdown_github`, etc. work for raw.
6423 Previously only `markdown` worked. Note: currently a raw block labeled
6424 `markdown_github` will be printed for any `markdown` format.
6425 + Ensure that `+` and `-` are escaped properly so they don't cause
6426 spurious lists (#3773). Previously they were only
6427 if succeeded by a space, not if they were at end of line.
6428 + Use pipe tables if `raw_html` disabled and `pipe_tables` enabled,
6429 even if the table has relative width information (#3734).
6430 + Markdown writer: don't crash on `Str ""`.
6431 + Make `Span` with null attribute transparent. That is, we don't use
6432 brackets or `<span>` tags to mark spans when there are no attributes;
6433 we simply output the contents.
6434 + Escape pipe characters when `pipe_tables` enabled (#3887).
6435 + Better escaping of `<` and `>`. If `all_symbols_escapable` is set,
6436 we backslash escape these. Otherwise we use entities as before.
6437 + When writing plain, don't use `&nbsp;` to separate list and indented
6438 code. There's no need for it in this context, since this isn't to be
6439 interpreted using Markdown rules.
6440 + Preserve classes in JS obfuscated links (Timm Albers, #2989).
6441 HTML links containing classes originally now preserve them when using
6442 javascript email obfuscation.
6443 + Render `SmallCaps` as a native span when `native_spans` are enabled.
6444 + Always write attributes with `bracketed_spans` (d-dorazio).
6446 * Man writer:
6448 + Fix handling of nested font commands (#3568). Previously pandoc emitted
6449 incorrect markup for bold + italic, for example, or bold + code.
6450 + Avoid error for definition lists with no definitions (#3832).
6452 * DocBook writer:
6454 + Fix internal links with `writerIdentifierPrefix opt`
6455 (#3397, Mauro Bieg).
6457 * Docx writer:
6459 + Don't include bookmarks on headers unless non-null id (#3476).
6460 + Support 9 levels of headers (#1642).
6461 + Allow 9 list levels (#3519).
6462 + Don't take `distArchive` from datadir (#3322). The docx writer takes
6463 components from the distribution's version of `reference.docx` when it
6464 can't find them in a user's custom `reference.docx`. Previously, we
6465 allowed a `reference.docx` in the data directory (e.g. `~/.pandoc`)
6466 to be used as the distribution's reference.docx. This led to a
6467 bizarre situation where pandoc would produce a good docx using
6468 `--template ~/.pandoc/ref.docx`, but if `ref.docx` were moved to
6469 `~/.pandoc/reference.docx`, it would then produce a corrupted docx.
6470 + Fixed handling of soft hyphen (0173) (#3691).
6471 + Better handling of keywords (#3719).
6472 + Cleaner code for handling dir and style attributes for `Div`.
6473 + Use `Set` for dynamic styles to avoid duplicates.
6474 + Removed redundant element from data/docx/word/numbering.xml.
6475 The elements we need are generated when the document is
6476 compiled; this didn't do anything.
6477 + Activate `evenAndOddHeaders` from reference docx (#3901,
6478 Augustín Martín Barbero).
6480 * ODT/OpenDocument writer:
6482 + Calculate aspect ratio for percentage-sized images (Mauro Bieg, #3239).
6483 + Use more widely available bullet characters (#1400). The old
6484 characters weren't available in some font sets. These seem to work
6485 well on Windows and Linux versions of LibreOffice.
6486 + Wider labels for lists (#2421). This avoids overly narrow labels for
6487 ordered lists with `()` delimiters. However, arguably it creates
6488 overly wide labels for bullets. Also, lists now start flush with
6489 the margin, rather than indented.
6490 + Fixed dropped elements in some ordered lists (#2434).
6492 * FB2 writer:
6494 + Don't render `RawBlock` as code.
6495 + Don't fail with an error on interior headers (e.g. in list) (#3750).
6496 Instead, omit them with an INFO message.
6497 + Add support for "lang" metadata (Alexander Krotov, #3625).
6498 + Format `LineBlock` as poem (Alexander Krotov). Previously writer
6499 produced one paragraph with `<empty-line/>` elements, which are not
6500 allowed inside `<p>` according to FB2 schema.
6501 + Replace `concatMap` with `cMap` (Alexander Krotov).
6502 + Write FB2 lists without nesting blocks inside `<p>` (Alexander
6503 Krotov, #4004)
6505 * HTML writer:
6507 + Make sure `html4`, `html5` formats work for raw blocks/inlines.
6508 + Render raw inline environments when `--mathjax` used (#3816).
6509 We previously did this only with raw blocks, on the assumption
6510 that math environments would always be raw blocks. This has changed
6511 since we now parse them as inline environments.
6512 + Ensure we don't get two style attributes for width and height.
6513 + Report when not rendering raw inline/block.
6514 + Issue warning if no title specified and template used (#3473).
6515 + Info message if `lang` is unspecified (#3486).
6516 + Removed unused parameter in `dimensionsToAttributeList`.
6517 + Avoid two class attributes when adding `uri` class (#3716).
6518 + Fix internal links with `writerIdentifierPrefix opt` (#3397, Mauro
6519 Bieg).
6520 + Use revealjs's math plugin for mathjax (#3743). This is a thin
6521 wrapper around mathjax that makes math look better on revealjs.
6522 + Slidy: use h1 for all slides, even if they were originally
6523 level 2 headers (#3566). Otherwise the built-in table of contents
6524 in Slidy breaks.
6526 * LaTeX writer:
6528 + Don't render LaTeX images with data: URIs (#3636). Note that
6529 `--extract-media` can be used when the input contains data: URIs.
6530 + Make highlighted code blocks work in footnotes (Timm Albers).
6531 + Don't use figure inside table cell (#3836).
6532 + Use proper code for list enumerators (#3891). This should fix problems
6533 with lists that don't use arabic numerals.
6534 + Always add hypertarget when there's a non-empty identifier (#2719).
6535 Previously the hypertargets were only added when there was actually
6536 a link to that identifier.
6537 + Use `%` after hypertarget before code block.
6538 + Add `\leavevmode` before hypertarget at start of paragraph (#2704,
6539 fixes formatting problems in beamer citations).
6540 + Don't use `lstinline` in `\item[..]` (#645). If you do, the contents
6541 of item disappear or are misplaced. Use `\texttt` instead.
6542 + Fix problem with escaping in `lstinline` (#1629). Previously the
6543 LaTeX writer created invalid LaTeX when `--listings` was specified and
6544 a code span occurred inside emphasis or another construction.
6545 + Fix error with line breaks after empty content (#2874). LaTeX
6546 requires something before a line break, so we insert a `~` if no
6547 printable content has yet been emitted.
6548 + Use BCP47 parser.
6549 + Fixed detection of otherlangs (#3770). We weren't recursing into
6550 inline contexts.
6551 + Handle language in inline code with `--listings` (#3422).
6552 + Write euro symbol directly in LaTeX (Andrew Dunning, #3801).
6553 The textcomp package allows pdfLaTeX to parse `€` directly, making the
6554 `\euro` command unneeded.
6555 + Fixed footnotes in table captions (#2378). Note that if the table has
6556 a first page header and a continuation page header, the notes will
6557 appear only on the first occurrence of the header.
6558 + In `writeBeamer` output, allow hyperlinks to frames (#3220).
6559 Previously you could link to a header above or below slide level but
6560 not *to* slide level. This commit changes that. Hypertargets are
6561 inserted inside frame titles; technically the reference is to just
6562 after the title, but in normal use (where slides are viewed full
6563 screen in a slide show), this does not matter.
6564 + Remove `\strut` at beginning of table cells (#3436). This fixes a
6565 problem with alignment of lists in table cells. The `\strut` at the
6566 end seems to be enough to avoid the too-close spacing that motivated
6567 addition of the strut in #1573.
6568 + Add partial siunitx Support (Marc Schreiber, #3588).
6570 * ConTeXt writer:
6572 + Refactored to use BCP47 module.
6573 + Remove unnecessary `$` (Alexander Krotov, #3482).
6574 + Use header identifiers for chapters (#3968).
6576 * EPUB writer:
6578 + `title_page.xhtml` is now put in `text/`.
6579 + Don't strip formatting in TOC (#1611).
6581 * Textile reader:
6583 + Fix bug for certain links in table cells (#3667).
6584 + Allow 'pre' code in list item (#3916).
6586 * HTML reader:
6588 + Added warnings for ignored material (#3392).
6589 + Better sanity checks to avoid parsing unintended things as
6590 raw HTML in the Markdown reader (#3257).
6591 + Revise treatment of `li` with `id` attribute (#3596). Previously we
6592 always added an empty div before the list item, but this created
6593 problems with spacing in tight lists. Now we do this: If the list
6594 item contents begin with a `Plain` block, we modify the `Plain`
6595 block by adding a `Span` around its contents. Otherwise, we add a
6596 `Div` around the contents of the list item (instead of adding an
6597 empty `Div` to the beginning, as before).
6598 + Add `details` tag to list of block tags (#3694).
6599 + Removed `button` from block tag list (#3717). It is already in the
6600 `eitherBlockOrInlineTag` list, and should be both places.
6601 + Use `Set`s instead of lists for block tag lookup.
6602 + Rewrote to use `Text` throughout. Effect on memory usage is modest
6603 (< 10%).
6604 + Use the lang value of `<html>` to set the lang meta value (bucklereed,
6605 #3765).
6606 + Ensure that paragraphs are closed properly when the parent block
6607 element closes, even without `</p>` (#3794).
6608 + Parse `<figure>` and `<figcaption>` (Mauro Bieg, #3813).
6609 + Parse `<main>` like `<div role=main>` (bucklereed, #3791).
6610 `<main>` closes `<p>` and behaves like a block element generally
6611 + Support column alignments (#1881). These can be set either
6612 with a `width` attribute or with `text-width` in a `style` attribute.
6613 + Modified state type to be an instance of `HasLogMessages`, so
6614 `registerHeader` can issue warnings.
6615 + `</td>` or `</th>` should close any open block tag (#3991).
6616 + `<td>` should close an open `<th>` or `<td>`.
6617 + `htmlTag` improvements (#3989). We previously failed on cases
6618 where an attribute contained a `>` character. This patch fixes the
6619 bug, which especially affects raw HTML in Markdown.
6621 * Txt2Tags reader:
6623 + Newline is not indentation (Alexander Krotov).
6625 * MediaWiki reader:
6627 + Allow extra hyphens after `|-` in tables (#2649).
6628 + Allow blank line after table start (#2649).
6629 + Fixed more table issues (#2649).
6630 + Ensure that list starts begin at left margin (#2606). Including when
6631 they're in tables or other list items.
6632 + Make smart double quotes depend on `smart` extension (#3585).
6633 + Don't do curly quotes inside `<tt>` contexts (#3585). Even if `+smart`.
6634 + Modified state type to be an instance of `HasLogMessages`, so
6635 `registerHeader` can issue warnings.
6637 * TWiki reader (Alexander Krotov):
6639 + Remove unnecessary `$` (#3597).
6640 + Simplify `linkText` (#3605).
6642 * EPUB reader:
6644 + Minor refactoring, avoiding explicit MediaBag handling.
6645 This all works behind the scenes in CommonState plumbing.
6647 * Docx reader:
6649 + Don't drop smartTag contents (#2242).
6650 + Handle local namespace declarations (#3365). Previously we didn't
6651 recognize math, for example, when the xmlns declaration occurred on
6652 the element and not the root.
6653 + More efficient trimSps (#1530). Replacing `trimLineBreaks`. This
6654 does the work of `normalizeSpaces` as well, so we avoid the need for
6655 that function here.
6656 + Avoid 0-level headers (Jesse Rosenthal, #3830). We used to parse
6657 paragraphs styled with "HeadingN" as "nth-level header." But if a
6658 document has a custom style named "Heading0", this will produce a
6659 0-level header, which shouldn't exist. We only parse this style
6660 if N>0. Otherwise we treat it as a normal style name, and
6661 follow its dependencies, if any.
6662 + Add tests for avoiding zero-level header (Jesse Rosenthal).
6664 * ODT reader:
6666 + Replaced `collectRights` with Rights from `Data.Either`.
6667 + Remove dead code (Albert Krewinkel).
6669 * Org reader (Albert Krewinkel, unless noted).
6671 + Don't allow tables inside list items (John MacFarlane, #3499).
6672 + Disallow tables on list marker lines (#3499).
6673 + Convert markup at beginning of footnotes (John MacFarlane, #3576).
6674 + Allow emphasized text to be followed by `[` (#3577).
6675 + Handle line numbering switch for src blocks.
6676 The line-numbering switch that can be given to source blocks (`-n` with
6677 an start number as an optional parameter) is parsed and translated to a
6678 class/key-value combination used by highlighting and other readers and
6679 writers.
6680 + Stop adding rundoc prefix to src params. Source block parameter names
6681 are no longer prefixed with `rundoc`. This was intended to simplify
6682 working with the rundoc project, a babel runner. However, the rundoc
6683 project is unmaintained, and adding those markers is not the reader's
6684 job anyway. The original language that is specified for a source
6685 element is now retained as the `data-org-language` attribute and only
6686 added if it differs from the translated language.
6687 + Allow multi-word arguments to src block params (#3477). The reader now
6688 correctly parses src block parameter list even if parameter arguments
6689 contain multiple words.
6690 + Avoid creating `nullMeta` by applying `setMeta` directly
6691 (Alexander Krotov).
6692 + Replace `sequence . map` with `mapM`.
6693 + Fix smart parsing behavior. Parsing of smart quotes and special
6694 characters can either be enabled via the `smart` language extension or
6695 the `'` and `-` export options. Smart parsing is active if either the
6696 extension or export option is enabled. Only smart parsing of special
6697 characters (like ellipses and en and em dashes) is enabled by default,
6698 while smart quotes are disabled. Previously, all smart parsing was
6699 disabled unless the language extension was enabled.
6700 + Subject full doc tree to headline transformations (Albert Krewinkel,
6701 #3695). Emacs parses org documents into a tree structure, which is
6702 then post-processed during exporting. The reader is changed to do the
6703 same, turning the document into a single tree of headlines starting
6704 at level 0.
6705 + Fix cite parsing behaviour (Herwig Stuetz). Until now, `org-ref`
6706 cite keys included special characters also at the end. This caused
6707 problems when citations occur right before colons or at the end of
6708 a sentence. With this change, all non alphanumeric characters at
6709 the end of a cite key are ignored. This also adds `,` to the list
6710 of special characters that are legal in cite keys to better mirror
6711 the behaviour of org-export.
6712 + Fix module names in haddock comments. Copy-pasting had lead to
6713 haddock module descriptions containing the wrong module names.
6714 + Recognize babel result blocks with attributes (#3706). Babel
6715 result blocks can have block attributes like captions and names.
6716 Result blocks with attributes were not recognized and were parsed
6717 as normal blocks without attributes.
6718 + Include tags in headlines. The Emacs default is to include tags in the
6719 headline when exporting. Instead of just empty spans, which contain the
6720 tag name as attribute, tags are rendered as small caps and wrapped in
6721 those spans. Non-breaking spaces serve as separators for multiple tags.
6722 + Respect export option for tags (#3713). Tags are appended to
6723 headlines by default, but will be omitted when the `tags` export option
6724 is set to nil.
6725 + Use `tag-name` attribute instead of `data-tag-name`.
6726 + Use `org-language` attribute rather than `data-org-language`.
6727 + Modified state type to be an instance of `HasLogMessages`, so
6728 `registerHeader` can issue warnings.
6729 + End footnotes after two blank lines. Footnotes can not only be
6730 terminated by the start of a new footnote or a header, but also by two
6731 consecutive blank lines.
6732 + Update emphasis border chars (#3933). The org reader was updated to
6733 match current org-mode behavior: the set of characters which are
6734 acceptable to occur as the first or last character in an org emphasis
6735 have been changed and now allows all non-whitespace chars at the
6736 inner border of emphasized text (see `org-emphasis-regexp-components`).
6738 * RST reader:
6740 + Fixed small bug in list parsing (#3432). Previously the parser didn't
6741 handle properly this case:
6743 * - a
6744 - b
6745 * - c
6746 - d
6747 + Handle multiline cells in simple tables (#1166).
6748 + Parse list table directive (Keiichiro Shikano, #3432).
6749 + Make use of `anyLineNewline` (Alexander Krotov, #3686).
6750 + Use `anyLineNewline` in `rawListItem` (Alexander Krotov, #3702).
6751 + Reorganize block parsers for ~20% faster parsing.
6752 + Fixed `..include::` directive (#3880).
6753 + Handle blank lines correctly in line blocks (Alexander Krotov, #3881).
6754 Previously pandoc would sometimes combine two line blocks separated
6755 by blanks, and ignore trailing blank lines within the line block.
6756 + Fix indirect hyperlink targets (#512).
6758 * Markdown reader:
6760 + Allow attributes in reference links to start on next line (#3674).
6761 + Parse YAML metadata in a context that sees footnotes defined in
6762 the body of the document (#1279).
6763 + When splitting pipe table cells, skip tex math (#3481).
6764 You might have a `|` character inside math. (Or for that matter
6765 something that the parser might mistake for raw HTML.)
6766 + Treat span with class `smallcaps` as SmallCaps.
6767 This allows users to specify small caps in Markdown this way:
6768 `[my text]{.smallcaps}` (#1592).
6769 + Fixed internal header links (#2397).
6770 This patch also adds `shortcut_reference_links` to the list
6771 of mmd extensions.
6772 + Treat certain environments as inline
6773 when they occur without space surrounding them (#3309, #2171).
6774 E.g. equation, math. This avoids incorrect vertical space
6775 around equations.
6776 + Optimized `nonindentSpaces`. Makes the benchmark go from 40 to 36 ms.
6777 + Allow latex macro definitions indented 1-3 spaces.
6778 Previously they only worked if nonindented.
6779 + Improved parsing of indented raw HTML blocks (#1841).
6780 Previously we inadvertently interpreted indented HTML as
6781 code blocks. This was a regression. We now seek to determine the
6782 indentation level of the contents of an HTML block, and (optionally)
6783 skip that much indentation. As a side effect, indentation may be
6784 stripped off of raw HTML blocks, if `markdown_in_html_blocks` is
6785 used. This is better than having things interpreted as indented
6786 code blocks.
6787 + Fixed smart quotes after emphasis (#2228). E.g. in `*foo*'s 'foo'`.
6788 + Warn for notes defined but not used (#1718).
6789 + Use `anyLineNewline` (Alexander Krotov).
6790 + Interpret YAML metadata as Inlines when possible (#3755). If
6791 the metadata field is all on one line, we try to interpret it as
6792 Inlines, and only try parsing as Blocks if that fails. If it
6793 extends over one line (including possibly the `|` or `>` character
6794 signaling an indented block), then we parse as Blocks. This was
6795 motivated by some German users finding that `date: '22. Juin 2017'`
6796 got parsed as an ordered list.
6797 + Fixed spurious parsing as citation as reference def (#3840).
6798 We now disallow reference keys starting with `@` if the
6799 `citations` extension is enabled.
6800 + Parse `-@roe` as suppress-author citation (pandoc-citeproc#237).
6801 Previously only `[-@roe]` (with brackets) was recognized as
6802 suppress-author, and `-@roe` was treated the same as `@roe`.
6803 + Fixed parsing of fenced code after list when there is no intervening
6804 blank line (#3733).
6805 + Allow raw latex commands starting with `\start` (#3558). Previously
6806 these weren't allowed because they were interpreted as starting
6807 ConTeXt environments, even without a corresponding `\stop`...
6808 + Added `inlines`, `inlines1`.
6809 + Require nonempty alt text for `implicit_figures` (#2844).
6810 A figure with an empty caption doesn't make sense.
6811 + Removed texmath macro material; now all this is handled
6812 in the LaTeX reader functions.
6813 + Fixed bug with indented code following raw LaTeX (#3947).
6815 * LaTeX reader:
6817 + Rewrote LaTeX reader with proper tokenization (#1390,
6818 #2118, #3236, #3779, #934, #982). This rewrite is primarily
6819 motivated by the need to get macros working properly. A side benefit
6820 is that the reader is significantly faster. We now tokenize the
6821 input text, then parse the token stream. Macros modify the token
6822 stream, so they should now be effective in any context, including
6823 math. Thus, we no longer need the clunky macro processing
6824 capacities of texmath.
6825 + Parse `\,` to `\8198` (six-per-em space) (Henri Werth).
6826 + Allow `\newcommand\foo{blah}` without braces.
6827 + Support `\lstinputlisting` (#2116).
6828 + Issue warnings when skipping unknown latex commands (#3392).
6829 + Include contents of `\parbox`.
6830 + Allow `\hspace` and `\vspace` to count as raw block or inline.
6831 Previously we would refuse to parse anything as raw inline if
6832 it was in the `blockCommands` list. Now we allow exceptions
6833 if they're listed under ignoreInlines in inlineCommands.
6834 This should make it easier e.g. to include an `\hspace`
6835 between two side-by-side raw LaTeX tables.
6836 + Don't drop contents of `\hypertarget`.
6837 + Handle spaces before `\cite` arguments.
6838 + Allow newpage, clearpage, pagebreak in inline contexts as well as
6839 block contexts (#3494).
6840 + Treat `{{xxx}}` the same as `{xxx}` (#2115).
6841 + Use `pMacroDefinition` in macro (for more direct parsing).
6842 Note that this means that `macro` will now parse one
6843 macro at a time, rather than parsing a whole group together.
6844 + Fixed failures on `\ref{}`, `\label{}` with `+raw_tex`. Now these
6845 commands are parsed as raw if `+raw_tex`; otherwise, their argument
6846 is parsed as a bracketed string.
6847 + Don't crash on empty `enumerate` environment (#3707).
6848 + Handle escaped `&` inside table cell (#3708).
6849 + Handle block structure inside table cells (#3709). `minipage` is no
6850 longer required.
6851 + Handle some width specifiers on table columns (#3709). Currently
6852 we only handle the form `0.9\linewidth`. Anything else would have
6853 to be converted to a percentage, using some kind arbitrary assumptions
6854 about line widths.
6855 + Make sure `\write18` is parsed as raw LaTeX. The change is in the
6856 LaTeX reader's treatment of raw commands, but it also affects the
6857 Markdown reader.
6858 + Fixed regression with starred environment names (#3803).
6859 + Handle optional args in raw `\titleformat` (#3804).
6860 + Improved heuristic for raw block/inline. An unknown command at the
6861 beginning of the line that could be either block or inline is
6862 treated as block if we have a sequence of block commands followed by
6863 a newline or a `\startXXX` command (which might start a raw ConTeXt
6864 environment).
6865 + Don't remove macro definitions from the output, even if
6866 `Ext_latex_macros` is set, so that macros will be applied.
6867 Since they're only applied to math in Markdown, removing the macros
6868 can have bad effects. Even for math macros, keeping them should be
6869 harmless.
6870 + Removed `macro`. It is no longer necessary, since the
6871 `rawLaTeXBlock` parser will parse macro definitions. This also avoids
6872 the need for a separate `latexMacro` parser in the Markdown reader.
6873 + Use `label` instead of `data-label` for label in caption (#3639).
6874 + Fixed space after `\figurename` etc.
6875 + Resolve references to section numbers.
6876 + Fix `\let\a=0` case, with single character token.
6877 + Allow `@` as a letter in control sequences. `@` is commonly used
6878 in macros using `\makeatletter`. Ideally we'd make the tokenizer
6879 sensitive to `\makeatletter` and `\makeatother`, but until then this
6880 seems a good change.
6881 + Track header numbers and correlate with labels.
6882 + Allow `]` inside group in option brackets (#3857).
6883 + lstinline with braces can be used (verb cannot be used with braces)
6884 (Marc Schreiber, #3535).
6885 + Fix keyval function: pandoc did not parse options in braces correctly
6886 (Marc Schreiber, #3642).
6887 + When parsing raw LaTeX commands, include trailing space (#1773).
6888 Otherwise things like `\noindent foo` break and turn into
6889 `\noindentfoo`. Affects `-f latex+raw_tex` and `-f markdown` (and other
6890 formats that allow `raw_tex`).
6891 + Don't treat "..." as Quoted (#3958). This caused quotes to be omitted in
6892 `\texttt` contexts.
6893 + Add tests for existing `\includegraphics` behaviour (Ben Firshman).
6894 + Allow space before `=` in bracketd options (Ben Firshman).
6895 + Be more forgiving in parsing command options. This was needed, for
6896 example, to make some minted options work.
6897 + Strip off quotes in `\include` filenames.
6899 * Added `Text.Pandoc.CSV`, simple (unexported) CSV parser.
6901 * `Text.Pandoc.PDF`:
6903 + Got `--resource-path` working with PDF output (#852).
6904 + Fetch images when generating PDF via context (#3380).
6905 To do this, we create the temp directory as a subdirectory
6906 of the working directory. Since context mk IV by default looks
6907 for images in the parent directory, this works.
6908 + Use `report` instead of `warn`, make it sensitive to verbosity settings.
6909 + Use `fillMediaBag` and `extractMedia` to extract media to temp dir.
6910 This reduces code duplication.
6911 + `html2pdf`: use stdin instead of intermediate HTML file
6912 + Removed useless `TEXINPUTS` stuff for `context2pdf`. mkiv context
6913 doesn't use `TEXINPUTS`.
6915 * `Text.Pandoc.Pretty`:
6917 + Simplified definition of `realLength`.
6918 + Don't error for blocks of size < 1. Instead, resize to 1 (see #1785).
6920 * `Text.Pandoc.MIME`:
6922 + Use `application/javascript` (not `application/x-javascript`).
6923 + Added `emf` to mimeTypes with type `application/x-msmetafile` (#1713).
6925 * `Text.Pandoc.ImageSize`:
6927 + Improve SVG image size code (Marc Schreiber, #3580).
6928 + Make `imageSize` recognize basic SVG dimensions (Mauro Bieg, #3462).
6930 * Use `Control.Monad.State.Strict` throughout. This gives 20-30% speedup
6931 and reduction of memory usage in most of the writers.
6933 * Use `foldrWithKey` instead of deprecated `foldWithKey`.
6935 * `Text.Pandoc.SelfContained`:
6937 + Fixed problem with embedded fonts (#3629).
6938 + Refactored getData from `getDataURI` in `SelfContained`.
6939 + Don't use data URIs for script or style (#3423). Instead, just use
6940 script or style tags with the content inside. The old method with
6941 data URIs prevents certain optimizations outside pandoc. Exception:
6942 data URIs are still used when a script contains `</script>` or a
6943 style contains `</`.
6944 + SelfContained: Handle URL inside material retrieved from a URL
6945 (#3629). This can happen e.g. with an @import of a google web font.
6946 (What is imported is some CSS which contains an url reference
6947 to the font itself.) Also, allow unescaped pipe (|) in URL.
6948 + Load resources from `data-src` (needed for lazy loading in
6949 reveal.js slide shows).
6950 + Handle `data-background-image` attribute on section (#3979).
6952 * `Text.Pandoc.Parsing`:
6954 + Added `indentWith` (Alexander Krotov, #3687).
6955 + Added `stateCitations` to `ParserState`.
6956 + Removed `stateChapters` from `ParserState`.
6957 + In `ParserState`, make `stateNotes'` a Map, add `stateNoteRefs`.
6958 + Added `gobbleSpaces` and `gobbleAtMostSpaces`.
6959 + Adjusted type of `insertIncludedFile` so it can be used with token
6960 parser.
6961 + Replace old texmath macro stuff from Parsing. Use Macro from
6962 Text.Pandoc.Readers.LaTeX.Types instead.
6963 + Export `insertIncludedFile`.
6964 + Added `HasLogMessages`, `logMessage`, `reportLogMessages` (#3447).
6965 + Replace partial with total function (Albert Krewinkel).
6966 + Introduce `HasIncludeFiles` type class (Albert Krewinkel). The
6967 `insertIncludeFile` function is generalized to work with all parser
6968 states which are instances of that class.
6969 + Add `insertIncludedFilesF` which returns F blocks (Albert Krewinkel).
6970 The `insertIncludeFiles` function was generalized and renamed
6971 to `insertIncludedFiles'`; the specialized versions are based on that.
6972 + `many1Till`: Check for the end condition before parsing (Herwig
6973 Stuetz). By not checking for the end condition before the first
6974 parse, the parser was applied too often, consuming too much of the
6975 input. This only affects `many1Till p end` where `p` matches on a
6976 prefix of `end`.
6977 + Provide `parseFromString` (#3690). This is a version of
6978 `parseFromString` specialied to ParserState, which resets
6979 `stateLastStrPos` at the end. This is almost always what we want.
6980 This fixes a bug where `_hi_` wasn't treated as emphasis in the
6981 following, because pandoc got confused about the position of the
6982 last word: `- [o] _hi_`.
6983 + Added `takeP`, `takeWhileP` for efficient parsing of `[Char]`.
6984 + Fix `blanklines` documentation (Alexander Krotov, #3843).
6985 + Give less misleading line information with `parseWithString`.
6986 Previously positions would be reported past the end of the chunk.
6987 We now reset the source position within the chunk and report
6988 positions "in chunk."
6989 + Add `anyLineNewline` (Alexander Krotov).
6990 + Provide shared F monad functions for Markdown and Org readers
6991 (Albert Krewinkel). The `F` monads used for delayed evaluation
6992 of certain values in the Markdown and Org readers are based on a
6993 shared data type capturing the common pattern of both `F` types.
6994 + Add `returnF` (Alexander Krotov).
6995 + Avoid parsing `Notes:**` as a bare URI (#3570). This avoids parsing
6996 bare URIs that start with a scheme + colon + `*`, `_`, or `]`.
6997 + Added `readerAbbreviations` to `ParserState`. Markdown reader
6998 now consults this to determine what is an abbreviation.
6999 + Combine grid table parsers (Albert Krewinkel, #3638). The grid table
7000 parsers for markdown and rst was combined into one single
7001 parser `gridTable`, slightly changing parsing behavior of both
7002 parsers: (1) The markdown parser now compactifies block content
7003 cell-wise: pure text blocks in cells are now treated as paragraphs
7004 only if the cell contains multiple paragraphs, and as plain blocks
7005 otherwise. Before, this was true only for single-column tables. (2)
7006 The rst parser now accepts newlines and multiple blocks in header
7007 cells.
7008 + Generalize tableWith, gridTableWith (Albert Krewinkel).
7009 The parsing functions `tableWith` and `gridTableWith` are generalized
7010 to work with more parsers. The parser state only has to be an
7011 instance of the `HasOptions` class instead of requiring a concrete
7012 type. Block parsers are required to return blocks wrapped into a
7013 monad, as this makes it possible to use parsers returning results
7014 wrapped in `Future`s.
7016 * `Text.Pandoc.Shared`:
7018 + Simplify `toRomanNumeral` using guards (Alexander Krotov, #3445)
7019 + `stringify`: handle Quoted better (#3958). Previously we were losing
7020 the quotation marks in Quoted elements.
7022 * `Text.Pandoc.Writers.Shared`:
7024 + Export `metaToJSON'`, `addVariablesToJSON` (#3439).
7025 This allows us to add the variables AFTER using the metadata
7026 to generate a YAML header (in the Markdown writer).
7027 + Added `unsmartify` (previously in RST writer).
7028 Undo literal double curly quotes. Previously we left these.
7029 + Generalize type of `metaToJSON` so it can take a Text. Previously a
7030 String was needed as argument; now any ToJSON instance will do.
7031 + Added `gridTable` (previously in Markdown writer).
7032 + `gridTable`: Refactored to use widths in chars.
7033 + `gridTable`: remove unnecessary extra space in cells.
7034 + Fixed `addVariablesToJSON`. It was previously not allowing multiple
7035 values to become lists.
7036 + Pipe tables: impose minimum cell size (see #3526).
7039### Default template changes
7041 * HTML templates (including EPUB and HTML slide show templates):
7043 + Make default.html5 polyglot markup conformant (John Luke Bentley,
7044 #3473). Polyglot markup is HTML5 that is also valid XHTML. See
7045 <https://www.w3.org/TR/html-polyglot>. With this change, pandoc's
7046 html5 writer creates HTML that is both valid HTML5 and valid XHTML.
7047 + Regularized CSS in html/epub/html slide templates (#3485).
7048 All templates now include `code{white-space: pre-wrap}`
7049 and CSS for `q` if `--html-q-tags` is used. Previously some templates
7050 had `pre` and others `pre-wrap`; the `q` styles were only sometimes
7051 included.
7052 + CSS for `.smallcaps`, (Mauro Bieg, #1592)
7053 + `default.revealjs`: make `history` default to true.
7054 + `default.revealjs`: use lazy loading (#2283).
7055 + `default.revealjs`: add `mathjax` variable and some conditional code
7056 to use the MathJaX plugin.
7057 + `default.slidy` uses `https` instead of `http` (ickc, #3848).
7058 + `default.dzslides`: Load Google Font using HTTPS by default
7059 (Yoan Blanc).
7061 * DocBook5 template: Use `lang` and `subtitle` variables (Jens Getreu,
7062 #3855).
7064 * LaTeX/Beamer template:
7066 + Combine LaTeX/Beamer templates (Andrew Dunning, #3878).
7067 `default.beamer` has been removed; beamer now uses the
7068 `default.latex` template. Beamer-specific parts are conditional
7069 on the `beamer` variable set by the writer. Note that
7070 `pandoc -D beamer` will return this (combined) template.
7071 + Use `xcolor` for `colorlinks` option (Andrew Dunning, #3877).
7072 Beamer loads `xcolor` rather than `color`, and thus the
7073 `dvipsnames` option doesn't take effect. This also provides a wider
7074 range of colour selections with the `svgnames` option.
7075 + Use starred versions of `xcolor` names (Andrew Dunning).
7076 Prevents changes to documents defined using the `dvipsnames` list (e.g.
7077 `Blue` gives a different result with svgnames enabled).
7078 + Load `polyglossia` after header-includes (#3898). It needs to be
7079 loaded as late as possible.
7080 + Use `unicode-math` (Vaclav Haisman). Use `mathspec` with only
7081 XeLaTeX on request.
7082 + Don't load `fontspec` before `unicode-math` (over there).
7083 The `unicode-math` package loads `fontspec` so explict loading of
7084 `fontspec` before `unicode-math` is not necessary.
7085 + Use `unicode-math` by default in default.latex template. mathspec will
7086 be used in xelatex if the `mathspec` variable is set; otherwise
7087 unicode-math will be used (Václav Haisman).
7088 + Use `dvipsnames` options when `colorlinks` specified (otherwise
7089 we get an error for `maroon`) (Thomas Hodgson).
7090 + Added beamer `titlegraphic` and `logo` variables (Thomas Hodgson).
7091 + Fix typo in fix for notes in tables (#2378, zeeMonkeez).
7092 + Fix `hyperref` options clash (Andrew Dunning, #3847) Avoids an options
7093 clash when loading a package (e.g. `tufte-latex`) that uses
7094 `hyperref` settings different from those in the template.
7095 + Add `natbiboptions` variable (#3768).
7096 + Fix links inside captions in LaTeX output with links-as-notes
7097 (Václav Haisman, #3651). Declare our redefined `\href` robust.
7098 + Load `parskip` before `hyperref` (Václav Haisman, #3654).
7099 + Allow setting Japanese fonts when using LuaLaTeX (Václav Haisman,
7100 #3873). by using the `luatexja-fontspec` and `luatexja-preset`
7101 packages. Use existing `CJKmainfont` and `CJKoptions` template
7102 variables. Add `luatexjafontspecoptions` for `luatexja-fontspec`
7103 and `luatexjapresetoptions` for `luatexja-preset`.
7104 + Added `aspectratio` variable to beamer template (Václav Haisman,
7105 #3723).
7106 + Modified template.latex to fix XeLaTex being used with tables
7107 (lwolfsonkin, #3661). Reordered `lang` variable handling to
7108 immediately before `bidi`.
7110 * ConTeXt template: Improved font handling: `simplefonts` is now
7111 obsolete in ConTeXt (Pablo Rodríguez).
7114### Documentation improvements
7116 * MANUAL.txt:
7118 + Add URL for Prince HTML > PDF engine (Ian, #3919).
7119 + Document that content above slide-level will be omitted in
7120 slide shows. See #3460, #2265.
7121 + Explain `--webtex` SVG url (Mauro Bieg, #3471)
7122 + Small clarification in YAML metadata section.
7123 + Document that html4 is technically XHTML 1.0 transitional.
7124 + Remove refs to highlighting-kate (#3672).
7125 + Document ibooks specific epub metadata.
7126 + Clarify that mathml is used for ODT math.
7127 + Mention limitations of Literate Haskell Support (#3410,
7128 Joachim Breitner).
7129 + Add documentation of limitations of grid tables (Stephen
7130 McDowell, #3864).
7131 + Clarify that meta-json contains transformed values (Jakob Voß,
7132 #3491) Make clear that template variable `meta-json` does not
7133 contain plain text values or JSON output format but field values
7134 transformed to the selected output format.
7136 * COPYRIGHT:
7138 + Clarify that templates are dual-licensed.
7139 + Clarify that pandoc-types is BSD3 licensed.
7140 + List new files not written by jgm (Albert Krewinkel).
7141 + Update dates in copyright notices (Albert Krewinkel). This follows
7142 the suggestions given by the FSF for GPL licensed software.
7143 <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
7145 * INSTALL.md:
7147 + Improved instructions for tests with patterns.
7148 + Put RPM-based distros on separate point (Mauro Bieg, #3449)
7150 * CONTRIBUTING.md:
7152 + Fixed typos (Wandmalfarbe, #3479).
7153 + Add "ask on pandoc-discuss" (Mauro Bieg).
7155 * Add lua filter documentation in `doc/lua-filters.md`. Note that the
7156 end of this document is autogenerated from `data/pandoc.lua`
7157 using `make doc/lua-filters.md`, which uses `tools/ldoc.ltp`
7158 (Albert Krewinkel).
7160 * Add `doc/filters.md`. This is the old scripting tutorial from
7161 the website.
7163 * Add `doc/using-the-pandoc-api.md` (#3289). This gives an introduction
7164 to using pandoc as a Haskell library.
7167### Build infrastructure improvements
7169 * Removed `data/templates` submodule. Templates are now a subtree
7170 in `data/templates`. This removes the need to do `git submodule
7171 update`.
7173 * Renamed `tests` -> `test`.
7175 * Remove `https` flag. Always build with HTTPS support.
7177 * Use `file-embed` instead of `hsb2hs` to embed data files when
7178 `embed_data_files` flag is set. `file-embed` gives us better dependency
7179 tracking: if a data file changes, ghc/stack/cabal know to recompile
7180 the Data module. This also removes `hsb2hs` as a build dependency.
7182 * Add `custom-setup` stanza to pandoc, lowercase field names.
7184 * Add `static` Cabal flag.
7186 * Name change OSX -> MacOS. Add a -MacOS suffix to mac package rather
7187 than -OSX. Changed local names from osx to macos.
7189 * make_macos_package.sh - Use strip to reduce executable size.
7191 * Revised binary linux package. Now a completely static executable
7192 is created, using Docker and alpine. We create both a deb and a
7193 tarball. The old `deb` directory has been replaced with a `linux`
7194 directory. Running `make` in the `linux` directory should
7195 perform the build, putting the binary packages in `artifacts/`.
7197 * `linux/control.in`: add `Replaces:`, so existing pandoc-citeproc and
7198 pandoc-data packages will be uninstalled; this package provides
7199 both (#3822). Add latex packages as 'suggested', update
7200 description.
7202 * Remove cpphs build requirement -- it is no longer needed.
7204 * Replaced `{deb,macos,windows}/stack.yaml` with `stack.pkg.yaml`.
7206 * Name change OSX -> macOS (ickc, #3869).
7208 * Fix casing of Linux, UNIX, and Windows (ickc).
7210 * `.travis.yml`: create a source dist and do cabal build and test there.
7211 That way we catch errors due to files missing from the data
7212 section of pandoc.cabal.
7214 * Makefile:
7216 + Split `make haddock` from `make full`.
7217 + Add BRANCH variable for winpkg.
7218 + Add `lint` target.
7219 + Improve `make full`. Disable optimizations.
7220 Build everything, inc. trypandoc and benchmarks. Use parallel build.
7221 + Allow `make test` to take `TESTARGS`.
7223 * Added new command tests (`Tests.Command`), using small text files
7224 in `test/command/`. Any files added in this directory will be treated
7225 as shell tests (see smart.md for an example). This makes it very easy
7226 to add regression tests etc.
7228 * Test fixes so we can find data files. In old tests & command tests,
7229 we now set the environment variable `pandoc_datadir`. In lua tests,
7230 we set the datadir explicitly.
7232 * Refactored `compareOutput` in docx writer test.
7234 * Consolidated some common functions in `Tests.Helper`.
7236 * Small change to unbalanced bracket test to speed up test suite.
7238 * Speed up Native writer quickcheck tests.
7240 * Use tasty for tests rather than test-framework.
7242 * Add simple Emacs mode to help with Pandoc templates editing.
7243 (Václav Haisman, #3889). `tools/pandoc-template-mode.el`
7246## pandoc 1.19.2.4 (2017-09-10)
7248 * Add dependencies on texmath and skylighting to the executable.
7249 This is needed for dependency version numbers to be available,
7250 with Cabal > 2.
7252## pandoc 1.19.2.3 (2017-09-09)
7254 * Add CPP to Setup.hs so it works with Cabal >= 2 and < 2.
7256## pandoc 1.19.2.2 (2017-09-08)
7258 * Fix build with GHC 8.2.1 (#3876, Peter Simons). Setup.hs does not
7259 compile with Cabal 2.x, so we require an earlier version via
7260 setup-depends. The following packages need newer versions with
7261 GHC 8.2.1 and had their constraints relaxed accordingly:
7262 executable-path, process, syb, and time.
7264## pandoc 1.19.2.1 (2017-01-31)
7266 * Require skylighting >= 0.1.1.4.
7267 * Adjust test output for skylighting version.
7268 * Relax upper bounds on blaze-html and blaze-markup.
7270## pandoc 1.19.2 (2017-01-29)
7272 * Use skylighting library instead of highlighting-kate for syntax
7273 highlighting. Skylighting is faster and more accurate (#3363).
7274 Later we'll be able to add features like warning messages, dynamic
7275 loading of xml syntax definitions, and dynamic loading of themes.
7277 * Added a new highlight style, `breezeDark`.
7279 * Text.Pandoc.Highlighting: Update list of `listings` languages (#3374).
7280 This allows more languages to be used when using the `--listings`
7281 option.
7283 * OpenDocument writer:
7285 + Small refactoring. Removed separate 'parent' parameter in paraStyle.
7286 + Don't profilerate text styles unnecessarily (#3371).
7287 This change makes the writer create only as many temporary
7288 text styles as are absolutely necessary. It also consolidates
7289 adjacent nodes with the same style.
7291 * Org reader (Albert Krewinkel):
7293 + Allow short hand for single-line raw blocks (Albert Krewinkel,
7294 #3366). Single-line raw blocks can be given via `#+FORMAT: raw line`,
7295 where `FORMAT` must be one of `latex`, `beamer`, `html`, or `texinfo`.
7296 + Accept org-ref citations followed by commas (Albert Krewinkel).
7297 Bugfix for an issue which, whenever the citation was immediately
7298 followed by a comma, prevented correct parsing of org-ref citations.
7299 + Ensure emphasis markup can be nested. Nested emphasis markup (e.g.
7300 `/*strong and emphasized*/`) was interpreted incorrectly in that the
7301 inner markup was not recognized.
7302 + Remove pipe char irking the haddock coverage tool (Albert Krewinkel).
7304 * Docx reader: Empty header should be list of lists (Jesse Rosenthal).
7305 In the past, the docx reader wrote an empty header as an empty list. It
7306 should have the same width as a row (and be filled with empty cells).
7308 * MediaWiki reader:
7310 + Improved handling of display math (#3362). Sometimes display math is
7311 indented with more than one colon. Previously we handled these cases
7312 badly, generating definition lists and missing the math.
7313 + Fix quotation mark parsing (#3336, tgkokk). Change MediaWiki reader's
7314 behavior when the smart option is parsed to match other readers'
7315 behavior.
7317 * Markdown reader:
7319 + Fixed `-f markdown_github-hard_line_breaks+escaped_line_breaks`
7320 (#3341). Previously this did not properly enable escaped line breaks.
7321 + Disallow space between inline code and attributes (#3326, #3323,
7322 Mauro Bieg).
7324 * DocBook5 writer: make id attribute xml:id, fixes #3329 (#3330, Mauro Bieg).
7326 * Added some test cases for ODT reader (#3306, #3308, Hubert Plociniczak).
7328 * LaTeX writer: allow tables with empty cells to count as "plain."
7329 This addresses a problem of too-wide tables when empty cells
7330 are used. Thanks to Joost Kremers for reporting the issue.
7332 * Org writer: prefix footnote numbers with `fn:` (Albert Krewinkel).
7333 Unprefixed numbers where used by older org-mode versions, but are no
7334 longer supported.
7336 * HTML writer: don't process pars with empty RawInline, (#1040, #3327,
7337 Mauro Bieg).
7339 * Markdown writer: Fix display math with `--webtex` (#3298).
7341 * Fix sample.lua so it properly handles raw blocks/inlines (#3358,
7342 bumper314).
7344 * Templates:
7346 + default.latex: Moved geometry after hyperref (Václav Haisman).
7347 Otherwise PDF sizes can be wrong in some circumstances.
7348 + Copied a few changes from default.latex to default.beamer
7349 (Wandmalfarbe).
7350 + default.latex, default.beamer: Changed position of `\VerbatimNotes`
7351 and `fancyvrb`. This fixes hyperlinks on footnotes in documents
7352 that contain verbatim in notes (#3361). (Note: the beamer template
7353 was updated to match the LaTeX template, but at this point verbatim
7354 in notes seems not to work in beamer.)
7355 + default.latex: Allow passing `microtypeoptions` to microtype
7356 (Václav Haisman).
7357 + default.latex: Add hyphen option to url package.
7358 + default.docbook5: Fix namespace declarations (Mauro Bieg).
7360 * Moved `make_osx_package.sh` to `osx/` directory.
7362 * Travis continuous integration:
7364 + Fix false positives with dist build.
7365 + Speed improvements (Kolen Cheung, #3304, #3357).
7367 * MANUAL.txt:
7369 + Clarify that blank space is needed around footnotes (#3352).
7370 + Fixed typo (#3351, Alexey Rogechev).
7371 + Note that `--wrap=auto` does not work in HTML output.
7372 + Default `--columns` width is 72, not 80.
7373 + Fixed broken links (#3316, Kolen Cheung).
7374 + Document usage of `@*` in nocite section (#3333, John Muccigrosso).
7376 * INSTALL.md:
7378 + Indent code so it's properly formatted (#3335, Bheesham Persaud).
7379 + Added instructions for extracting binary from OSX, Windows packages.
7381 * CONTRIBUTING.md: Describe labels currently used in issue tracker
7382 (Albert Krewinkel). The labels have changed over time, the list of
7383 labels is updated to reflect the current set of labels used in the
7384 issue tracker.
7386 * Rearrange and extend badges in README (Albert Krewinkel, #3354)
7388 * Bumped version bounds for dependencies.
7391## pandoc 1.19.1 (2016-12-10)
7393 * Set `PANDOC_VERSION` environment variable for filters (#2640).
7394 This allows filters to check the pandoc version that produced
7395 the JSON they are receiving.
7397 * Docx reader: Ensure one-row tables don't have header (#3285,
7398 Jesse Rosenthal). Tables in MS Word are set by default to have
7399 special first-row formatting, which pandoc uses to determine whether
7400 or not they have a header. This means that one-row tables will, by
7401 default, have only a header -- which we imagine is not what people
7402 want. This change ensures that a one-row table is not understood to
7403 be a header only. Note that this means that it is impossible to
7404 produce a header-only table from docx, even though it is legal
7405 pandoc. But we believe that in nearly all cases, it will be an
7406 accidental (and unwelcome) result
7408 * HTML reader:
7410 + Fixed some bad regressions in HTML table parser (#3280).
7411 This regression leads to the introduction of empty rows
7412 in some circumstances.
7413 + Understand `style=width:` as well as `width` in `col` (#3286).
7415 * RST reader:
7417 + Print warnings when keys, substitition, notes not found.
7418 Previously the parsers failed and we got raw text. Now we get a
7419 link with an empty URL, or empty inlines in the case of a note or
7420 substitution.
7422 + Fix hyperlink aliases (#3283).
7424 * Man writer: Ensure that periods are escaped at beginning of line
7425 (#3270).
7427 * LaTeX writer: Fix unnumbered headers when used with `--top-level`
7428 (#3272, Albert Krewinkel). Fix interaction of top-level
7429 divisions `part` or `chapter` with unnumbered headers when
7430 emitting LaTeX. Headers are ensured to be written using
7431 stared commands (like `\subsection*{}`).
7433 * LaTeX template: use comma not semicolon to separate keywords for
7434 `pdfkeywords`. Thanks to Wandmalfarbe.
7436 * Markdown writer: Fixed incorrect word wrapping (#3277).
7437 Previously pandoc would sometimes wrap lines too early due to
7438 this bug.
7440 * Text.Pandoc.Pretty: Added `afterBreak` [API change]. This makes it
7441 possible to insert escape codes for content that needs escaping at the
7442 beginning of a line.
7444 * Removed old MathMLInHTML.js from 2004, which should no longer
7445 be needed for MathML with modern browsers.
7447 * Fixed tests with dynamic linking (#2709).
7449 * Makefile: Use stack instead of cabal for targets. This is just
7450 a convenience for developers.
7452 * Fixed bash completion of filenames with space (#2749).
7454 * MANUAL: improved documentation on how to create a custom
7455 `reference.docx`.
7457 * Fix minor spelling typos in the manual (#3273, Anthony Geoghegan)
7459## pandoc 1.19 (2016-12-01)
7461 * Changed resolution of filter paths.
7463 + We now first treat the argument of `--filter` as a full (absolute
7464 or relative) path, looking for a program there. If it's found, we
7465 run it.
7466 + If not, and if it is a simple program name or a relative path, we
7467 try resolving it relative to `$DATADIR/filters`.
7468 + If this fails, then we treat it as a program name and look in the
7469 user's PATH.
7470 + Removed a hardcoded '/' that may have caused problems with
7471 Windows paths.
7473 Previously if you did `--filter foo` and you had `foo` in your path and
7474 also an executable `foo` in your working directory, the one in the path
7475 would be used. Now the one in the working directory is used.
7477 In addition, when you do `--filter foo/bar.hs`, pandoc will now find a
7478 filter `$DATADIR/filters/foo/bar.hs` -- assuming there isn't a
7479 `foo/bar.hs` relative to the working directory.
7481 * Allow `file://` URIs as arguments (#3196). Also improved default reader
7482 format detection. Previously with a URI ending in .md or .markdown,
7483 pandoc would assume HTML input. Now it treats these as markdown.
7485 * Allow to overwrite top-level division type heuristics (#3258,
7486 Albert Krewinkel). Pandoc uses heuristics to determine the most
7487 reasonable top-level division type when emitting LaTeX or
7488 Docbook markup. It is now possible to overwrite this implicitly set
7489 top-level division via the `top-level-division` command line parameter.
7491 * Text.Pandoc.Options \[API changes\]:
7493 + Removed `writerStandalone` field in `WriterOptions`, made
7494 `writerTemplate` a `Maybe` value. Previously setting
7495 `writerStandalone = True` did nothing unless a template was provided
7496 in writerTemplate. Now a fragment will be generated if
7497 `writerTemplate` is `Nothing`; otherwise, the specified template
7498 will be used and standalone output generated.
7499 + `Division` has been renamed `TopLevelDivision` (#3197). The
7500 `Section`, `Chapter`, and `Part` constructors were renamed to
7501 `TopLevelSection`, `TopLevelChapter`, and
7502 `TopLevelPart`, respectively. An additional `TopLevelDefault`
7503 constructor was added, which is now also the new default value of
7504 the `writerTopLevelDivision` field in `WriterOptions`.
7506 * Improved error if they give wrong arg to `--top-level-division`.
7508 * Use new module from texmath to lookup MS font codepoints in Docx reader.
7509 Removed unexported module Text.Pandoc.Readers.Docx.Fonts. Its code now
7510 lives in texmath (0.9).
7512 * DocBook reader: Fixed xref lookup (#3243). It previously only worked
7513 when the qnames lacked the docbook namespace URI.
7515 * HTML reader:
7517 + Improved table parsing (#3027). We now check explicitly for non-1
7518 rowspan or colspan attributes, and fail when we encounter them.
7519 Previously we checked that each row had the same number of cells,
7520 but that could be true even with rowspans/colspans. And there are
7521 cases where it isn't true in tables that we can handle fine -- e.g.
7522 when a tr element is empty. So now we just pad rows with empty cells
7523 when needed.
7524 + Treat `<math>` as MathML by default unless something else is
7525 explicitly specified in xmlns. Provided it parses as MathML,
7526 of course. Also fixed default which should be to inline math if no
7527 display attribute is used.
7528 + Only treat "a" element as link if it has href (#3226). Otherwise
7529 treat as span.
7531 * Docx reader (Jesse Rosenthal):
7533 + Add a placeholder value for CHART. We wrap `[CHART]` in a
7534 `<span class="chart">`. Note that it maps to inlines because, in
7535 docx, anything in a drawing tag can be part of a larger paragraph.
7536 + Be more specific in parsing images We not only want `w:drawing`,
7537 because that could also include charts. Now we specify
7538 `w:drawing/pic:pic`. This shouldn't change behavior at all, but it's
7539 a first step toward allowing other sorts of drawing data as well.
7540 + Abstract out function to avoid code repetition.
7541 + Update tests for img title and alt (#3204).
7542 + Handle Alt text and titles in images. We use the "description" field
7543 as alt text and the "title" field as title. These can be accessed
7544 through the "Format Picture" dialog in Word.
7545 + Docx reader utils: handle empty namespace in `elemName`. Previously,
7546 if given an empty namespace `(elemName ns "" "foo")` `elemName`
7547 would output a QName with a `Just ""` namespace. This is never what
7548 we want. Now we output a `Nothing`. If someone *does* want a
7549 `Just ""` in the namespace, they can enter the QName
7550 value explicitly.
7552 * ODT reader/writer:
7554 + Inline code when text has a special style (Hubert Plociniczak). When
7555 a piece of text has a text `Source_Text` then we assume that this is
7556 a piece of the document that represents a code that needs to
7557 be inlined. Adapted the writer to also reflect that change.
7558 Previously it was just writing a 'preformatted' text using a
7559 non-distinguishable font style. Code blocks are still not recognized
7560 by the ODT reader. That's a separate issue.
7561 + Infer table's caption from the paragraph (#3224,
7562 Hubert Plociniczak). ODT's reader always put empty captions for the
7563 parsed tables. This commit
7565 1. checks paragraphs that follow the table definition
7566 2. treats specially a paragraph with a style named 'Table'
7567 3. does some postprocessing of the paragraphs that combines tables
7568 followed immediately by captions
7570 The ODT writer used the `TableCaption` style for the caption
7571 paragraph. This commit follows the OpenOffice approach which allows
7572 for appending captions to table but uses a built-in style named
7573 `Table` instead of `TableCaption`. Users of a custom `reference.odt`
7574 should change the style's name from `TableCaption` to `Table`.
7576 * ODT reader: Infer tables' header props from rows (#3199,
7577 Hubert Plociniczak). ODT reader simply provided an empty header list
7578 which meant that the contents of the whole table, even if not empty, was
7579 simply ignored. While we still do not infer headers we at least have to
7580 provide default properties of columns.
7582 * Markdown reader:
7584 + Allow reference link labels starting with `@...` if `citations`
7585 extension disabled (#3209). Example: in
7587 \[link text\]\[@a\]
7589 `link text` isn't hyperlinked because `[@a]` is parsed as
7590 a citation. Previously this happened whether or not the `citations`
7591 extension was enabled. Now it happens only if the `citations`
7592 extension is enabled.
7593 + Allow alignments to be specified in Markdown grid tables. For
7594 example,
7596 +-------+---------------+--------------------+
7597 | Right | Left | Centered |
7598 +=========:+:=================+:=============:+
7599 | Bananas | $1.34 | built-in wrapper |
7600 +-------+---------------+--------------------+
7602 + Allow Small Caps elements to be created using bracketed spans (as
7603 they already can be using HTML-syntax spans) (#3191, Kolen Cheung).
7605 * LaTeX reader:
7607 + Don't treat `\vspace` and `\hspace` as block commands (#3256).
7608 Fixed an error which came up, for example, with `\vspace` inside
7609 a caption. (Captions expect inlines.)
7610 + Improved table handling. We can now parse all of the tables emitted
7611 by pandoc in our tests. The only thing we don't get yet are
7612 alignments and column widths in more complex tables. See #2669.
7613 + Limited support for minipage.
7614 + Allow for `[]`s inside LaTeX optional args. Fixes cases like:
7615 + Handle BVerbatim from fancyvrb (#3203).
7616 + Handle hungarumlaut (#3201).
7617 + Allow beamer-style `<...>` options in raw LaTeX (also in Markdown)
7618 (#3184). This allows use of things like `\only<2,3>{my content}` in
7619 Markdown that is going to be converted to beamer.
7621 * Use pre-wrap for code in dzslides template (Nicolas Porcel). Otherwise
7622 overly long code will appear on every slide.
7624 * Org reader (Albert Krewinkel):
7626 + Respect column width settings (#3246). Table column properties can
7627 optionally specify a column's width with which it is displayed in
7628 the buffer. Some exporters, notably the ODT exporter in org-mode
7629 v9.0, use these values to calculate relative column widths. The org
7630 reader now implements the same behavior. Note that the org-mode
7631 LaTeX and HTML exporters in Emacs don't support this feature yet,
7632 which should be kept in mind by users who use the column
7633 widths parameters.
7634 + Allow HTML attribs on non-figure images (#3222). Images which are
7635 the only element in a paragraph can still be given HTML attributes,
7636 even if the image does not have a caption and is hence not a figure.
7637 The following will add set the `width` attribute of the image to
7638 `50%`:
7640 +ATTR\_HTML: :width 50%
7641 =======================
7643 \[\[file:image.jpg\]\]
7645 + Support `ATTR_HTML` for special blocks (#3182). Special
7646 blocks (i.e. blocks with unrecognized names) can be prefixed with an
7647 `ATTR_HTML` block attribute. The attributes defined in that
7648 meta-directive are added to the `Div` which is used to represent the
7649 special block.
7650 + Support the `todo` export option. The `todo` export option allows to
7651 toggle the inclusion of TODO keywords in the output. Setting this to
7652 `nil` causes TODO keywords to be dropped from headlines. The default
7653 is to include the keywords.
7654 + Add support for todo-markers. Headlines can have optional
7655 todo-markers which can be controlled via the `#+TODO`, `#+SEQ_TODO`,
7656 or `#+TYP_TODO` meta directive. Multiple such directives can be
7657 given, each adding a new set of recognized todo-markers. If no
7658 custom todo-markers are defined, the default `TODO` and `DONE`
7659 markers are used. Todo-markers are conceptually separate from
7660 headline text and are hence excluded when autogenerating
7661 headline IDs. The markers are rendered as spans and labelled with
7662 two classes: One class is the markers name, the other signals the
7663 todo-state of the marker (either `todo` or `done`).
7665 * LaTeX writer:
7667 + Use `\autocites*` when "suppress-author" citation used.
7668 + Ensure that simple tables have simple cells (#2666). If cells
7669 contain more than a single Plain or Para, then we need to set
7670 nonzero widths and put contents into minipages.
7671 + Remove invalid inlines in sections (#3218, Hubert Plociniczak).
7673 * Markdown writer:
7675 + Fix calculation of column widths for aligned multiline tables
7676 (#1911, Björn Peemöller). This also fixes excessive CPU and memory
7677 usage for tables when `--columns` is set in such a way that cells
7678 must be very tiny. Now cells are guaranteed to be big enough so that
7679 single words don't need to line break, even if this pushes the line
7680 length above the column width.
7681 + Use bracketed form for native spans when `bracketed_spans`
7682 enabled (#3229).
7683 + Fixed inconsistent spacing issue (#3232). Previously a tight bullet
7684 sublist got rendered with a blank line after, while a tight ordered
7685 sublist did not. Now we don't get the blank line in either case.
7686 + Fix escaping of spaces in super/subscript (#3225). Previously two
7687 backslashes were inserted, which gave a literal backslash.
7688 + Adjust widths in Markdown grid tables so that they match
7689 on round-trip.
7691 * Docx writer:
7693 + Give full detail when there are errors converting tex math.
7694 + Handle title text in images (Jesse Rosenthal). We already handled
7695 alt text. This just puts the image "title" into the docx
7696 "title" attr.
7697 + Fixed XML markup for empty cells (#3238). Previously the Compact
7698 style wasn't being applied properly to empty cells.
7700 * HTML writer:
7702 + Updated `renderHtml` import from blaze-html.
7704 * Text.Pandoc.Pretty:
7706 + Fixed some bugs that caused blank lines in tables (#3251). The bugs
7707 caused spurious blank lines in grid tables when we had things like
7708 `blankline $$ blankline`.
7709 + Add exported function `minOffet` \[API change\] (Björn Peemöller).
7710 + Added error message for illegal call to `block` (Björn Peemöller).
7712 * Text.Pandoc.Shared:
7714 + Put `warn` in MonadIO.
7715 + `fetchItem`: Better handling of protocol-relative URL (#2635). If
7716 URL starts with `//` and there is no "base URL" (as there would be
7717 if a URL were used on the command line), then default to http:.
7719 * Export Text.Pandoc.getDefaultExtensions \[API change\] (#3178).
7721 * In --version, trap error in `getAppUserDataDirectory` (#3241). This
7722 fixes a crash with `pandoc --version` on unusual systems with no real
7723 user (e.g. SQL Server 2016).
7725 * Added weigh-pandoc for memory usage diagnostics (#3169).
7727 * Use correct mime types for woff and woff2 (#3228).
7729 * Remove make\_travis\_yml.hs (#3235, Kolen Cheung).
7731 * changelog: Moved an item that was misplaced in the 1.17.2 section to the
7732 1.18 section where it belongs.
7734 * CONTRIBUTING.md: minor change in wording and punctuation (#3252,
7735 Kolen Cheung).
7737 * Further revisions to manual for `--version` changes (#3244).
7741## pandoc 1.18 (2016-10-26)
7743 * Added `--list-input-formats`, `--list-output-formats`,
7744 `--list-extensions`, `--list-highlight-languages`, and
7745 `--list-highlight-styles` (#3173). Removed list of highlighting
7746 languages from `--version` output. Removed list of input and output
7747 formats from default `--help` output.
7749 * Added `--reference-location=block|section|document` option
7750 (Jesse Rosenthal). This determines whether Markdown link references
7751 and footnotes are placed at the end of the document, the end of the
7752 section, or the end of the top-level block.
7754 * Added `--top-level-division=section|chapter|part` (Albert Krewinkel).
7755 This determines what a level-1 header corresponds to in LaTeX,
7756 ConTeXt, DocBook, and TEI output. The default is `section`.
7757 The `--chapters` option has been deprecated in favor of
7758 `--top-level-division=chapter`.
7760 * Added `LineBlock` constructor for `Block` (Albert Krewinkel). This
7761 is now used in parsing RST and Markdown line blocks, DocBook
7762 `linegroup`/`line` combinations, and Org-mode `VERSE` blocks.
7763 Previously `Para` blocks with hard linebreaks were used. `LineBlock`s
7764 are handled specially in the following ouput formats: AsciiDoc
7765 (as `[verse]` blocks), ConTeXt (`\startlines`/`\endlines`),
7766 HTML (`div` with a style), Markdown (line blocks if `line_blocks`
7767 is enabled), Org-mode (`VERSE` blocks), RST (line blocks). In
7768 other output formats, a paragraph with hard linebreaks is emitted.
7770 * Allow binary formats to be written to stdout (but not to tty) (#2677).
7771 Only works on posix, since we use the unix library to check whether
7772 output is to tty. On Windows, pandoc works as before and always requires
7773 an output file parameter for binary formats.
7775 * Changed JSON output format (Jesse Rosenthal). Previously we used
7776 generically generated JSON, but this was subject to change depending
7777 on the version of aeson pandoc was compiled with. To ensure stability,
7778 we switched to using manually written ToJSON and FromJSON
7779 instances, and encoding the API version. **Note:** pandoc filter
7780 libraries will need to be revised to handle the format change.
7781 Here is a summary of the essential changes:
7783 + The toplevel JSON format is now `{"pandoc-api-version" :
7784 [MAJ, MIN, REV], "meta" : META, "blocks": BLOCKS}`
7785 instead of `[{"unMeta": META}, [BLOCKS]]`.
7786 Decoding fails if the major and minor version numbers don't
7787 match.
7788 + Leaf nodes no longer have an empty array for their "c" value.
7789 Thus, for example, a `Space` is encoded as `{"t":"Space"}`
7790 rather than `{"t":"Space","c":[]}` as before.
7792 * Removed `tests/Tests/Arbitrary.hs` and added a `Text.Pandoc.Arbitrary`
7793 module to pandoc-types (Jesse Rosenthal). This makes it easier
7794 to use QuickCheck with pandoc types outside of pandoc itself.
7796 * Add `bracketed_spans` Markdown extension, enabled by default
7797 in pandoc `markdown`. This allows you to create a native span
7798 using this syntax: `[Here is my span]{#id .class key="val"}`.
7800 * Added `angle_brackets_escapable` Markdown extension (#2846).
7801 This is needed because github flavored Markdown has a slightly
7802 different set of escapable symbols than original Markdown;
7803 it includes angle brackets.
7805 * Export `Text.Pandoc.Error` in `Text.Pandoc` [API change].
7807 * Print highlighting-kate version in `--version`.
7809 * `Text.Pandoc.Options`:
7811 + `Extension` has new constructors `Ext_brackted_spans` and
7812 `Ext_angle_brackets_escapable` [API change].
7813 + Added `ReferenceLocation` type [API change] (Jesse Rosenthal).
7814 + Added `writerReferenceLocation` field to `WriterOptions` (Jesse
7815 Rosenthal).
7817 * `--filter`: we now check `$DATADIR/filters` for filters before
7818 looking in the path (#3127, Jesse Rosenthal, thanks to Jakob
7819 Voß for the idea). Filters placed in this directory need not
7820 be executable; if the extension is `.hs`, `.php`, `.pl`, `.js`,
7821 or `.rb`, pandoc will run the right interpreter.
7823 * For `--webtex`, replace deprecated Google Chart API by CodeCogs as
7824 default (Kolen Cheung).
7826 * Removed `raw_tex` extension from `markdown_mmd` defaults (Kolen Cheung).
7828 * Execute .js filters with node (Jakob Voß).
7830 * Textile reader:
7832 + Support `bc..` extended code blocks (#3037). Also, remove trailing
7833 newline in code blocks (consistently with Markdown reader).
7834 + Improve table parsing. We now handle cell and row attributes, mostly
7835 by skipping them. However, alignments are now handled properly.
7836 Since in pandoc alignment is per-column, not per-cell, we
7837 try to devine column alignments from cell alignments.
7838 Table captions are also now parsed, and textile indicators
7839 for thead and tfoot no longer cause parse failure. (However,
7840 a row designated as tfoot will just be a regular row in pandoc.)
7841 + Improve definition list parsing. We now allow multiple terms
7842 (which we concatenate with linebreaks). An exponential parsing
7843 bug (#3020) is also fixed.
7844 + Disallow empty URL in explicit link (#3036).
7846 * RST reader:
7848 + Use Div instead of BlockQuote for admonitions (#3031).
7849 The Div has class `admonition` and (if relevant) one of the
7850 following: `attention`, `caution`, `danger`, `error`, `hint`,
7851 `important`, `note`, `tip`, `warning`. **Note:** This will change
7852 the rendering of some RST documents! The word ("Warning", "Attention",
7853 etc.) is no longer added; that must be done with CSS or a filter.
7854 + A Div is now used for `sidebar` as well.
7855 + Skip whitespace before note (Jesse Rosenthal, #3163). RST requires a
7856 space before a footnote marker. We discard those spaces so that footnotes
7857 will be adjacent to the text that comes before it. This is in line with
7858 what rst2latex does.
7859 + Allow empty lines when parsing line blocks (Albert Krewinkel).
7861 * Markdown reader:
7863 + Allow empty lines when parsing line blocks (Albert Krewinkel).
7864 + Allow attributes on autolinks (#3183, Daniele D'Orazio).
7866 * LaTeX reader:
7868 + More robust parsing of unknown environments (#3026).
7869 We no longer fail on things like `^` inside options for tikz.
7870 + Be more forgiving of non-standard characters, e.g. `^` outside of math.
7871 Some custom environments give these a meaning, so we should try not to
7872 fall over when we encounter them.
7873 + Drop duplicate `*` in bibtexKeyChars (Albert Krewinkel)
7875 * MediaWiki reader:
7877 + Fix for unquoted attribute values in mediawiki tables (#3053).
7878 Previously an unquoted attribute value in a table row
7879 could cause parsing problems.
7880 + Improved treatment of verbatim constructions (#3055).
7881 Previously these yielded strings of alternating Code and Space
7882 elements; we now incorporate the spaces into the Code. Emphasis
7883 etc. is still possible inside these.
7884 + Properly interpret XML tags in pre environments (#3042). They are meant
7885 to be interpreted as literal text.
7887 * EPUB reader: don't add root path to data: URIs (#3150).
7888 Thanks to @lep for the bug report and patch.
7890 * Org reader (Albert Krewinkel):
7892 + Preserve indentation of verse lines (#3064). Leading spaces in verse
7893 lines are converted to non-breaking spaces, so indentation is preserved.
7894 + Ensure image sources are proper links. Image sources as those in plain
7895 images, image links, or figures, must be proper URIs or relative file
7896 paths to be recognized as images. This restriction is now enforced
7897 for all image sources. This also fixes the reader's usage of uncleaned
7898 image sources, leading to `file:` prefixes not being deleted from
7899 figure images. Thanks to @bsag for noticing this bug.
7900 + Trim verse lines properly (Albert Krewinkel).
7901 + Extract meta parsing code to module. Parsing of meta-data is well
7902 separable from other block parsing tasks. Moving into new module to
7903 get small files and clearly arranged code.
7904 + Read markup only for special meta keys. Most meta-keys should be read
7905 as normal string values, only a few are interpreted as marked-up text.
7906 + Allow multiple, comma-separated authors. Multiple authors can be
7907 specified in the `#+AUTHOR` meta line if they are given as a
7908 comma-separated list.
7909 + Give precedence to later meta lines. The last meta-line of any given
7910 type is the significant line. Previously the value of the first line
7911 was kept, even if more lines of the same type were encounterd.
7912 + Read LaTeX_header as header-includes. LaTeX-specific header commands
7913 can be defined in `#+LaTeX_header` lines. They are parsed as
7914 format-specific inlines to ensure that they will only show up in LaTeX
7915 output.
7916 + Set documentclass meta from LaTeX_class.
7917 + Set classoption meta from LaTeX_class_options.
7918 + Read HTML_head as header-includes. HTML-specific head content can be
7919 defined in `#+HTML_head` lines. They are parsed as format-specific
7920 inlines to ensure that they will only show up in HTML output.
7921 + Respect `author` export option. The `author` option controls whether
7922 the author should be included in the final markup. Setting
7923 `#+OPTIONS: author:nil` will drop the author from the final meta-data
7924 output.
7925 + Respect `email` export option. The `email` option controls whether the
7926 email meta-field should be included in the final markup. Setting
7927 `#+OPTIONS: email:nil` will drop the email field from the final
7928 meta-data output.
7929 + Respect `creator` export option. The `creator` option controls whether
7930 the creator meta-field should be included in the final markup. Setting
7931 `#+OPTIONS: creator:nil` will drop the creator field from the final
7932 meta-data output. Org-mode recognizes the special value `comment` for
7933 this field, causing the creator to be included in a comment. This is
7934 difficult to translate to Pandoc internals and is hence interpreted the
7935 same as other truish values (i.e. the meta field is kept if it's
7936 present).
7937 + Respect unnumbered header property (#3095). Sections the `unnumbered`
7938 property should, as the name implies, be excluded from the automatic
7939 numbering of section provided by some output formats. The Pandoc
7940 convention for this is to add an "unnumbered" class to the header. The
7941 reader treats properties as key-value pairs per default, so a special
7942 case is added to translate the above property to a class instead.
7943 + Allow figure with empty caption (Albert Krewinkel, #3161).
7944 A `#+CAPTION` attribute before an image is enough to turn an image into
7945 a figure. This wasn't the case because the `parseFromString` function,
7946 which processes the caption value, would fail on empty values. Adding
7947 a newline character to the caption value fixes this.
7949 * Docx reader:
7951 + Use XML convenience functions (Jesse Rosenthal).
7952 The functions `isElem` and `elemName` (defined in Docx/Util.hs) make
7953 the code a lot cleaner than the original XML.Light functions, but they
7954 had been used inconsistently. This puts them in wherever applicable.
7955 + Handle anchor spans with content in headers. Previously, we would only
7956 be able to figure out internal links to a header in a docx if the
7957 anchor span was empty. We change that to read the inlines out of the
7958 first anchor span in a header.
7959 + Let headers use exisiting id. Previously we always generated an id for
7960 headers (since they wouldn't bring one from Docx). Now we let it use an
7961 existing one if possible. This should allow us to recurs through anchor
7962 spans.
7963 + Use all anchor spans for header ids. Previously we only used the first
7964 anchor span to affect header ids. This allows us to use all the anchor
7965 spans in a header, whether they're nested or not (#3088).
7966 + Test for nested anchor spans in header. This ensures that anchor spans
7967 in header with content (or with other anchor spans inside) will resolve
7968 to links to a header id properly.
7970 * ODT reader (Hubert Plociniczak)
7972 + Include list's starting value. Previously the starting value of
7973 the lists' items has been hardcoded to 1. In reality ODT's list
7974 style definition can provide a new starting value in one of its
7975 attributes.
7976 + Infer caption from the text following the image.
7977 Frame can contain other frames with the text boxes.
7978 + Add `fig:` to title for Image with a caption (as expected
7979 by pandoc's writers).
7980 + Basic support for images in ODT documents.
7981 + Don't duplicate text for anchors (#3143). When creating an anchor
7982 element we were adding its representation as well as the original
7983 content, leading to text duplication.
7985 * DocBook writer:
7987 + Include an anchor element when a div or span has an id (#3102).
7988 Note that DocBook does not have a class attribute, but at least this
7989 provides an anchor for internal links.
7991 * LaTeX writer:
7993 + Don't use * for unnumbered paragraph, subparagraph. The starred
7994 variants don't exist. This helps with part of #3058...it gets rid of
7995 the spurious `*`s. But we still have numbers on the 4th and 5th level
7996 headers.
7997 + Properly escape backticks in verbatim (#3121, Jesse Rosenthal).
7998 Otherwise they can cause unintended ligatures like `` ?` ``.
7999 + Handle NARRAOW NO-BREAK SPACE into LaTeX (Vaclav Zeman) as `\,`.
8000 + Don't include `[htbp]` placement for figures (#3103, Václav Haisman).
8001 This allows figure placement defaults to be changed by the user
8002 in the template.
8004 * TEI writer: remove heuristic to detect book template (Albert Krewinkel).
8005 TEI doesn't have `<book>` elements but only generic `<divN>` division
8006 elements. Checking the template for a trailing `</book>` is nonsensical.
8008 * MediaWiki writer: transform filename with underscores in images (#3052).
8009 `foo bar.jpg` becomes `foo_bar.jpg`. This was already done
8010 for internal links, but it also needs to happen for images.
8012 * ICML writer: replace partial function (!!) in table handling (#3175,
8013 Mauro Bieg).
8015 * Man writer: allow section numbers that are not a single digit (#3089).
8017 * AsciiDoc writer: avoid unnecessary use of "unconstrained" emphasis
8018 (#3068). In AsciiDoc, you must use a special form of emphasis
8019 (double `__`) for intraword emphasis. Pandoc was previously using
8020 this more than necessary.
8022 * EPUB writer: use stringify instead of plain writer for metadata
8023 (#3066). This means that underscores won't be used for emphasis,
8024 or CAPS for bold. The metadata fields will just have unadorned
8025 text.
8027 * Docx Writer:
8029 + Implement user-defined styles (Jesse Rosenthal). Divs and Spans
8030 with a `custom-style` key in the attributes will apply the corresponding
8031 key to the contained blocks or inlines.
8032 + Add ReaderT env to the docx writer (Jesse Rosenthal).
8033 + Clean up and streamline RTL behavior (Jesse Rosenthal, #3140).
8034 You can set `dir: rtl` in YAML metadata, or use `-M dir=rtl`
8035 on the command line. For finer-grained control, you can set
8036 the `dir` attribute in Div or Span elements.
8038 * Org writer (Albert Krewinkel):
8040 + Remove blank line after figure caption. Org-mode only treats an image
8041 as a figure if it is directly preceded by a caption.
8042 + Ensure blank line after figure. An Org-mode figure should be surrounded
8043 by blank lines. The figure would be recognized regardless, but images
8044 in the following line would unintentionally be treated as figures as
8045 well.
8046 + Ensure link targets are paths or URLs. Org-mode treats links as
8047 document internal searches unless the link target looks like a URL or
8048 file path, either relative or absolute. This change ensures that this
8049 is always the case.
8050 + Translate language identifiers. Pandoc and Org-mode use different
8051 programming language identifiers. An additional translation between
8052 those identifiers is added to avoid unexpected behavior. This fixes a
8053 problem where language specific source code would sometimes be output
8054 as example code.
8055 + Drop space before footnote markers (Albert Krewinkel, #3162).
8056 The writer no longer adds an extra space before footnote markers.
8058 * Markdown writer:
8060 + Don't emit HTML for tables unless `raw_html` extension is set (#3154).
8061 Emit `[TABLE]` if no suitable table formats are enabled and raw HTML
8062 is disabled.
8063 + Check for the `raw_html` extension before emitting a raw HTML block.
8064 + Abstract out note/ref function (Jesse Rosenthal).
8065 + Add ReaderT monad for environment variables (Jesse Rosenthal).
8067 * HTML, EPUB, slidy, revealjs templates: Use `<p>` instead of `<h1>` for
8068 subtitle, author, date (#3119). Note that, as a result of this change,
8069 authors may need to update CSS.
8071 * revealjs template: Added `notes-server` option
8072 (jgm/pandoc-templates#212, Yoan Blanc).
8074 * Beamer template:
8076 + Restore whitespace between paragraphs. This was
8077 a regression in the last release (jgm/pandoc-templates#207).
8078 + Added `themeoptions` variable (Carsten Gips).
8079 + Added `beamerarticle` variable. This causes the `beamerarticle`
8080 package to be loaded in beamer, to produce an article from beamer
8081 slides. (Carsten Gips)
8082 + Added support for `fontfamilies` structured variable
8083 (Artem Klevtsov).
8084 + Added hypersetup options (Jake Zimmerman).
8086 * LaTeX template:
8088 + Added dummy definition for `\institute`.
8089 This isn't a standard command, and we want to avoid a crash when
8090 `institute` is used with the default template.
8091 + Define default figure placement (Václav Haisman), since pandoc
8092 no longer includes `[htbp]` for figures. Users with custom templates
8093 will want to add this. See #3103.
8094 + Use footnote package to fix notes in tables (jgm/pandoc-templates#208,
8095 Václav Haisman).
8097 * Moved template compiling/rendering code to a separate library.
8098 `doctemplates`. This allows the pandoc templating system to be
8099 used independently.
8101 * Text.Pandoc.Error: Fix out of index error in `handleError`
8102 (Matthew Pickering). The fix is to not try to show the exact line when
8103 it would cause an out-of-bounds error as a result of included files.
8105 * Text.Pandoc.Shared: Add `linesToBlock` function (Albert Krewinkel).
8107 * Text.Pandoc.Parsing.emailAddress: tighten up parsing of email
8108 addresses. Technically `**@user` is a valid email address, but if we
8109 allow things like this, we get bad results in markdown flavors
8110 that autolink raw email addresses (see #2940). So we exclude a few
8111 valid email addresses in order to avoid these more common bad cases.
8113 * Text.Pandoc.PDF: Don't crash with nonexistent image (#3100). Instead,
8114 emit the alt text, emphasized. This accords with what the ODT writer
8115 currently does. The user will still get a warning about a nonexistent
8116 image.
8118 * Fix example in API documentation (#3176, Thomas Weißschuh).
8120 * Tell where to get tarball in INSTALL (#3062).
8122 * Rename README to MANUAL.txt and add GitHub-friendly README.md
8123 (Albert Krewinkel, Kolen Cheung).
8125 * Replace COPYING with Markdown version COPYING.md from GNU (Kolen Cheung).
8127 * MANUAL.txt:
8129 + Put note on structured vars in separate paragraph (#2148, Albert
8130 Krewinkel). Make it clearer that structured author variables require a
8131 custom template
8132 + Note that `--katex` works best with `html5` (#3077).
8133 + Fix the LaTeX and EPUB links in manual (Morton Fox).
8134 + Document `biblio-title` variable.
8136 * Improve spacing of footnotes in `--help` output (Waldir Pimenta).
8138 * Update KaTeX to v0.6.0 (Kolen Cheung).
8140 * Allow latest dependencies.
8142 * Use texmath 0.8.6.6 (#3040).
8144 * Allow http-client 0.4.30, which is the version in stackage lts.
8145 Previously we required 0.5.
8146 Remove CPP conditionals for earlier versions.
8148 * Remove support for GHC < 7.8 (Jesse Rosenthal).
8150 + Remove Compat.Monoid.
8151 + Remove an inline monad compatibility macro.
8152 + Remove Text.Pandoc.Compat.Except.
8153 + Remove directory compat.
8154 + Change constraint on mtl.
8155 + Remove unnecessary CPP condition in UTF8.
8156 + Bump base lower bound to 4.7.
8157 + Remove 7.6 build from .travis.yaml.
8158 + Bump supported ghc version in CONTRIBUTING.md.
8159 + Add note about GHC version support to INSTALL.
8160 + Remove GHC 7.6 from list of tested versions (Albert Krewinkel).
8161 + Remove TagSoup compat.
8162 + Add EOL note to time compat module. Because time 1.4 is a boot library
8163 for GHC 7.8, we will support the compatibility module as long as we
8164 support 7.8. But we should be clear about when we will no longer need
8165 it.
8166 + Remove blaze-html CPP conditional.
8167 + Remove unnecessary CPP in custom Prelude.
8169## pandoc 1.17.2 (2016-07-17)
8171 * Added Zim Wiki writer, template and tests. `zimwiki` is now
8172 a valid output format. (Alex Ivkin)
8174 * Changed email-obfuscation default to no obfuscation (#2988).
8175 + `writerEmailObfuscation` in `defaultWriterOptions` is now
8176 `NoObfuscation`.
8177 + the default for the command-line `--email-obfuscation` option is
8178 now `none`.
8180 * Docbook writer: Declare xlink namespace in Docbook5 output (Ivo Clarysse).
8182 * Org writer:
8184 + Support arbitrary raw inlines (Albert Krewinkel).
8185 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
8186 parlance) to be included as `@@format:raw foreign format text@@`.
8187 + Improve Div handling (Albert Krewinkel). Div blocks handling is
8188 changed to make the output look more like idiomatic org mode:
8189 - Div-wrapped content is output as-is if the div's attribute is the
8190 null attribute.
8191 - Div containers with an id but neither classes nor key-value pairs
8192 are unwrapped and the id is added as an anchor.
8193 - Divs with classes associated with greater block elements are
8194 wrapped in a `#+BEGIN`...`#+END` block.
8195 - The old behavior for Divs with more complex attributes is kept.
8197 * HTML writer: Better support for raw LaTeX environments (#2758).
8198 Previously we just passed all raw TeX through when MathJax
8199 was used for HTML math. This passed through too much.
8200 With this patch, only raw LaTeX environments that MathJax
8201 can handle get passed through.
8202 This patch also causes raw LaTeX environments to be treated
8203 as math, when possible, with MathML and WebTeX output.
8205 * Markdown writer: use raw HTML for simple, pipe tables with linebreaks
8206 (#2993). Markdown line breaks involve a newline, and simple and pipe
8207 tables can't contain one.
8209 * Make --webtex work with the Markdown writer (#1177).
8210 This is a convenient option for people using
8211 websites whose Markdown flavors don't provide for math.
8213 * Docx writer:
8215 + Set paragraph to FirstPara after display math (Jesse Rosenthal).
8216 We treat display math like block quotes, and apply FirstParagraph style
8217 to paragraphs that follow them. These can be styled as the user
8218 wishes. (But, when the user is using indentation, this allows for
8219 paragraphs to continue after display math without indentation.)
8220 + Use actual creation time as doc prop (Jesse Rosenthal).
8221 Previously, we had used the user-supplied date, if available, for Word's
8222 document creation metadata. This could lead to weird results, as in
8223 cases where the user post-dates a document (so the modification might be
8224 prior to the creation). Here we use the actual computer time to set the
8225 document creation.
8227 * LaTeX writer:
8229 + Don't URI-escape image source (#2825). Usually this is a local file,
8230 and replacing spaces with `%20` ruins things.
8231 + Allow 'standout' as a beamer frame option (#3007).
8232 `## Slide title {.standout}`.
8234 * RST reader: Fixed links with no explicit link text. The link
8235 `` `<foo>`_ `` should have `foo` as both its link text and its URL.
8236 See RST spec at <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases>
8237 Closes Debian #828167 -- reported by Christian Heller.
8239 * Textile reader:
8241 + Fixed attributes (#2984). Attributes can't be followed by
8242 a space. So, `_(class)emph_` but `_(noclass) emph_`.
8243 + Fixed exponential parsing bug (#3020).
8244 + Fix overly aggressive interpretation as images (#2998).
8245 Spaces are not allowed in the image URL in textile.
8247 * LaTeX reader:
8249 + Fix `\cite` so it is a NormalCitation not AuthorInText.
8250 + Strip off double quotes around image source if present (#2825).
8251 Avoids interpreting these as part of the literal filename.
8253 * Org reader:
8255 + Add semicolon to list of special chars (Albert Krewinkel)
8256 Semicolons are used as special characters in citations syntax. This
8257 ensures the correct parsing of Pandoc-style citations: `[prefix; @key;
8258 suffix]`. Previously, parsing would have failed unless there was a space
8259 or other special character as the last <prefix> character.
8260 + Add support for "Berkeley-style" cites (Albert Krewinkel, #1978).
8261 A specification for an official Org-mode citation syntax was drafted by
8262 Richard Lawrence and enhanced with the help of others on the orgmode
8263 mailing list. Basic support for this citation style is added to the
8264 reader.
8265 + Support arbitrary raw inlines (Albert Krewinkel).
8266 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
8267 parlance) to be included as `@@format:raw foreign format text@@`.
8268 + Remove partial functions (Albert Krewinkel, #2991).
8269 Partial functions like `head` lead to avoidable errors and should be
8270 avoided. They are replaced with total functions.
8271 + Support figure labels (Albert Krewinkel, #2496, #2999).
8272 Figure labels given as `#+LABEL: thelabel` are used as the ID of the
8273 respective image. This allows e.g. the LaTeX to add proper `\label`
8274 markup.
8275 + Improve tag and properties type safety (Albert Krewinkel).
8276 Specific newtype definitions are used to replace stringly typing of tags
8277 and properties. Type safety is increased while readability is improved.
8278 + Parse as headlines, convert to blocks (Albert Krewinkel).
8279 Emacs org-mode is based on outline-mode, which treats documents as trees
8280 with headlines are nodes. The reader is refactored to parse into a
8281 similar tree structure. This simplifies transformations acting on
8282 document (sub-)trees.
8283 * Refactor comment tree handling (Albert Krewinkel).
8284 Comment trees were handled after parsing, as pattern matching on lists
8285 is easier than matching on sequences. The new method of reading
8286 documents as trees allows for more elegant subtree removal.
8287 * Support archived trees export options (Albert Krewinkel).
8288 Handling of archived trees can be modified using the `arch` option.
8289 Archived trees are either dropped, exported completely, or collapsed to
8290 include just the header when the `arch` option is nil, non-nil, or
8291 `headline`, respectively.
8292 * Put export setting parser into module (Albert Krewinkel).
8293 Export option parsing is distinct enough from general block parsing to
8294 justify putting it into a separate module.
8295 * Support headline levels export setting (Albert Krewinkel).
8296 The depths of headlines can be modified using the `H` option. Deeper
8297 headlines will be converted to lists.
8298 * Replace ugly code with view pattern (Albert Krewinkel).
8299 Some less-than-smart code required a pragma switching of overlapping
8300 pattern warnings in order to compile seamlessly. Using view patterns
8301 makes the code easier to read and also doesn't require overlapping
8302 pattern checks to be disabled.
8303 * Fix parsing of verbatim inlines (Albert Krewinkel, #3016).
8304 Org rules for allowed characters before or after markup chars were not
8305 checked for verbatim text. This resultet in wrong parsing outcomes of
8306 if the verbatim text contained e.g. space enclosed markup characters as
8307 part of the text (`=is_substr = True=`). Forcing the parser to update
8308 the positions of allowed/forbidden markup border characters fixes this.
8310 * LaTeX template: fix for obscure hyperref/xelatex issue.
8311 Here's a minimal case:
8313 \documentclass[]{article}
8314 \usepackage{hyperref}
8315 \begin{document}
8316 \section{\%á}
8317 \end{document}
8319 Without this change, this fails on the second invocation of xelatex.
8320 This affects inputs this like `# %á` with pdf output via xelatex.
8322 * trypandoc: call results 'html' instead of 'result'.
8323 This is for better compatibility with babelmark2.
8325 * Document MultiMarkdown as input/output format (Albert Krewinkel, #2973).
8326 MultiMarkdown was only mentioned as a supported Markdown dialect but not
8327 as a possible input or output format. A brief mention is added
8328 everywhere the other supported markdown dialects are mentioned.
8330 * Document Org mode as a format containing raw HTML (Albert Krewinkel)
8331 Raw HTML is kept when the output format is Emacs Org mode.
8333 * Implement `RawInline` and `RawBlock` in sample lua custom writer (#2985).
8335 * Text.Pandoc.Shared:
8337 + Introduce blocksToInlines function (Jesse Rosenthal).
8338 This is a lossy function for converting `[Block] -> [Inline]`. Its main
8339 use, at the moment, is for docx comments, which can contain arbitrary
8340 blocks (except for footnotes), but which will be converted to spans.
8341 This is, at the moment, pretty useless for everything but the basic
8342 `Para` and `Plain` comments. It can be improved, but the docx reader
8343 should probably emit a warning if the comment contains more than this.
8344 + Add BlockQuote to blocksToInlines (Jesse Rosenthal).
8345 + Add further formats for `normalizeDate` (Jesse Rosenthal).
8346 We want to avoid illegal dates -- in particular years with greater than
8347 four digits. We attempt to parse series of digits first as `%Y%m%d`, then
8348 `%Y%m`, and finally `%Y`.
8349 + `normalizeDate` should reject illegal years (Jesse Rosenthal).
8350 We only allow years between 1601 and 9999, inclusive. The ISO 8601
8351 actually says that years are supposed to start with 1583, but MS Word
8352 only allows 1601-9999. This should stop corrupted word files if the date
8353 is out of that range, or is parsed incorrectly.
8354 + Improve year sanity check in normalizeDate (Jesse Rosenthal).
8355 Previously we parsed a list of dates, took the first one, and then
8356 tested its year range. That meant that if the first one failed, we
8357 returned nothing, regardless of what the others did. Now we test for
8358 sanity before running `msum` over the list of Maybe values. Anything
8359 failing the test will be Nothing, so will not be a candidate.
8361 * Docx reader:
8363 + Add simple comment functionality. (Jesse Rosenthal).
8364 This adds simple track-changes comment parsing to the docx reader. It is
8365 turned on with `--track-changes=all`. All comments are converted to
8366 inlines, which can list some information. In the future a warning will be
8367 added for comments with formatting that seems like it will be excessively
8368 denatured. Note that comments can extend across blocks. For that reason
8369 there are two spans: `comment-start` and `comment-end`. `comment-start`
8370 will contain the comment. `comment-end` will always be empty. The two
8371 will be associated by a numeric id.
8372 + Enable warnings in top-level reader (Jesse Rosenthal).
8373 Previously we had only allowed for warnings in the parser. Now we allow
8374 for them in the `Docx.hs` as well. The warnings are simply concatenated.
8375 + Add warning for advanced comment formatting. (Jesse Rosenthal).
8376 We can't guarantee we'll convert every comment correctly, though we'll
8377 do the best we can. This warns if the comment includes something other
8378 than Para or Plain.
8379 + Add tests for warnings. (Jesse Rosenthal).
8380 + Add tests for comments (Jesse Rosenthal).
8381 We test for comments, using all track-changes options. Note that we
8382 should only output comments if `--track-changes=all`. We also test for
8383 emitting warnings if there is complicated formatting.
8385 * README: update to include track-changes comments. (Jesse Rosenthal)
8387 * Improved Windows installer - don't ignore properties set on command-line.
8388 See #2708. Needs testing to see if this resolves the issue.
8389 Thanks to @nkalvi.
8391 * Process markdown extensions on command line in L->R order (#2995).
8392 Previously they were processed, very unintuitively, in R->L
8393 order, so that `markdown-tex_math_dollars+tex_math_dollars`
8394 had `tex_math_dollars` disabled.
8396 * Added `secnumdepth` variable to LaTeX template (#2920).
8398 * Include table of contents in README.html in Windows package.
8400 * Writers: treat SoftBreak as space for stripping (Jesse Rosenthal)
8401 In Writers.Shared, we strip leading and trailing spaces for display
8402 math. Since SoftBreak's are treated as spaces, we should strip those
8403 too.
8405 * beamer, latex templates: pass biblatexoptions directly in package load.
8406 This allows runtime optinos to be used. Fixes jgm/pandoc-citeproc#201
8408 * CPP workaround for deprecation of `parseUrl` in http-client.
8410 * Removed some redundant class constraints.
8412 * make_oxs_package.sh - use OSX env variable.
8414 * Added `winpkg` target to Makefile. This downloads the windows package
8415 from appveyor and signs it using the key.
8417 * Document Org mode as a format containing raw TeX (Albert Krewinkel).
8418 Raw TeX is kept verbatim when the output format is Emacs Org mode.
8420 * Support math with haddock-library >= 1.4.
8422 * Removed `-rtsopts` from library stanza. It has no effect, and Hackage
8423 wouldn't accept the package.
8425 * Update library dependency versions.
8427## pandoc 1.17.1 (2016-06-04)
8429 * New output format: `docbook5` (Ivo Clarysse).
8431 * `Text.Pandoc.Options`: Add `writerDocBook5` to `WriterOptions`
8432 (API change).
8434 * Org writer:
8436 + Add :PROPERTIES: drawer support (Albert Krewinkel, #1962).
8437 This allows header attributes to be added to org documents in the form
8438 of `:PROPERTIES:` drawers. All available attributes are stored as
8439 key/value pairs. This reflects the way the org reader handles
8440 `:PROPERTIES:` blocks.
8441 + Add drawer capability (Carlos Sosa). For the implementation of the
8442 Drawer element in the Org Writer, we make use of a generic Block
8443 container with attributes. The presence of a `drawer` class defines
8444 that the `Div` constructor is a drawer. The first class defines the
8445 drawer name to use. The key-value list in the attributes defines
8446 the keys to add inside the Drawer. Lastly, the list of Block elements
8447 contains miscellaneous blocks elements to add inside of the Drawer.
8448 + Use `CUSTOM_ID` in properties (Albert Krewinkel). The `ID` property is
8449 reserved for internal use by Org-mode and should not be used.
8450 The `CUSTOM_ID` property is to be used instead, it is converted to the
8451 `ID` property for certain export format.
8453 * LaTeX writer:
8455 + Ignore `--incremental` unless output format is beamer (#2843).
8456 + Fix polyglossia to babel env mapping (Mauro Bieg, #2728).
8457 Allow for optional argument in square brackets.
8458 + Recognize `la-x-classic` as Classical Latin (Andrew Dunning).
8459 This allows one to access the hyphenation patterns in CTAN's
8460 hyph-utf8.
8461 + Add missing languages from hyph-utf8 (Andrew Dunning).
8462 + Improve use of `\strut` with `\minipage` inside tables
8463 (Jose Luis Duran). This improves spacing in multiline
8464 tables.
8465 + Use `{}` around options containing special chars (#2892).
8466 + Avoid lazy `foldl`.
8467 + Don't escape underscore in labels (#2921). Previously they were
8468 escaped as `ux5f`.
8469 + brazilian -> brazil for polyglossia (#2953).
8471 * HTML writer: Ensure mathjax link is added when math appears in footnote
8472 (#2881). Previously if a document only had math in a footnote, the
8473 MathJax link would not be added.
8475 * EPUB writer: set `navpage` variable on nav page.
8476 This allows templates to treat it differently.
8478 * DocBook writer:
8480 + Use docbook5 if `writerDocbook5` is set (Ivo Clarysse).
8481 + Properly handle `ulink`/`link` (Ivo Clarysse).
8483 * EPUB reader:
8485 + Unescape URIs in spine (#2924).
8486 + EPUB reader: normalise link id (Mauro Bieg).
8488 * Docx Reader:
8490 + Parse `moveTo` and `moveFrom` (Jesse Rosenthal).
8491 `moveTo` and `moveFrom` are track-changes tags that are used when a
8492 block of text is moved in the document. We now recognize these tags and
8493 treat them the same as `insert` and `delete`, respectively. So,
8494 `--track-changes=accept` will show the moved version, while
8495 `--track-changes=reject` will show the original version.
8496 + Tests for track-changes moving (Jesse Rosenthal).
8498 * ODT, EPUB, Docx readers: throw `PandocError` on unzip failure
8499 (Jesse Rosenthal) Previously, `readDocx`, `readEPUB`, and `readOdt`
8500 would error out if zip-archive failed. We change the archive extraction
8501 step from `toArchive` to `toArchiveOrFail`, which returns an Either value.
8503 * Markdown, HTML readers: be more forgiving about unescaped `&` in
8504 HTML (#2410). We are now more forgiving about parsing invalid HTML with
8505 unescaped `&` as raw HTML. (Previously any unescaped `&`
8506 would cause pandoc not to recognize the string as raw HTML.)
8508 * Markdown reader:
8510 + Fix pandoc title blocks with lines ending in 2 spaces (#2799).
8511 + Added `-s` to markdown-reader-more test.
8513 * HTML reader: fixed bug in `pClose`. This caused exponential parsing
8514 behavior in documnets with unclosed tags in `dl`, `dd`, `dt`.
8516 * MediaWiki reader: Allow spaces before `!` in MediaWiki table header
8517 (roblabla).
8519 * RST reader: Support `:class:` option for code block in RST reader
8520 (Sidharth Kapur).
8522 * Org reader (all Albert Krewinkel, except where noted otherwise):
8524 + Stop padding short table rows.
8525 Emacs Org-mode doesn't add any padding to table rows. The first
8526 row (header or first body row) is used to determine the column count,
8527 no other magic is performed.
8528 + Refactor rows-to-table conversion. This refactors
8529 the codes conversing a list table lines to an org table ADT.
8530 The old code was simplified and is now slightly less ugly.
8531 + Fix handling of empty table cells, rows (Albert Krewinkel, #2616).
8532 This fixes Org mode parsing of some corner cases regarding empty cells
8533 and rows. Empty cells weren't parsed correctly, e.g. `|||` should be
8534 two empty cells, but would be parsed as a single cell containing a pipe
8535 character. Empty rows where parsed as alignment rows and dropped from
8536 the output.
8537 + Fix spacing after LaTeX-style symbols.
8538 The org-reader was droping space after unescaped LaTeX-style symbol
8539 commands: `\ForAll \Auml` resulted in `∀Ä` but should give `∀ Ä`
8540 instead. This seems to be because the LaTeX-reader treats the
8541 command-terminating space as part of the command. Dropping the trailing
8542 space from the symbol-command fixes this issue.
8543 + Print empty table rows. Empty table rows should not
8544 be dropped from the output, so row-height is always set to be at least 1.
8545 + Move parser state into separate module.
8546 The org reader code has become large and confusing. Extracting smaller
8547 parts into submodules should help to clean things up.
8548 + Add support for sub/superscript export options.
8549 Org-mode allows to specify export settings via `#+OPTIONS` lines.
8550 Disabling simple sub- and superscripts is one of these export options,
8551 this options is now supported.
8552 + Support special strings export option Parsing of special strings
8553 (like `...` as ellipsis or `--` as en dash) can be toggled using the `-`
8554 option.
8555 + Support emphasized text export option. Parsing of emphasized text can
8556 be toggled using the `*` option. This influences parsing of text marked
8557 as emphasized, strong, strikeout, and underline. Parsing of inline math,
8558 code, and verbatim text is not affected by this option.
8559 + Support smart quotes export option. Reading of smart quotes can be
8560 toggled using the `'` option.
8561 + Parse but ignore export options. All known export options are parsed
8562 but ignored.
8563 + Refactor block attribute handling. A parser state attribute was used
8564 to keep track of block attributes defined in meta-lines. Global state
8565 is undesirable, so block attributes are no longer saved as part of the
8566 parser state. Old functions and the respective part of the parser state
8567 are removed.
8568 + Use custom `anyLine`. Additional state changes need to be made after
8569 a newline is parsed, otherwise markup may not be recognized correctly.
8570 This fixes a bug where markup after certain block-types would not be
8571 recognized.
8572 + Add support for `ATTR_HTML` attributes (#1906).
8573 Arbitrary key-value pairs can be added to some block types using a
8574 `#+ATTR_HTML` line before the block. Emacs Org-mode only includes these
8575 when exporting to HTML, but since we cannot make this distinction here,
8576 the attributes are always added. The functionality is now supported
8577 for figures.
8578 + Add `:PROPERTIES:` drawer support (#1877).
8579 Headers can have optional `:PROPERTIES:` drawers associated with them.
8580 These drawers contain key/value pairs like the header's `id`. The
8581 reader adds all listed pairs to the header's attributes; `id` and
8582 `class` attributes are handled specially to match the way `Attr` are
8583 defined. This also changes behavior of how drawers of unknown type
8584 are handled. Instead of including all unknown drawers, those are not
8585 read/exported, thereby matching current Emacs behavior.
8586 + Use `CUSTOM_ID` in properties. See above on Org writer changes.
8587 + Respect drawer export setting. The `d` export option can be used
8588 to control which drawers are exported and which are discarded.
8589 Basic support for this option is added here.
8590 + Ignore leading space in org code blocks (Emanuel Evans, #2862).
8591 Also fix up tab handling for leading whitespace in code blocks.
8592 + Support new syntax for export blocks. Org-mode version 9
8593 uses a new syntax for export blocks. Instead of `#+BEGIN_<FORMAT>`,
8594 where `<FORMAT>` is the format of the block's content, the new
8595 format uses `#+BEGIN_export <FORMAT>` instead. Both types are
8596 supported.
8597 + Refactor `BEGIN...END` block parsing.
8598 + Fix handling of whitespace in blocks, allowing content to be indented
8599 less then the block header.
8600 + Support org-ref style citations. The *org-ref* package is an
8601 org-mode extension commonly used to manage citations in org
8602 documents. Basic support for the `cite:citeKey` and
8603 `[[cite:citeKey][prefix text::suffix text]]` syntax is added.
8604 + Split code into separate modules, making for cleaner code and
8605 better decoupling.
8607 * Added `docbook5` template.
8609 * `--mathjax` improvements:
8611 + Use new CommonHTML output for MathJax (updated default MathJax URL,
8612 #2858).
8613 + Change default mathjax setup to use `TeX-AMS_CHTML` configuration.
8614 This is designed for cases where the input is always TeX and maximal
8615 conformity with TeX is desired. It seems to be smaller and load faster
8616 than what we used before. See #2858.
8617 + Load the full MathJax config to maximize loading speed (KolenCheung).
8619 * Bumped upper version bounds to allow use of latest packages
8620 and compilation with ghc 8.
8622 * Require texmath 0.8.6.2. Closes several texmath-related bugs (#2775,
8623 #2310, #2310, #2824). This fixes behavior of roots, e.g.
8624 `\sqrt[3]{x}`, and issues with sub/superscript positioning
8625 and matrix column alignment in docx.
8627 * README:
8629 + Clarified documentation of `implicit_header_references` (#2904).
8630 + Improved documentation of `--columns` option.
8632 * Added appveyor setup, with artefacts (Jan Schulz).
8634 * stack.yaml versions: Use proper flags used for texmath, pandoc-citeproc.
8636 * LaTeX template: support for custom font families (vladipus).
8637 Needed for correct polyglossia operation with Cyrillic fonts and perhaps
8638 can find some other usages. Example usage in YAML metadata:
8640 fontfamilies:
8641 - name: \cyrillicfont
8642 font: Liberation Serif
8643 - name: \cyrillicfonttt
8644 options: Scale=MatchLowercase
8645 font: Liberation
8647 * Create unsigned msi as build artifact in appveyor build.
8649 * On travis, test with ghc 8.0.1; drop testing for ghc 7.4.1.
8653## pandoc 1.17.0.3 (2016-03-24)
8655 * LaTeX writer: Fixed position of label in figures (#2813).
8656 Previously the label wasn't in the right place, and `\ref`
8657 wouldn't work properly.
8658 * Added .tei test files to pandoc.cabal so they'll be included
8659 in tarball (#2811).
8660 * Updated copyright dates.
8662## pandoc 1.17.0.2 (2016-03-23)
8664 * Fixed serious regression in `htmlInBalanced`, which caused
8665 newlines to be omitted in some raw HTML blocks in Markdown
8666 (#2804).
8668## pandoc 1.17.0.1 (2016-03-21)
8670 * File scope is no longer used when there are no input files (i.e.,
8671 when input comes from stdin). Previously file scope was triggered
8672 when the `json` reader was specified and input came from `stdin`,
8673 and this caused no output to be produced. (Fix due to Jesse Rosenthal;
8674 thanks to Fedor Sheremetyev for calling the bug to our attention.)
8675 * Improved documentation of templates (#2797).
8677## pandoc 1.17 (2016-03-20)
8679 * Added `--file-scope` option (Jesse Rosenthal).
8680 By default pandoc operates on multiple files by first concatenating
8681 them (around extra line breaks) and then processing the joined file. So
8682 it only parses a multi-file document at the document scope. This has the
8683 benefit that footnotes and links can be in different files, but for
8684 some purposes it is useful to parse the individual files first
8685 and then combine their outputs (e.g. when the files use footnotes
8686 or links with the same labels). The `--file-scope` option causes
8687 pandoc to parse the files first, and then combine the parsed output,
8688 instead of combining before parsing. `--file-scope` is selected
8689 automatically for binary input files (which cannot be concatenated)
8690 and for pandoc json.
8692 * Add TEI Writer (Chris Forster) and `tei` output format.
8694 * Added a general `ByteStringReader` with warnings, used by the docx
8695 reader (API change, Jesse Rosenthal).
8697 * Add `readDocxWithWarnings` (API change, Jesse Rosenthal).
8699 * Changed type of `Shared.uniqueIdent` argument from
8700 `[String]` to `Set String`. This avoids performance problems in documents
8701 with many identically named headers (API change, #2671).
8703 * Removed `tex_math_single_backslash` from `markdown_github` options
8704 (#2707).
8706 * Make language extensions as well as full language names
8707 trigger syntax highlighting. For example, `py` will now work as
8708 well as `python` (jgm/highlighting-kate#83).
8710 * Added `institute` variable to latex, beamer templates (Fraser
8711 Tweedale, Josef Svenningsson).
8713 * Docx reader (Jesse Rosenthal):
8715 + Handle alternate content. Some word functions (especially graphics)
8716 give various choices for content so there can be backwards compatibility.
8717 + Don't turn numbered headers into lists.
8718 + Docx Reader: Add state to the parser, for warnings
8719 + Update feature checklist in source code.
8720 + Get rid of `Modifiable` typeclass.
8721 + Add tests for adjacent hyperlinks.
8722 + Add a "Link" modifier to `Reducible`. We want to make sure that
8723 links have their spaces removed, and are appropriately smushed
8724 together (#2689).
8726 * HTML reader:
8728 + Fixed behavior of base tag (#2777).
8729 If the base path does not end with slash, the last component
8730 will be replaced. E.g. base = `http://example.com/foo`
8731 combines with `bar.html` to give `http://example.com/bar.html`.
8732 If the href begins with a slash, the whole path of the base
8733 is replaced. E.g. base = `http://example.com/foo/` combines
8734 with `/bar.html` to give `http://example.com/bar.html`.
8735 + Rewrote `htmlInBalanced`. This version avoids an exponential
8736 performance problem with `<script>` tags, and it should be faster
8737 in general (#2730).
8738 + Properly handle an empty cell in a simple table (#2718).
8739 + Handle multiple `<meta>` tags with same name. Put them in a list
8740 in the metadata so they are all preserved, rather than (as before)
8741 throwing out all but one..
8743 * Markdown reader:
8745 + Improved pipe table parsing (#2765).
8746 + Allow `+` separators in pipe table cells. We already allowed
8747 them in the header, but not in the body rows, for some reason.
8748 This gives compatibility with org-mode tables.
8749 + Don't cross line boundary parsing pipe table row.
8750 Previously an Emph element could be parsed across the newline
8751 at the end of the pipe table row.
8752 + Use `htmlInBalanced` for `rawVerbatimBlock`, for better
8753 performance (#2730).
8754 + Fixed bug with smart quotes around tex math.
8756 * LaTeX reader:
8758 + Handle interior `$` characters in math (#2743). For example,
8759 `$$\hbox{$i$}$$`.
8760 + `inlineCommand` now gobbles an empty `{}` after any command (#2687).
8761 This gives better results when people write e.g. `\TeX{}` in Markdown.
8762 + Properly handle LaTeX "math" environment as inline math (#2171).
8764 * Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.
8765 Closes #2674.
8767 * Org reader (Albert Krewinkel):
8769 + Prefix even empty figure names with "fig:" (#2643). The
8770 convention used by pandoc for figures is to mark them by prefixing
8771 the name with `fig:`. The org reader failed to do this if a figure
8772 had no name.
8773 + Refactor link-target processing (#2684).
8775 * ConTeXt writer: Fix whitespace at line beginning in line blocks (#2744).
8776 Thanks to @c-foster.
8778 * HTML writer: Don't include alignment attribute for default table columns.
8779 Previously these were given "left" alignment. Better to leave off
8780 alignment attributes altogether (#2694).
8782 * Markdown writer: Use hyphens for YAML metadata block bottom line, for
8783 better compatibility with other Markdown flavors (Henrik Tramberend).
8785 * LaTeX writer:
8787 + Use image identifier to create a label and hypertarget for
8788 figures (Mauro Bieg).
8789 + Avoid double toprule in headerless table with caption (#2742).
8790 + Clean up options parser (Jesse Rosenthal).
8791 + Treat `memoir` template with `article` option as article, instead
8792 of treating all `memoir` templates as books.
8793 + Allow more flexible table alignment (Henrik Tramberend, #2665).
8794 New default is not to include `[c]` option (which is the default
8795 anyway if no positioning is specified). Now LaTeX emplates can
8796 control the overall table alignment in a document by setting the
8797 longtable length variables `LTleft` and `LTright`. For example,
8798 `\setlength\LTleft\parindent\setlength\LTright\fill`
8799 will create left-aligned tables that respect paragraph indentation.
8801 * Docx writer: Handle image alt text (#2754, Mauro Bieg).
8803 * Org writer - pass through RawInline with format "org".
8805 * DokuWiki writer: use `$$` for display math.
8807 * Custom writer: Pass attributes parameter to CaptionedImage (#2697).
8809 * Make protocol-relative URIs work again (#2737).
8811 * make_osx_package.sh: Use env variable for developer id certs.
8813 * Raise `tagsoup` lower bound to 0.13.7 to fix entity-related
8814 problems (#2734).
8816 * Allow `zip-archive` 0.3.
8818 * Allow `aeson` 0.11.
8820## pandoc 1.16.0.2 (2016-01-12)
8822 * Depend on deepseq rather than deepseq-generics (fpco/stackage#1096).
8824 * Fixed regression in latex smart quote parsing (#2645).
8825 In cases where a match was not found for a quote, everything
8826 from the open quote to the end of the paragraph was being dropped.
8828## pandoc 1.16.0.1 (2016-01-10)
8830 * Fixed regression with `--latex-engine` (#2618). In 1.16
8831 `--latex-engine` raises an error if a full path is given.
8833 * Org reader: Fix function dropping subtrees tagged `:noexport`
8834 (Albert Krewinkel, #2628):
8836 * Markdown reader: renormalize table column widths if they exceed 100%
8837 (#2626).
8839 * Textile reader: don't allow block HTML tags in inline contexts.
8840 The reader previously did allow this, following redcloth,
8841 which happily parses
8843 Html blocks can be <div>inlined</div> as well.
8845 as
8847 <p>Html blocks can be <div>inlined</div> as well.</p>
8849 This is invalid HTML. The above sample now produces;
8851 <p>Html blocks can be</p>
8852 <div>
8853 <p>inlined</p>
8854 </div>
8855 <p>as well.</p>
8857 * Improved default template lookup for custom lua scripts (#2625).
8858 Previously, if you tried to do `pandoc -s -t /path/to/lua/script.lua`,
8859 pandoc would look for the template in
8860 `~/.pandoc/templates/default./path/to/lua/script.lua`.
8861 With this change it will look in the more reasonable
8862 `~/.pandoc/templates/default.script.lua`. This makes it possible to
8863 store default templates for custom writers.
8865 * RST, Markdown writers: Fixed rendering of grid tables with blank rows
8866 (#2615).
8868 * LaTeX writer: restore old treatment of Span (#2624). A Span is
8869 now rendered with surrounding `{}`, as it was before 1.16.
8871 * Entity handling fixes: improved handling of entities like
8872 `&lang;` that require a trailing semicolon. Allow uppercase
8873 `x` in numerical hexidecimal character references, working
8874 around a tagsoup bug.
8876 * `stack.yaml` - use lts-4.0, but with older aeson to avoid excessive
8877 memory use on compile. With aeson 0.10 we were getting an out of
8878 memory error on a 2GB Ubuntu 64-bit VM.
8880 * Improved deb package creation script. Made `DPKGVER` work.
8881 Renamed `COMMIT` to `TREE`. You should now be able to do
8882 `TREE=1.16.0.1 DPKGVER=2 make deb`.
8885## pandoc 1.16 (2016-01-02)
8887 * Added `Attr` field to `Link` and `Image` (Mauro Bieg, #261, API change).
8889 + Added syntax for link and image attributes to pandoc's Markdown.
8890 + Updated readers and writers to use link and image attributes
8891 when appropriate.
8892 + Support image attributes in Docx, Textile, RST readers.
8894 * Renamed link attribute extensions. The old `link_attributes` is
8895 now `mmd_link_attributes`, and `link_attributes` now enables the
8896 new pandoc-style link and image attributes (API change).
8897 Note: this change could break some existing workflows.
8899 * Implemented `SoftBreak` and new `--wrap` option (#1701, API change).
8900 Added threefold wrapping option.
8902 + Command line option: deprecated `--no-wrap`, added
8903 `--wrap=[auto|none|preserve]`
8904 + Added `WrapOption`, exported from `Text.Pandoc.Options`
8905 + Changed type of `writerWrapText` in `WriterOptions` from
8906 `Bool` to `WrapOption`.
8907 + Modified `Text.Pandoc.Shared` functions to allow `SoftBreak`.
8908 + Supported `SoftBreak` in readers and writers.
8910 * Text.Pandoc.Options: Added `writerDpi` to `WriterOptions` (API
8911 change, Mauro Bieg).
8913 * Added `--dpi` command-line option (Mauro Bieg).
8915 * Rationalized behavior of `--no-tex-ligatures` and `--smart` (#2541).
8916 This change makes `--no-tex-ligatures` affect the LaTeX reader
8917 as well as the LaTeX and ConTeXt writers. If it is used,
8918 the LaTeX reader will parse characters `` ` ``, `'`, and `-`
8919 literally, rather than parsing ligatures for quotation marks
8920 and dashes. And the LaTeX writer will print unicode quotation
8921 mark and dash characters literally, rather than converting
8922 them to the standard ASCII ligatures. Note that `--smart` has
8923 no effect on the LaTeX reader. `--smart` is still the default
8924 for all input formats when LaTeX or ConTeXt is the output format,
8925 *unless* `--no-tex-ligatures` is used.
8927 Some examples to illustrate the logic:
8929 ```
8930 % echo "'hi'" | pandoc -t latex
8931 `hi'
8932 % echo "'hi'" | pandoc -t latex --no-tex-ligatures
8933 'hi'
8934 % echo "'hi'" | pandoc -t latex --no-tex-ligatures --smart
8935 ‘hi’
8936 % echo "'hi'" | pandoc -f latex --no-tex-ligatures
8937 <p>'hi'</p>
8938 % echo "'hi'" | pandoc -f latex
8939 <p>’hi’</p>
8940 ```
8942 * Removed deprecated options `--offline` and `--html5`.
8944 * Fixed language code for Czech (`cs` not `cz`) (#2597).
8946 * Implemented `east_asian_line_breaks` extension (#2586).
8947 In `Text.Pandoc.Options`, added `Ext_east_asian_line_breaks` constructor
8948 to `Extension` (API change). This extension is like
8949 `ignore_line_breaks`, but smarter -- it only ignores line breaks
8950 between two East Asian wide characters. This makes it better suited
8951 for writing with a mix of East Asian and non-East Asian scripts.
8953 * Added support for PDF creation via `wkhtmltopdf`.
8954 To use this: `pandoc -t html5 -o result.pdf` (and add `--mathjax`
8955 if you have math.) Margins can be set using the variables
8956 `margin-top`, `margin-bottom`, `margin-left`, `margin-right`.
8957 Other styling can be done through CSS.
8959 * Fixed cite key parsing regression (jgm/pandoc-citeproc#201).
8960 We were capturing final colons as in `[@foo: bar]`; the citation id
8961 was being parsed as `@foo:`.
8963 * ICML writer:
8965 + Fixed image syntax for local files (#2589).
8966 + Changed type of `writeICML` (Mauro Bieg).
8967 API change: It is now `WriterOptions -> Pandoc -> IO String`.
8968 Also handle new image attributes.
8969 + Intersperse line breaks instead of appending them to
8970 every `ParagraphStyleRange` (Mauro Bieg, #2501).
8971 + Add `Cite` style to citations (Mauro Bieg).
8972 + Added figure handling (#2590, Mauro Bieg).
8973 + Better handling of math. Instead of just printing the raw tex,
8974 we now try to fake it with unicode characters.
8976 * HTML writer: Include `example` class for example lists (#2524).
8978 * ODT/OpenDocument writer: improved image attributes (Mauro Bieg).
8980 + Support for percentage widths/heights
8981 + Use `Attr` instead of title to get dimensions from ODT walker
8982 to `writeOpenDocument`.
8984 * AsciiDoc writer:
8986 + Support anchors in spans and divs with id elements
8987 (jgm/pandoc-citeproc#143).
8988 + Fixed code blocks (#1861).
8990 * Haddock writer: omit formatting inside links, which isn't supported
8991 by Haddock (#2515).
8993 * MediaWiki writer: Fixed spacing issues in table cells.
8995 + Start cell on new line unless it's a single Para or Plain
8996 (#2606).
8997 + For single Para or Plain, insert a space after the `|` to
8998 avoid problems when the text begins with a character like
8999 `-` (#2604).
9001 * Beamer writer: mark frame as fragile when it contains verbatim (#1613).
9003 * LaTeX writer:
9005 + Add support for GAP highlighting using listings (Raniere Silva).
9006 + Consider `header-includes` content as well as templates
9007 when determining whether to use csquotes (Andreas Lööw).
9008 + Create defaults for geometry using `margin-left` etc.
9009 If `geometry` has no value, but `margin-left`, `margin-right`,
9010 `margin-top`, and/or `-margin-bottom` are given, a default value
9011 for `geometry` is created from these. Note that these variables
9012 already affect PDF production via HTML5 with `wkhtmltopdf`.
9014 * ConTeXt writer: set default layout based on `margin-left`, etc.
9015 This sets up `\setuplayout` based on the variables `margin-left`,
9016 `margin-right`, `margin-bottom`, and `margin-top`, if no layout
9017 is given.
9019 * Docx writer: better handling of PDF images. Previously we tried
9020 to get the image size from the image even if an explicit size was
9021 specified. Since we still can't get image size for PDFs, this made
9022 it impossible to use PDF images in docx. Now we don't try to get
9023 the image size when a size is already explicitly specified.
9025 * Markdown writer: use raw HTML for link/image attributes when
9026 the `link_attributes` extension is unset and `raw_html` is set (#2554).
9028 * MediaWiki reader: interpret markup inside `<tt>`, `<code>` (#2607).
9030 * LaTeX reader:
9032 + Improved smart quote parsing (#2555). This fixes redering of
9033 unmatched quotes.
9034 + Use curly quotes for unmatched ` (#2555).
9035 + Allow blank space between braced arguments of commands (#2592).
9037 * Markdown reader:
9039 + Improved pipe table relative widths. Previously pipe table
9040 columns got relative widths (based on the header underscore lines)
9041 when the source of one of the rows was greater in width than the
9042 column width. This gave bad results in some cases where much of
9043 the width of the row was due to nonprinting material (e.g. link
9044 URLs). Now pandoc only looks at printable width (the width of a
9045 plain string version of the source), which should give better results.
9046 Thanks to John Muccigrosso for bringing up the issue.
9047 + Fixed parsing bug with macros. Previously macro definitions in
9048 indented code blocks were being parsed as macro definitions, not code.
9050 * Textile reader: skip over attribute in image source (#2515).
9051 We don't have a place yet for styles or sizes on images, but
9052 we can skip the attributes rather than incorrectly taking them
9053 to be part of the filename.
9055 * Docx reader: Handle dummy list items (Jesse Rosenthal).
9056 These come up when people create a list item and then delete the
9057 bullet. It doesn't refer to any real list item, and we used to ignore
9058 it.
9060 * CommonMark reader/writer rewritten to use latest `cmark`.
9062 * Fixed Emoji character definitions (#2523). There were many bugs in the
9063 definitions.
9065 * `Text.Pandoc.CSS`:
9067 + Added `pickStylesToKVs` function to extract multiple properties at
9068 once (API change, Mauro Bieg).
9069 + Parse CSS that doesn't contain the optional semicolon (Mauro Bieg).
9071 * `trypandoc`: sort drop-down lists.
9073 * Beamer template:
9075 + Made `\euro` conditional on presence of character.
9076 for xelatex and lualatex, as it is for pdflatex (Andrew Dunning).
9077 + Moved `header-includes` before setting of title (Thomas Hodgson),
9078 to match the LaTeX template (jgm/pandoc-templates#168).
9079 + Added `section-titles` variable (defaults to true)
9080 to enable/suppress section title pages in beamer
9081 slide shows (Thomas Hodgson).
9082 + Moved beamer themes after fonts, so that themes can
9083 change fonts. (Previously the fonts set were being
9084 clobbered by lmodern.sty.) (Thomas Hodgson).
9086 * Beamer/LaTeX template changes (Thomas Hodgson):
9087 + Added `thanks` variable
9088 + Use `parskip.sty` when `indent` isn't set (fall back to using
9089 `setlength` as before if `parskip.sty` isn't available).
9090 + Use `biblio-style` with biblatex.
9091 + Added `biblatexoptions` variable.
9093 * LaTeX template changes:
9095 + Added `paper` after `$papersize$` variable in latex template.
9096 Thus you can say `papersize: a4` and the latex will contain
9097 `a4paper`. This change may break some existing workflows; if
9098 you currently specify `a4paper`, you'll get `a4paperpaper` which
9099 is meaningless. However, the change seems worth it, as it will
9100 make the `papersize` variable work uniformly across ConTeXt, LaTeX,
9101 and html->pdf via wkhtmltopdf.
9102 + Only pass options to color package if `colorlinks` is set
9103 (Andrew Dunning).
9104 + Make definition of `\euro` conditional in xelatex/lualatex,
9105 as it is already for pdflatex (Andrew Dunning).
9106 + Removed setting of `subject` in PDF metadata.
9107 This used to be set to the subtitle, but really the subtitle
9108 need not give the subject. Also, `subtitle` can contain formatting,
9109 so we'd need, at least, a plain text version for this.
9110 + Moved `header-includes` before setting of `\title`, `\author`,
9111 etc. This allows these macros to be redefined.
9112 + Use `\subtitle` command for `subtitle`, instead of tacking it
9113 on to the title as before. We give a no-op fallback definition if it
9114 is not defined. This change should produce much better results
9115 in classes that support `\subtitle`. With the default article
9116 class, which does not define `\subtitle`, subtitles will no
9117 longer be printed unless the user defines `\subtitle` and
9118 redefines `\maketitle`.
9119 + Moved redefinitions of `\paragraph` and `\subparagraph` to
9120 before header-includes.
9122 * Context template:
9124 + Use `simplefonts` for font loading (Paolo Rodríguez). This is
9125 needed for things to work on ConTeXt stable from TeXLive 2015.
9126 + Revert use of `\setuphead` in title block (Andrew Dunning,
9127 Rik Kabel).
9129 * Update LaTeX/ConTeXt link colour usage (Andrew Dunning).
9131 * Fixed man template so disabling hyphenation actually works.
9132 The command needs to come after .TH.
9134 * Added 'navigation' variable to beamer template (#2543).
9135 Valid values are `empty` (the default), `horizontal`, `vertical`,
9136 and `frame`. Note that this changes the default behavior from
9137 `horizontal` to `empty`. Closes #2543.
9139 * Added `toc` to HTML slide format templates (Andrew Dunning),
9140 so that `--toc` creates a contents slide.
9142 * Added `stack.full.yaml` to build `pandoc-citeproc` as well.
9144 * Allow pipe tables with no body rows (#2556).
9145 Previously this raised a runtime error.
9147 * Shared: Improved `fetchItem` so that `C:/Blah/Blah.jpg` isn't treated
9148 as URL. The Haskell URI parsing routines will accept "C:" as a
9149 scheme, so we rule that out manually. This helps with
9150 `--self-contained` and absolute Windows paths.
9152 * Define a `meta-json` variable for all writers (#2019). This contains
9153 a JSON version of all the metadata, in the format selected for the
9154 writer. So, for example, to get just the YAML metadata, you can run
9155 pandoc with the following custom template: `$meta-json$`. The intent
9156 is to make it easier for static site generators and other tools to get
9157 at the metadata.
9159 * Document limitations of --self-contained (#2553).
9161 * Improved Citations section of README (#2551). Added information
9162 about `link-citations` and a link to the pandoc-citeproc man page.
9164 * `ImageSize`: use `safeRead` instead of `readMaybe`, which isn't
9165 in base < 4.6.
9167 * Allow .adoc file extension for AsciiDoc (Andrew Dunning).
9169 * Improved implicit pandoc-citeproc inclusion.
9170 The filter pandoc-citeproc is automatically used when
9171 `--bibliography` is specified on the command line, unless
9172 `--natbib` or `--biblatex` is used. However, previously this
9173 only worked if `--bibliography` was spelled out in full, and not
9174 if `--biblio` was used.
9176 * reveal.js: Interpret pauses correctly for all headers (#2530).
9177 Previously, when using headers below the slide level, pauses are left
9178 uninterpreted into pauses. In my opinion, unexpected behavior but
9179 intentional looking at the code.
9181 * Remove redundant `center` variable for reveal.js (Andrew Dunning).
9183 * Parsing: Add `extractIdClass`, modified type of `KeyTable` (Mauro
9184 Bieg, API change).
9186 * ImageSize: Added functions for converting between image dimensions
9187 (Mauro Bieg).
9189 * Use lts-3.18 in stack.yaml. This avoids Windows build
9190 issues with the HTTP library.
9192 * Bump version bounds for dependencies.
9194## pandoc 1.15.2.1 (2015-11-16)
9196 * Added two missing test files, and `stack.yaml`, to
9197 `extra-source-files` so they're included in the source tarball.
9199 * reveal.js template: Fixed parallaxBackground options.
9200 `parallaxBackgroundHorizontal` and `parallaxBackgroundVertical`
9201 need integer values, not strings. (Vaughn Iverson)
9203## pandoc 1.15.2 (2015-11-15)
9205 * `pandoc my.md -t context -o my.pdf` will now create a PDF using
9206 ConTeXt rather than LaTeX (#2463).
9208 * Fixed omitted `url(...)` in CSS data-uri with `--self-contained` (#2489).
9210 * Added `emoji` Markdown extension, enabled by default in `markdown_github`
9211 (#2523). Added `Ext_emoji` to `Extension` in `Text.Pandoc.Options`
9212 (API change).
9214 * `Text.Pandoc.Readers.HTML.parseTags`: Fixed over-eager raw HTML inline
9215 parsing (#2469). Tightened up the inline HTML parser so it disallows
9216 TagWarnings.
9218 * Derive `Generic` instances for the types in `Text.Pandoc.Options`.
9220 * Org reader:
9222 + Fix paragraph/list interaction (Albert Krewinkel, #2464).
9223 Paragraphs can be followed by lists, even if there is no blank line
9224 between the two blocks. However, this should only be true if the
9225 paragraph is not within a list, were the preceding block should be
9226 parsed as a plain instead of paragraph (to allow for compact lists).
9227 Thanks to @rgaiacs for bringing this up.
9228 + Allow toggling header args (Albert Krewinkel, #2269).
9229 Org-mode allows to skip the argument of a code block header argument if
9230 it's toggling a value. Argument-less headers are now recognized,
9231 avoiding weird parsing errors.
9232 + Fix markup parsing in headers (Albert Krewinkel, #2504).
9233 Markup as the very first item in a header wasn't recognized. This was
9234 caused by an incorrect parser state: positions at which inline markup
9235 can start need to be marked explicitly by changing the parser state.
9236 This wasn't done for headers. The proper function to update the state
9237 is now called at the beginning of the header parser, fixing this issue.
9238 + Fix emphasis rules for smart parsing (Albert Krewinkel, #2513).
9239 Smart quotes, ellipses, and dashes should behave like normal quotes,
9240 single dashes, and dots with respect to text markup parsing.
9241 + Require whitespace around definition list markers (#2518).
9242 This rule was not checked before, resulting in bugs with footnotes
9243 and some link types.
9245 * Markdown reader:
9247 + Pipe tables with long lines now get relative cell widths (#2471).
9248 If a pipe table contains a line longer than the column width (as set by
9249 `--columns` or 80 by default), relative widths are computed based on the
9250 widths of the separator lines relative to the column width. This should
9251 solve persistent problems with long pipe tables in LaTeX/PDF output, and
9252 give more flexibility for determining relative column widths in other
9253 formats, too. For narrower pipe tables, column widths of 0 are used,
9254 telling pandoc not to specify widths explicitly in output formats that
9255 permit this.
9256 + Improved parser for `mmd_title_block`. We now allow blank metadata
9257 fields. These were explicitly disallowed before.
9258 + Citation keys can now contain `://`, so URLs and DOIs can be used
9259 as citation keys (jgm/pandoc-citeproc#166).
9261 * Beamer template: fix incompatibility of section slides with natbib.
9262 Natbib (and presumably biblatex) bibliography commands create
9263 their own section. Since these are in frame environments,
9264 we have an incompatibility with the `\AtBeginSection` macro
9265 which creates a special frame when a new section occurs.
9266 (We can't have a frame inside another frame.) This change disables
9267 `\AtBeginSection` inside bibliography slides. Thinks to Yihui Xie for
9268 bringing the problem to my attention. This supersedes #145. See
9269 discussion there.
9271 * Textile reader: don't do smart punctuation unless explicitly asked
9272 (#2480). Note that although smart punctuation is part of the textile
9273 spec, it's not always wanted when converting from textile
9274 to, say, Markdown. So it seems better to make this an option.
9276 * LaTeX reader: Handle `comment` environment (Arata Mizuki).
9277 The `comment` environment is handled in a similar way to the
9278 `verbatim` environment, except that its content is discarded.
9280 * Docx reader: Follow relationships correctly in foot/endnotes (#2258,
9281 Jesse Rosenthal). This fixes a problem with links in notes.
9283 * LaTeX and ConTeXt writers: support `lang` attribute on divs and spans
9284 (mb21). For LaTeX, also collect `lang` and `dir` attributes on spans and
9285 divs to set the `lang`, `otherlangs` and `dir` variables if they aren’t set
9286 already. See #895.
9288 * LaTeX writer:
9290 + Use proper command for `\textarabic` (mb21).
9291 + Added `de-CH-1901`, fixed `el-polyton` in `toPloyglossia` (Nick Bart).
9292 + Use `\hypertarget` and `\hyperlink` for links. This works correctly
9293 to link to Div or Span elements. We now don't bother defining `\label`
9294 for Div or Span elements. Closes jgm/pandoc-citeproc#174.
9295 + Avoid footnotes in list of figures (#1506).
9296 + Properly handle footnotes in captions (#1506).
9297 + Add `\protect` to `\hyperlink` (#2490). Thanks to Hadrien Mary.
9298 + Set `colorlinks` if `linkcolor`, `urlcolor`, `citecolor`, or
9299 `toccolor` is set (#2508).
9301 * Textile writer: support start number in ordered lists (#2465).
9303 * OpenDocument writer: Allow customization of opendocument
9304 automatic styles. Automatic styles can now be inserted in the
9305 template, which now provides the enclosing `<office:automatic-styles>`
9306 tags (#2520).
9308 * Docx writer: insert space between footnote reference and note (#2527).
9309 This matches Word's default behavior.
9311 * EPUB writer: don't download linked media when `data-external` attribute
9312 set (#2473). By default pandoc downloads all linked media and includes it
9313 in the EPUB container. This can be disabled by setting `data-external` on
9314 the tags linking to media that should not be downloaded. Example:
9316 <audio controls="1">
9317 <source src="http://www.sixbarsjail.it/tmp/bach_toccata.mp3"
9318 type="audio/mpeg"></source>
9319 </audio>
9321 * HTML writer: use width on whole table if col widths sum to < 100%.
9322 Otherwise some browsers display the table with the columns
9323 separated far apart.
9325 * AsciiDoc template: Fix `author` and `date`; add `keywords`,
9326 `abstract` (Andrew Dunning).
9328 * HTML-based templates (Andrew Dunning):
9330 + Use en dash instead of hyphen between title prefix and title.
9331 + Add `keywords` to metadata.
9332 + Add `lang`, `dir`, `quotes` where missing.
9333 + Always make author and date display conditional.
9334 + Updated dzslides template from source.
9336 * Man template: make "generated by" comment conditional.
9338 * LaTeX, Beamer templates:
9340 + Add `babel-otherlangs` for language divs/spans; `babel-newcommands`,
9341 filled by commands that make babel understand the polyglossia-style
9342 language directives (mb21, #137).
9343 + Improved formatting of conditionals; `$for$` is always provided to allow
9344 multiple options (Andrew Dunning, #141).
9345 + Use `Ligatures=TeX` rather than `Mapping=tex-text` with `fontspec`
9346 to improve support for LuaTeX (Andrew Dunning, #135).
9347 + Revise `hyperref` usage (Andrew Dunning, #139, #141):
9348 - use same options for all LaTeX engines;
9349 - add `subtitle` and `keywords` to PDF metadata;
9350 - do not override `hyperref` link coloring without user input, effectively making
9351 the `hidelinks` option the default (removed as a separate variable);
9352 - link colors can be enabled (using a slightly darker version of the old
9353 defaults) using a new `colorlinks` variable, automatically used by
9354 the LaTeX writer when custom colors are specified;
9355 - `pdfborder={0 0 0}` is automatically set by `hyperref` with
9356 `colorlinks`, and is only applied if `colorlinks` is disabled.
9358 * ConTeXt template (Andrew Dunning):
9360 + New variables for controlling styles: `linkstyle`, `linkcolor`,
9361 `linkcontrastcolor`, `layout`, `pagenumbering`, `whitespace`, `indenting`,
9362 `interlinespace`, `headertext`, `footertext`, `mainfont`, `sansfont`,
9363 `monofont`, `mathfont`, `fontsize`.
9364 + Default template no longer supports MkII.
9365 + Improve writing of title block (suppressing numbering of first page).
9366 + Add `title` `subtitle`, `author`, `date`, `keywords` to PDF metadata.
9367 + Support `subtitle`, `abstract`.
9368 + Support list of figures (`lof`), list of tables (`lot`).
9369 + Disable link styling by default.
9370 + Define styles for all section types.
9371 + Enable microtype.
9372 + Improved formatting of conditionals.
9374 * Beamer template: added code to prevent slide breaks inside paragraphs
9375 (#2422, thanks to Nick Bart). This will matter, in practice, only when
9376 `allowframebreaks` is used. It is especially helpful for bibliography
9377 slides.
9379 * OpenDocument template: Add `<office:automatic-styles>` tag around
9380 automatic styles. The writer now longer provides this (see #2520).
9382 * Restored Text.Pandoc.Compat.Monoid.
9384 * Do not export (<>) from custom Prelude. The Prelude now matches
9385 base 4.8 Prelude's API.
9387 * Don't use custom prelude with ghc 7.10. Use the custom prelude
9388 only for earlier versions. This change makes `stack ghci` and
9389 `cabal repl` work (#2503), at least with ghc 7.10.
9391 * Changed § to % in operators from Odt.Arrows.Utils (#2457).
9392 This prevents problems building haddocks with "C" locale.
9394 * Change default for old-locale flag to False.
9396 * Use stack in deb, osx, and Windows package generators.
9398 * Added Vagrantfile for building deb in vm.
9399 This should help in automating binary package creation. 'make package'
9400 will make the package. 'make package COMMIT=blah' will make the package
9401 from commit blah.
9403 * README:
9405 + Consistent capitalization for pandoc and Markdown.
9406 + Fixed `auto_identifiers` examples (Benoit Schweblin).
9407 + Improved documentation of template variables (Andrew Dunning).
9409## pandoc 1.15.1 (2015-10-15)
9411 * `pandocVersion` is now defined in `Text.Pandoc.Shared`
9412 and reexported from `Text.Pandoc` (Alex Vong). This allows
9413 writers to access it. (Alex Vong) (API change)
9415 * For `markdown_mmd`, add: `implicit_figures`, `superscripts`,
9416 `subscripts` (#2401).
9418 * Added `odt` as input format (MarLinn). Added new module
9419 `Text.Pandoc.Reader.ODT` (API change). Fully implemented features:
9420 Paragraphs, Headers, Basic styling, Unordered lists, Ordered lists,
9421 External Links, Internal Links, Footnotes, Endnotes, Blockquotes.
9422 Partly implemented features: Citations, Tables.
9424 * Markdown Reader:
9426 + Add basic tests for each header style (Ophir Lifshitz).
9427 + Add implicit header ref tests for headers with spaces (Ophir Lifshitz).
9428 + Skip spaces in headers (Ophir Lifshitz).
9429 + Handle 'id' and 'class' in parsing key/value attributes (#2396).
9430 `# Header {id="myid" class="foo bar"}`
9431 is now equivalent to `# Header {#myid .foo .bar}`.
9432 + Use '=' instead of '#' for atx-style headers in markdown+lhs.
9433 (Kristof Bastiaensen)
9434 + Pipe tables: allow indented columns. Previously the left-hand column
9435 could not start with 4 or more spaces indent. This was inconvenient
9436 for right-aligned left columns. Note that the first (header column)
9437 must still have 3 or fewer spaces indentation, or the table will be
9438 treated as an indented code block.
9439 + Fix regression: allow HTML comments containing `--`.
9440 Technically this isn't allowed in an HTML comment, but
9441 we've always allowed it, and so do most other implementations.
9442 It is handy if e.g. you want to put command line arguments
9443 in HTML comments.
9445 * LaTeX reader:
9447 + Don't eat excess whitespace after macros with only optional
9448 arguments (#2446).
9449 + Support longtable (#2411).
9450 + Implement `\Cite` (#2335).
9451 + Support abstract environment. The abstract populates an
9452 `abstract` metadata field.
9453 + Properly handle booktabs lines. Lines aren't part of the
9454 pandoc table model, so we just ignore them (#2307).
9456 * HTML reader:
9458 + Handle type attribute on ol, e.g. `<ol type="i">` (#2313).
9459 + Updated for new automatic header attributes.
9460 + Add auto identifiers if not present on headers. This makes
9461 TOC linking work properly.
9462 + Detect `font-variant` with `pickStyleAttrProps` (Ophir Lifshitz).
9463 + Test `<ol>` type, class, and inline list-style(-type) CSS
9464 (Ophir Lifshitz).
9465 + Better handling of "section" elements (#2438). Previously
9466 `<section>` tags were just parsed as raw HTML blocks. With
9467 this change, section elements are parsed as Div elements with
9468 the class "section".
9470 * MediaWiki reader: handle unquoted table attributes (#2355).
9472 * DocBook reader:
9474 + Added proper support for DocBook `xref` elements (Frerich Raabe).
9475 Added `dbContent` field to reader state, so we can lookup
9476 cross refs.
9477 + Handle `informalexample` (#2319).
9479 * Docx Reader:
9481 + Create special punctuation test (Ophir Lifshitz).
9482 + Parse soft, no-break hyphen elements (Ophir Lifshitz).
9483 + Updated headers test (Ophir Lifshitz). Replaced `styles.xml`
9484 in `headers.docx` with pandoc's current `styles.xml`, which
9485 contains styles for Heading 1 through 6. Added Heading 4
9486 through 7 to the test document. Note that Heading 7 is not
9487 parsed as a Heading because there is no Heading 7 style.
9489 * RST reader: better handling of indirect roles.
9490 Previously the parser failed on this kind of case
9492 .. role:: indirect(code)
9494 .. role:: py(indirect)
9495 :language: python
9497 :py:`hi`
9499 Now it correctly recognizes `:py:` as a code role.
9501 * Org reader:
9503 + Add auto identifiers if not present on headers
9504 (#2354, Juliusz Gonera).
9505 + Allow verse blocks to contain empty lines (#2402,
9506 Albert Krewinkel).
9508 * EPUB reader: stop mangling external URLs (#2284).
9510 * RST writer:
9512 + Don't insert `\ ` when complex expression in matched pairs.
9513 E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
9514 + Ensure that `\ ` is inserted when needed before Cite and Span
9515 elements that begin with a "complex" element (jgm/pandoc-citeproc#157).
9516 + Normalize headers only in "standalone" mode (#2394).
9518 * Haddock writer: escape `*` and `^` (G. Bataille).
9520 * Markdown writer:
9522 + In TOC, add links to headers (#829).
9523 + Use unicode super/subscripts for digits in plain output
9524 (when the `superscripts` and `subscripts` extensions are
9525 not enabled).
9527 * Docx writer:
9529 + Moved invalid character stripping to `formattedString`.
9530 This avoids an inefficient generic traversal (#2356).
9531 + Use user data directory for `reference.docx` archive.
9532 This allows the test suite to work without installing pandoc first.
9533 It also brings the docx writer in line with the odt writer.
9534 + Tests: docx writer tests now use `../data` for data directory.
9535 This allows tests to be run without installing first.
9536 + Tests: Use real jpg (not empty) for docx tests to avoid warning.
9538 * LaTeX writer:
9540 + Fixed detection of 'chapters' from template.
9541 If a documentclass isn't specified in metadata, but the
9542 template has a hardwired bookish documentclass, act as if
9543 `--chapters` was used. This was the default in earlier
9544 versions, but it has been broken for a little while.
9545 + Correctly recognize book documentclass in metadata (#2395).
9546 + Set language-related variables automatically, depending
9547 on the value of the `lang` field, which is now always
9548 assumed to be in BCP47 format (mb21, #1614, #2437).
9549 + Add `\protect` to `\hyperdef` in inline context. This way we
9550 don't get an error when this is used as a moveable argument (#2136).
9551 + Support all frame attributes in Beamer.
9552 + Percent-encode more special characters in URLs (#1640, #2377).
9553 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
9555 * HTML writer:
9557 + Update KaTeX JS and CSS versions (Emily Eisenberg).
9558 + For dzslides, add `role="note"` for speaker notes (#1693).
9559 + Percent-encode more special characters in URLs (#1640, #2377).
9560 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
9561 + Render Div with class `section` as `<section>` in HTML5.
9563 * EPUB writer:
9565 + In TOC, replace literal `<br/>` with space (#2105).
9566 + With `--webtex`, include image file rather than `data:` URI (#2363).
9568 * Native writer: format Div properly, with blocks separated.
9570 * Support bidirectional text output with XeLaTeX, ConTeXt and HTML
9571 (#2191, mb21).
9573 * Reference Docx:
9575 + Add missing Header 6 style (steel blue) (Ophir Lifshitz).
9576 + Correct `outlineLvl` for Header styles (Ophir Lifshitz).
9578 * Templates
9580 + Beamer: Add `innertheme`, `outertheme` variables
9581 (Guilhem Bonnefille, #121). Add space after colon in figure caption.
9582 Integrate recent font and language updates from LaTeX template;
9583 allow use of `mainfont` variable for changing the slide text
9584 in XeTeX and LuaTeX (Andrew Dunning, #131).
9585 + LaTeX: Add `mainfontoptions`, `sansfontoptions`,
9586 `monofontoptions`, `mathfontoptions`, `fontfamilyoptions`
9587 (Andrew Dunning, #122). Support handling of bidirectional
9588 text (mb21, #120). Improve reliability of superscripts/subscripts
9589 under XeTeX and prevent letters and numbers from appearing on a
9590 different baseline by removing use of the `realscripts` package
9591 (via `xltxtra`). To restore use of OpenType characters for these
9592 features under XeTeX or LuaTeX, add `\usepackage{realscripts}` to
9593 `header-includes` (Andrew Dunning, #130). Remove redundant
9594 reference to `xunicode` (Andrew Dunning, #130). Add `fontenc`,
9595 `indent`, `subparagraph` variables (Andrew Dunning).
9596 Allow use of `hidelinks` variable for `hyperref` package (Hugo Roy,
9597 #113). Prevent package clash with `tufte-latex` and other classes that
9598 include `hyperref` or `color` (Xavier Olive, #115).
9599 + ConTeXt: Support handling of bidirectional text (mb21, #120).
9600 + LaTeX and ConTeXt: Use more specific language variables.
9601 Instead of directly using `lang`, we now use `babel-lang` and
9602 `polyglossia-lang` and `context-lang`. These variables are set by
9603 the writers to the necessary values, based on the `lang` variable
9604 (which now always takes a value in BCP47 format). (mb21, #114, #129).
9605 + HTML: Support handling of bidirectional text (mb21, #120).
9606 Move HTML5 shiv after CSS and fix URL (Andrew Dunning).
9607 Add dir attribute in html5 (Andrew Dunning).
9608 + reveal.js: Add `controls`, `progress` variables (Grégoire Pineau, #127).
9609 Add `width`, `height` variables (Anrew Dunning). Update template
9610 from 3.1 source (Andrew Dunning). All configuration options are now
9611 available as variables, but are only be included if set (reveal.js
9612 uses defaults otherwise).
9613 + man: Added comment stating that the page is autogenerated by pandoc,
9614 giving version. Added `adjusting` and `hyphenate` variables
9615 (Alex Vong, #123).
9617 * epub.css: added selectors for nested emphasis (Pablo Rodriguez).
9619 * MediaBag: ensure that `/` is always used as path separator.
9621 * `sample.lua`: define `CaptionedImage`, add newline at end (#2393).
9623 * Added `--bash-completion` option. This generates a bash completion
9624 script. To use: `eval "$(pandoc --bash-completion)"`.
9626 * Text.Pandoc.Error: Define Typeable and Exception instances
9627 for PandocError (#2386).
9629 * Text.Pandoc.Parsing: `toKey`: strip off outer brackets.
9630 This makes keys with extra space at the beginning and end
9631 work: e.g.
9633 [foo]: bar
9635 [ foo ]
9637 will now be a link to bar (it wasn't before).
9639 * Text.Pandoc: disable `auto_identifiers` for epub.
9640 The epub writer inserts its own auto identifiers;
9641 this is more complex due to splitting into "chapter" files.
9643 * Renamed Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time.
9644 It now reexports Data.Time.
9646 * Use custom Prelude to avoid compiler warnings.
9648 + The (non-exported) prelude is in prelude/Prelude.hs.
9649 + It exports Monoid and Applicative, like base 4.8 prelude,
9650 but works with older base versions.
9651 + It exports (<>) for mappend.
9652 + It hides 'catch' on older base versions.
9654 * Added a `stack.ymal` and stack install instructions to INSTALL.
9656 * Clarified what is "out of scope" in README and CONTRIBUTING.md.
9658 * Added note to CONTRIBUTING.md about ghc versions and travis.
9660 * Clarify docs on block quotes. The space after `>` is optional (#2346).
9662 * Removed obsolete reference to default.csl (#2372).
9664 * List all styles in manual for `--reference-docx` (Chris Black)
9666 * Don't capitalize header links in man page.
9668 * Added section on repl to CONTRIBUTING.md.
9670 * README: Added space after backslash in image example (#2329).
9672 * Document details of citation locator terms (Nick Bart).
9674 * Fixed some internal links in README (#2309).
9676 * Improve CSL documentation, variables documentations,
9677 links, and cross-references in README. (Andrew Dunning)
9679 * Fix build failure with `--flags=-https` (Sergei Trofimovich).
9681 * Use `newManager` instead of `withManager` in recent `http-client`.
9682 This avoids a deprecation warning.
9684 * Allow building with latest versions of http-types,
9685 HUnit, criterion, syb, aeson.
9687 * Updated benchmark program for new criterion API.
9689 * Setup.hs: rewrite so as not to use process, directory, filepath.
9690 Using anything outside base is dangerous, since older
9691 versions of ghc may link against two different versions.
9693 * Added appveyor (Windows continuous integration) builds.
9695 * New `.travis.yml`. Autgenerated using `make_travis_yml.hs`.
9696 This script has been modified in a few ways, e.g. to add `GHCOPTS`.
9697 `make .travis.yml` regenerates it based on the tested-with
9698 field of the cabal file.
9700## pandoc 1.15.0.6 (2015-07-15)
9702 * `--self-contained`: Fixed overaggressive CSS minimization
9703 (#2301, 2286). Previously `--self-contained` wiped out all
9704 spaces in CSS, including semantically significant spaces.
9705 This was a regression from 1.14.x.
9707 * Markdown reader: don't allow bare URI links or autolinks in link
9708 label (#2300). Added test cases.
9710 * `Text.Pandoc.Parsing`, `uri`: Improved bare autolink detection (#2299).
9711 Previously we disallowed `-` at the end of an autolink,
9712 and disallowed the combination `=-`. This commit liberalizes the
9713 rules for allowing punctuation in a bare URI, and adds test cases.
9714 One potential drawback is that you can no longer put a bare
9715 URI in em dashes like this:
9716 `this uri---http://example.com---is an example.`
9717 But in this respect we now match github's treatment of bare URIs.
9719 * HTML writer: support speaker notes in dzslides.
9720 With this change `<div class="notes">` and also `<div class="notes"
9721 role="note">` will be output if `-t dzslides` is used. So we can
9722 have speaker notes in dzslides too. Thanks to maybegeek.
9724 * Updated dzslides template.
9726 * Improved documentation of options to print system default files (#2298).
9727 `--print-default-data-file` and `--print-default-template`.
9729 * DokuWiki writer: use `$..$` for Math instead of `<math>..</math>`
9730 (Tiziano Müller). MathJax seems currently to be the only maintained
9731 math rendering extension for DokuWiki.
9733 * `Text.Pandoc.Shared`: Changed `hierarchicalize` so it treats references
9734 div as top-level header (#2294). This fixes a bug with `--section-divs`,
9735 where the final references section added by pandoc-citeproc, enclosed in
9736 its own div, got nested in the div for the section previous to it.
9738 * Allow vector 0.11.
9740 * Require cmark > 0.4.
9742## pandoc 1.15.0.5 (2015-07-10)
9744 * HTML writer: Fixed email javascript obfuscation with `mailto:`
9745 URLs (#2280). This fixes a potential security issue. Because
9746 single quotes weren't being escaped in the link portion, a
9747 specially crafted email address could allow javascript code injection.
9749 * RST reader: allow inline formatting in definition list field
9750 names (Lars-Dominik Braun).
9752 * PDF: Make sure `--latex-engine-opt` goes before the filename
9753 on the command line. LaTeX needs the argument to come after
9754 the options (#1779).
9756 * CommonMark writer: fixed tags used for super/subscript.
9758 * ConTeXt template: activate hanging indent for definition lists
9759 (mb21).
9761 * Make cabal require `hsb2hs` >= 0.3.1 if `embed_data_files` specified.
9762 This is done by adding `hookedPrograms` in `Setup.hs`, which allows us
9763 to include `hsb2hs` in Build-Tools in cabal.
9765 * Improved Windows installer (thanks to nkalvi).
9767 + When per-machine installation is chosen, the system path
9768 is updated instead of the user's.
9769 + An appropriate default is used for per-machine installation
9770 directory.
9771 + Admin privileges are no longer required for a per-user install
9773 * Travis: unpack sdist for build to catch packaging bugs.
9775 * Improved documentation on where user templates go (#2272).
9777## pandoc 1.15.0.4 (2015-07-03)
9779 * Added pandoc.1 man page to the repository. It is no longer
9780 built as part of the cabal build process. (This proved too
9781 fragile.) pandoc.1 can be regenerated (`make man/pandoc.1`)
9782 when `README` is changed.
9784 * Copying of the man page now respects `--destdir` (#2262).
9786 * Improved error messages for filters. User is now informed if
9787 the filter requires an interpreter that isn't found in the path,
9788 or if the filter returns an error status.
9790## pandoc 1.15.0.3 (2015-07-02)
9792 * Ensure target directory is created when installing man page.
9794## pandoc 1.15.0.2 (2015-07-02)
9796 * Added files needed for building man page to Extra-Source-Files.
9798## pandoc 1.15.0.1 (2015-07-01)
9800 * Man page is now built and installed as part of the cabal build
9801 process. Removed Makefile target for man page.
9803## pandoc 1.15 (2015-07-01)
9805 * Man page changes:
9807 + Removed `--man1`, `--man5` options (breaking change).
9808 + Removed `Text.Pandoc.ManPages` module (breaking API change).
9809 + Makefile target for `man/man1/pandoc.1`. This uses pandoc to
9810 create the man page from README using a custom template and filters.
9811 + Added `man/` directory with template and filters needed to build
9812 man page.
9813 + We no longer have two man pages: `pandoc.1` and `pandoc_markdown.5`.
9814 Now there is just pandoc.1, which has all the content from README.
9815 This change was needed because of the extensive cross-references
9816 between parts of the README.
9817 + Removed old `data/pandoc.1.template` and
9818 `data/pandoc_markdown.5.template`.
9820 * OpenDocument writer: Do not add a carriage return after a hard
9821 line break (Michael Chladek).
9823 * ConTeXt writer:
9825 + use `\goto` for internal links.
9826 + Added a `%` at end for `\reference` to avoid spurious space.
9828 * Ignore sandbox on 'make quick'
9830## pandoc 1.14.1 (2015-06-30)
9832 * Added `--man1` and `--man5` options to pandoc, allowing
9833 pandoc to generate its own man pages. Man pages are no longer
9834 automatically generated in the build process (the process for
9835 this was too complex and prone to failure, #2190). The
9836 `make-pandoc-man-pages` executable has been removed. The
9837 `man/` directory has been removed, and man page templates
9838 have been moved to `data/`. NOTE TO PACKAGERS: You will no
9839 longer find pandoc's man pages in `man/`, but you can
9840 generate them using `pandoc --man1 > pandoc.1` and `pandoc
9841 --man5 > pandoc_markdown.5`.
9843 * Added new unexported module: `Text.Pandoc.ManPages`.
9845 * `README` now acts like a data file (even though it isn't in
9846 `data/`). So, for example, `pandoc --print-default-data-file README`
9847 will produce the README.) This change was required for the `--man1`
9848 and `--man5` options, since the man pages are produced from the
9849 README, but it may be useful for other purposes as well.
9851 * Allow `reference.docx` and `reference.odt` to be used with
9852 `--print-default-data-file` and to shadow defaults if placed in
9853 the user data directory. Note that as of 1.14, we no longer
9854 include these files as data files; instead, we include their
9855 components. This change causes pandoc to behave as if it has
9856 these data files; they are constructed on demand when needed
9857 using `getDefaultReferenceDocx` and `getDefaultReferenceODT`.
9859 * Fixed regression in CSS parsing with `--self-contained` (#2224).
9860 Pandoc 1.14.0.x used css-text to parse the CSS, but its parser
9861 silently drops big sections of CSS. This commit replaces the
9862 use of css-text with a small but principled CSS preprocessor,
9863 which removes whitespace and comments and replaces `url()` with
9864 base 64 data when possible.
9866 * Use `https://` instead of `//` for MathJax and KaTeX CDN URLs (#1920).
9867 This will allow math to work when pages are being viewed locally.
9869 * `Text.Pandoc.Options`: Export `plainExtensions`.
9870 These are the extensions used in `plain` output.
9872 * LaTeX reader: Don't parse `_` and `^` as sub/superscript outside of
9873 math mode; treat them as regular inline text. Normally these will
9874 cause an error in LaTeX, but there are contexts (e.g. `alltt`
9875 environments) where they are allowed.
9877 * HTML reader: allow `<body>` to close `<head>`.
9879 * DocBook reader: support `mediaobject`s and `figures` (#2184, mb21).
9881 * RST reader: Fix reference names with special characters
9882 (Lars-Dominik Braun).
9884 * Textile writer: escape `+` and `-` as entities (#2225).
9886 * DokuWiki writer: Use proper `<code>` tags for code blocks (#2213).
9888 * Plain writer: don't use symbols for super/subscript (#2237).
9889 Simplified code by using `plainExtensions`.
9891 * InDesign writer: Properly escape URLs containing more than one
9892 colon character (gohai).
9894 * Docx writer: Make sure we use dist version of `reference.docx`
9895 (and not the user's version) for certain settings. Taking some
9896 settings values from a user-supplied reference.docx can lead to
9897 corruption. This fixes a regression from the last release (#2249).
9899 * `Text.Pandoc.Shared`: exports `getDefaultReferenceDocx` and
9900 `getDefaultReferenceODT` (API change). These functions have been
9901 removed from the Docx and ODT writers.
9903 * LaTeX template (Xavier Olive):
9904 + Added `CJKmainfont` and `CJKoptions` variables.
9905 + Allow dvipsnames (e.g. `MidnightBlue`) for colors (Xavier Olive).
9907 * Epub templates: use `author.role`, not `author.type`.
9909 * Bump cmark version to >= 0.3.4.
9911 * Improved Windows installer (#2205, thanks to nkalvi).
9912 Users can now select a per-user or systemwide install, and can set
9913 the installation path. At the end of installation, the install location
9914 is given. The install location is also now given in the list of
9915 installed programs in Control Panel. Cleaner WiX syntax is used for
9916 setting the path.
9918 * Added `download_stats` target to Makefile.
9920## pandoc 1.14.0.4 (2015-06-02)
9922 * Added missing commonmark template.
9924 * Improved try pandoc (moved button, show raw command).
9926## pandoc 1.14.0.3 (2015-06-01)
9928 * Allow compilation with syb 0.5.*.
9930 * Custom writer: fixed some compiler warnings for ghc < 7.10.
9932## pandoc 1.14.0.2 (2015-05-31)
9934 * Allow building with hslua 0.4.
9936## pandoc 1.14.0.1 (2015-05-28)
9938 * Fixed problem with building of `reference.docx` and `reference.odt`
9939 when the `embed_data_files` flag is used. Instead of having a phase
9940 of the build where `reference.docx` and `reference.odt` are created
9941 from their constituent data files, we now construct these archives
9942 from their constituents when a `docx` or `odt` is built. The
9943 constituent files have been moved from `extra-source-files` to
9944 `data-files`, and `reference.docx` and `reference.odt` have been
9945 removed. Users can create their own `reference.docx` or
9946 `reference.odt` by using pandoc to create a simple `docx` or `odt`.
9947 `make-reference-files.hs` has been removed, simplifying the build
9948 process (#2187)
9950 * Don't include generated man pages in extra-source-files (#2189).
9952 * Bumped upper bound for aeson.
9954 * ConTeXt writer: create internal link anchors for Div elements with
9955 identifiers. (This is needed for linked citations to work.)
9957## pandoc 1.14 (2015-05-27)
9959### New features
9961 * Added `commonmark` as input and output format.
9963 * Added `--verbose` flag for debugging output in PDF production (#1840,
9964 #1653).
9966 * Allow wildcards in `--epub-embed-font` arguments (#1939).
9968 * Added `--latex-engine-opt` option (#969, #1779, Sumit Sahrawat).
9970 * Added `shortcut_reference_links` extension (Konstantin Zudov, #1977).
9971 This is enabled by default for those markdown flavors that
9972 support reading shortcut reference links, namely: `markdown`,
9973 `markdown_strict`, `markdown_github`, `markdown_php`.
9974 If the extension is enabled, the reader parses shortcut reference
9975 links like `[foo]`, and the writer creates such links unless doing
9976 so would cause problems. Users of markdown flavors that support
9977 shortcut reference links should not notice a difference in reading
9978 markdown, but the markdown pandoc produces may differ.
9979 If shortcut links are not desired, the extension can be disabled
9980 in the normal way.
9982### Behavior changes
9984 * `--toc` is now supported for `docx` output (#458, Nikolay Yakimov).
9985 A "dirty" TOC is created at the beginning of document.
9986 It can be regenerated after the document has been opened.
9988 * An implicit `--filter pandoc-citeproc` is now triggered only when the
9989 `--bibliography` option is used, and not when the `bibliography`
9990 field in metadata is specified (#1849).
9992 * Markdown reader:
9994 + Reference links with `implicit_header_references` are no longer
9995 case-sensitive (#1606).
9996 + Definition lists no longer require indentation for first line (#2087).
9997 Previously the body of the definition (after the `:` or `~` marker)
9998 needed to be in column 4. This commit relaxes that requirement,
9999 to better match the behavior of PHP Markdown Extra. So, now
10000 this is a valid definition list:
10002 foo
10003 : bar
10004 + Resolve a potentially ambiguity with table captions:
10006 foo
10008 : bar
10010 -----
10011 table
10012 -----
10014 Is "bar" a definition, or the caption for the table? We'll count
10015 it as a caption for the table.
10016 + Disallow headerless pipe tables (#1996), to conform to GFM and PHP
10017 Markdown Extra. Note: If you have been using headerless pipe tables,
10018 this change may cause existing tables to break.
10019 + Allow pipe tables with header but no body (#2017).
10020 + Allow a digit as first character of a citation key (Matthias Troffaes).
10021 See https://github.com/jgm/pandoc-citeproc/issues/97
10023 * LaTeX reader:
10025 + Don't limit includes to `.tex` extension (#1882).
10026 If the extension is not `.tex`, it must be given explicitly in
10027 the `\input` or `\include`.
10029 * Docx reader:
10031 + Allow numbering in the style file. This allows inherited styles
10032 with numbering (lists) (Jesse Rosenthal).
10034 * Org reader:
10036 + Support smart punctuation (Craig Bosma).
10037 + Drop trees with a :noexport: tag (Albert Krewinkel). Trees having a
10038 `:noexport:` tag set are not exported. This mirrors org-mode.
10039 + Put header tags into empty spans (Albert Krewinkel, #2160).
10040 Org mode allows headers to be tagged: `* Headline :TAG1:TAG2`.
10041 Instead of being interpreted as part of the headline, the tags are now
10042 put into the attributes of empty spans. Spans without textual content
10043 won't be visible by default, but they are detectable by filters. They
10044 can also be styled using CSS when written as HTML.
10045 + Generalize code block result parsing (Albert Krewinkel).
10046 Previously, only code blocks were recognized as result blocks;
10047 now, any kind of block can be the result.
10049 * Append newline to the LineBreak in Dokuwiki, HTML, EPUB,
10050 LaTeX, MediaWiki, OpenDocument, Texinfo writers (#1924, Tim Lin).
10052 * HTML writer:
10054 + Add "inline" or "display" class to math spans (#1914).
10055 This allows inline and display math to be styled differently.
10056 + Include raw latex blocks if `--mathjax` specified (#1938).
10057 + Require highlighting-kate >= 0.5.14 (#1903).
10058 This ensures that all code blocks will be wrapped in a `div`
10059 with class `sourceCode`. Also, the default highlighting CSS
10060 now adds `div.sourceCode { x-overflow: auto; }`, which means
10061 that code blocks (even with line numbers) will acquire a scroll
10062 bar on screens too small to display them (e.g. mobile phones).
10063 See also jgm/highlighting-kate#65.
10065 * LaTeX writer:
10067 + Use a declaration for tight lists (Jose Luis Duran, Joseph
10068 Harriott). Previously, pandoc hard-coded some commands to make
10069 tight lists in LaTeX. Now we use a custom command instead,
10070 allowing the styling to be changed in a macro in the header.
10071 (Note: existing templates may need to be modified to include
10072 the definition of this macro. See the current template.)
10073 + Beamer output: if the header introducing a slide has the
10074 class `fragile`, add the `[fragile]` option to the slide (#2119).
10076 * MediaWiki writer:
10078 + Use `File:` instead of the deprecated `Image:` for images and
10079 other media files (Greg Rundlett).
10081 * DocBook writer:
10083 + Render a `Div (id,_,_) [Para _]` element as a `para` element
10084 with an `id` attribute. This makes links to citations work in
10085 DocBook with pandoc-citeproc.
10087 * RST writer:
10089 + Normalize headings to sequential levels (Nikolay Yakimov).
10090 This is pretty much required by docutils.
10091 + Treat headings in block quotes, etc as rubrics (Nikolay Yakimov).
10092 + Better handling of raw latex inline (#1961). We use
10093 `` :raw-latex:`...` `` and add a definition for this role to
10094 the template.
10096 * EPUB writer:
10098 + Remove `linear=no` from cover `itemref` (#1609).
10099 + Don't use `sup` element for epub footnotes (#1995).
10100 Instead, just use an a element with class `footnoteRef`.
10101 This allows more styling options, and provides better results
10102 in some readers (e.g. iBooks, where anything inside the a
10103 tag breaks popup footnotes).
10104 + Take TOC title from `toc-title` metadata field.
10106 * Docx writer:
10108 + Implemented `FirstParagraph` style (Jesse Rosenthal).
10109 Following the ODT writer, we add the `FirstParagraph` style to the
10110 first text paragraph following an image, blockquote, table, heading,
10111 or beginning of document. This allows it to be styled differently.
10112 The default is for it to be the same as `Normal`.
10113 + Added `BodyText` style (Jesse Rosenthal).
10114 We apply a `BodyText` style to all unstyled paragraphs. This is,
10115 essentially, the same as `Normal`, except that since not everything
10116 inherits from `BodyText` (the metadata won't, for example, or
10117 the headers or footnote numbers), we can change the text in the body
10118 without having to make exceptions for everything. If we do want to
10119 change *everything*, we can still do it through `Normal`.
10120 + Altered `Blockquote` style slightly (Jesse Rosenthal).
10121 Since `BlockQuote` derives from `BodyText`, we just want to specify
10122 by default that it won't indent, regardless of what `BodyText` does.
10123 Note that this will not produce any visible difference in the default
10124 configuration.
10125 + Take TOC title from `toc-title` metadata field (Nikolay Yakimov).
10126 + Added a style to figure images (Nikolay Yakimov).
10127 Figures with empty captions use style `Figure`.
10128 Figures with nonempty captions use style `Figure with Caption`, which
10129 is based on `Figure`, and additionally has `keepNext` set.
10131 * ODT writer:
10133 + Added figure captions (Nikolay Yakimov). The following styles are
10134 used for figures:
10135 `Figure` -- for figure with empty caption),
10136 `FigureWithCaption` (based on `Figure`) -- for figure with caption,
10137 `FigureCaption` (based on `Caption`) -- for figure captions.
10138 Also, `TableCaption` (based on `Caption`) is used for table captions.
10140### API changes
10142 * New `Text.Pandoc.Error` module with `PandocError` type
10143 (Matthew Pickering).
10145 * All readers now return `Either PandocError Pandoc` instead of `Pandoc`
10146 (Matthew Pickering). This allows better handling of errors.
10148 * Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
10150 * Added `Text.Pandoc.Readers.CommonMark`, exporting `readCommonMark`.
10152 * Derive `Data` and `Typeable` instances for `MediaBag`, `Extension`,
10153 `ReaderOptions`, `EPUBVersion`, `CiteMethod`, `ObfuscationMethod`,
10154 `HTMLSlideVariant`, `TrackChanges`, `WriterOptions` (Shabbaz
10155 Youssefi).
10157 * New `Ext_shortcut_reference_links` constructor for `Extension`
10158 (Konstantin Zudov).
10160### Bug fixes
10162 * Markdown reader:
10164 + Allow smart `'` after inline math (#1909, Nikolay Yakimov).
10165 + Check for tex macros after indented code (#1973).
10166 + Rewrote `charsInBalancedBrackets` for efficiency.
10167 + Make sure a closing `</div>` doesn't get included in a
10168 definition list item (#2127).
10169 + Don't parse bracketed text as citation if it might be a link,
10170 image, or footnote (Nikolay Yakimov).
10171 + Require space after key in mmd title block (#2026, Nikolay
10172 Yakimov). Require space after key-value delimiter colon in mmd title
10173 block.
10174 + Require nonempty value in mmd title block (Nikolay Yakimov).
10175 + Disable all metadata block extensions when parsing
10176 metadata field values (#2026, Nikolay Yakimov). Otherwise we
10177 could get a mmd title block inside YAML metadata, for example.
10179 * HTML reader:
10181 + Improve self-closing tag detection in `htmlInBalanced` (#2146).
10182 + Handle tables with `<th>` in body rows (#1859, mb21).
10183 + Fixed `htmlTag` (#1820). If the tag parses as a comment, we check
10184 to see if the input starts with `<!--`. If not, it's bogus comment
10185 mode and we fail `htmlTag`.
10186 + Handle `base` tag; if it has an `href` value, this is added to
10187 all relative URLs in links and images.
10189 * DocBook reader:
10191 + Look inside "info" elements for section titles (#1931).
10193 * Docx reader:
10195 + Parse images in deprecated vml format (Jesse Rosenthal).
10196 + Allow sub/superscript verbatims (Jesse Rosenthal).
10197 Verbatim usually shuts off all other run styles, but we don't want it
10198 to shut off sub/superscript.
10200 * LaTeX reader:
10202 + Handle `tabular*` environment (#1850).
10203 Note that the table width is not actually parsed or taken into
10204 account, but pandoc no longer chokes on it.
10205 + Ignore options in `\lstinline` rather than raising error (#1997).
10206 + Add some test cases for simple tables (Mathias Schenner).
10207 + Handle valign argument in tables (Mathias Schenner) (currently
10208 we just ignore this).
10209 + Allow non-empty colsep in tables (Mathias Schenner).
10210 The `tabular` environment allows non-empty column separators
10211 with the "@{...}" syntax. Previously, pandoc would fail to
10212 parse tables if a non-empty colsep was present. With this
10213 commit, these separators are still ignored, but the table gets
10214 parsed. A test case is included.
10215 + Recognize `\newpage` as a block command.
10216 + Allow block content in `\title{}` (#2001).
10217 + Check for block-level newcommand aliases in blockCommand (Nikolay
10218 Yakimov).
10219 + Guard against paragraph starting with inline macro (Nikolay Yakimov).
10220 + Properly gobble spaces after `\\` (#2007).
10222 * Textile reader:
10224 + Handle newlines in table cells, and empty cells (#1919).
10226 * Org reader:
10228 + Allow image links with non-image targets (Hans-Peter Deifel).
10229 This matches behavior of Org-Mode for links like
10230 `[[http://example.com][https://www.haskell.org/static/img/logo.png]]`.
10232 * Docbook writer:
10234 + Don't print empty id attributes (thanks to Steve Horne).
10236 * HTML writer:
10238 + Fixed list-style-type for numbered example lists.
10239 Should be "decimal," not "example" (#1902).
10240 + Do not omit missing `alt` attribute on `img` tag (#1131,
10241 Konstantin Zudov).
10242 + Allow multiple colgroups in table (#2122).
10243 + In revealjs, ensure that lists in speaker notes don't add "fragment"
10244 classes, which can cause additional keypresses to be needed to
10245 advance a slide (#1394).
10247 * LaTeX writer:
10249 + Don't escape `$` in URL (#1913).
10250 + Don't use listings in headers (Matthew Pickering, #1963).
10251 + Recognize book documentclass if set in metadata (#1971).
10252 This sets `--chapters` implicitly if the documentclass in metadata
10253 is a book documentclass. Previously this was done only if a book
10254 documentclass was set in a variable.
10255 + Add a `\label` in `\hyperdef` for Div, Span (or links don't work).
10256 + Make `mainlang` work when `lang` is in metadata (#2174).
10258 * Texinfo writer:
10260 + Fix wrapping by using breakable spaces (Tim Lin).
10262 * RST writer:
10264 + Fixed toc depth in RST writer. Previously the depth was being
10265 rendered as a floating point number with a decimal point.
10267 * Markdown writer:
10269 + Improved escaping (#2086). `<` should not be escaped as `\<`, for
10270 compatibility with original Markdown. We now escape `<` and `>`
10271 with entities. Also, we now backslash-escape square brackets.
10272 + Avoid introducing spurious list items through wrapping (#1946).
10273 + Don't emit span tags if plain or raw HTML disabled.
10275 * MediaWiki writer:
10277 + Convert spaces to underscores in wikilink URL (#1982), like MediaWiki.
10279 * AsciiDoc writer:
10281 + Insert some needed blank lines (#1860).
10282 + Avoid wrapping after list marker (#1858).
10284 * EPUB writer:
10286 + Properly handle internal links to IDs in spans, divs (#1884).
10287 + Use plain writer for metadata dc: fields (#2121).
10288 This gives better results when we have, e.g. multiple paragraphs.
10289 Note that tags aren't allowed in these fields.
10290 + Properly handle image links without an extension (#1855).
10291 + Improved chapter splitting and internal link rewriting (#1887,
10292 #2162, #2163). This will ensure that internal links work and
10293 that the references section produced by pandoc-citeproc is
10294 in its own chapter.
10295 + Fixed handling of svg images (#2183).
10297 * ICML writer:
10299 + Better handling of raw blocks and inlines (#1951).
10300 Previously these were always escaped and printed verbatim.
10301 Now they are ignored unless the format is `icml`, in which
10302 case they are passed through unescaped.
10303 + Fixed image URIs in ICML output (gohai).
10305 * Custom writer:
10307 + Raise error if loadstring returns an error status.
10308 + Raise `PandocLuaException` instead of using 'error'.
10309 Eventually we'll change the return type so that no exception
10310 is involved, but at least this can be trapped.
10311 + Use UTF-8 aware bytestring conversion.
10312 + Set foreign encoding to UTF-8 (Nikolay Yakimov, #2101, #1634).
10313 Also factored out ByteString, since it's only used as an intermediate
10314 representation.
10316 * Docx writer:
10318 + Copy hyphenation settings from reference.docx (Nikolay Yakimov).
10319 + Filter out illegal XML characters (#1992, Matthew Pickering).
10320 + Added `noProof` to docx syntax highlighting `SourceCode` style.
10321 + Added footnotes id -1 and 0 (Jesse Rosenthal).
10322 Word uses, by default, footnotes with id -1 and 0 for separators. If a
10323 user modifies `reference.docx`, they will end up with a `settings.xml`
10324 file that references these footnotes, but no such footnotes in the
10325 document. This will produce a corruption error. Here we add these to the
10326 document and `settings.xml` file, so future modifications won't break
10327 the file.
10328 + Handle lists correctly inside table cells (Jesse Rosenthal).
10329 Previously we didn't transform lists inside table cells.
10330 + Set firstRow information in tables (Nikolay Yakimov).
10331 + Don't replace `SourceCode` style in `reference.docx` if it is defined
10332 there (Nikolay Yakimov, #1872). If `--no-highlight` specified, remove
10333 any `SourceCode` and `*Tok` styles in `reference.docx`.
10334 + Attempt to match international style names (#1607, Nikolay Yakimov).
10335 + Set these styles as custom (Nikolay Yakimov): `Author`, `Abstract`,
10336 `Compact`, `Image Caption`, `Table Caption`, `Definition Term`,
10337 `Definition`, `First Paragraph`.
10338 + Rename these styles to correspond with Word `Normal.dotm` (Nikolay
10339 Yakimov): `Block Quote -> Block Text`, `Link -> Hyperlink`,
10340 `Footnote Ref -> Footnote Reference`.
10341 + Added `Caption` style (Nikolay Yakimov).
10342 + Changed these styles' inheritance (Nikolay Yakimov):
10343 `Image Caption <- Caption`, `Table Caption <- Caption`.
10344 + Remove `SourceCode` style from `reference.docx` (#1872).
10345 This is added automatically by the docx writer.
10346 + Added toc heading style to `reference.docx` (Nikolay Yakimov).
10348 * `Text.Pandoc.PDF`
10350 + Don't suggest "Try xelatex" if xelatex already in use (mb21, #1832).
10351 + More comprehensible errors on image conversion (#2067).
10352 EPS can't be supported without shelling out to something like
10353 ImageMagick, but at least we can avoid mysterious error messages.
10355 * `Text.Pandoc.Shared`:
10357 + Make safeRead safe (#1801, Matthew Pickering).
10358 + Addded `mapLeft`, `hush` (Matthew Pickering).
10360 * `Text.Pandoc.Pretty`:
10362 + Remove partial function (Matthew Pickering).
10364 * `Text.Pandoc.SelfContained`:
10366 + Add `;charset=utf-8` to script mime type if missing (#1842).
10367 + Improved building of data URIs (#1940). Now base64 is used except
10368 for `text/*` mime types.
10369 + `cssURLs` no longer tries to fetch fragment URLs (#2121).
10370 + Properly handle data URIs in css urls (#2129).
10371 Use a proper CSS parser (adds dependency on `text-css`).
10373 * `Text.Pandoc.UTF8`:
10375 + Better handling of bare CRs in input files (#2132).
10376 Previously we just stripped them out; now we convert
10377 other line ending styles to LF line endings.
10379 * `Text.Pandoc.ImageSize`:
10381 + Fixed some exif header parsing bugs (#1834).
10382 + Make imageSize return an Either, not a Maybe (#1834).
10383 Use `runGetOrFail` (with `binary >= 0.7`) to return `Left` on
10384 parse failure (rather than `error`).
10385 + Improved warnings when image size can't be determined.
10386 + Removed error landmines (Matthew Pickering).
10388 * Added woff2 to MIME types (Alfred Wechselberger).
10390 * pandoc: When a binary input format is used, warn that file
10391 arguments past the first one are being ignored (Matthew Pickering).
10393### Template changes
10395 * LaTeX template:
10397 + Degrade gracefully if `\paragraph` not defined.
10398 + Include `grffile` together with `graphicx` (#2074).
10399 This properly handles filenames containing spaces and dots.
10400 + Redefine `\paragraph`, `\subparagraph`... to behave more
10401 like section headers (#1658).
10402 + Import hyperref before polyglossia to avoid an error with xelatex,
10403 "please load package hyperref before bidi package" (Nick Bart).
10404 + Added `toccolor` variable to control link color in toc (Kaixhin).
10406 * LaTeX, Beamer templates:
10408 + Provide `\tightlist`, which is now used by the LaTeX writer.
10409 + Use polyglossia in beamer (#85).
10410 + Use `bibliography` instead of `biblio-files`
10411 (#1661). Also use `\addbibresource` instead of `\bibliography` for
10412 biblatex.
10413 + Added `setotherlanguages` in polyglossia. This uses an `otherlang`
10414 variable that is derived from a comma-separated list in `lang`;
10415 the last language is `mainlang` and the others are `otherlang`.
10417 * EPUB templates:
10419 + Use `div`, not `p`, for "rights" on title page.
10420 + Added header-includes, include-before, include-after (#1987).
10422 * OpenDocument template:
10424 + Use `text:p` instead of `text:h` for title.
10425 Using `text:h` causes problems with numbering. Closes #2059.
10426 Thansk to @nkalvi for diagnosing this.
10428 * reveal.js template:
10430 + Link to non-minified css, js. The minified versions no longer
10431 ship with the library.
10432 + Correctly include style CSS (#1949).
10433 + New configurable options options: `center`, `maxScale`, `slideNuber`
10434 (Dmitry Smirnov, pandoc-templates#89).
10435 + Moved custom CSS after theme. This allows custom CSS to modify
10436 themes, instead of being replaced by them.
10437 + Allow `center` to be set to false.
10439### Under the hood improvements
10441 * Removed pre-built `reference.docx` and `reference.odt` (Nikolay
10442 Yakimov). Instead the repository now includes the component text files,
10443 and the zipped binaries are built from these using a helper
10444 program, `make-reference-files`. This should make maintenance of
10445 these components easier going forward.
10447 * `Text.Pandoc.Parsing`:
10449 + Added new `<+?>` combinator (Nikolay Yakimov).
10450 + Added `stateHeaderKeys` to `ParserState`.
10452 * `make_deb.sh` fixes:
10454 + Detect architecture.
10455 + Add Installed-Size to debian package control file (#1900).
10456 + Use `fakeroot` to get permissions right.
10457 + Use `mkdir` and `cp` instead of `install`.
10458 + Set permissions of directories to 755.
10459 + Install in `/usr` rather than `/usr/local`.
10460 + Compress man pages.
10461 + Combine copyright files for `pandoc`, `pandoc-citeproc`.
10463 * Added `Text.Pandoc.Compat.Locale` and `old-locale` flag
10464 to assist with transition to `time` 1.5.
10466 * Updated CONTRIBUTING.md with information about issue tags (Matthew
10467 Pickering).
10469 * Updated travis installs to the new sudo-less syntax (Tim Lin).
10471 * Updated dependency version bounds.
10473 * EPUB tests: don't use `joinPath`, which varies across platforms.
10474 Instead, use a forward-slash to join paths, regardless of the
10475 platform. This matches the way `MediaBag` now works.
10477 * Clarify JSON input and output in usage message (Caleb McDaniel).
10479 * Improved INSTALL instructions.
10481 * Always build man pages. Removed make-pandoc-man-pages flag.
10483 * Makefile: removed man target, now that we generate man pages by default.
10485 * README:
10487 + Fixed typos (J. Lewis Muir).
10488 + Added documentation on backtick_code_blocks (#2135, Nikolay Yakimov).
10489 + Added note on in-field markup in biblio databases (Nick Bart).
10490 + Fixed misleading example of raw HTML block.
10491 + Various minor formatting and consistency fixes for the program
10492 options (Andreas Lööw).
10493 + Made definition lists for options all "loose" for consistency.
10494 + Added YAML biblio format to table, and note on `pandoc-citeproc`'s
10495 `--bib2json` and `--bib2yaml` options (Nick Bart).
10496 + Removed obsolete reference to `mods2yaml` (Nick Bart).
10497 + Added section on syntax highlighting.
10498 + Documented `toccolor` variable.
10500## pandoc 1.13.2.1 (2015-04-15)
10502 * Updated to build with ghc 7.10.1.
10504 * Bumped package upper bounds for filepath, blaze-html, blaze-markup.
10506## pandoc 1.13.2 (2014-12-20)
10508 * TWiki Reader: add new new twiki reader (API chaneg, Alexander Sulfrian).
10510 * Markdown reader:
10512 + Better handling of paragraph in div (#1591).
10513 Previously text that ended a div would be parsed as Plain
10514 unless there was a blank line before the closing div tag.
10515 + Don't treat a citation as a reference link label (#1763).
10516 + Fix autolinks with following punctuation (#1811).
10517 The price of this is that autolinked bare URIs can no longer
10518 contain `>` characters, but this is not a big issue.
10519 + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom).
10520 + Allow `startnum` to work without `fancy_lists`. Formerly
10521 `pandoc -f markdown-fancy_lists+startnum` did not work properly.
10523 * RST reader (all Daniel Bergey):
10525 + Parse quoted literal blocks (#65). RST quoted literal blocks are
10526 the same as indented literal blocks (which pandoc already supports)
10527 except that the quote character is preserved in each line.
10528 + Parse RST class directives. The class directive accepts one or more
10529 class names, and creates a Div value with those classes. If the
10530 directive has an indented body, the body is parsed as the children of
10531 the Div. If not, the first block following the directive is made a
10532 child of the Div. This differs from the behavior of rst2xml, which
10533 does not create a Div element. Instead, the specified classes are
10534 applied to each child of the directive. However, most Pandoc Block
10535 constructors to not take an Attr argument, so we can't duplicate this
10536 behavior.
10537 + Warn about skipped directives.
10538 + Literal role now produces Code. Code role should have "code" class.
10539 + Improved support for custom roles
10541 - Added `sourceCode` to classes for `:code:` role, and anything
10542 inheriting from it.
10543 - Add the name of the custom role to classes if the Inline
10544 constructor supports Attr.
10545 - If the custom role directive does not specify a parent role,
10546 inherit from the `:span:` role.
10548 This differs somewhat from the `rst2xml.py` behavior. If a custom
10549 role inherits from another custom role, Pandoc will attach both
10550 roles' names as classes. `rst2xml.py` will only use the class of
10551 the directly invoked role (though in the case of inheriting from a
10552 `:code:` role with a `:language:` defined, it will also provide the
10553 inherited language as a class).
10554 + Warn about ignored fields in role directives.
10556 * LaTeX reader:
10558 + Parse label after caption into a span instead of
10559 inserting an additional paragraph of bracketed text (#1747).
10560 + Parse math environments as inline when possible (#1821).
10561 + Better handling of `\noindent` and `\greektext` (#1783).
10562 + Handle `\texorpdfstring` more gracefully.
10563 + Handle `\cref` and `\sep` (Wikiwide).
10564 + Support `\smartcite` and `\Smartcite` from biblatex.
10566 * HTML reader:
10568 + Retain display type of MathML output (#1719, Matthew Pickering).
10569 + Recognise `<br>` tags inside `<pre>` blocks (#1620, Matthew Pickering).
10570 + Make `embed` tag either block or inline (#1756).
10572 * DocBook reader:
10574 + Handle `keycombo`, `keycap` (#1815).
10575 + Get string content in inner tags for literal elements (#1816).
10576 + Handle `menuchoice` elements better, with a `>` between (#1817).
10577 + Include `id` on section headers (#1818).
10578 + Document/test "type" as implemented (Brian O'Sullivan).
10579 + Add support for calloutlist and callout (Brian O'Sullivan).
10580 We treat a calloutlist as a bulleted list. This works well in practice.
10581 + Add support for `classname` (Bryan O'Sullivan).
10583 * Docx reader:
10585 + Fix window path for image lookup (Jesse Rosenthal).
10586 Don't use os-sensitive "combine", since we always want the paths in our
10587 zip-archive to use forward-slashes.
10588 + Single-item headers in ordered lists are headers (Jesse Rosenthal).
10589 When users number their headers, Word understands that as a single item
10590 enumerated list. We make the assumption that such a list is, in fact,
10591 a header.
10592 + Rewrite rewriteLink to work with new headers (Jesse Rosenthal).
10593 There could be new top-level headers after making lists, so we have to
10594 rewrite links after that.
10595 + Use polyglot header list (Jesse Rosenthal).
10596 We're just keeping a list of header formats that different languages
10597 use as their default styles. At the moment, we have English, German,
10598 Danish, and French. We can continue to add to this.
10599 This is simpler than parsing the styles file, and perhaps less
10600 error-prone, since there seems to be some variations, even within a
10601 language, of how a style file will define headers.
10602 + Remove header class properly in other langs (Jesse Rosenthal).
10603 When we encounter one of the polyglot header styles, we want to remove
10604 that from the par styles after we convert to a header. To do that, we
10605 have to keep track of the style name, and remove it appropriately.
10606 + Account for external link URLs with anchors. Previously, if a URL
10607 had an anchor, the reader would incorrectly identify it as an
10608 internal link and return only the anchor as URL. (Caleb McDaniel)
10609 + Fix for Issue #1692 (i18n styles) (Nikolay Yakimov).
10611 * Org reader:
10613 + Added state changing blanklines (Jesse Rosenthal).
10614 This allows us to emphasize at the beginning of a new paragraph (or, in
10615 general, after blank lines).
10616 + Fixed bug with bulleted lists:
10618 - a
10619 - b
10620 * c
10622 was being parsed as a list, even though an unindented `*`
10623 should make a heading. See
10624 <http://orgmode.org/manual/Plain-lists.html#fn-1>.
10625 + Org reader: absolute, relative paths in link (#1741, Albert
10626 Krewinkel). The org reader was too restrictive when parsing links;
10627 some relative links and links to files given as absolute paths
10628 were not recognized correctly.
10629 + Org reader: allow empty links (jgm/gitit#471, Albert Krewinkel).
10630 This is important for use in gitit, which uses empty links
10631 for wikilinks.
10632 + Respect indent when parsing Org bullet lists (#1650, Timothy
10633 Humphries). Fixes issue with top-level bullet list parsing.
10634 + Fix indent issue for definition lists (Timothy Humphries,
10635 see #1650, #1698, #1680).
10636 + Parse multi-inline terms correctly in definition list (#1649,
10637 Matthew Pickering).
10638 + Fix rules for emphasis recognition (Albert Krewinkel).
10639 Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
10640 strings. This is wrong, as `,` and `'` are forbidden border chars and
10641 may not occur on the inner border of emphasized text.
10642 + Drop COMMENT document trees (Albert Krewinkel).
10643 Document trees under a header starting with the word `COMMENT` are
10644 comment trees and should not be exported. Those trees are dropped
10645 silently (#1678).
10646 + Properly handle links to `file:target` (Albert Krewinkel).
10647 Org links like `[[file:target][title]]` were not handled correctly,
10648 parsing the link target verbatim. The org reader is changed such that
10649 the leading `file:` is dropped from the link target (see #756, #1812).
10650 + Parse LaTeX-style MathML entities (#1657, Albert Krewinkel).
10651 Org supports special symbols which can be included using LaTeX syntax,
10652 but are actually MathML entities. Examples for this are
10653 `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
10654 or `\copy` (the copyright sign ©)
10656 * EPUB reader:
10658 + URI handling improvements. Now we outsource most of the work to
10659 `fetchItem'`. Also, do not include queries in file extensions (#1671).
10661 * LaTeX writer:
10663 + Use `\texorpdfstring` for section captions when needed (Vaclav Zeman).
10664 + Handle consecutive linebreaks (#1733).
10665 + Protect graphics in headers (Jesse Rosenthal).
10666 Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed.
10667 + Put `~` before header in list item text (Jesse Rosenthal).
10668 Because of the built-in line skip, LaTeX can't handle a section header
10669 as the first element in a list item.
10670 + Avoid using reserved characters as `\lstinline` delimiters (#1595).
10671 + Better handling of display math in simple tables (#1754).
10672 We convert display math to inline math in simple tables,
10673 since LaTeX can't deal with display math in simple tables.
10674 + Escape spaces in code (#1694, Bjorn Buckwalter).
10676 * MediaWiki writer:
10678 + Fixed links with URL = text. Previously these were rendered as bare
10679 words, even if the URL was not an absolute URL (#1825).
10681 * ICML writer:
10683 + Don't force all citations into footnotes.
10685 * RTF writer:
10687 + Add blankline at end of output (#1732, Matthew Pickering).
10689 * RST writer:
10691 + Ensure blank line after figure.
10692 + Avoid exces whitespace after last list item (#1777).
10693 + Wrap line blocks with spaces before continuations (#1656).
10694 + Fixed double-rendering of footnotes in RST tables (#1769).
10696 * DokuWiki writer:
10698 + Better handling of block quotes. This change ensures that
10699 multiple paragraph blockquotes are rendered using native `>`
10700 rather than as HTML (#1738).
10701 + Fix external images (#1739). Preface relative links with ":",
10702 absolute URIs without. (Timothy Humphries)
10704 * HTML writer:
10706 + Use protocol-relative URL for mathjax.
10707 + Put newline btw img and caption paragraph.
10708 + MathML now outputted with tex annotation (#1635, Matthew Pickering).
10709 + Add support for KaTeX HTML math (#1626, Matthew Pickering).
10710 This adds `KaTeX` to `HTMLMathMethod` (API change).
10711 + Don't double render when `email-obfuscation=none` (#1625, Matthew
10712 Pickering).
10713 + Make header attributes work outside top level (#1711).
10714 Previously they only appeared on top level header elements.
10715 Now they work e.g. in blockquotes.
10717 * ODT writer:
10719 + Correctly handle images without extensions (#1729).
10720 + Strip querystring in ODT write (#1682, Todd Sifleet).
10722 * FB2 writer:
10724 + Add newline to output.
10726 * EPUB writer:
10728 + Don't add `sourceURL` to absolute URIs (#1669).
10729 + Don't use unsupported `opf:title-type` for epub2.
10730 + Include "landmarks" section in nav document for epub3 (#1757).
10731 + Removed playOrder from navpoint elements in ncx file (#1760).
10732 These aren't required, and they make manual modification of epubs
10733 difficult.
10734 + Extract title even from structured title.
10735 + Don't include nav node in spine unless `--toc` was requested.
10736 Previously we included it in the spine with `linear="no"`, leading
10737 to odd results in some readers (#1593).
10738 + Fixed absolute URI detection (#1672).
10739 + Correctly resolve relative URIs (#1671).
10740 + Use regular page template for `nav.xhtml`, including doctype (#1759).
10742 * Docx writer:
10744 + Put docx table captions above tables (#1641, Nikolay Yakimov).
10745 + Get the page width from the reference docx file, and use
10746 it to scale images that are too large to fit (Grégory Bataille).
10747 + Partial fix for #1607 (Nikolay Yakimov). International heading styles
10748 are inferred based on `<w:name val="heading #">` fallback, if there
10749 are no en-US "Heading#" styles
10750 + Look in user data dir for archive `reference.docx`.
10751 + Renumber header and footer relationships to avoid collisions (Jesse
10752 Rosenthal). We previously took the old relationship names of the
10753 headers and footer in secptr. That led to collisions. We now make
10754 a map of availabl names in the relationships file, and then rename
10755 in secptr.
10757 * ConTeXt writer:
10759 + Add function toLabel (Mark Szepieniec).
10760 This function can be used to sanitize reference labels so that
10761 they do not contain any of the illegal characters \#[]",{}%()|= .
10762 Currently only Links have their labels sanitized, because they
10763 are the only Elements that use passed labels.
10765 * `Text.Pandoc.Shared`:
10767 + Moved import of `toChunks` outside of CPP conditional (#1590).
10768 + Fix `inDirectory` to reset to the original directory in case
10769 an exception occurs (Freiric Barral).
10771 * Templates:
10773 + LaTeX template: load polyglossia before bibtex (jgm/pandoc-templates#70).
10774 Thanks to bluebirch.
10775 + LaTeX template: Added `\VerbatimFootnotes` if there is verbatim in notes
10776 (#1616).
10777 + LaTeX template: Add shorthands=off to babel options (#1648).
10778 + EPUB, EPUB3 templates: Added `id="cover"` to body of cover page.
10779 This aids styling, making it possible for example to set 0 margins
10780 on the title page (#1758).
10781 + EPUB, EPUB3 templates: Handle structured metadata on titlepage.
10782 Previously we just expected 'title', 'subtitle', 'author', 'date'.
10783 Now we still support those, but also support the format recommended
10784 for epub metadata in the pandoc README:
10786 ---
10787 title:
10788 - type: main
10789 text: My Book
10790 - type: subtitle
10791 text: An investigation of metadata
10792 creator:
10793 - role: author
10794 text: John Smith
10795 - role: editor
10796 text: Sarah Jones
10797 identifier:
10798 - scheme: DOI
10799 text: doi:10.234234.234/33
10800 publisher: My Press
10801 rights: (c) 2007 John Smith, CC BY-NC
10802 ...
10804 * `Text.Pandoc.Templates.getDefaultTemplate`:
10805 don't fail when called with "fb2" (#1660).
10807 * `Text.Pandoc.Parsing`:
10809 + Fixed `inlineMath` so it handles `\text{..}` containing `$`.
10810 For example: `$x = \text{the $n$th root of $y$}` (#1677).
10811 + Change `parseFromString` to fail if not all input is consumed.
10812 (Matthew Pickering)
10813 + Moved `addWarning` from Markdown reader to `Parsing`, so it can be
10814 used by more readers (API change, Daniel Bergey).
10816 * `Text.Pandoc.Pretty`:
10818 + Improve performance of `realLength` (Matthew Pickering).
10819 + Make CR + BLANKLINE = BLANKLINE. This fixes an extra blank line we
10820 were getting at the end of markdown fragments (as well as rst, org,
10821 etc.) (#1705).
10823 * `Text.Pandoc.MIME`:
10825 + Add mime type for WebVTT (Jason Ronallo).
10826 + Changed mime type for `otf` to `application/vnd.ms-opentype` (#1761).
10827 This is needed for epub3 validation.
10829 * `Text.Pandoc.MediaBag`:
10831 + Fix Windows specific path problems (#1597).
10833 * `Text.Pandoc.Shared`:
10835 + Make `collapseFilePath` OS-agnostic (Matthew Pickering).
10837 * Link the test suite using `-threaded`.
10838 This allows the test suite to be run using `+RTS -N`.
10840 * Added `network` dependency under `network-uri` flag in test section.
10842 * Give better error messages when someone tries to convert from
10843 pdf, doc, odt (#1683).
10845 * Added `track` to list of tags treated by `--self-contained` (#1664).
10848## pandoc 1.13.1 (2014-08-30)
10850 * Fixed `--self-contained` with Windows paths (#1558).
10851 Previously `C:\foo.js` was being wrongly interpreted as a URI.
10853 * HTML reader: improved handling of tags that can be block or inline.
10854 Previously a section like this would be enclosed in a paragraph,
10855 with RawInline for the video tags (since video is a tag that can
10856 be either block or inline):
10858 <video controls="controls">
10859 <source src="../videos/test.mp4" type="video/mp4" />
10860 <source src="../videos/test.webm" type="video/webm" />
10861 <p>
10862 The videos can not be played back on your system.<br/>
10863 Try viewing on Youtube (requires Internet connection):
10864 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
10865 Youtube</a>.
10866 </p>
10867 </video>
10869 This change will cause the video and source tags to be parsed
10870 as RawBlock instead, giving better output.
10871 The general change is this: when we're parsing a "plain" sequence
10872 of inlines, we don't parse anything that COULD be a block-level tag.
10874 * Docx reader:
10876 + Be sensitive to user styles. Note that "Hyperlink" is
10877 "blacklisted," as we don't want the default underline styling to be
10878 inherited by all links by default (Jesse Rosenthal).
10879 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
10880 This makes to docx reader's native output fit with the way the markdown
10881 reader understands its markdown output.
10883 * Txt2Tags reader:
10885 + Header is now parsed only if standalone flag is set (Matthew Pickering).
10886 + The header is now parsed as meta information. The first line is the
10887 `title`, the second is the `author` and third line is the `date`
10888 (Matthew Pickering).
10889 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
10890 + Fixed crash when reading from stdin.
10892 * Textile writer: Extended the range of cases where native textile
10893 tables will be used (as opposed to raw HTML): we now handle any
10894 alignment type, but only for simple tables with no captions.
10896 * EPUB writer: Don't use page-progression-direction in EPUB2, which
10897 doesn't support it. Also, if page-progression-direction not specified
10898 in metadata, don't include the attribute even in EPUB3; not including it
10899 is the same as including it with the value "default", as we did before.
10900 (#1550)
10902 * Org writer: Accept example lines with indentation at the beginning
10903 (Calvin Beck).
10905 * DokuWiki writer:
10907 + Refactor to use Reader monad (Matthew Pickering).
10908 + Avoid using raw HTML in table cells; instead, use `\\`
10909 instead of newlines (Jesse Rosenthal).
10910 + Properly handle HTML table cell alignments, and use spacing
10911 to make the tables look prettier (#1566).
10913 * Docx writer:
10915 + Bibliography entries get `Bibliography` style (#1559).
10916 + Implement change tracking (Jesse Rosenthal).
10918 * LaTeX writer:
10920 + Fixed a bug that caused a table caption to repeat across all pages
10921 (Jose Luis Duran).
10922 + Improved vertical spacing in tables and made it customizable using
10923 standard lengths set by booktab. See
10924 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
10925 (Jose Luis Duran).
10926 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
10927 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
10928 + Made horizontal rules more flexible (Jose Luis Duran).
10930 * Text.Pandoc.MIME:
10932 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
10933 Code cleanups (Artyom Kazak).
10935 * Templates:
10937 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
10938 thanks lemzwerg).
10940 * Improved OSX build procedure.
10942 * Added `network-uri` flag, to deal with split of `network-uri` from
10943 `network`.
10945 * Fix build dependencies for the `trypandoc` flag, so that they are
10946 ignored if `trypandoc` flag is set to False (Gabor Pali).
10948 * Updated README to remove outdated claim that `--self-contained`
10949 looks in the user data directory for missing files.
10951## pandoc 1.13.0.1 (2014-08-17)
10953 * Docx writer:
10955 + Fixed regression which bungled list numbering (#1544), causing
10956 all lists to appear as basic ordered lists.
10957 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
10958 Added a property to all table rows where the sum of column widths
10959 is specified in pct (fraction of 5000). This helps persuade Word
10960 to lay out the table with the widths we specify.
10962 * Fixed a bug in Windows 8 which caused pandoc not to find the
10963 `pandoc-citeproc` filter (#1542).
10965 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
10966 Most significantly, the reader now uses Builder, leading to some
10967 performance improvements.
10969 * HTML reader: Parse appropriately styled span as SmallCaps.
10971 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
10972 `superscript`, and `subscript` extensions, respectively, are
10973 deactivated (#1127).
10975 * Added `trypandoc` flag to build CGI executable used in the online
10976 demo.
10978 * Makefile: Added 'quick', 'osxpkg' targets.
10980 * Updated README in templates to indicate templates license.
10981 The templates are dual-licensed, BSD3 and GPL2+.
10983## pandoc 1.13 (15 August 2014)
10985### New features
10987 * Added `docx` as an input format (Jesse Rosenthal). The docx
10988 reader includes conversion of native Word equations to pandoc
10989 LaTeX `Math` elements. Metadata is taken from paragraphs at the
10990 beginning of the document with styles `Author`, `Title`, `Subtitle`,
10991 `Date`, and `Abstract`.
10993 * Added `epub` as an input format (Matthew Pickering). The epub
10994 reader includes conversion of MathML to pandoc LaTeX `Math`
10995 elements.
10997 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
10998 Txt2tags is a lightweight markup format described at
10999 <http://txt2tags.org/>.
11001 * Added `dokuwiki` as an output format (Clare Macrae).
11003 * Added `haddock` as an output format.
11005 * Added `--extract-media` option to extract media contained in a zip
11006 container (docx or epub) while adjusting image paths to point to the
11007 extracted images.
11009 * Added a new markdown extension, `compact_definition_lists`, that
11010 restores the syntax for definition lists of pandoc 1.12.x, allowing
11011 tight definition lists with no blank space between items, and
11012 disallowing lazy wrapping. (See below under behavior changes.)
11014 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
11016 * Added extensions `native_spans` and `native_divs` to activate
11017 parsing of material in HTML span or div tags as Pandoc Span
11018 inlines or Div blocks.
11020 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
11021 Textile, and MediaWiki readers. This is an option intended
11022 for debugging parsing problems; ordinary users should not need
11023 to use it.
11025### Behavior changes
11027 * Changed behavior of the `markdown_attribute` extension, to bring
11028 it in line with PHP markdown extra and multimarkdown. Setting
11029 `markdown="1"` on an outer tag affects all contained tags,
11030 recursively, until it is reversed with `markdown="0"` (#1378).
11032 * Revised markdown definition list syntax (#1429). Both the reader
11033 and writer are affected. This change brings pandoc's definition list
11034 syntax into alignment with that used in PHP markdown extra and
11035 multimarkdown (with the exception that pandoc is more flexible about
11036 the definition markers, allowing tildes as well as colons). Lazily
11037 wrapped definitions are now allowed. Blank space is required
11038 between list items. The space before a definition is used to determine
11039 whether it is a paragraph or a "plain" element. **WARNING: This change
11040 may break existing documents!** Either check your documents for
11041 definition lists without blank space between items, or use
11042 `markdown+compact_definition_lists` for the old behavior.
11044 * `.numberLines` now works in fenced code blocks even if no language
11045 is given (#1287, jgm/highlighting-kate#40).
11047 * Improvements to `--filter`:
11049 + Don't search PATH for a filter with an explicit path.
11050 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
11051 the system path, even if there was a `caps.py` in the working directory.
11052 + Respect shebang if filter is executable (#1389).
11053 + Don't print misleading error message.
11054 Previously pandoc would say that a filter was not found,
11055 even in a case where the filter had a syntax error.
11057 * HTML reader:
11059 + Parse `div` and `span` elements even without `--parse-raw`,
11060 provided `native_divs` and `native_spans` extensions are set.
11061 Motivation: these now generate native pandoc Div and Span
11062 elements, not raw HTML.
11063 + Parse EPUB-specific elements if the `epub_html_exts`
11064 extension is enabled. These include `switch`, `footnote`,
11065 `rearnote`, `noteref`.
11067 * Org reader:
11069 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
11070 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
11071 `\cite{Coffee}`), can be used without any further escaping (Albert
11072 Krewinkel).
11074 * Textile reader and writer:
11076 + The `raw_tex` extension is no longer set by default. You can
11077 enable it with `textile+raw_tex`.
11079 * DocBook reader:
11081 + Support `equation`, `informalequation`, `inlineequation` elements with
11082 `mml:math` content. This is converted into LaTeX and put into a Pandoc
11083 Math inline.
11085 * Revised `plain` output, largely following the style of Project
11086 Gutenberg:
11088 + Emphasis is rendered with `_underscores_`, strong emphasis
11089 with ALL CAPS.
11090 + Headings are rendered differently, with space to set them off,
11091 not with setext style underlines. Level 1 headers are ALL CAPS.
11092 + Math is rendered using unicode when possible, but without the
11093 distracting emphasis markers around variables.
11094 + Footnotes use a regular `[n]` style.
11096 * Markdown writer:
11098 + Horizontal rules are now a line across the whole page.
11099 + Prettier pipe tables. Columns are now aligned (#1323).
11100 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
11101 no longer emits any raw HTML, including span and div tags
11102 generated by Span and Div elements.
11103 + Use span with style for `SmallCaps` (#1360).
11105 * HTML writer:
11107 + Autolinks now have class `uri`, and email autolinks have class
11108 `email`, so they can be styled.
11110 * Docx writer:
11112 + Document formatting is carried over from `reference.docx`.
11113 This includes margins, page size, page orientation, header,
11114 and footer, including images in headers and footers.
11115 + Include abstract (if present) with `Abstract` style (#1451).
11116 + Include subtitle (if present) with `Subtitle` style, rather
11117 than tacking it on to the title (#1451).
11119 * Org writer:
11121 + Write empty span elements with an id attribute as org anchors.
11122 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
11124 * LaTeX writer:
11126 + Put table captions above tables, to match the conventional
11127 standard. (Previously they appeared below tables.)
11128 + Use `\(..\)` instead of `$..$` for inline math (#1464).
11129 + Use `\nolinkurl` in email autolinks. This allows them to be styled
11130 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
11131 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
11132 curly quotes in the PDF output (#1364).
11133 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
11134 do not appear before the overlays in which their markers appear
11135 (#1525).
11136 + Don't produce a `\label{..}` for a Div or Span element. Do produce
11137 a `\hyperdef{..}` (#1519).
11139 * EPUB writer:
11141 + If the metadata includes `page-progression-direction` (which can be
11142 `ltr` or `rtl`, the `page-progression-direction` attribute will
11143 be set in the EPUB spine (#1455).
11145 * Custom lua writers:
11147 + Custom writers now work with `--template`.
11148 + Removed HTML header scaffolding from `sample.lua`.
11149 + Made citation information available in lua writers.
11151 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
11152 adjacent `RawBlock`s when possible.
11154### API changes
11156 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
11158 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
11159 Pickering).
11161 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
11162 Pickering).
11164 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
11165 (Clare Macrae).
11167 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
11169 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
11170 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
11171 readers return a pair of a `Pandoc` document and a `MediaBag` with
11172 the media resources they contain. This can be extracted using
11173 `--extract-media`. Writers that incorporate media (PDF, Docx,
11174 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
11175 for resources in the `MediaBag` generated by the reader, in addition to
11176 the file system or web.
11178 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
11179 Renamed `readTeXMath'` to `texMathToInlines`.
11181 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
11182 `readers` now associates names of readers with `Reader`
11183 structures. This allows inclusion of readers, like the docx
11184 reader, that take binary rather than textual input.
11186 * `Text.Pandoc.Shared`:
11188 + Added `capitalize` (Artyom Kazak), and replaced uses of
11189 `map toUpper` (which give bad results for many languages).
11190 + Added `collapseFilePath`, which removes intermediate `.` and
11191 `..` from a path (Matthew Pickering).
11192 + Added `fetchItem'`, which works like `fetchItem` but searches
11193 a `MediaBag` before looking on the net or file system.
11194 + Added `withTempDir`.
11195 + Added `removeFormatting`.
11196 + Added `extractSpaces` (from HTML reader) and generalized its type
11197 so that it can be used by the docx reader (Matthew Pickering).
11198 + Added `ordNub`.
11199 + Added `normalizeInlines`, `normalizeBlocks`.
11200 + `normalize` is now `Pandoc -> Pandoc` instead of
11201 `Data a :: a -> a`. Some users may need to change their uses of
11202 `normalize` to the newly exported `normalizeInlines` or
11203 `normalizeBlocks`.
11205 * `Text.Pandoc.Options`:
11207 + Added `writerMediaBag` to `WriterOptions`.
11208 + Removed deprecated and no longer used `readerStrict` in
11209 `ReaderOptions`. This is handled by `readerExtensions` now.
11210 + Added `Ext_compact_definition_lists`.
11211 + Added `Ext_epub_html_exts`.
11212 + Added `Ext_native_divs` and `Ext_native_spans`.
11213 This allows users to turn off the default pandoc behavior of
11214 parsing contents of div and span tags in markdown and HTML
11215 as native pandoc Div blocks and Span inlines.
11217 * `Text.Pandoc.Parsing`:
11219 + Generalized `readWith` to `readWithM` (Matthew Pickering).
11220 + Export `runParserT` and `Stream` (Matthew Pickering).
11221 + Added `HasQuoteContext` type class (Matthew Pickering).
11222 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
11223 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
11224 `applyMacros` (Matthew Pickering).
11225 + Added custom `token` (Matthew Pickering).
11226 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
11227 track of the ending tag we're waiting for when we're parsing inside
11228 HTML block tags.
11229 + Added `stateMarkdownAttribute` to `ParserState`. This is used
11230 to keep track of whether the markdown attribute has been set in
11231 an enclosing tag.
11232 + Generalized type of `registerHeader`, using new type classes
11233 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
11234 Pickering). These allow certain common functions to be reused
11235 even in parsers that use custom state (instead of `ParserState`),
11236 such as the MediaWiki reader.
11237 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
11238 and generalized their types (Matthew Pickering).
11240 * `Text.Pandoc.Pretty`:
11242 + Added `nestle`.
11243 + Added `blanklines`, which guarantees a certain number of blank lines
11244 (and no more).
11246### Bug fixes
11248 * Markdown reader:
11250 + Fixed parsing of indented code in list items. Indented code
11251 at the beginning of a list item must be indented eight spaces
11252 from the margin (or edge of the container), or four spaces
11253 from the list marker, whichever is greater.
11254 + Fixed small bug in HTML parsing with `markdown_attribute`, which
11255 caused incorrect tag nesting for input like
11256 `<aside markdown="1">*hi*</aside>`.
11257 + Fixed regression with intraword underscores (#1121).
11258 + Improved parsing of inline links containing quote characters (#1534).
11259 + Slight rewrite of `enclosure`/`emphOrStrong` code.
11260 + Revamped raw HTML block parsing in markdown (#1330).
11261 We no longer include trailing spaces and newlines in the
11262 raw blocks. We look for closing tags for elements (but without
11263 backtracking). Each block-level tag is its own `RawBlock`;
11264 we no longer try to consolidate them (though `--normalize` will do so).
11265 + Combine consecutive latex environments. This helps when you have
11266 two minipages which can't have blank lines between them (#690, #1196).
11267 + Support smallcaps through span.
11268 `<span style="font-variant:small-caps;">foo</span>` will be
11269 parsed as a `SmallCaps` inline, and will work in all output
11270 formats that support small caps (#1360).
11271 + Prevent spurious line breaks after list items (#1137). When the
11272 `hard_line_breaks` option was specified, pandoc would formerly
11273 produce a spurious line break after a tight list item.
11274 + Fixed table parsing bug (#1333).
11275 + Handle `c++` and `objective-c` as language identifiers in
11276 github-style fenced blocks (#1318).
11277 + Inline math must have nonspace before final `$` (#1313).
11279 * LaTeX reader:
11281 + Handle comments at the end of tables. This resolves the issue
11282 illustrated in <http://stackoverflow.com/questions/24009489>.
11283 + Correctly handle table rows with too few cells. LaTeX seems to
11284 treat them as if they have empty cells at the end (#241).
11285 + Handle leading/trailing spaces in `\emph` better.
11286 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
11287 so that we don't get things like `* hi *` in markdown output.
11288 Also applies to `textbf` and some other constructions (#1146).
11289 + Don't assume preamble doesn't contain environments (#1338).
11290 + Allow (and discard) optional argument for `\caption` (James Aspnes).
11292 * HTML reader:
11294 + Fixed major parsing problem with HTML tables. Table cells were
11295 being combined into one cell (#1341).
11296 + Fixed performance issue with malformed HTML tables.
11297 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
11298 + Allow space between `<col>` and `</col>`.
11299 + Added `audio` and `source` in `eitherBlockOrInline`.
11300 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
11301 `blockTags` to `eitherBlockOrInline`.
11302 + `map` and `object` were mistakenly in both lists; they have been removed
11303 from `blockTags`.
11304 + Ignore `DOCTYPE` and `xml` declarations.
11306 * MediaWiki reader:
11308 + Don't parse backslash escapes inside `<source>` (#1445).
11309 + Tightened up template parsing.
11310 The opening `{{` must be followed by an alphanumeric or `:`.
11311 This prevents the exponential slowdown in #1033.
11312 + Support "Bild" for images.
11314 * DocBook reader:
11316 + Better handle elements inside code environments. Pandoc's document
11317 model does not allow structure inside code blocks, but at least this way
11318 we preserve the text (#1449).
11319 + Support `<?asciidoc-br?>` (#1236).
11321 * Textile reader:
11323 + Fixed list parsing. Lists can now start without an intervening
11324 blank line (#1513).
11325 + HTML block-level tags that do not start a line are parsed as
11326 inline HTML and do not interrupt paragraphs (as in RedCloth).
11328 * Org reader:
11330 + Make tildes create inline code (#1345). Also relabeled `code` and
11331 `verbatim` parsers to accord with the org-mode manual.
11332 + Respect `:exports` header argument in code blocks (Craig Bosma).
11333 + Fixed tight lists with sublists (#1437).
11335 * EPUB writer:
11337 + Avoid excess whitespace in `nav.xhtml`. This should improve
11338 TOC view in iBooks (#1392).
11339 + Fixed regression on cover image.
11340 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
11341 because the metadata id was not correct. Now we derive the id from the
11342 actual cover image filename, which we preserve rather than using
11343 "cover-image."
11344 + Keep newlines between block elements. This allows
11345 easier diff-ability (#1424).
11346 + Use `stringify` instead of custom `plainify`.
11347 + Use `renderTags'` for all tag rendering. This properly handles tags
11348 that should be self-closing. Previously `<hr/>` would appear in EPUB
11349 output as `<hr></hr>` (#1420).
11350 + Better handle HTML media tags.
11351 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
11352 can have only one dc:date, so only the first one is used.
11354 * LaTeX writer:
11356 + Correctly handle figures in notes. Notes can't contain figures in
11357 LaTeX, so we fake it to avoid an error (#1053).
11358 + Fixed strikeout + highlighted code (#1294).
11359 Previously strikeout highlighted code caused an error.
11361 * ConTeXt writer:
11363 + Improved detection of autolinks with URLs containing escapes.
11365 * RTF writer:
11367 + Improved image embedding: `fetchItem'` is now used to get the
11368 images, and calculated image sizes are indicated in the RTF.
11369 + Avoid extra paragraph tags in metadata (#1421).
11371 * HTML writer:
11373 + Deactivate "incremental" inside slide speaker notes (#1394).
11374 + Don't include empty items in the table of contents for
11375 slide shows. (These would result from creating a slide
11376 using a horizontal rule.)
11378 * MediaWiki writer:
11380 + Minor renaming of `st` prefixed names.
11382 * AsciiDoc writer:
11384 + Double up emphasis and strong emphasis markers in intraword
11385 contexts, as required by asciidoc (#1441).
11387 * Markdown writer:
11389 + Avoid wrapping that might start a list, blockquote, or header (#1013).
11390 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
11391 + Don't use braced attributes for fenced code (#1416).
11392 If `Ext_fenced_code_attributes` is not set, the first class
11393 attribute will be printed after the opening fence as a bare word.
11394 + Separate adjacent lists of the same kind with an HTML comment (#1458).
11396 * PDF writer:
11398 + Fixed treatment of data uris for images (#1062).
11400 * Docx writer:
11402 + Use Compact style for empty table cells (#1353).
11403 Otherwise we get overly tall lines when there are empty
11404 table cells and the other cells are compact.
11405 + Create overrides per-image for `media/` in reference docx.
11406 This should be somewhat more robust and cover more types of images.
11407 + Improved `entryFromArchive` to avoid an unneeded parse.
11408 + Section numbering carries over from reference.docx (#1305).
11409 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
11410 we assign numbers based on the list marker styles.
11412 * `Text.Pandoc.Options`:
11414 + Removed `Ext_fenced_code_attributes` from `markdown_github`
11415 extensions.
11417 * `Text.Pandoc.ImageSize`:
11419 + Use default instead of failing if image size not found
11420 in exif header (#1358).
11421 + ignore unknown exif header tag rather than crashing.
11422 Some images seem to have tag type of 256, which was causing
11423 a runtime error.
11425 * `Text.Pandoc.Shared`:
11427 + `fetchItem`: unescape URI encoding before reading local file (#1427).
11428 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
11429 doing mime lookup, to improve mime type guessing.
11430 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
11431 other things are treated as relative URIs if `sourceURL` is `Just _`,
11432 otherwise as file paths on the local file system.
11433 + `fetchItem` now properly handles links without a protocol (#1477).
11434 + `fetchItem` now escapes characters not allowed in URIs before trying
11435 to parse the URIs.
11436 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
11438 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
11439 needed to resolve relative URLs when we fetch resources (#750).
11441 * `Text.Pandoc.Parsing`
11443 + Simplified `dash` and `ellipsis` (#1419).
11444 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
11445 + Generalized functions to use `ParsecT` (Matthew Pickering).
11446 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
11447 Pickering).
11449### Template changes
11451 * Added haddock template.
11452 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
11453 be "advisory" in HTML5, but kindlegen seems to require them.
11454 * EPUB3: Put title page in section with `epub:type="titlepage"`.
11455 * LaTeX: Made `\subtitle` work properly (#1327).
11456 * LaTeX/Beamer: remove conditional around date (#1321).
11457 * LaTeX: Added `lot` and `lof` variables, which can be set to
11458 get `\listoftables` and `\listoffigures` (#1407). Note that
11459 these variables can be set at the command line with `-Vlot -Vlof`
11460 or in YAML metadata.
11462### Under the hood improvements
11464 * Rewrote normalize for efficiency (#1385).
11466 * Rewrote Haddock reader to use `haddock-library` (#1346).
11468 + This brings pandoc's rendering of haddock markup in line
11469 with the new haddock.
11470 + Fixed line breaks in `@` code blocks.
11471 + alex and happy are no longer build-depends.
11473 * Added `Text.Pandoc.Compat.Directory` to allow building against
11474 different versions of the `directory` library.
11476 + Added `Text.Pandoc.Compat.Except` to allow building against
11477 different verions of `mtl`.
11479 * Code cleanup in some writers, using Reader monad to avoid
11480 passing options parameter around (Matej Kollar).
11482 * Improved readability in `pandoc.hs`.
11484 * Miscellaneous code cleanups (Artyom Kazak).
11486 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
11487 Thompson).
11489 * Changed `http-conduit` flag to `https`. Depend on `http-client`
11490 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
11491 depends on `conduit` via `yaml`.)
11493 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
11494 This change to highlighting-kate means that PHP fragments no longer need
11495 to start with `<?php`. It also fixes a serious bug causing failures with
11496 ocaml and fsharp.
11498 * Require latest `texmath`. This fixes `\tilde{E}` and allows
11499 `\left` to be used with `]`, `)` etc. (#1319), among many other
11500 improvements.
11502 * Require latest `zip-archive`. This has fixes for unicode path names.
11504 * Added tests for plain writer.
11506 * `Text.Pandoc.Templates`:
11508 + Fail informatively on template syntax errors.
11509 With the move from parsec to attoparsec, we lost good error
11510 reporting. In fact, since we weren't testing for end of input,
11511 malformed templates would fail silently. Here we revert back to
11512 Parsec for better error messages.
11513 + Use `ordNub` (#1022).
11515 * Benchmarks:
11517 + Made benchmarks compile again (Artyom Kazak).
11518 + Fixed so that the failure of one benchmark does not prevent others
11519 from running (Artyom Kazak).
11520 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
11521 + Changed benchmark to use only the test suite, so that benchmarks
11522 run more quickly.
11524 * Windows build script:
11526 + Add `-windows` to file name.
11527 + Use one install command for pandoc, pandoc-citeproc.
11528 + Force install of pandoc-citeproc.
11530 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
11531 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
11532 will extract it into a folder named `SOMETHING.pkg`, which it
11533 will interpret as a defective package (#1308).
11535 * `README`:
11537 + Made headers for all extensions so they have IDs and can be
11538 linked to (Beni Cherniavsky-Paskin).
11539 + Fixed typos (Phillip Alday).
11540 + Fixed documentation of attributes (#1315).
11541 + Clarified documentation on small caps (#1360).
11542 + Better documentation for `fenced_code_attributes` extension
11543 (Caleb McDaniel).
11544 + Documented fact that you can put YAML metadata in a separate file
11545 (#1412).
11548## pandoc 1.12.4.2 (2014-05-14)
11550 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
11552 * Shared: `addMetaValue` now behaves slightly differently:
11553 if both the new and old values are lists, it concatenates their
11554 contents to form a new list.
11556 * LaTeX reader:
11558 + Set `bibliography` in metadata from `\bibliography` or
11559 `\addbibresource` command.
11560 + Don't error on `%foo` with no trailing newline.
11562 * Org reader:
11564 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
11565 + Fix parsing of blank lines within blocks (Albert Krewinkel).
11566 + Support pandoc citation extension (Albert Krewinkel). This can
11567 be turned off by specifying `org-citation` as the input format.
11569 * Markdown reader:
11571 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
11572 other readers (Albert Krewinkel).
11574 * `Text.Pandoc.Parsing`:
11576 + Added `citeKey` (see above).
11577 + Added `HasLastStrPosition` type class and `updateLastStrPos`
11578 and `notAfterString` functions.
11580 * Updated copyright notices (Albert Krewinkel).
11582 * Added default.icml to data files so it installs with the package.
11584 * OSX package:
11586 + The binary is now built with options to ensure that it can be
11587 used with OSX 10.6+.
11588 + Moved OSX package materials to osx directory.
11589 + Added OSX package uninstall script, included in the zip container
11590 (thanks to Daniel T. Staal).
11592## pandoc 1.12.4 (2014-05-07)
11594 * Made it possible to run filters that aren't executable
11595 (#1096). Pandoc first tries to find the executable (searching
11596 the path if path isn't given). If it fails, but the file
11597 exists and has a `.py`, `.pl`, `.rb`, `.hs`, or `.php`
11598 extension, pandoc runs the filter using the appropriate
11599 interpreter. This should make it easier to use filters on
11600 Windows, and make it more convenient for everyone.
11602 * Added Emacs org-mode reader (Albert Krewinkel).
11604 * Added InDesign ICML Writer (mb21).
11606 * MediaWiki reader:
11608 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
11609 + Fixed bug in certain nested lists (#1213). If a level 2 list was
11610 followed by a level 1 list, the first item of the level 1 list
11611 would be lost.
11612 + Handle table rows containing just an HTML comment (#1230).
11614 * LaTeX reader:
11616 + Give better location information on errors, pointing to line
11617 numbers within included files (#1274).
11618 + LaTeX reader: Better handling of `table` environment (#1204).
11619 Positioning options no longer rendered verbatim.
11620 + Better handling of figure and table with caption (#1204).
11621 + Handle `@{}` and `p{length}` in tabular. The length is not actually
11622 recorded, but at least we get a table (#1180).
11623 + Properly handle `\nocite`. It now adds a `nocite` metadata
11624 field. Citations there will appear in the bibliography but not
11625 in the text (unless you explicitly put a `$nocite$` variable
11626 in your template).
11628 * Markdown reader:
11630 + Ensure that whole numbers in YAML metadata are rendered without
11631 decimal points. (This became necessary with changes to aeson
11632 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
11633 + Fixed regression on line breaks in strict mode (#1203).
11634 + Small efficiency improvements.
11635 + Improved parsing of nested `div`s. Formerly a closing `div` tag
11636 would be missed if it came right after other block-level tags.
11637 + Avoid backtracking when closing `</div>` not found.
11638 + Fixed bug in reference link parsing in `markdown_mmd`.
11639 + Fixed a bug in list parsing (#1154). When reading a raw list
11640 item, we now strip off up to 4 spaces.
11641 + Fixed parsing of empty reference link definitions (#1186).
11642 + Made one-column pipe tables work (#1218).
11644 * Textile reader:
11646 + Better support for attributes. Instead of being ignored, attributes
11647 are now parsed and included in Span inlines. The output will be a bit
11648 different from stock textile: e.g. for `*(foo)hi*`, we'll get
11649 `<em><span class="foo">hi</span></em>` instead of
11650 `<em class="foo">hi</em>`. But at least the data is not lost.
11651 + Improved treatment of HTML spans (%) (#1115).
11652 + Improved link parsing. In particular we now pick up on attributes.
11653 Since pandoc links can't have attributes, we enclose the whole link in
11654 a span if there are attributes (#1008).
11655 + Implemented correct parsing rules for inline markup (#1175, Matthew
11656 Pickering).
11657 + Use Builder (Matthew Pickering).
11659 * DocBook reader:
11661 + Better treatment of `formalpara`. We now emit the title (if present)
11662 as a separate paragraph with boldface text (#1215).
11663 + Set metadata `author` not `authors`.
11664 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
11665 Matthew Pickering).
11666 + Converted current meta information parsing in DocBook to a more
11667 extensible version which is aware of the more recent meta
11668 representation (Matthew Pickering).
11670 * HTML reader:
11672 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
11673 (#1248).
11674 + Treat processing instructions & declarations as block. Previously
11675 these were treated as inline, and included in paragraph tags in HTML
11676 or DocBook output, which is generally not what is wanted (#1233).
11677 + Updated `closes` with rules from HTML5 spec.
11678 + Use Builder (Matthew Pickering, #1162).
11680 * RST reader:
11682 + Remove duplicate `http` in PEP links (Albert Krewinkel).
11683 + Make rst figures true figures (#1168, CasperVector)
11684 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
11685 rST parser now supports: all built-in rST roles, new role definition,
11686 role inheritance, though with some limitations.
11687 + Use `author` rather than `authors` in metadata.
11688 + Better handling of directives. We now correctly handle field
11689 lists that are indented more than three spaces. We treat an
11690 `aafig` directive as a code block with attributes, so it can be
11691 processed in a filter (#1212).
11693 * LaTeX writer:
11695 + Mark span contents with label if span has an ID (Albert Krewinkel).
11696 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
11697 + Handle line breaks in simple table cells (#1217).
11698 + Workaround for level 4-5 headers in quotes. These previously produced
11699 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
11700 This adds an `mbox{}` in these contexts to work around the problem.
11701 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
11702 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
11703 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
11704 ligature with LuaLaTeX but `\/` does.
11705 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
11707 * ConTeXt writer: Improved autolinks (#1270).
11709 * DocBook writer:
11711 + Improve handling of hard line breaks in Docbook writer
11712 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
11713 just for the newline character.
11714 + Don't let line breaks inside footnotes influence the enclosing
11715 paragraph (Neil Mayhew).
11716 + Distinguish tight and loose lists in DocBook output, using
11717 `spacing="compact"` (Neil Mayhew, #1250).
11719 * Docx writer: When needed files are not present in the user's
11720 `reference.docx`, fall back on the versions in the `reference.docx`
11721 in pandoc's data files. This fixes a bug that occurs when a
11722 `reference.docx` saved by LibreOffice is used. (#1185)
11724 * EPUB writer:
11726 + Include extension in epub ids. This fixes a problem with duplicate
11727 extensions for fonts and images with the same base name but different
11728 extensions (#1254).
11729 + Handle files linked in raw `img` tags (#1170).
11730 + Handle media in `audio` source tags (#1170).
11731 Note that we now use a `media` directory rather than `images`.
11732 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
11733 will both be incorporated into `content.opf` and the epub container.
11735 * HTML writer:
11737 + Add colgroup around col tags (#877). Also affects EPUB writer.
11738 + Fixed bug with unnumbered section headings. Unnumbered section
11739 headings (with class `unnumbered`) were getting numbers.
11740 + Improved detection of image links. Previously image links with
11741 queries were not recognized, causing `<embed>` to be used instead
11742 of `<img>`.
11744 * Man writer: Ensure that terms in definition lists aren't line wrapped
11745 (#1195).
11747 * Markdown writer:
11749 + Use proper escapes to avoid unwanted lists (#980). Previously we used
11750 0-width spaces, an ugly hack.
11751 + Use longer backtick fences if needed (#1206). If the content contains a
11752 backtick fence and there are attributes, make sure longer fences are
11753 used to delimit the code. Note: This works well in pandoc, but github
11754 markdown is more limited, and will interpret the first string of three
11755 or more backticks as ending the code block.
11757 * RST writer: Avoid stack overflow with certain tables (#1197).
11759 * RTF writer: Fixed table cells containing paragraphs.
11761 * Custom writer:
11763 + Correctly handle UTF-8 in custom lua scripts (#1189).
11764 + Fix bugs with lua scripts with mixed-case filenames and
11765 paths containing `+` or `-` (#1267). Note that `getWriter`
11766 in `Text.Pandoc` no longer returns a custom writer on input
11767 `foo.lua`.
11769 * AsciiDoc writer: Handle multiblock and empty table cells
11770 (#1245, #1246). Added tests.
11772 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
11774 * `Text.Pandoc.Shared`:
11776 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
11777 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
11778 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
11779 Jesse Rosenthal.
11780 + `openURL`: set proxy with value of http_proxy env variable (#1211).
11781 Note: proxies with non-root paths are not supported, due to
11782 limitations in `http-conduit`.
11784 * `Text.Pandoc.PDF`:
11786 + Ensure that temp directories deleted on Windows (#1192). The PDF is
11787 now read as a strict bytestring, ensuring that process ownership will
11788 be terminated, so the temp directory can be deleted.
11789 + Use `/` as path separators in a few places, even on Windows.
11790 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
11791 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
11792 + Changes to error reporting, to handle non-UTF8 error output.
11794 * `Text.Pandoc.Templates`:
11796 + Removed unneeded datatype context (Merijn Verstraaten).
11798 + YAML objects resolve to "true" in conditionals (#1133).
11799 Note: If `address` is a YAML object and you just have `$address$`
11800 in your template, the word `true` will appear, which may be
11801 unexpected. (Previously nothing would appear.)
11803 * `Text.Pandoc.SelfContained`: Handle `poster` attribute in `video`
11804 tags (#1188).
11806 * `Text.Pandoc.Parsing`:
11808 + Made `F` an instance of Applicative (#1138).
11809 + Added `stateCaption`.
11810 + Added `HasMacros`, simplified other typeclasses.
11811 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
11812 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
11813 + Changed the smart punctuation parser to return `Inlines`
11814 rather than `Inline` (Matthew Pickering).
11815 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
11816 from typeclasses of monads to typeclasses of states. This simplifies
11817 the instance definitions and provides more flexibility. Generalized
11818 type of `getOption` and added a default definition. Removed
11819 `askReaderOption`. Added `extractReaderOption`. Added
11820 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
11821 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
11822 `modifyHeaderMap`. Added `extractIdentifierList` and
11823 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
11824 for `getIdentifierList`, `putIdentifierList`, and
11825 `modifyIdentifierList`. The ultimate goal here is to allow different
11826 parsers to use their own, tailored parser states (instead of
11827 `ParserState`) while still using shared functions.
11829 * Template changes:
11831 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
11832 + LaTeX template: Add `linestretch` and `fontfamily` variables.
11833 + LaTeX template: Conditionalize author and date commands.
11834 + Beamer template: Consistent styles for figure and table captions
11835 (aaronwolen).
11836 + LaTeX and beamer template: Adjust widths correctly for oversized
11837 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
11838 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
11839 `upquote` only after `fontenc` (Yihui Xie).
11840 + Beamer template: Added caption package (#1200).
11841 + Beamer template: changes for better unicode handling (KarolS).
11842 + DocBook template: use `authorgroup` if there are authors.
11843 + revealjs template: Move `include-after` to end (certainlyakey).
11844 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
11846 * Bumped version bounds of dependencies.
11848 * Added a `--trace` command line option, for debugging backtracking
11849 bugs. So far this only works with the markdown reader.
11851 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
11853 * Updated travis script to test with multiple GHC versions.
11855 * Force failure of a Travis build if GHC produces warnings (Albert
11856 Krewinkel).
11858 * Add `.editorconfig` (Albert Krewinkel).
11859 See <http://editorconfig.org/> for details.
11861 * Give more useful error message if '-t pdf' is specified (#1155).
11863 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
11865 * Allow `html4` as a synonym of `html` as a reader (it already works
11866 as a writer).
11868 * README:
11870 + Added an explanation of how to use YAML metadata to
11871 force items to appear in the bibliography without citations in
11872 the text (like LaTeX `\nocite`).
11873 + Added note to `--bibtex/--natbib`: not for use in making PDF
11874 (#1194, thanks to nahoj).
11875 + Added explanatory notes about `--natbib` and `--biblatex`.
11876 + Added specification of legal syntax for citation keys.
11877 + Fixed variable defaults documentation (Albert Krewinkel).
11879 * Removed copyright statements for files that have been removed
11880 (Albert Krewinkel).
11882 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
11883 They aren't needed at runtime. We keep README and COPYRIGHT in data
11884 to ensure that they'll be available on all systems on which pandoc
11885 is installed.
11887 * Use cabal sandboxes in Windows build script.
11889## pandoc 1.12.3.3 (2014-02-03)
11891 * To changes to source; recompiled tarball with latest alex and
11892 happy, so they will work with GHC 7.8.
11894## pandoc 1.12.3.2 (2014-02-03)
11896 * Bumped version bounds for blaze-html, blaze-markup.
11898 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
11899 (#1124).
11901 * Fixed mediawiki ordered list parsing (#1122).
11903 * HTML reader: Fixed bug reading inline math with `$$` (#225).
11905 * Added support for LaTeX style literate Haskell code blocks in rST
11906 (Merijn Verstraaten).
11908## pandoc 1.12.3.1 (2014-01-14)
11910 * Relaxed version constraint on binary, allowing the use of binary 0.5.
11913## pandoc 1.12.3 (2014-01-10)
11915 * The `--bibliography` option now sets the `biblio-files` variable.
11916 So, if you're using `--natbib` or `--biblatex`, you can just use
11917 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
11919 * Don't run pandoc-citeproc filter if `--bibliography` is
11920 used together with `--natbib` or `--biblatex` (Florian Eitel).
11922 * Template changes:
11924 + Updated beamer template to include booktabs.
11925 + Added `abstract` variable to LaTeX template.
11926 + Put `header-includes` after `title` in LaTeX template (#908).
11927 + Allow use of `\includegraphics[size]` in beamer.
11928 This just required porting a macro definition from the default
11929 LaTeX template to the default beamer template.
11931 * `reference.docx`: Include `FootnoteText` style.
11932 Otherwise Word ignores the style, even when specified in the `pPr`.
11933 (#901)
11935 * `reference.odt`: Tidied `styles.xml`.
11937 * Relaxed version bounds for dependencies.
11939 * Added `withSocketsDo` around http conduit code in `openURL`,
11940 so it works on Windows (#1080).
11942 * Added `Cite` function to `sample.lua`.
11944 * Markdown reader:
11946 + Fixed regression in title blocks (#1089).
11947 If author field was empty, date was being ignored.
11948 + Allow backslash-newline hard line breaks in grid and
11949 multiline table cells.
11950 + Citation keys may now start with underscores, and may contain
11951 underscores adjacent to internal punctuation.
11953 * LaTeX reader:
11955 + Add support for `Verb` macro (jrnold) (#1090).
11956 + Support babel-style quoting: `` "`..."' ``.
11958 * Properly handle script blocks in strict mode. (That is,
11959 `markdown-markdown_in_html_blocks`.) Previously a spurious
11960 `<p>` tag was being added (#1093).
11962 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
11963 elements.
11965 * LaTeX writer:
11967 + Factored out function for table cell creation.
11968 + Better treatment of footnotes in tables.
11969 Notes now appear in the regular sequence, rather than in the
11970 table cell. (This was a regression in 1.10.)
11972 * HTML reader: Parse name/content pairs from meta tags as metadata.
11973 Closes #1106.
11975 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
11977 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
11979 * ODT writer: Use mathml for proper rendering of formulas.
11980 Note: LibreOffice's support for this seems a bit buggy. But
11981 it should be better than what we had before.
11983 * RST writer: Ensure no blank line after def in definition list (#992).
11985 * Markdown writer: Don't use tilde code blocks with braced attributes in
11986 `markdown_github` output. A consequence of this change is that the
11987 backtick form will be preferred in general if both are enabled. That
11988 is good, as it is much more widespread than the tilde form. (#1084)
11990 * Docx writer: Fixed problem with some modified reference docx files.
11991 Include `word/_rels/settings.xml.rels` if it exists, as well as other
11992 `rels` files besides the ones pandoc generates explicitly.
11994 * HTML writer:
11996 + With `--toc`, headers no longer link to themselves (#1081).
11997 + Omit footnotes from TOC entries. Otherwise we get doubled
11998 footnotes when headers have notes!
12000 * EPUB writer:
12002 + Avoid duplicate notes when headings contain notes.
12003 This arose because the headings are copied into the metadata
12004 "title" field, and the note gets rendered twice. We strip the
12005 note now before putting the heading in "title".
12006 + Strip out footnotes from toc entries.
12007 + Fixed bug with `--epub-stylesheet`. Now the contents of
12008 `writerEpubStylesheet` (set by `--epub-stylesheet`)
12009 should again work, and take precedence over a stylesheet specified
12010 in the metadata.
12012 * `Text.Pandoc.Pretty`: Added `nestle`. API change.
12014 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
12016 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
12017 with `//`.
12019 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
12020 we could only get size information for JFIF format, which led
12021 to squished images in Word documents. Closes #976.
12023 * Removed old `MarkdownTest_1.0.3` directory (#1104).
12026## pandoc 1.12.2.1 (2013-12-08)
12028 * Markdown reader: Fixed regression in list parser, involving
12029 continuation lines containing raw HTML (or even verbatim raw HTML).
12031## pandoc 1.12.2 (2013-12-07)
12033 * Metadata may now be included in YAML blocks in a markdown document.
12034 For example,
12036 ---
12037 title:
12038 - type: main
12039 text: My Book
12040 - type: subtitle
12041 text: An investigation of metadata
12042 creator:
12043 - role: author
12044 text: John Smith
12045 - role: editor
12046 text: Sarah Jones
12047 identifier:
12048 - scheme: DOI
12049 text: doi:10.234234.234/33
12050 publisher: My Press
12051 rights: (c) 2007 John Smith, CC BY-NC
12052 cover-image: img/mypic.jpg
12053 stylesheet: style.css
12054 ...
12056 Metadata may still be provided using `--epub-metadata`; it will
12057 be merged with the metadata in YAML blocks.
12059 * EPUB writer:
12061 + `meta` tags are now used instead of `opf` attributes for EPUB3.
12062 + Insert "svg" property as needed in opf (EPUB 3).
12063 + Simplify `imageTypeOf` using `getMimeType`.
12064 + Add properties attribute to `cover-image` item for EPUB 3.
12065 + Don't include node for `cover.xhtml` if no cover!
12066 + Ensure that same identifier is used throughout (#1044).
12067 If an identifier is given in metadata, we use that; otherwise
12068 we generate a random uuid.
12069 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
12070 Fixes an issue with Calibre putting the cover at the end of the book
12071 if the spine has `linear="no"`. Apparently this is best practice
12072 for other converters as well:
12073 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
12074 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
12075 + Allow partial dates: `YYYY`, `YYYY-MM`.
12077 * Markdown writer: Fix rendering of tight sublists (#1050).
12078 Previously a spurious blank line was included after a tight sublist.
12080 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
12081 This is reported to be necessary to avoid an error from recent
12082 versions of Libre Office when files contain more than one image
12083 Thanks to wmanley for reporting and diagnosing the problem.
12085 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
12086 Instead, let this be set in the template, using `\setupfloat`.
12087 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
12089 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
12091 * Fixed bug with markdown intraword emphasis. Closes #1066.
12093 * Docbook writer: Hierarchicalize block content in metadata.
12094 Previously headers just disappeared from block-level metadata
12095 when it was used in templates. Now we apply the 'hierarchicalize'
12096 transformation. Note that a block headed by a level-2 header will
12097 turn into a `<sect1>` element.
12099 * OpenDocument writer: Skip raw HTML (#1035).
12100 Previously it was erroneously included as verbatim text.
12102 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
12103 This allows better control of formatting, since the `<a>`
12104 tags have a distinguishing class (#1049).
12106 * Docx writer:
12108 + Use mime type info returned by fetchItem.
12109 + Fixed core metadata (#1046).
12110 Don't create empty date nodes if no date given.
12111 Don't create multiple `dc:creator` nodes; instead separate by
12112 semicolons.
12113 + Fix URL for core-properties in `_rels/.rels` (#1046).
12115 * Plain writer: don't print `<span>` tags.
12117 * LaTeX writer:
12119 + Fix definition lists with internal links in terms (#1032).
12120 This fix puts braces around a term that contains an internal
12121 link, to avoid problems with square brackets.
12122 + Properly escape pdftitle, pdfauthor (#1059).
12123 + Use booktabs package for tables (thanks to Jose Luis Duran).
12125 * Updated beamer template. Now references should work properly
12126 (in a slide) when `--biblatex` or `--natbib` is used.
12128 * LaTeX reader:
12130 + Parse contents of curly quotes or matched `"` as quotes.
12131 + Support `\textnormal` as span with class `nodecor`.
12132 This is needed for pandoc-citeproc.
12133 + Improved citation parsing. This fixes a run-time error that occurred
12134 with `\citet{}` (empty list of keys). It also ensures that empty keys
12135 don't get produced.
12137 * MediaWiki reader: Add automatic header identifiers.
12139 * HTML reader:
12141 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
12142 `--parse-raw`.
12143 + Recognize `svg` tags as block level content (thanks to MinRK).
12144 + Parse LaTeX math if appropriate options are set.
12146 * Markdown reader:
12148 + Yaml block must start immediately after `---`. If there's a blank
12149 line after `---`, we interpreted it as a horizontal rule.
12150 + Correctly handle empty bullet list items.
12151 + Stop parsing "list lines" when we hit a block tag.
12152 This fixes exponential slowdown in certain input, e.g.
12153 a series of lists followed by `</div>`.
12155 * Slides: Preserve `<div class="references">` in references slide.
12157 * `Text.Pandoc.Writer.Shared`:
12159 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
12160 attributes, leading to invalid HTML.
12161 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
12162 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
12163 encoded bytestring was returned. We now decode it so it's a proper
12164 image!
12166 * DocBook reader: Handle numerical attributes starting with decimal.
12167 Also use `safeRead` instead of `read`.
12169 * `Text.Pandoc.Parsing`:
12171 + Generalized type of `registerHeader`, using new type classes
12172 `HasReadeOptions`, `HasIdentifierList`, `HasHeaderMap`.
12173 These allow certain common functions to be reused
12174 even in parsers that use custom state (instead of `ParserState`),
12175 such as the MediaWiki reader.
12176 + Moved inlineMath, displayMath from Markdown reader to Parsing.
12177 Generalize their types and export them from Parsing. (API change.)
12179 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
12180 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
12181 in all the writers. Require `texmath >= 0.6.5.2`.
12183 * `Text.Pandoc.MIME`:
12185 + Add entry for `jfif`.
12186 + In looking up extensions, drop the encoding info.
12187 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
12189 * Templates: Changed how array variables are resolved. Previously if
12190 `foo` is an array (which might be because multiple values were set on
12191 the command line), `$foo$` would resolve to the concatenation of the
12192 elements of foo. This is rarely useful behavior. It has been changed
12193 so that the first value is rendered. Of course, you can still iterate
12194 over the values using `$for(foo)$`. This has the result that you can
12195 override earlier settings using `-V` by putting new values later on the
12196 command line, which is useful for many purposes.
12198 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
12200 * Allow "epub2" as synonym for "epub", "html4" for "html".
12202 * Don't look for slidy files in data files with `--self-contained`.
12204 * Allow `https:` command line arguments to be downloaded.
12206 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
12208## pandoc 1.12.1 (2013-10-20)
12210 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
12211 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
12212 "c": "foo"}`. This new format is easier to work with outside of Haskell.
12213 Incidentally, "t" stands for "tag", "c" for "contents".
12215 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
12216 when converting to markdown (#1027).
12218 * LaTeX reader:
12220 + Ensure that preamble doesn't contribute to the text of
12221 the document.
12222 + Fixed character escaping in `\url{}`. Previously `\~` wasn't handled
12223 properly, among others.
12224 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
12225 bibtex titles, since we need to know what was protected from
12226 titlecase conversions.
12228 * LaTeX writer:
12230 + Specially escape non-ascii characters in labels.
12231 Otherwise we can get compile errors and other bugs when
12232 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
12233 + Add link anchors for code blocks with identifiers (#1025).
12235 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
12236 It allows fragments identifiers.
12238 * Slide formats:
12240 + A Div element with class "notes" is treated as speaker
12241 notes. Currently beamer goes to `\note{}`, revealjs to
12242 `<aside class="notes">`, and the notes are simply suppressed in
12243 other formats (#925).
12244 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
12245 The old version caused a pause to be inserted before the first
12246 material on a slide. This has been fixed.
12247 + Removed data files for s5, slideous, slidy.
12248 Users of s5 and slideous will have to download the needed
12249 files, as has been documented for some time in the README.
12250 By default, slidy code will be sought on the web, as before.
12252 * HTML writer: Insert command to typeset mathjax only in slideous output
12253 (#966, #1012).
12255 * RST writer: Skip spaces after display math. Otherwise we get indentation
12256 problems, and part of the next paragraph may be rendered as part of the
12257 math.
12259 * OpenDocument writer: Fix formatting of strikeout code (#995),
12260 thanks to wilx. don't use `font-face-decls` variable.
12262 * Fixed test suite so it works with cabal sandboxes.
12264## pandoc 1.12.0.2 (2013-09-20)
12266 * Removed an unused dependency (`stringable`) from pandoc.cabal.
12267 This will help packagers, but users should not need to upgrade.
12269## pandoc 1.12.0.1 (2013-09-20)
12271 * Allow `--metadata` to be repeated for the same key to form a list.
12272 This also has the effect that `--bibliography` can be repeated,
12273 as before.
12275 * Handle boolean values in `--metadata`. Note that anything not parseable
12276 as a YAML boolean or string is treated as a literal string.
12277 You can get a string value with "yes", or any of the strings interpretable
12278 as booleans, by quoting it:
12280 -M boolvalue=yes -M stringvalue='"yes"'
12282 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
12283 option used.
12285 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
12286 in which docx files could not be read by some versions of Word
12287 and LibreOffice (#990).
12289 * Fixed a regression involving slide shows with bibliographies.
12290 The Div container around references messed up the procedure for carving
12291 a document into slides. So we now remove the surrounding Div in
12292 `prepSlides`.
12294 * More informative error message when a filter is not found in path.
12296 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
12297 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
12299 * Don't use unicode_collation in building OSX package:
12300 it adds something like 50MB of dependencies to the package.
12302 * Declare alex and happy as build-tools (#986).
12304## pandoc 1.12 (2013-09-15)
12306### New features
12308 * Much more flexible metadata, including arbitrary fields and structured
12309 values. Metadata can be specified flexibly in pandoc markdown using
12310 YAML metadata blocks, which may occur anywhere in the document:
12312 ---
12313 title: Here is my title.
12314 abstract: |
12315 This is the abstract.
12317 1. It can contain
12318 2. block content
12319 and *inline markup*
12321 tags: [cat, dog, animal]
12322 ...
12324 Metadata fields automatically populate template variables.
12326 * Added `opml` (OPML) as input and output format. The `_note` attribute,
12327 used in OmniOutliner and supported by multimarkdown, is supported.
12328 We treat the contents as markdown blocks under a section header.
12330 * Added `haddock` (Haddock markup) as input format (David Lazar).
12332 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
12333 (Thanks to Jamie F. Olson for the initial patch.)
12334 Nested vertical stacks are used for hierarchical structure.
12335 Results for more than one level of nesting may be odd.
12337 * Custom writers can now be written in lua.
12339 pandoc -t data/sample.lua
12341 will load the script sample.lua and use it as a custom writer.
12342 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
12343 Note that pandoc embeds a lua interpreter, so lua need not be
12344 installed separately.
12346 * New `--filter/-F` option to make it easier to run "filters"
12347 (Pandoc AST transformations that operate on JSON serializations).
12348 Filters are always passed the name of the output format, so their
12349 behavior can be tailored to it. The repository
12350 <https://github.com/jgm/pandocfilters> contains
12351 a python module for writing pandoc filters in python, with
12352 a number of examples.
12354 * Added `--metadata/-M` option.
12355 This is like `--variable/-V`, but actually adds to metadata, not
12356 just variables.
12358 * Added `--print-default-data-file` option, which allows printing
12359 of any of pandoc's data files. (For example,
12360 `pandoc --print-default-data-file reference.odt` will print
12361 `reference.odt`.)
12363 * Added syntax for "pauses" in slide shows:
12365 This gives
12367 . . .
12369 me pause.
12371 * New markdown extensions:
12373 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
12374 rather than being treated as hard line breaks or spaces. This is useful
12375 for some East Asian languages, where spaces aren't used between words,
12376 but text is separated into lines for readability.
12377 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
12378 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
12379 only. (Default for `markdown_github`.) (#807)
12380 + `lists_without_preceding_blankline`: Allow lists to start without
12381 preceding blank space. (Default for `markdown_github`.) (#972)
12383### Behavior changes
12385 * `--toc-level` no longer implies `--toc`.
12386 Reason: EPUB users who don't want a visible TOC may still want
12387 to set the TOC level for in the book navigation.
12389 * `--help` now prints in and out formats in alphabetical order, and
12390 says something about PDF output (#720).
12392 * `--self-contained` now returns less verbose output (telling you
12393 which URLs it is fetching, but not giving the full header). In
12394 addition, there are better error messages when fetching a URL fails.
12396 * Citation support is no longer baked in to core pandoc. Users who
12397 need citations will need to install and use a separate filter
12398 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
12399 `csl`, and `citation-abbreviations` from the metadata, though it
12400 may still be specified on the command line as before.
12402 * A `Cite` element is now created in parsing markdown whether or not
12403 there is a matching reference.
12405 * The `pandoc-citeproc` script will put the bibliography at the
12406 end of the document, as before. However, it will be put inside a `Div`
12407 element with class "references", allowing users some control
12408 over the styling of references. A final header, if any, will
12409 be included in the `Div`.
12411 * The markdown writer will not print a bibliography if the
12412 `citations` extension is enabled. (If the citations are formatted
12413 as markdown citations, it is redundant to have a bibliography,
12414 since one will be generated automatically.)
12416 * Previously we used to store the directory of the first input file,
12417 even if it was local, and used this as a base directory for finding
12418 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
12419 users. So we now look for images relative to the current
12420 working directory, even if the first file argument is in another
12421 directory. Note that this change may break some existing workflows.
12422 If you have been assuming that relative links will be interpreted
12423 relative to the directory of the first file argument, you'll need
12424 to make that the current directory before running pandoc. (#942)
12426 * Better error reporting in some readers, due to changes in `readWith`:
12427 the line in which the error occurred is printed, with a caret pointing
12428 to the column.
12430 * All slide formats now support incremental slide view for definition lists.
12432 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
12433 Parse `:<math>...</math>` as display math. These notations are used with
12434 the MathJax MediaWiki extension.
12436 * All writers: template variables are set automatically from metadata
12437 fields. However, variables specified on the command line with
12438 `--variable` will completely shadow metadata fields.
12440 * If `--variable` is used to set many variables with the same name,
12441 a list is created.
12443 * Man writer: The `title`, `section`, `header`, and `footer` can now
12444 all be set individually in metadata. The `description` variable has been
12445 removed. Quotes have been added so that spaces are allowed in the
12446 title. If you have a title that begins
12448 COMMAND(1) footer here | header here
12450 pandoc will still parse it into a title, section, header, and
12451 footer. But you can also specify these elements explicitly (#885).
12453 * Markdown reader
12455 + Added support for YAML metadata blocks, which can come anywhere
12456 in the document (not just at the beginning). A document can contain
12457 multiple YAML metadata blocks.
12458 + HTML span and div tags are parsed as pandoc Span and Div elements.
12460 * Markdown writer
12462 + Allow simple tables to be printed as grid tables,
12463 if other table options are disabled. This means you can do
12464 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
12465 and all tables will render as grid tables.
12466 + Support YAML title block (render fields in alphabetical order
12467 to make output predictable).
12469### API changes
12471 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
12472 structured metadata. (Note: existing code that pattern-matches
12473 on `Meta` will have to be revised.) Metadata can now contain
12474 indefinitely many fields, with content that can be a string,
12475 a Boolean, a list of `Inline` elements, a list of `Block`
12476 elements, or a map or list of these.
12478 * A new generic block container (`Div`) has been added to `Block`,
12479 and a generic inline container (`Span`) has been added to `Inline`.
12480 These can take attributes. They will render in HTML, Textile,
12481 MediaWiki, Org, RST and Markdown (with `markdown_in_html`
12482 extension) as HTML `<div>` and `<span>` elements; in other formats
12483 they will simply pass through their contents. But they can be
12484 targeted by scripts.
12486 * `Format` is now a newtype, not an alias for String.
12487 Equality comparisons are case-insensitive.
12489 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
12490 functions that are much faster than the SYB functions from
12491 `Text.Pandoc.Generic`. These functions are now used where possible
12492 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
12493 match the generic traversals `bottomUp` and `queryWith`.)
12495 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
12496 instances for the basic pandoc types. They use GHC generics and
12497 should be faster than the old JSON serialization using
12498 `Data.Aeson.Generic`.
12500 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
12501 This is a souped-up version of `readProcessWithErrorcode` that
12502 uses lazy bytestrings instead of strings and allows setting
12503 environment variables. (Used in `Text.Pandoc.PDF`.)
12505 * New module `Text.Pandoc.Readers.OPML`.
12507 * New module `Text.Pandoc.Writers.OPML`.
12509 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
12510 This is based on Haddock's own lexer/parser.
12512 * New module `Text.Pandoc.Writers.Custom`.
12514 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
12515 Either, for better error handling.
12517 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
12519 * Removed `stripTags` from `Text.Pandoc.XML`.
12521 * `Text.Pandoc.Templates`:
12523 + Simplified `Template` type to a newtype.
12524 + Removed `Empty`.
12525 + Changed type of `renderTemplate`: it now takes a JSON context
12526 and a compiled template.
12527 + Export `compileTemplate`.
12528 + Export `renderTemplate'` that takes a string instead of a compiled
12529 template.
12530 + Export `varListToJSON`.
12532 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
12534 * `Text.Pandoc`:
12536 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
12537 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
12538 `Text.Pandoc.JSON` should be used instead. (Compiling against
12539 pandoc-types instead of pandoc will also produce smaller executables.)
12540 * Removed the deprecated `jsonFilter` function.
12541 + Added `readJSON`, `writeJSON` to the API (#817).
12543 * `Text.Pandoc.Options`:
12545 + Added `Ext_lists_without_preceding_blankline`,
12546 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
12547 `Ext_yaml_metadataBlock` to `Extension`.
12548 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
12549 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
12550 first command-line argument is an absolute URL. (So, relative links
12551 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
12552 + All bibliography-related fields have been removed from
12553 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
12554 `readerReferences`, `readerCitationStyle`.
12556 * The `Text.Pandoc.Biblio` module has been removed. Users of the
12557 pandoc library who want citation support will need to use
12558 `Text.CSL.Pandoc` from `pandoc-citeproc`.
12560### Bug fixes
12562 * In markdown, don't autolink a bare URI that is followed by `</a>`
12563 (#937).
12565 * `Text.Pandoc.Shared`
12567 + `openURL` now follows redirects (#701), properly handles `data:`
12568 URIs, and prints diagnostic output to stderr rather than stdout.
12569 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
12570 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
12571 + Fixed `readDefaultDataFile` so it works on Windows.
12572 + Better error messages for `readDefaultDataFile`. Instead of
12573 listing the last path tried, which can confuse people who are
12574 using `--self-contained`, so now we just list the data file name.
12575 + URL-escape pipe characters. Even though these are legal, `Network.URI`
12576 doesn't regard them as legal in URLs. So we escape them first (#535).
12578 * Mathjax in HTML slide shows: include explicit "Typeset" call.
12579 This seems to be needed for some formats (e.g. slideous) and won't
12580 hurt in others (#966).
12582 * `Text.Pandoc.PDF`
12584 + On Windows, create temdir in working directory, since the system
12585 temp directory path may contain tildes, which can cause
12586 problems in LaTeX (#777).
12587 + Put temporary output directory in `TEXINPUTS` (see #917).
12588 + `makePDF` tries to download images that are not found locally,
12589 if the first argument is a URL (#917).
12590 + If compiling with `pdflatex` yields an encoding error, offer
12591 the suggestion to use `--latex-engine=xelatex`.
12593 * Produce automatic header identifiers in parsing textile, RST,
12594 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
12596 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
12597 before treating as a filename. This fixes `--self-contained` when used
12598 with CSS files that include web fonts using the method described here:
12599 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
12600 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
12602 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
12603 percent-encoding, or a `+` character, as final punctuation.
12605 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
12606 EPS images properly sized on conversion to Word.
12608 * Slidy: Use slidy.js rather than slidy.js.gz.
12609 Reason: some browsers have trouble with the gzipped js file,
12610 at least on the local file system (#795).
12612 * Markdown reader
12614 + Properly handle blank line at beginning of input (#882).
12615 + Fixed bug in unmatched reference links. The input
12616 `[*infile*] [*outfile*]` was getting improperly parsed:
12617 "infile" was emphasized, but "*outfile*" was literal (#883).
12618 + Allow internal `+` in citation identifiers (#856).
12619 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
12620 + Do not generate blank title, author, or date metadata elements.
12621 Leave these out entirely if they aren't present.
12622 + Allow backtick code blocks not to be preceded by blank line (#975).
12624 * Textile reader:
12626 + Correctly handle entities.
12627 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
12628 in code blocks, rather than printing them verbatim. Parse attributes
12629 on `<pre>` tag for code blocks.
12631 * HTML reader: Handle non-simple tables (#893). Column widths are read from
12632 `col` tags if present, otherwise divided equally.
12634 * LaTeX reader
12636 + Support alltt environment (#892).
12637 + Support `\textasciitilde`, `\textasciicircum` (#810).
12638 + Treat `\textsl` as emphasized text reader (#850).
12639 + Skip positional options after `\begin{figure}`.
12640 + Support `\v{}` for hacek (#926).
12641 + Don't add spurious ", " to citation suffixes.
12642 This is added when needed in pandoc-citeproc.
12643 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
12644 + Improved support for accented characters (thanks to Scott Morrison).
12645 + Parse label after section command and set id (#951).
12647 * RST reader:
12649 + Don't insert paragraphs where docutils doesn't.
12650 `rst2html` doesn't add `<p>` tags to list items (even when they are
12651 separated by blank lines) unless there are multiple paragraphs in the
12652 list. This commit changes the RST reader to conform more closely to
12653 what docutils does (#880).
12654 + Improved metadata. Treat initial field list as metadata when
12655 standalone specified. Previously ALL fields "title", "author",
12656 "date" in field lists were treated as metadata, even if not at
12657 the beginning. Use `subtitle` metadata field for subtitle.
12658 + Fixed 'authors' metadata parsing in reST. Semicolons separate
12659 different authors.
12661 * MediaWiki reader
12663 + Allow space before table rows.
12664 + Fixed regression for `<ref>URL</ref>`.
12665 `<` is no longer allowed in URLs, according to the uri parser
12666 in `Text.Pandoc.Parsing`. Added a test case.
12667 + Correctly handle indented preformatted text without preceding
12668 or following blank line.
12669 + Fixed `|` links inside table cells. Improved attribute parsing.
12670 + Skip attributes on table rows. Previously we just crashed if
12671 rows had attributes, now we ignore them.
12672 + Ignore attributes on headers.
12673 + Allow `Image:` for images (#971).
12674 + Parse an image with caption in a paragraph by itself as a figure.
12676 * LaTeX writer
12678 + Don't use ligatures in escaping inline code.
12679 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
12680 wherein notes were numbered incorrectly in tables (#827).
12681 + Always create labels for sections. Previously the labels were only
12682 created when there were links to the section in the document (#871).
12683 + Stop escaping `|` in LaTeX math.
12684 This caused problems with array environments (#891).
12685 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
12686 `\` will cause major problems if unescaped.
12687 + Write id for code block to label attribute in LaTeX when listings
12688 is used (thanks to Florian Eitel).
12689 + Scale LaTeX tables so they don't exceed columnwidth.
12690 + Avoid problem with footnotes in unnumbered headers (#940).
12692 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
12693 to the slide if it is one of the header classes. It is recommended
12694 that your bibliography slide have this attribute:
12696 # References {.allowframebreaks}
12698 This causes multiple slides to be created if necessary, depending
12699 on the length of the bibliography.
12701 * ConTeXt writer: Properly handle tables without captions. The old output
12702 only worked in MkII. This should work in MkIV as well (#837).
12704 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
12706 * HTML writer:
12708 + Fixed `--no-highlight` (Alexander Kondratskiy).
12709 + Don't convert to lowercase in email obfuscation (#839).
12710 + Ensure proper escaping in `<title>` and `<meta>` fields.
12712 * AsciiDoc writer:
12714 + Support `--atx-headers` (Max Rydahl Andersen).
12715 + Don't print empty identifier blocks `([[]])` on headers (Max
12716 Rydahl Andersen).
12718 * ODT writer:
12720 + Fixing wrong numbered-list indentation in open document format
12721 (Alexander Kondratskiy) (#369).
12722 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
12723 + Minor changes for ODF 1.2 conformance (#939). We leave the
12724 nonconforming `contextual-spacing` attribute, which is provided by
12725 LibreOffice itself and seems well supported.
12727 * Docx writer:
12729 + Fixed rendering of display math in lists.
12730 In 1.11 and 1.11.1, display math in lists rendered as a new list
12731 item. Now it always appears centered, just as outside of lists,
12732 and in proper display math style, no matter how far indented the
12733 containing list item is (#784).
12734 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
12735 Previously we used `w:cr` (#873).
12736 + Use Compact style for Plain block elements, to
12737 differentiate between tight and loose lists (#775).
12738 + Ignore most components of `reference.docx`.
12739 We take the `word/styles.xml`, `docProps/app.xml`,
12740 `word/theme/theme1.xml`, and `word/fontTable.xml` from
12741 `reference.docx`, ignoring everything else. This should help
12742 with the corruption problems caused when different versions of
12743 Word resave the reference.docx and reorganize things.
12744 + Made `--no-highlight` work properly.
12746 * EPUB writer
12748 + Don't add `dc:creator` tags if present in EPUB metadata.
12749 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
12750 + Don't put blank title page in reading sequence.
12751 Set `linear="no"` if no title block. Addresses #797.
12752 + Download webtex images and include as data URLs.
12753 This allows you to use `--webtex` in creating EPUBs.
12754 Math with `--webtex` is automatically made self-contained.
12755 + In `data/epub.css`, removed highlighting styles (which
12756 are no longer needed, since styles are added by the HTML
12757 writer according to `--highlighting-style`). Simplified
12758 margin fields.
12759 + If resource not found, skip it, as in Docx writer (#916).
12761 * RTF writer:
12763 + Properly handle characters above the 0000-FFFF range.
12764 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
12765 + Fixed regression with RTF table of contents.
12766 + Only autolink absolute URIs. This fixes a regression, #830.
12768 * Markdown writer:
12770 + Only autolink absolute URIs. This fixes a regression, #830.
12771 + Don't wrap attributes in fenced code blocks.
12772 + Write full metadata in MMD style title blocks.
12773 + Put multiple authors on separate lines in pandoc titleblock.
12774 Also, don't wrap long author entries, as new lines get treated
12775 as new authors.
12777 * `Text.Pandoc.Templates`:
12779 + Fixed bug retrieving default template for markdown variants.
12780 + Templates can now contain "record lookups" in variables;
12781 for example, `author.institution` will retrieve the `institution`
12782 field of the `author` variable.
12783 + More consistent behavior of `$for$`. When `foo` is not a list,
12784 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
12785 So if `foo` resolves to "", no output should be produced.
12786 See pandoc-templates#39.
12788 * Citation processing improvements (now part of pandoc-citeproc):
12790 + Fixed `endWithPunct` The new version correctly sees a sentence
12791 ending in '.)' as ending with punctuation. This fixes a bug which
12792 led such sentences to receive an extra period at the end: '.).'.
12793 Thanks to Steve Petersen for reporting.
12794 + Don't interfere with Notes that aren't citation notes.
12795 This fixes a bug in which notes not generated from citations were
12796 being altered (e.g. first letter capitalized) (#898).
12797 + Only capitalize footnote citations when they have a prefix.
12798 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
12799 inserted before it before passing to citeproc-hs, so that bare numbers
12800 are treated as page numbers by default. A suffix not beginning with
12801 punctuation has a space added at the beginning (rather than a comma and
12802 space, as was done before for not-author-in-text citations).
12803 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
12804 properly, with '23' treated as a locator of type 'page'.
12805 + Many improvements to citation rendering, due to fixes in citeproc-hs
12806 (thanks to Andrea Rossato).
12807 + Warnings are issued for undefined citations, which are rendered
12808 as `???`.
12809 + Fixed hanging behavior when locale files cannot be found.
12811### Template changes
12813 * DocBook: Use DocBook 4.5 doctype.
12815 * Org: '#+TITLE:' is inserted before the title.
12816 Previously the writer did this.
12818 * LaTeX: Changes to make mathfont work with xelatex.
12819 We need the mathspec library, not just fontspec, for this.
12820 We also need to set options for setmathfont (#734).
12822 * LaTeX: Use `tex-ansi` mapping for `monofont`.
12823 This ensures that straight quotes appear as straight, rather than
12824 being treated as curly. See #889.
12826 * Made `\includegraphics` more flexible in LaTeX template.
12827 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
12829 * LaTeX/Beamer: Added `classoption` variable.
12830 This is intended for class options like `oneside`; it may
12831 be repeated with different options. (Thanks to Oliver Matthews.)
12833 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
12835 * LaTeX: Added `biblio-style` variable (#920).
12837 * DZSlides: title attribute on title section.
12839 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
12841### Under-the-hood improvements
12843 * Markdown reader:Improved strong/emph parsing, using the strategy of
12844 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
12845 no backtracking, and no keeping track of nesting levels. It will give
12846 different results in some edge cases, but these should not affect normal
12847 uses.
12849 * Added `Text.Pandoc.Compat.Monoid`.
12850 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
12851 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
12853 * Added `Text.Pandoc.Compat.TagSoupEntity`.
12854 This allows pandoc to compile with `tagsoup` 0.13.x.
12855 Thanks to Dirk Ullrich for the patch.
12857 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
12858 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
12859 handle simple math in bibliography fields.)
12861 * Added `Text.Pandoc.Writers.Shared` for shared functions used
12862 only in writers. `metaToJSON` is used in writers to create a
12863 JSON object for use in the templates from the pandoc metadata
12864 and variables. `getField`, `setField`, and `defField` are
12865 for working with JSON template contexts.
12867 * Added `Text.Pandoc.Asciify` utility module.
12868 This exports functions to create ASCII-only versions of identifiers.
12870 * `Text.Pandoc.Parsing`
12872 + Generalized state type on `readWith` (API change).
12873 + Specialize readWith to `String` input. (API change).
12874 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
12875 with `stateMeta` and `stateMeta'`.
12877 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
12878 bytestrings seemed to cause problems using pandoc on 64-bit Windows
12879 7/8 (#874).
12881 * Factored out `registerHeader` from markdown reader, added to
12882 `Text.Pandoc.Parsing`.
12884 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
12885 Reason: < 0.5 does not provide a monoid instance for Attribute,
12886 which is now needed by the HTML writer (#803).
12888 * Added `http-conduit` flag, which allows fetching https resources.
12889 It also brings in a large number of dependencies (`http-conduit`
12890 and its dependencies), which is why for now it is an optional flag
12891 (#820).
12893 * Added CONTRIBUTING.md.
12895 * Improved INSTALL instructions.
12897 * `make-windows-installer.bat`: Removed explicit paths for executables.
12899 * `aeson` is now used instead of `json` for JSON.
12901 * Set default stack size to 16M. This is needed for some large
12902 conversions, esp. if pandoc is compiled with 64-bit ghc.
12904 * Various small documentation improvements.
12905 Thanks to achalddave and drothlis for patches.
12907 * Removed comment that chokes recent versions of CPP (#933).
12909 * Removed support for GHC version < 7.2, since pandoc-types now
12910 requires at least GHC 7.2 for GHC generics.
12913## pandoc 1.11.1 (2013-03-17)
12915 * Markdown reader:
12917 + Fixed regression in which parentheses were lost in link URLs.
12918 Added tests. Closes #786.
12919 + Better handling of unmatched double quotes in `--smart` mode.
12920 These occur frequently in fiction, since it is customary not to
12921 close quotes in dialogue if the speaker does not change between
12922 paragraphs. The unmatched quotes now get turned into literal
12923 left double quotes. (No `Quoted` inline is generated, however.)
12924 Closes #99 (again).
12926 * HTML writer: Fixed numbering mismatch between TOC and sections.
12927 `--number-offset` now affects TOC numbering as well
12928 as section numbering, as it should have all along. Closes #789.
12930 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
12931 as markdown citations, even if `--bibliography` was specified, unless
12932 `citation` extension is disabled. Now, formatted citations are always
12933 printed if `--bibliography` was specified. If you want to reformat
12934 markdown keeping pandoc markdown citations intact, don't use
12935 `--bibliography`. Note that citations parsed from LaTeX documents will
12936 be rendered as pandoc markdown citations when `--bibliography` is not
12937 specified.
12939 * ODT writer: Fixed regression leading to corrupt ODTs.
12940 This was due to a change in the `Show` instance for
12941 `Text.Pandoc.Pretty.Doc`. Closes #780.
12943 * Fixed spacing bugs involving code block attributes in
12944 RST reader and Markdown writer. Closes #763.
12946 * Windows package: Various improvements due to Fyodor Sheremetyev.
12948 + Automatically set installation path (Program Files or Local App Data).
12949 + Set system PATH environment variable when installing for all users.
12950 + Pandoc can installed for all users using the following command.
12951 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
12953 * Bumped QuickCheck version bound.
12955## pandoc 1.11 (2013-03-09)
12957 * Added `--number-offset` option. (See README for description.)
12959 * Added `--default-image-extension` option. (See README for description.)
12961 * `--number-sections` behavior change: headers with class `unnumbered`
12962 will not be numbered.
12964 * `--version` now reports the default data directory.
12966 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
12968 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
12970 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
12971 a field for `Attr` rather than just `String`. (API change.)
12973 * Added `markdown_github` as input format. This was an accidental
12974 omission in 1.10.
12976 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
12977 change.)
12979 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
12981 * Beamer template:
12983 + Fixed captions with longtable. Thanks to Joost Kremers.
12984 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
12986 * LaTeX template:
12988 + Load microtype after fonts. Microtype needs to know
12989 what fonts are being used. Thanks to dfc for the patch.
12990 + Set `secnumdepth` to 5 if `--number-sections` specified.
12991 This yields behavior equivalent to the other writers, numbering
12992 level 4 and 5 headers too. Closes #753.
12994 * HTML reader:
12996 + Handle `<colgroup>` tag.
12997 + Preserve all header attributes.
12999 * LaTeX reader:
13001 + Parse `\hrule` as `HorizontalRule`. Closes #746.
13002 + Parse starred variants of `\section` etc. as headers with
13003 attribute `unnumbered`.
13004 + Read optional attributes in `lstlisting` and `Verbatim` environments.
13005 We convert these to pandoc standard names, e.g. `numberLines`
13006 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
13007 + Handle language attribute for lstlistings.
13008 + Better support for Verbatim and minted environments. Closes #763.
13010 * Markdown reader:
13012 + `-` in an attribute context = `.unnumbered`. The point of this
13013 is to provide a way to specify unnumbered headers in non-English
13014 documents.
13015 + Fixed bug parsing key/value attributes. Parsing failed if you
13016 had an unquoted attribute immediately before the final '}'.
13017 + Make backslash escape work in attributes.
13018 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
13019 pandoc will parse a MMD title block if it sees one, even if
13020 `pandoc_title_blocks` is enabled.
13021 + Refactoring: `litChar` now includes entities, so we don't need
13022 to use `fromEntities` e.g. on titles.
13023 + Allow spaces around borders in pipe tables. Closes #772.
13024 + Allow all punctuation in angle-bracket autolinks. Previously
13025 things like `----` were disallowed, because the uri parser
13026 treated them as trailing punctuation. Closes #768.
13027 + Make `implicit_header_references` work properly when
13028 headers are given explicit identifiers.
13029 + Check for tables before line blocks. Otherwise some pipe
13030 tables get treated as line blocks.
13031 + Allow `&` in emails (for entities).
13032 + Properly handle entities in titles and links. A markdown link
13033 `<http://g&ouml;ogle.com>` should be a link to `http://göogle.com`.
13034 Closes #723.
13036 * Textile reader:
13038 + Handle attributes on headers.
13040 * LaTeX reader:
13042 + Add `fig:` as title for images with captions.
13043 This is needed for them to be rendered as figures. Closes #766.
13044 + Never emit an empty paragraph. See #761.
13045 + Handle `\caption` for images in figures. Closes #766.
13046 + Parse `\section*`, etc. as unnumbered sections.
13048 * HTML writer:
13050 + Support header attributes. The attributes go on
13051 the enclosing `section` or `div` tag if `--section-divs` is specified.
13052 + Fixed a regression (only now noticed) in html+lhs output.
13053 Previously the bird tracks were being omitted.
13055 * LaTeX writer:
13057 + Omit lists with no items to avoid LaTeX errors.
13058 + Support line numbering with `--listings`.
13059 If `numberLines` class is present, we add `numbers=left`;
13060 if `startFrom` is present, we add `firstnumber=`. (#763)
13062 * ConTeXt writer:
13064 + Removed `\placecontent`. This produced a duplicate toc,
13065 in conjunction with `\placelist`.
13066 + Use `\title`, `\subject` etc. for headers with
13067 `unnumbered` class.
13069 * Textile writer:
13071 + Support header attributes.
13073 * Markdown writer:
13075 + Use grid tables when needed, and if enabled. Closes #740.
13076 + Render citations as pandoc-markdown citations.
13077 Previously citations were rendered as citeproc-formatted citations
13078 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
13079 unless the `citations` extension is disabled.
13080 If you still want formatted citations in your markdown output,
13081 use `pandoc -t markdown-citations`.
13083 * RST writer:
13085 + Support `:number-lines:` in code blocks.
13087 * Docx writer:
13089 + Better treatment of display math. Display math inside a
13090 paragraph is now put in a separate paragraph, so it will render
13091 properly (centered and without extra blank lines around it).
13092 Partially addresses #742.
13093 + Content types and document rels xml files are now created from
13094 scratch, rather than being taken over from `reference.docx`.
13095 This fixes problems that arise when you edit the `reference.docx`
13096 with Word.
13097 + We also now encode mime types for each individual image rather
13098 than using defaults. This should allow us to handle a wider
13099 range of image types (including PDF). Closes #414.
13100 + Changed style names in `reference docx`.
13101 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
13102 The old names got changed by Word when the `reference.docx` was
13103 edited. Closes #414.
13105 * EPUB writer:
13107 + Fix section numbering. Previously the numbering restarted from 1
13108 in each chapter (with `--number-sections`), though the numbers in
13109 the table of contents were correct.
13110 + Headers with "unnumbered" attribute are not numbered. (Nor do they
13111 cause an increment in running numbering.) Section numbers now work
13112 properly, even when there is material before the first numbered section.
13113 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
13114 but `linear` is set to `no` unless the `--toc` option is specified.
13115 Include `<guide>` element in OPF. This should allow the TOC to
13116 be useable in Kindles when converted with kindlegen. Closes #773.
13118 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
13119 This dramatically reduces the speed penalty that comes from enabling the
13120 `autolink_bare_uris` extension. The penalty is still substantial (in one
13121 test, from 0.33s to 0.44s), but nowhere near what it used to be.
13122 The RST reader is also much faster now, as it autodetects URIs.
13124 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
13125 with class "unnumbered". Unnumbered sections get `[]` for their
13126 section number.
13128 * `Text.Pandoc.Pretty`:
13130 + Fixed `chomp` so it works inside `Prefixed` elements.
13131 + Changed `Show` instance so it is better for debugging.
13133 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
13135 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
13137 * Windows installer improvements:
13139 + The installer is now signed with a certificate (thanks to
13140 Fyodor Sheremetyev).
13141 + WiX is used instead of InnoSetup. The installer is now a
13142 standard msi file.
13143 + The version number is now auto-detected, and need not be
13144 updated separately.
13146 * OSX installer improvements:
13148 + The package and pandoc executable are now signed with a
13149 certificate (thanks to Fyodor Sheremetyev).
13150 + RTF version of license is used.
13151 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
13152 Closes #580.
13154 * Converted COPYING to markdown.
13156 * pandoc.cabal: Require latest versions of highlighting-kate,
13157 texmath, citeproc-hs, zip-archive.
13159## pandoc 1.10.1 (2013-01-23)
13161 * Markdown reader: various optimizations, leading to a
13162 significant performance boost.
13164 * RST reader: Allow anonymous form of inline links:
13165 `` `hello <url>`__ `` Closes #724.
13167 * Mediawiki reader: Don't require newlines after tables.
13168 Thanks to jrunningen for the patch. Closes #733.
13170 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
13171 when output is LaTeX, and applied when it is another format.
13172 Partially addresses #730.
13174 * Markdown and RST readers: Added parser to `block` that skips blank
13175 lines. This fixes a subtle regression involving grid tables with
13176 empty cells. Also added test for grid table with empty cells.
13177 Closes #732.
13179 * RST writer: Use `.. code:: language` for code blocks with language.
13180 Closes #721.
13182 * DocBook writer: Fixed output for hard line breaks, adding a newline
13183 between `<literallayout>` tags.
13185 * Markdown writer: Use an autolink when link text matches url.
13186 Previously we also checked for a null title, but this
13187 test fails for links produced by citeproc-hs in bibliographies.
13188 So, if the link has a title, it will be lost on conversion
13189 to an autolink, but that seems okay.
13191 * Markdown writer: Set title, author, date variables as before.
13192 These are no longer used in the default template, since we use
13193 titleblock, but we set them anyway for those who use custom templates.
13195 * LaTeX writer: Avoid extra space at start/end of table cell.
13196 Thanks to Nick Bart for the suggestion of using @{}.
13198 * `Text.Pandoc.Parsing`:
13200 + More efficient version of `anyLine`.
13201 + Type of `macro` has changed; the parser now returns `Blocks`
13202 instead of `Block`.
13204 * Relaxed old-time version bound, allowing 1.0.*.
13206 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
13207 should create a symlink as described in the README.
13209## pandoc 1.10.0.5 (2013-01-23)
13211 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
13212 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
13213 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
13215 * Markdown reader: Fixed bug with headerless grid tables.
13216 The 1.10 code assumed that each table header cell contains exactly one
13217 block. That failed for headerless tables (0) and also for tables with
13218 multiple blocks in a header cell. The code is fixed and tests provided.
13219 Thanks to Andrew Lee for pointing out the bug.
13221 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
13223 + Tilde code fences can again take a bare language string
13224 (`~~~ haskell`), not just curly-bracketed attributes
13225 (`~~~ {.haskell}`).
13226 + Backtick code blocks can take the curly-bracketed attributes.
13227 + Backtick code blocks don't *require* a language.
13228 + Consolidated code for the two kinds of fenced code blocks.
13230 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
13232 * Markdown writer: Use proportional font for email autolinks with
13233 obfuscation. Closes #714.
13235 * Corrected name of `blank_before_blockquote` in README. Closes #718.
13237 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
13238 The bug prevented an autolink at the end of a string (e.g.
13239 at the end of a line block line) from counting as a link. Closes #711.
13241 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
13242 This should work on Windows, unlike the TH solution with
13243 file-embed.
13245 * Eliminated use of TH in test suite.
13247 * Added `Text.Pandoc.Data` (non-exported) to hold the association
13248 list of embedded data files, if the `embed_data_files` flag is selected.
13249 This isolates the code that needs special treatment with file-embed or
13250 `hsb2hs`.
13252 * Changes to `make-windows-installer.bat`.
13254 + Exit batch file if any of the cabal-dev installs fail.
13255 + There's no longer any need to reinstall `highlighting-kate`.
13256 + Don't start with a `cabal update`; leave that to the user.
13257 + Force reinstall of pandoc.
13259 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
13260 Jens Petersen.
13262## pandoc 1.10.0.4 (2013-01-20)
13264 * Fixed bug with escaped % in LaTeX reader. Closes #710.
13266## pandoc 1.10.0.3 (2013-01-20)
13268 * Added further missing fb2 tests to cabal file.
13270## pandoc 1.10.0.2 (2013-01-20)
13272 * Added fb2 tests to cabal file's extra-source-files.
13274## pandoc 1.10.0.1 (2013-01-20)
13276 * Bump version bounds on test-framework packages.
13278## pandoc 1.10 (2013-01-19)
13280### New features
13282 * New input formats: `mediawiki` (MediaWiki markup).
13284 * New output formats: `epub3` (EPUB v3 with MathML),
13285 `fb2` (FictionBook2 ebooks).
13287 * New `--toc-depth` option, specifying how many levels of
13288 headers to include in a table of contents.
13290 * New `--epub-chapter-level` option, specifying the header
13291 level at which to divide EPUBs into separate files.
13292 Note that this normally affects only performance, not the
13293 visual presentation of the EPUB in a reader.
13295 * Removed the `--strict` option. Instead of using `--strict`,
13296 one can now use the format name `markdown_strict` for either input
13297 or output. This gives more fine-grained control that `--strict`
13298 did, allowing one to convert from pandoc's markdown to strict
13299 markdown or vice versa.
13301 * It is now possible to enable or disable specific syntax
13302 extensions by appending them (with `+` or `-`) to the writer
13303 or reader name. For example,
13305 pandoc -f markdown-footnotes+hard_line_breaks
13307 disables footnotes and enables treating newlines as hard
13308 line breaks. The literate Haskell extensions are now implemented
13309 this way as well, using either `+lhs` or `+literate_haskell`.
13310 For a list of extension names, see the README under
13311 "Pandoc's Markdown."
13313 * The following aliases have been introduced for specific
13314 combinations of markdown extensions: `markdown_phpextra`,
13315 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
13316 work just like regular reader and writer names, and can be modified
13317 with extension modifiers as described above. (Note that conversion
13318 from one markdown dialect to another does not work perfectly,
13319 because there are differences in markdown parsers besides
13320 just the extensions, and because pandoc's internal document model is
13321 not rich enough to capture all of the extensions.)
13323 * New `--html-q-tags` option. The previous default was to use `<q>`
13324 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
13325 Moreover, they are not a robust way of typesetting quotes, since
13326 some user agents don't support them, and some CSS resets (e.g.
13327 bootstrap) prevent pandoc's quotes CSS from working properly.
13328 We now just insert literal quote characters by default in both
13329 `html` and `html5` output, but this option is provided for
13330 those who still want `<q>` tags.
13332 * The markdown reader now prints warnings (to stderr) about
13333 duplicate link and note references. Closes #375.
13335 * Markdown syntax extensions:
13337 + Added pipe tables. Thanks to François Gannaz for the initial patch.
13338 These conform to PHP Markdown Extra's pipe table syntax. A subset
13339 of org-mode table syntax is also supported, which means that you can
13340 use org-mode's nice table editor to create tables.
13342 + Added support for RST-style line blocks. These are
13343 useful for verse and addresses.
13345 + Attributes can now be specified for headers, using the same
13346 syntax as in code blocks. (However, currently only the
13347 identifier has any effect in most writers.) For example,
13349 # My header {#foo}
13351 See [the header above](#foo).
13353 + Pandoc will now act as if link references have been defined
13354 for all headers without explicit identifiers.
13355 So, you can do this:
13357 # My header
13359 Link to [My header].
13360 Another link to [it][My header].
13362 Closes #691.
13364 * LaTeX reader:
13366 + Command macros now work everywhere, including non-math.
13367 Environment macros still not supported.
13368 + `\input` now works, as well as `\include`. TEXINPUTS is used.
13369 Pandoc looks recursively into included files for more included files.
13371### Behavior changes
13373 * The Markdown reader no longer puts the text of autolinks in a
13374 `Code` inline. This means that autolinks will no longer appear
13375 in a monospace font.
13377 * The character `/` can now appear in markdown citation keys.
13379 * HTML blocks in strict_markdown are no longer required to begin
13380 at the left margin. Technically this is required, according to
13381 the markdown syntax document, but `Markdown.pl` and other markdown
13382 processors are more liberal.
13384 * The `-V` option has been changed so that if there are duplicate
13385 variables, those specified later on the command line take precedence.
13387 * Tight lists now work in LaTeX and ConTeXt output.
13389 * The LaTeX writer no longer relien on the `enumerate` package.
13390 Instead, it uses standard LaTeX commands to change the list numbering
13391 style.
13393 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
13394 tables to be split over page boundaries.
13396 * The RST writer now uses a line block to render paragraphs containing
13397 linebreaks (which previously weren't supported at all).
13399 * The markdown writer now applies the `--id-prefix` to footnote IDs.
13400 Closes #614.
13402 * The plain writer no longer uses backslash-escaped line breaks
13403 (which are not very "plain").
13405 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
13406 Read bytestring and use `Text`'s decodeUtf8 instead of using
13407 `System.IO.hGetContents`. This way you get a message saying
13408 "invalid UTF-8 stream" instead of "invalid byte sequence."
13409 You are also told which byte caused the problem.
13411 * Docx, ODT, and EPUB writers now download images specified by a URL
13412 instead of skipping them or raising an error.
13414 * EPUB writer:
13416 + The default CSS now left-aligns headers by default, instead of
13417 centering. This is more consistent with the rest of the writers.
13418 + A proper multi-level table of contents is now used in `toc.ncx`.
13419 There is no longer a subsidiary table of contents at the beginning
13420 of each chapter.
13421 + Code highlighting now works by default.
13422 + Section divs are used by default for better semantic markup.
13423 + The title is used instead of "Title Page" in the table of contents.
13424 Otherwise we have a hard-coded English string, which looks
13425 strange in ebooks written in other languages. Closes #572.
13427 * HTML writer:
13429 + Put mathjax in span with class "math". Closes #562.
13430 + Put citations in a span with class "citation." In HTML5, also include
13431 a `data-cite` attribute with a space-separated list of citation
13432 keys.
13434 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
13435 This treats both `\r\n` and `\n` as `\n` on input, no matter
13436 what platform we're running on.
13438 * Citation processing is now done in the Markdown and LaTeX
13439 readers, not in `pandoc.hs`. This makes it easier for library users
13440 to use citations.
13442### Template changes
13444 * HTML: Added css to template to preserve spaces in `<code>` tags.
13445 Thanks to Dirk Laurie.
13447 * Beamer: Remove English-centric strings in section pages.
13448 Section pages used to have "Section" and a number as well as the
13449 section title. Now they just have the title. Similarly for part
13450 and subsection. Closes #566.
13452 * LaTeX, ConTeXt: Added papersize variable.
13454 * LaTeX, Beamer templates: Use longtable instead of ctable.
13456 * LaTeX, Beamer templates: Don't require 'float' package for tables.
13457 We don't actually seem to use the '[H]' option.
13459 * Markdown, plain: Fixed titleblock so it is just a single string.
13460 Previously separate title, author, and date variables were used,
13461 but this didn't allow different kinds of title blocks.
13463 * EPUB:
13465 + Rationalized templates. Previously there were three different
13466 templates involved in epub production. There is now just one
13467 template, `default.epub` or `default.epub3`. It can now be
13468 overridden using `--template`, just like other templates.
13469 The titlepage is now folded into the default template.
13470 A `titlepage` variable selects it.
13471 + UTF-8, lang tag, meta tags, title element.
13473 * Added scale-to-width feature to beamer template
13475### API changes
13477 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
13478 Previously header identifiers were autogenerated by the writers.
13479 Now they are added in the readers (either automatically or explicitly).
13481 * `Text.Pandoc.Builder`:
13483 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
13484 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
13485 custom Monoid instances for `Many Inline` and `Many Block. This
13486 allows `Many` to be made an instance of `Foldable` and `Traversable`.
13487 + The old `Listable` class has been removed.
13488 + The module now exports `isNull`, `toList`, `fromList`.
13489 + The old `Read` and `Show` instances have been removed; derived
13490 instances are now used.
13491 + Added `headerWith`.
13493 * The readers now take a `ReaderOptions` rather than a `ParserState`
13494 as a parameter. Indeed, not all parsers use the `ParserState` type;
13495 some have a custom state. The motivation for this change was to separate
13496 user-specifiable options from the accounting functions of parser state.
13498 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
13499 formerly in `Text.Pandoc.Shared`, and its associated
13500 data types. It also includes a new type `ReaderOptions`, which
13501 contains many options formerly in `ParserState`, and its associated
13502 data types:
13504 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
13505 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
13506 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
13507 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
13508 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
13509 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
13510 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
13511 + `ParserState.stateIndentedCodeClasses` ->
13512 `ReaderOptions.readerIndentedCodeClasses`.
13513 + Added `ReaderOptions.readerCitationStyle`.
13515 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
13516 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
13517 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
13518 been renamed `writerEpubMetadata` for consistency.
13520 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
13521 longer stylesheet, fonts, reference files as separate parameters.
13523 * Removed `writerLiterateHaskell` from `WriterOptions`, and
13524 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
13525 by an extension (`Ext_literate_haskell`).
13527 * Removed deprecated `writerXeTeX`.
13529 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
13530 Strict is now handled through extensions.
13532 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
13533 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
13534 and `multimarkdownExtensions`, as well as the `Extensions` type.
13536 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
13537 `readMediaWiki`.
13539 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
13540 (thanks to Sergey Astanin).
13542 * `Text.Pandoc`:
13544 + Added `getReader`, `getWriter` to `Text.Pandoc`.
13545 + `writers` is now an association list `(String, Writer)`.
13546 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
13547 an `IOByteStringWriter`. ALL writers are now in the 'writers'
13548 list, including the binary writers and FB2 writer. This allows
13549 code in `pandoc.hs` to be simplified.
13550 + Changed type of `readers`, so all readers are in IO.
13551 Users who want pure readers can still get them form the reader
13552 modules; this just affects the function `getReader` that looks up
13553 a reader based on the format name. The point of this change is to
13554 make it possible to print warnings from the parser.
13556 * `Text.Pandoc.Parsing`:
13558 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
13559 No other module directly imports Parsec. This will make it easier
13560 to change the parsing backend in the future, if we want to.
13561 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
13562 + Export the type synonym `Parser`.
13563 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
13564 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
13565 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
13566 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
13567 + `ParserState` is no longer an instance of `Show`.
13568 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
13569 + Generalized type of `withQuoteContext`.
13570 + Added `guardEnabled`, `guardDisabled`, `getOption`.
13571 + Removed `failIfStrict`.
13572 + `lookupKeySrc` and `fromKey` are no longer exported.
13574 * `Data.Default` instances are now provided for `ReaderOptions`,
13575 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
13576 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
13577 of `defaultWriterOptions` (which is still defined). Closes #546.
13579 * `Text.Pandoc.Shared`:
13581 + Added `safeRead`.
13582 + Renamed `removedLeadingTrailingSpace` to `trim`,
13583 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
13584 + Count `\r` as space in `trim` functions.
13585 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
13586 to `Shared`.
13587 + Removed `failUnlessLHS`.
13588 + Export `compactify'`, formerly in Markdown reader.
13589 + Export `isTightList`.
13590 + Do not export `findDataFile`.
13591 + `readDataFile` now returns a strict ByteString.
13592 + Export `readDataFileUTF8` which returns a String, like the
13593 old `readDataFile`.
13594 + Export `fetchItem` and `openURL`.
13596 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
13597 Removed `readImageSize`.
13599 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
13600 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
13601 `fromStringLazy`.
13603 * `Text.Pandoc.UTF8` is now an exposed module.
13605 * `Text.Pandoc.Biblio`:
13607 + csl parameter now a `String` rather than a `FilePath`.
13608 + Changed type of `processBiblio`. It is no longer in the IO monad.
13609 It now takes a `Maybe Style` argument rather than parameters for CSL
13610 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
13611 the style file and add abbreviations.)
13613 * Markdown reader now exports `readMarkdownWithWarnings`.
13615 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
13616 `rtfEmbedImage`.
13618### Bug fixes
13620 * Make `--ascii` work properly with `--self-contained`. Closes #568.
13622 * Markdown reader:
13624 + Fixed link parser to avoid exponential slowdowns. Closes #620.
13625 Previously the parser would hang on input like this:
13627 [[[[[[[[[[[[[[[[[[hi
13629 We fixed this by making the link parser parser characters
13630 between balanced brackets (skipping brackets in inline code spans),
13631 then parsing the result as an inline list. One change is that
13633 [hi *there]* bud](/url)
13635 is now no longer parsed as a link. But in this respect pandoc behaved
13636 differently from most other implementations anyway, so that seems okay.
13638 + Look for raw html/latex blocks before tables.
13639 Otherwise the following gets parsed as a table:
13641 \begin{code}
13642 --------------
13643 -- My comment.
13644 \end{code}
13646 Closes #578.
13648 * RST reader:
13650 + Added support for `:target:` on `.. image::` blocks
13651 and substitutions.
13652 + Field list fixes:
13654 - Fixed field lists items with body beginning after a new line
13655 (Denis Laxalde).
13656 - Allow any char but ':' in names of field lists in RST reader
13657 (Denis Laxalde).
13658 - Don't allow line breaks in field names.
13659 - Require whitespace after field list field names.
13660 - Don't create empty definition list for metadata field lists.
13661 Previously a field list consisting only of metadata fields (author,
13662 title, date) would be parsed as an empty DefinitionList, which is
13663 not legal in LaTeX and not needed in any format.
13665 + Don't recognize inline-markup starts inside words.
13666 For example, `2*2 = 4*1` should not contain an emphasized
13667 section. Added test case for "Literal symbols". Closes #569.
13668 + Allow dashes as separator in simple tables. Closes #555.
13669 + Added support for `container`, `compound`, `epigraph`,
13670 `rubric`, `highlights`, `pull-quote`.
13671 + Added support for `.. code::`.
13672 + Made directive labels case-insensitive.
13673 + Removed requirement that directives begin at left margin.
13674 This was (correctly) not in earlier releases; docutils doesn't
13675 make the requirement.
13676 + Added support for `replace::` and `unicode::` substitutions.
13677 + Ignore unknown interpreted roles.
13678 + Renamed image parser to `subst`, since it now handles all
13679 substitution references.
13681 * Textile reader:
13683 + Allow newlines before pipes in table. Closes #654.
13684 + Fixed bug with list items containing line breaks.
13685 Now pandoc correctly handles hard line breaks inside list items.
13686 Previously they broke list parsing.
13687 + Implemented comment blocks.
13688 + Fixed bug affected words ending in hyphen.
13689 + Properly handle links with surrounding brackets.
13690 Square brackets need to be used when the link isn't surrounded by
13691 spaces or punctuation, or when the URL ending may be ambiguous.
13692 Closes #564.
13693 + Removed nullBlock. Better to know about parsing problems than
13694 to skip stuff when we get stuck.
13695 + Allow ID attributes on headers.
13696 + Textile reader: Avoid parsing dashes as strikeout.
13697 Previously the input
13699 text--
13700 text--
13701 text--
13702 text--
13704 would be parsed with strikeouts rather than dashes. This fixes
13705 the problem by requiring that a strikeout delimiting - not be
13706 followed by a -. Closes #631.
13707 + Expanded list of `stringBreakers`.
13708 This fixes a bug on input like "(_hello_)" which should
13709 be a parenthesized emphasized "hello".
13710 The new list is taken from the PHP source of textile 2.4.
13711 + Fixed autolinks. Previously the textile reader and writer
13712 incorrectly implented RST-style autolinks for URLs and email
13713 addresses. This has been fixed. Now an autolink is done this way:
13714 `"$":http://myurl.com`.
13715 + Fixed footnotes bug in textile. This affected notes occurring
13716 before punctuation, e.g. `foo[1].`. Closes #518.
13718 * LaTeX reader:
13720 + Better handling of citation commands.
13721 + Better handling of `\noindent`.
13722 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
13723 Closes #622.
13724 + Made `rawLaTeXInline` try to parse block commands as well. This
13725 is usually what we want, given how `rawLaTeXInline` is used in
13726 the markdown and textile readers. If a block-level LaTeX command
13727 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
13728 we can treat it as raw inline LaTeX.
13729 + Handle `\slash` command. Closes #605.
13730 + Basic `\enquote` support.
13731 + Fixed parsing of paragraphs beginning with a group. Closes #606.
13732 + Use curly quotes for bare straight quotes.
13733 + Support obeylines environment. Closes #604.
13734 + Guard against "begin", "end" in inlineCommand and
13735 blockCommand.
13736 + Better error messages for environments. Now it should tell you that
13737 it was looking for \end{env}, instead of giving "unknown parse error."
13739 * HTML reader:
13741 + Added HTML 5 tags to list of block-level tags.
13742 + HTML reader: Fixed bug in `htmlBalanced`, which
13743 caused hangs in parsing certain markdown input using
13744 strict mode.
13745 + Parse `<q>` as `Quoted DoubleQuote`.
13746 + Handle nested `<q>` tags properly.
13747 + Modified `htmlTag` for fewer false positives.
13748 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
13749 This makes it more useful in the wikimedia and markdown parsers.
13751 * DocBook reader: Support title in "figure" element. Closes #650.
13753 * MediaWiki writer:
13755 + Remove newline after `<br/>` in translation of `LineBreak`
13756 There's no particular need for a newline (other than making the
13757 generated MediaWiki source look nice to a human), and in fact
13758 sometimes it is incorrect: in particular, inside an enumeration, list
13759 items cannot have embedded newline characters. (Brent Yorgey)
13760 + Use `<code>` not `<tt>` for Code.
13762 * Man writer: Escape `-` as `\-`.
13763 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
13764 signs. That is preferable for use with command-line options. See
13765 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
13766 to Andrea Bolognani for bringing the issue to our attention.
13768 * RST writer:
13770 + Improved line block output. Use nonbreaking spaces for
13771 initial indent (otherwise lost in HTML and LaTeX).
13772 Allow multiple paragraphs in a single line block.
13773 Allow soft breaks w continuations in line blocks.
13774 + Properly handle images with no alt text. Closes #678.
13775 + Fixed bug with links with duplicate text. We now (a) use anonymous
13776 links for links with inline URLs, and (b) use an inline link instead
13777 of a reference link if the reference link would require a label that
13778 has already been used for a different link. Closes #511.
13779 + Fixed hyperlinked images. Closes #611. Use `:target:`
13780 field when you have a simple linked image.
13781 + Don't add `:align: center` to figures.
13783 * Texinfo writer: Fixed internal cross-references.
13784 Now we insert anchors after each header, and use `@ref` instead of `@uref`
13785 for links. Commas are now escaped as `@comma{}` only when needed;
13786 previously all commas were escaped. (This change is needed, in part,
13787 because `@ref` commands must be followed by a real comma or period.) Also
13788 insert a blank line in from of `@verbatim` environments.
13790 * DocBook writer:
13792 + Made --id-prefix work in DocBook as well as HTML.
13793 Closes #607.
13794 + Don't include empty captions in figures. Closes #581.
13796 * LaTeX writer:
13798 + Use `\hspace*` for nonbreaking space after line break,
13799 since `~` spaces after a line break are just ignored.
13800 Closes #687.
13801 + Don't escape `_` in URLs or hyperref identifiers.
13802 + Properly escape strings inside `\url{}`. Closes #576.
13803 + Use `[fragile]` only for slides containing code rendered
13804 using listings. Closes #649.
13805 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
13806 highlighting-kate's macros, which redefine `|` as a short verbatim
13807 delimiter. Thanks to Björn Peemöller for raising this issue.
13808 + Use minipage rather than parbox for block containers in tables.
13809 This allows verbatim code to be included in grid tables.
13810 Closes #663.
13811 + Prevent paragraphs containing only linebreaks or spaces.
13813 * HTML writer:
13815 + Included `highlighting-css` for code spans, too.
13816 Previously it was only included if used in a code block. Closes #653.
13817 + Improved line breaks with `<dd>` tags. We now put a newline between
13818 `</dd>` and `<dd>` when there are multiple definitions.
13819 + Changed mathjax cdn url so it doesn't use https. (This caused
13820 problems when used with `--self-contained`.) See #609.
13822 * EPUB writer:
13824 + `--number-sections` now works properly.
13825 + Don't strip meta and link elements in epub metadata.
13826 Patch from aberrancy. Closes #589.
13827 + Fixed a couple validation bugs.
13828 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
13829 of chapters in some readers, which apparently sort ch2 after ch10.
13830 Closes #610.
13832 * ODT writer: properly set title property (Arlo O'Keeffe).
13834 * Docx writer:
13836 + Fixed bug with nested lists. Previously a list like
13838 1. one
13839 - a
13840 - b
13841 2. two
13843 would come out with a bullet instead of "2."
13844 Thanks to Russell Allen for reporting the bug.
13845 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
13846 This seems to fix a problem viewing pandoc-generated
13847 docx files in LibreOffice.
13848 + Use integer ids for bookmarks. Closes #626.
13849 + Added nsid to abstractNum elements. This helps when merging
13850 word documents with numbered or bulleted lists. Closes #627.
13851 + Use separate footnotes.xml for notes.
13852 This seems to help LibreOffice convert the file, even though
13853 it was valid docx before. Closes #637.
13854 + Use rIdNN identifiers for r:embed in images.
13855 + Avoid reading image files again when we've already processed them.
13856 + Fixed typo in `referenc.docx` that prevented image captions from
13857 working. Thanks to Huashan Chen.
13859 * `Text.Pandoc.Parsing`:
13861 + Fixed bug in `withRaw`, which didn't correctly handle the case
13862 where nothing is parsed.
13863 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
13864 though it still doesn't implement quoted strings in email addresses.
13865 + Revised URI parser. It now allows many more schemes, allows
13866 uppercase URIs, and better handles trailing punctuation and
13867 trailing slashes in bare URIs. Added many tests.
13868 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
13869 etc. parse properly. Formerly we had some English-centric heuristics,
13870 but they are no longer needed. Closes #698.
13872 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
13873 This fixes bug with Chinese commas in markdown and reST tables, and
13874 a bug that caused combining characters to be dropped.
13876 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
13878 * `Text.Pandoc.Biblio`:
13880 + Run `mvPunc` and `deNote` on metadata too.
13881 This fixed a bug with notes on titles using footnote styles.
13882 + Fixed bug in fetching CSL files from CSL data directory.
13884 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
13885 is provided. It should be the URL up to the path.
13887 * Fixed/simplified diff output for tests.
13888 Biblio: Make sure mvPunc and deNote run on metadata too.
13889 This fixed a bug with notes on titles using footnote styles.
13891### Under the hood improvements
13893 * We no longer depend on `utf8-string`. Instead we use functions
13894 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
13896 * Use `safeRead` instead of using `reads` directly (various modules).
13898 * "Implicit figures" (images alone in a paragraph) are now handled
13899 differently. The markdown reader gives their titles the prefix `fig:`; the
13900 writers look for this before treating the image as a figure. Though this
13901 is a bit of a hack, it has two advantages: (i) implicit figures can be
13902 limited to the markdown reader, and (ii) they can be deactivated by turning
13903 off the `implicit_figures` extension.
13905 * `catch` from `Control.Exception` is now used instead of the
13906 old Preface `catch`.
13908 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
13909 and `oneOfStrings` (which is now non-backtracking).
13911 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
13912 Now citeproc-hs is fixed upstream, so this is no longer needed.
13913 Closes #531.
13915 * Textile reader: Improved speed of `hyphenedWords`.
13916 This speeds up the textile reader by about a factor of 4.
13918 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
13919 better performance, and automatic normalization.
13921 * Major rewrite of markdown reader:
13923 + Use `Text.Pandoc.Builder` instead of lists. This also
13924 means that everything is normalized automatically.
13925 + Move to a one-pass parsing strategy, returning values in the reader
13926 monad, which are then run (at the end of parsing) against the final
13927 parser state.
13929 * In HTML writer, we now use `toHtml` instead of pre-escaping.
13930 We work around the problem that blaze-html unnecessarily escapes `'`
13931 by pre-escaping just the `'` characters, instead of the whole string.
13932 If blaze-html later stops escaping `'` characters, we can simplify
13933 `strToHtml` to `toHtml`. Closes #629.
13935 * Moved code for embedding images in RTFs from `pandoc.hs` to the
13936 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
13938 * Moved citation processing from `pandoc.hs` into the readers.
13939 This makes things more convenient for library users.
13941 * The man pages are now built by an executable `make-pandoc-man-pages`,
13942 which has its own stanza in the cabal file so that dependencies can be
13943 handled by Cabal. Special treatment in `Setup.hs` ensures that this
13944 executable never gets installed; it is only used to create the man pages.
13946 * The cabal file has been modified so that the pandoc library is used
13947 in building the pandoc executable. (This required moving `pandoc.hs`
13948 from `src` to `.`.) This cuts compile time in half.
13950 * The `executable` and `library` flags have been removed.
13952 * `-threaded` has been removed from ghc-options.
13954 * Version bounds of dependencies have been raised, and the
13955 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
13956 GHC 7.6.
13958 * We now require base >= 4.2.
13960 * Integrated the benchmark program into cabal. One can now do:
13962 cabal configure --enable-benchmarks && cabal build
13963 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
13965 The benchmark now uses README + testsuite, so benchmark results
13966 from older versions aren't comparable.
13968 * Integrated test suite with cabal.
13969 To run tests, configure with `--enable-tests`, then `cabal test`.
13970 You can specify particular tests using `--test-options='-t markdown'`.
13971 No output is shown unless tests fail. The Haskell test modules
13972 have been moved from `src/` to `tests/`.
13974 * Moved all data files and templates to the `data/` subdirectory.
13976 * Added an `embed_data_files` cabal flag. This causes all
13977 data files to be embedded in the binary, so that the binary
13978 is self-sufficient and can be relocated anywhere, copied on
13979 a USB key, etc. The Windows installer now uses this.
13980 (Since we no longer have the option to build the executable
13981 without the library, this is the only way to get a relocatable
13982 binary on Windows.)
13984 * Removed pcre3.dll from windows package.
13985 It isn't needed unless highlighting-kate is compiled with the
13986 `pcre-light` flag. By default, regex-prce-builtin is used.
13989## pandoc 1.9.4.5 (2012-10-21)
13991 * Raised version bounds on network, base64-bytestring, json,
13992 and template-haskell.
13994## pandoc 1.9.4.4 (2012-10-20)
13996 * Removed `tests` flag and made test suite into a proper cabal
13997 test suite, which can now be enabled using `--enable-tests`
13998 and run with `cabal test`.
14000 * Moved man page creation out of `Setup.hs` and into an
14001 executable built by Cabal, but never installed. This
14002 allows dependencies to be specified, and solves a problem
14003 with 1.9.4.3, which could only be installed if `data-default`
14004 had already been installed.
14006 * Updated `lhs-latex.tex` test for latest highlighting-kate
14007 representation of backticks.
14009## pandoc 1.9.4.3 (2012-10-20)
14011 * Removed `-threaded` from default compile flags.
14013 * Modified modules to compile with GHC 7.6 and latest version of time
14014 package.
14016## pandoc 1.9.4.2 (2012-06-29)
14018 * Don't encode/decode file paths if base >= 4.4.
14019 Prior to base 4.4, filepaths and command line arguments were treated
14020 as unencoded lists of bytes, not unicode strings, so we had to work
14021 around that by encoding and decoding them. This commit adds CPP
14022 checks for the base version that intelligibly enable encoding/decoding
14023 when needed. Fixes a bug with multilingual filenames when pandoc was
14024 compiled with ghc 7.4 (#540).
14026 * Don't generate an empty H1 after hrule slide breaks.
14027 We now use a slide-level header with contents `[Str "\0"]` to mark
14028 an hrule break. This avoids creation of an empty H1 in these
14029 contexts. Closes #484.
14031 * Docbook reader: Added support for "bold" emphasis. Thanks to mb21.
14033 * In make_osx_package.sh, ensure citeproc-hs is built with the
14034 embed_data_files flag.
14036 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
14038 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
14039 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
14041 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
14042 Closes #535.
14044 * Added webm to mime types. Closes #543.
14046 * Added some missing exports and tests to the cabal file
14047 (Alexander V Vershilov).
14049 * Compile with `-rtsopts` and `-threaded` by default.
14051## pandoc 1.9.4.1 (2012-06-08)
14053 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
14055 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
14056 variables. Make TOC links black.
14058 * LaTeX template improvements.
14060 + Don't print date unless one is given explicitly in the document.
14061 + Simplified templates.
14062 + Use fontenc [T1] by default, and lmodern.
14063 + Use microtype if available.
14065 * Biblio:
14067 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
14068 Motivation: `@item1 [50]` should be as close as possible to
14069 `[@item1, 50]`.
14070 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
14071 beginning with a citation to be empty. Closes #531.
14073 * Fixed documentation on mixed lists. Closes #533.
14075## pandoc 1.9.4 (2012-06-03)
14077 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
14078 footnotes and captions. We now handle note citations by inserting
14079 footnotes during initial citation processing, and doing a separate
14080 pass later to remove notes inside notes.
14082 * Added 'zenburn' highlight style from highlighting-kate.
14084 * Added Slideous writer. Slideous is an HTML + javascript slide show
14085 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
14087 * LaTeX writer:
14089 + Ensure we don't have extra blank lines at ends of cells.
14090 This can cause LaTeX errors, as they are interpreted as new paragraphs.
14091 + More consistent interblock spacing.
14092 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
14093 code in LaTeX. Closes #527.
14094 + Ensure that a Verbatim at the end of a footnote is followed by
14095 a newline. (Fixes a regression in the previous version.)
14096 + In default template, use black for internal links and TOC.
14097 Added commented-out code to use footnotes for links, as would
14098 be suitable in print output.
14100 * Beamer writer: When `--incremental` is used, lists inside
14101 a block quote should appear all at once. (This makes Beamer
14102 output consistent with the HTML slide show formats.)
14104 * ConTeXt writer:
14106 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
14107 to avoid gobbling spaces after the `%` sign.
14108 + Ensure space after `\stopformula`.
14110 * Markdown writer:
14112 + Use `:` form instead of `~` in definition lists, for better
14113 compatibility with other markdown implementations.
14114 + Don't wrap the term, because it breaks definition lists.
14115 + Use a nonzero space to prevent false recognition
14116 of list marker in ordered lists. Closes #516.
14118 * Org writer: Add space before language name. Closes #523.
14120 * Docx writer: Simplified bullet characters so they work properly
14121 with Word 2007. Closes #520.
14123 * LaTeX reader: Support `\centerline`.
14125 * RST reader: handle figures. Closes #522.
14127 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
14128 (Paul Rivier)
14130## pandoc 1.9.3 (2012-05-12)
14132 * Added docbook reader (with contributions from Mauro Bieg).
14134 * Fixed bug in `fromEntities`. The previous version would turn
14135 `hi & low you know;` into `hi &`.
14137 * HTML reader:
14139 + Don't skip nonbreaking spaces.
14140 Previously a paragraph containing just `&nbsp;` would be rendered
14141 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
14142 + Support `<col>` and `<caption>` in tables. Closes #486.
14144 * Markdown reader:
14146 + Don't recognize references inside delimited code blocks.
14147 + Allow list items to begin with lists.
14149 * LaTeX reader:
14151 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
14152 + Control sequences can't be followed by a letter.
14153 This fixes a bug where `\begingroup` was parsed as `\begin`
14154 followed by `group`.
14155 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
14156 + Make `\label` and `\ref` sensitive to `--parse-raw`.
14157 If `--parse-raw` is selected, these will be parsed as raw latex
14158 inlines, rather than bracketed text.
14159 + Don't crash on unknown block commands (like `\vspace{10pt}`)
14160 inside `\author`; just skip them. Closes #505.
14162 * Textile reader:
14164 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
14165 + Added support for LaTeX blocks and inlines (Paul Rivier).
14166 + Better conformance to RedCloth inline parsing (Paul Rivier).
14167 + Parse '+text+' as emphasized (should be underlined, but this
14168 is better than leaving literal plus characters in the output.
14170 * Docx writer: Fixed multi-paragraph list items. Previously they each
14171 got a list marker. Closes #457.
14173 * LaTeX writer:
14175 + Added `--no-tex-ligatures` option to avoid replacing
14176 quotation marks and dashes with TeX ligatures.
14177 + Use `fixltx2e` package to provide `\textsubscript`.
14178 + Improve spacing around LaTeX block environments:
14179 quote, verbatim, itemize, description, enumerate.
14180 Closes #502.
14181 + Use blue instead of pink for URL links in latex/pdf output.
14183 * ConTeXt writer: Fixed escaping of `%`.
14184 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
14185 Inside URLs, `%` needs to be escaped as `\%`
14186 Thanks to jmarca and adityam for the fix. Closes #492.
14188 * Texinfo writer: Escape special characters in node titles.
14189 This fixes a problem pointed out by Joost Kremers. Pandoc used
14190 to escape an '@' in a chapter title, but not in the corresponding
14191 node title, leading to invalid texinfo.
14193 * Fixed document encoding in texinfo template.
14194 Resolves Debian Bug #667816.
14196 * Markdown writer:
14198 + Don't force delimited code blocks to be flush left.
14199 Fixes bug with delimited code blocks inside lists etc.
14200 + Escape `<` and `$`.
14202 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
14203 Previously we used `\href{\#ident}{text}`, which didn't work on
14204 all systems. Thanks to Dirk Laurie.
14206 * RST writer: Don't wrap link references. Closes #487.
14208 * Updated to use latest versions of blaze-html, mtl.
14211## pandoc 1.9.2 (2012-04-05)
14213 * LaTeX reader:
14215 + Made `lstlisting` work as a proper verbatim environment.
14216 + Fixed bug parsing LaTeX tables with one column.
14218 * LaTeX writer:
14220 + Use `{}` around `ctable` caption, so that formatting can be used.
14221 + Don't require eurosym package unless document has a €.
14223 * LaTeX template: Added variables for `geometry`, `romanfont`,
14224 `sansfont`, `mathfont`, `mainfont` so users can more easily
14225 customize fonts.
14227 * PDF writer:
14229 + Run latex engine at least two times, to ensure
14230 that PDFs will have hyperlinked bookmarks.
14231 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
14233 * Texinfo writer: retain directories in image paths. (Peter Wang)
14235 * RST writer: Better handling of inline formatting, in accord
14236 with docutils' "inline markup recognition rules" (though we don't
14237 implement the unicode rules fully). Now `hi*there*hi` gets
14238 rendered properly as `hi\ *there*\ hi`, and unnecessary
14239 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
14241 * RST reader:
14243 + Parse `\ ` as null, not escaped space.
14244 + Allow `` :math:`...` `` even when not followed by blank
14245 or `\`. This does not implement the complex rule docutils follows,
14246 but it should be good enough for most purposes.
14247 + Add support for the rST default-role directive. (Greg Maslov)
14249 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
14250 (Greg Maslov)
14252 * Markdown reader: Properly handle citations nested in other inline
14253 elements.
14255 * Markdown writer: don't replace empty alt in image with "image".
14257 * DZSlides: Updated template.html and styles in default template.
14258 Removed bizarre CSS for `q` in dzslides template.
14260 * Avoid repeated `id` attribute in section and header in HTML slides.
14262 * README improvements: new instructions on internal links,
14263 removed misleading note on reST math.
14265 * Build system:
14267 + Fixed Windows installer so that dzslides works.
14268 + Removed stripansi.sh.
14269 + Added .travis.yml for Travis continuous integration support..
14270 + Fixed upper bound for zlib (Sergei Trofimovich).
14271 + Fixed upper bound for test-framework.
14272 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
14275## pandoc 1.9.1.2 (2012-03-09)
14277 * Added `beamer+lhs` as output format.
14279 * Don't escape `<` in `<style>` tags with `--self-contained`.
14280 This fixes a bug which prevented highlighting from working
14281 when using `--self-contained`.
14283 * PDF: run latex engine three times if `--toc` specified.
14284 This fixes page numbers in the table of contents.
14286 * Docx writer: Added TableNormal style to tables.
14288 * LaTeX math environment fixes. `aligned` is now used instead of
14289 the nonexistent `aligned*`. `multline` instead of the nonexistent
14290 `multiline`.
14292 * LaTeX writer: Use `\textasciitilde` for literal `~`.
14294 * HTML writer: Don't escape contents of EQ tags with --gladtex.
14295 This fixes a regression from 1.8.
14297 * Use `<q>` tags for Quoted items for HTML5 output.
14298 The quote style can be changed by modifying the template
14299 or including a css file. A default quote style is included.
14301 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
14302 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
14304 * Updated LaTeX template for better language support.
14305 Use `polyglossia` instead of `babel` with xetex.
14306 Set `lang` as documentclass option.
14307 `\setmainlanguage` will use the last of a comma-separated
14308 list of languages. Thanks to François Gannaz.
14310 * Fixed default LaTeX template so `\euro` and `€` work. The
14311 `eurosym` package is needed if you are using pdflatex.
14313 * Fixed escaping of period in man writer (thanks to Michael Thompson).
14315 * Fixed list label positions in beamer.
14317 * Set `mainlang` variable in context writer.
14318 This parallels behavior of latex writer. `mainlang` is the last
14319 of a comma-separated list of languages in lang.
14321 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
14323 * Changed `-V` so that you can specify a key without a value.
14324 Such keys get the value `true`.
14326 * Fixed permissions on installed man pages - thanks Magnus Therning.
14328 * Windows installer: require XP or higher. The installer is
14329 now compiled on a Windows 7 machine, which fixes a problem
14330 using citation functions on Windows 7.
14332 * OSX package: Check for 64-bit Intel CPU before installing.
14335## pandoc 1.9.1.1 (2012-02-11)
14337 * Better handling of raw latex environments in markdown. Now
14339 \begin{equation}
14340 a_1
14341 \end{equation}
14343 turns into a raw latex block as expected.
14345 * Improvements to LaTeX reader:
14347 + Skip options after block commands.
14348 + Correctly handle `{\\}` in braced.
14349 + Added a needed 'try'.
14350 + Citations: add `, ` to suffix if it doesn't start with space or
14351 punctuation. Otherwise we get no space between the year and the
14352 suffix in author-date styles.
14354 * Added two needed data files for S5. This fixes a problem with
14355 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
14356 which was no longer being used.
14358 * Fixed some minor problems in `reference.docx`:
14359 name on "Date" style, `xCs` instead of `xIs`.
14361 * Fixed a problem creating docx files using a reference docx
14362 modified using Word. The problem seems to be that Word
14363 modifies `_rels/.rels`, changing the Type of the Relationship to
14364 `docProps/core.xml`. Pandoc now changes this back to the correct
14365 value if it has been altered, fixing the problem.
14367 * Fixed html5 template so it works properly with highlighting.
14369## pandoc 1.9.1 (2012-02-09)
14371 * LaTeX reader:
14373 + Fixed regression in 1.9; properly handle escaped $ in latex math.
14374 + Put LaTeX verse environments in blockquotes.
14376 * Markdown reader:
14378 + Limit nesting of strong/emph. This avoids exponential lookahead
14379 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
14380 + Improved attributes syntax (in code blocks/spans): (1)
14381 Attributes can contain line breaks. (2) Values in key-value
14382 attributes can be surrounded by either double or single quotes, or
14383 left unquoted if they contain no spaces.
14385 * Headers no longer wrap in markdown or RST writers.
14387 * Added `stateMaxNestingLevel` to `ParserState`.
14388 We set this to 6, so you can still have `Emph` inside `Emph`,
14389 just not indefinitely.
14391 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
14393 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
14394 is present.
14396 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
14398## pandoc 1.9.0.5 (2012-02-06)
14400 * Changed cabal file so that build-depends for the test program
14401 are not required unless the tests flag is used.
14403 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
14404 form ligatures (dashes) in code spans.
14406## pandoc 1.9.0.4 (2012-02-06)
14408 * Raised version bound on test-framework to avoid problems
14409 compiling tests on GHC 7.4.1.
14411 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
14412 so citations don't just disappear unless you process with
14413 citeproc. Ignore `\bibliographystyle`, `\nocite`.
14415 * Simplified tex2pdf; it will always run latex twice to
14416 resolve table of contents and hyperrefs.
14418## pandoc 1.9.0.3 (2012-02-06)
14420 * Require Cabal >= 1.10.
14422 * Tweaked cabal file to meet Cabal 1.10 requirements.
14424## pandoc 1.9.0.2 (2012-02-05)
14426 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
14427 ghc 6.12.
14429## pandoc 1.9 (2012-02-05)
14431### New features
14433 * Added a Microsoft Word `docx` writer. The writer includes support
14434 for highlighted code and for math (which is converted from TeX to OMML,
14435 Office's native math markup language, using texmath's new OMML module).
14436 A new option `--reference-docx` allows the user to customize the
14437 styles.
14439 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
14441 * Better support for slide shows:
14443 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
14444 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
14446 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
14447 slide presentations.
14449 + New, flexible rules for dividing documents into sections and slides
14450 (see the "Structuring the slide show" in the User's Guide). These
14451 are backward-compatible with the old rules, but they allow slide
14452 shows to be organized into sections and subsections containing
14453 multiple slides.
14455 + A new `--slide-level` option allows users to override defaults
14456 and select a slide level below the first header level with content.
14458 * A new `--self-contained` option produces HTML output that does not
14459 depend on an internet connection or the presence of any external
14460 files. Linked images, CSS, and javascript is downloaded (or fetched
14461 locally) and encoded in `data:` URIs. This is useful for making portable
14462 `HTML slide shows. The --offline` option has been deprecated and is now
14463 `treated as a synonym or --self-contained`.
14465 * Support for PDF output:
14467 + Removed the old `markdown2pdf`.
14468 + `pandoc` can now create PDFs (assuming you have latex and a set of
14469 appropriate packages installed): just specify an output file with the
14470 `.pdf` extension.
14471 + A new option `--latex-engine` allows you to specify `pdflatex`,
14472 `xelatex`, or `lualatex` as the processor.
14474 * Highlighting changes:
14476 + Syntax highlighting is now a standard feature; the `highlighting`
14477 flag is no longer needed when compiling.
14478 + A new `--no-highlight` option allows highlighting to be disabled.
14479 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
14480 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
14481 + A new `--highlight-style` option selects between various highlighting
14482 color themes.
14484 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
14486 * LaTeX `\include` and `\usepackage` commands are now processed,
14487 provided the files are in the working directory.
14489 * EPUB improvements:
14491 + Internal and external links now work in EPUB.
14492 + Raw HTML is allowed.
14493 + New `--epub-embed-font` option.
14494 + Customizable templates for EPUB pages offer more control over
14495 formatting: `epub-page.html`, `epub-coverimage.html`,
14496 `epub-titlepage.html`.
14498 * `--mathml` now works with DocBook.
14500 * Added support for math in RST reader and writer. Inline math uses the
14501 `` :math:`...` `` construct. Display math uses
14503 .. math:: ...
14505 or if the math is multiline,
14507 .. math::
14509 ...
14511 These constructions are now supported now by `rst2latex.py`.
14513 * Github syntax for fenced code blocks is supported in pandoc's
14514 markdown. You can now write
14516 ```ruby
14517 x = 2
14518 ```
14520 instead of
14522 ~~~ {.ruby}
14523 x = 2
14524 ~~~~
14526 * Easier scripting: a new `toJsonFilter` function makes it easier to
14527 write Haskell scripts to manipulate the Pandoc AST.
14528 See [Scripting with pandoc](scripting.html#pandoc-1.9-changes).
14530### Behavior changes
14532 * Fixed parsing of consecutive lists in markdown.
14533 Pandoc previously behaved like Markdown.pl for consecutive
14534 lists of different styles. Thus, the following would be parsed
14535 as a single ordered list, rather than an ordered list followed
14536 by an unordered list:
14538 1. one
14539 2. two
14541 - one
14542 - two
14544 This change makes pandoc behave more sensibly, parsing this as
14545 two lists. Any change in list type (ordered/unordered) or in
14546 list number style will trigger a new list. Thus, the following
14547 will also be parsed as two lists:
14549 1. one
14550 2. two
14552 a. one
14553 b. two
14555 Since we regard this as a bug in Markdown.pl, and not something
14556 anyone would ever rely on, we do not preserve the old behavior
14557 even when `--strict` is selected.
14559 * Dashes work differently with `--smart`: `---` is always em-dash,
14560 and `--` is always en-dash. Pandoc no longer tries to guess when
14561 `-` should be en-dash. *Note:* This may change how existing documents
14562 look when processed with pandoc. A new option, `--old-dashes`,
14563 is provided for legacy documents.
14565 * The markdown writer now uses setext headers for levels 1-2.
14566 The old behavior (ATX headers for all levels) can be restored
14567 using the new `--atx-headers` option.
14569 * Links are now allowed in markdown image captions. They are also
14570 allowed in links, but will appear there as regular text. So,
14572 [link with [link](/url)](/url)
14574 will turn into
14576 <p><a href="/url">link with link</a></p>
14578 * Improved handling of citations using `citeproc-hs-0.3.4`.
14579 Added `--citation-abbreviations` option.
14581 * Citation keys can no longer end with a punctuation character.
14582 This means that `@item1.` will be parsed as a citation with key
14583 'item1', followed by a period, instead of a citation with key
14584 'item1.', as was the case previously.
14586 * In HTML output, citations are now put in a span with class `citation`.
14588 * The markdown reader now recognizes DocBook block and inline tags.
14589 It was always possible to include raw DocBook tags in a markdown
14590 document, but now pandoc will be able to distinguish block from
14591 inline tags and behave accordingly. Thus, for example,
14593 <sidebar>
14594 hello
14595 </sidebar>
14597 will not be wrapped in `<para>` tags.
14599 * The LaTeX parser has been completely rewritten; it is now much more
14600 accurate, robust, and extensible. However, there are two important
14601 changes in how it treats unknown LaTeX. (1) Previously, unknown
14602 environments became BlockQuote elements; now, they are treated
14603 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
14604 same as `xyz`. (2) Previously, arguments of unknown commands
14605 were passed through with their braces; now the braces are stripped
14606 off.
14608 * `--smart` is no longer selected automatically with `man` output.
14610 * The deprecated `--xetex` option has been removed.
14612 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
14613 instead. `html5` and `html5+lhs` are now separate output formats.
14615 * Single quotes are no longer escaped in HTML output. They do not
14616 need to be escaped outside of attributes.
14618 * Pandoc will no longer transform leading newlines in code
14619 blocks to `<br/>` tags.
14621 * The ODT writer now sizes images appropriately, using the image
14622 size and DPI information embedded in the image.
14624 * `--standalone` is once again implicitly for a non-text output format
14625 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
14626 and get a standalone ODT file.
14628 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
14629 `<section>`.
14631 * The HTML writer now uses `<del>` for strikeout.
14633 * In HTML output with `--section-divs`, the classes `section` and
14634 `level[1,2,..6]` are put on the `div` tags so they can be styled.
14635 In HTML 5 output with `--section-divs`, the classes
14636 `level[1,2,...6]` are put on `section` tags.
14638 * EPUB writer changes:
14640 + The `lang` variable now sets the language
14641 in the metadata (if it is not set, we default to the locale).
14642 + EPUB: UTF-8 is used rather than decimal entities.
14644 * Added `titleslide` class to title slide in S5 template.
14646 * In HTML, EPUB, and docx metadata, the date is normalized into
14647 YYYY-MM-DD format if possible. (This is required for validation.)
14649 * Attributes in highlighted code blocks are now preserved in HTML.
14650 The container element will have the classes, id, and key-value attributes
14651 you specified in the delimited code block. Previously these were stripped
14652 off.
14654 * The reference backlink in the HTML writer no longer has a special
14655 `footnoteBacklink` class.
14657 * The HTML template has been split into `html` and `html5` templates.
14659 * Author and date are treated more consistently in HTML templates.
14660 Authors are now `<h2>`, date `<h3>`.
14662 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
14664 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
14666### Bug fixes
14668 * Better support for combining characters and East Asian wide characters
14669 in markdown and reST.
14671 * Better handling of single quotes with `--smart`.
14672 Previously `D'oh l'*aide*` would be parsed with left and right single
14673 quotes instead of apostrophes. This kind of error is now fixed.
14675 * Highlighting: Use `reads` instead of `read` for better error handling.
14676 Fixes crash on `startNum="abc"`.
14678 * Added blank comment after directives in rst template.
14680 * Unescape entities in citation `refId`. The `refId`s coming
14681 from citeproc contain XML numeric entities, and these don't match with the
14682 citation keys parsed by pandoc. Solution is to unescape them.
14684 * HTML reader: Fixed bug parsing tables with both thead and tbody.
14686 * Markdown reader:
14688 + Better handling of escapes in link URLs and titles.
14689 + Fixed backslash escapes in reference links.
14690 + Fixed bug in table/hrule parsing, by checking that the top
14691 line of a table is not followed by a blank line. This bug caused
14692 slowdowns on some files with hrules and tables, as pandoc tried to
14693 interpret the hrules as the tops of multiline tables.
14694 + Fixed bug in code block attribute parser. Previously the ID attribute
14695 got lost if it didn't come first. Now attributes can come in any order.
14697 * RST reader: allow footnotes followed by newline without space characters.
14699 * LaTeX reader:
14701 + Ignore empty groups {}, { }.
14702 + LaTeX reader: Handle `\@`.
14703 + LaTeX reader: Don't crash on commands like `\itemsep`.
14704 + LaTeX reader: Better handling of letter environments.
14706 * RST writer: Fixed bug involving empty table cells. isSimple was being
14707 calculated in a way that assumed there were no non-empty cells.
14709 * ConTeXt writer:
14711 + Made `--toc` work even without `--number-sections`.
14712 + Escape # in link URLs.
14713 + Use buffering for footnotes containing code blocks.
14714 + Changed 'descr' to 'description', fixed alignment.
14716 * LaTeX writer:
14718 + Escape euro character.
14719 + Don't escape `~` inside `\href{...}`.
14720 + Escape `#` in href URLs.
14721 + Improved detection of book classes. We now check the
14722 `documentclass` variable, and if that is not set, we look through
14723 the template itself. Also, we have added the KOMA classes scrreprt
14724 and scrbook. You can now make a book using
14725 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
14726 + LHS files now set the "listings" variable, so that the definition
14727 of the `code` environment will be included in the template.
14728 + Links are colored blue by default (this can be changed by
14729 modifying `hyperref` settings in the template).
14730 + Added `lang` variable to LaTeX template.
14732 * HTML writer:
14734 + Fixed bug in HTML template with html5 and mathml.
14735 + Don't use self-closing img, br, hr tags for HTML5.
14736 + Use `<section>` for footnotes if HTML5.
14737 + Update HTML templates to use Content-Style-Type meta tag.
14738 + Use separate variables for meta-date, meta-author.
14739 This makes footnotes work in author and date fields.
14740 + Use 'vertical-align:middle' in WebTeX math for better alignment.
14742 * S5/slidy writer: Make footnotes appear on separate slide at end.
14744 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
14745 META-INF/manifest.xml for ODT files will have everything it needs, so
14746 that ODT files modified by LibreOffice can be used as `--reference-odt`.
14748 * `Text.Pandoc.Templates`: Return empty string for json template.
14750 * `Text.Pandoc.Biblio`:
14752 + Expand citations recursively inside nested inlines.
14753 + Treat `\160` as space when parsing locator and suffix.
14754 This fixes a bug with "p. 33" when `--smart` is used. Previously
14755 the whole "p. 33" would be included in the suffix, with no locator.
14756 + Put whole author-in-text citation in a Cite. Previously just the
14757 date and other info went in the Cite.
14758 + Don't add comma+space to prefix if it ends in punctuation.
14760 * Updated chicago-author-date.csl. The old version did not work
14761 properly for edited volumes with no author.
14763 * EPUB writer:
14765 + Add date to EPUB titlepage and metadata.
14766 + Added TOC identifier in EPUB page template.
14767 + Don't generate superfluous file `cover-image.jpg`.
14769### Under the hood improvements
14771 * Modified `make_osx_package.sh` to use cabal-dev.
14772 Items are no longer installed as root.
14773 Man pages are zipped and given proper permissions.
14775 * Modified windows installer generater to use cabal-dev.
14777 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
14778 Setup.hs we now invoke 'runghc' in a way that points it to the correct
14779 package databases, instead of always falling back to the default user
14780 package db.
14782 * Updated to work with GHC 7.4.1.
14784 * Removed dependency on old-time.
14786 * Removed dependency on dlist.
14788 * New slidy directory for "self-contained."
14790 * TeXMath writer: Use unicode thin spaces for thin spaces.
14792 * Markdown citations: don't strip off initial space in locator.
14794### API changes
14796 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
14797 from the native `Inline` type in pandoc-types. Now we use `Str`
14798 elements with unicode.
14800 * Improvements to `Text.Pandoc.Builder`:
14802 + `Inlines` and `Blocks` are now newtypes (not synonyms for
14803 sequences).
14804 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
14805 and a new `Listable` class, which allows these to be manipulated
14806 to some extent like lists. Monoid append includes automatic
14807 normalization.
14808 + `+++` has been replaced by `<>` (mappend).
14810 * Use blaze-html instead of xhtml for HTML generation.
14811 This changes the type of `writeHtml`.
14813 * `Text.Pandoc.Shared`:
14815 + Added `warn` and `err`.
14816 + Removed `unescapeURI`, modified `escapeURI`.
14817 (See under [behavior changes], above.)
14819 * Changes in URI escaping: Previously the readers escaped URIs by
14820 converting unicode characters to octets and then percent encoding.
14821 Now unicode characters are left as they are, and `escapeURI` only
14822 percent-encodes space characters. This gives more readable
14823 URIs, and works well with modern user agents. URIs are no longer unescaped
14824 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
14826 * New module `Text.Pandoc.SelfContained`.
14828 * New module `Text.Pandoc.Docx`.
14830 * New module `Text.Pandoc.PDF`.
14832 * Added `writerBeamer` to `WriterOptions`.
14834 * Added `normalizeDate` to `Text.Pandoc.Shared`.
14836 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
14837 This is like `splitWithIndices`, but it is sensitive to distinctions
14838 between wide, combining, and regular characters.
14840 * `Text.Pandoc.Pretty`:
14842 + Added `chomp` combinator.
14843 + Added `beforeNonBreak` combinator. This allows you to include
14844 something conditionally on it being before a nonblank.
14845 Used for RST inline math.
14846 + Added `charWidth` function. All characters marked W or F in the unicode
14847 spec EastAsianWidth.txt get width 2.
14848 + Added `realLength`, based on `charWidth`. `realLength` is now
14849 used in calculating offsets.
14851 * New module `Text.Pandoc.Slides`, for common functions for breaking
14852 a document into slides.
14854 * Removed `Text.Pandoc.S5`, which is no longer needed.
14856 * Removed `Text.Pandoc.CharacterReferences`. Moved
14857 `characterReference` to `Text.Pandoc.Parsing`.
14858 `decodeCharacterReferences` is replaced by `fromEntities`
14859 in `Text.Pandoc.XML`.
14861 * Added `Text.Pandoc.ImageSize`. This is intened for use
14862 in `docx` and `odt` writers, so the size and dpi of images
14863 can be calculated.
14865 * Removed `writerAscii` in `WriterOptions`.
14867 * Added `writerHighlight` to `WriterOptions`.
14869 * Added `DZSlides` to `HTMLSlideVariant`.
14871 * `writeEPUB` has a new argument for font files to embed.
14873 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
14874 of whether we're parsing the position immediately after a regular
14875 (non-space, non-symbol) string, which is useful for distinguishing
14876 apostrophes from single quote starts.
14878 * `Text.Pandoc.Parsing`:
14880 + `escaped` now returns a `Char`.
14881 + Removed `charsInBalanced'`, added a character parser as
14882 a parameter of `charsInBalanced`. This is needed for
14883 proper handling of escapes, etc.
14884 + Added `withRaw`.
14886 * Added `toEntities` to `Text.Pandoc.XML`.
14888 * `Text.Pandoc.Readers.LaTeX`:
14890 + Export `handleIncludes`.
14891 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
14893 * Added `ToJsonFilter` class and `toJsonFilter` function to
14894 `Text.Pandoc`, deprecating the old `jsonFilter` function.
14896 * `Text.Pandoc.Highlighting`:
14898 + Removed `highlightHtml`, `defaultHighlightingCss`.
14899 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
14900 key functions from highlighting-kate.
14901 + Changed types of highlighting function. `highlight` returns a
14902 `Maybe`, not an `Either`.
14905## pandoc 1.8.2.1 (2011-08-01)
14907 * Adjusted Arbitrary instance to help avoid timeouts in tests.
14909 * Added `Tests.Writers.Markdown` to cabal file.
14911 * Relaxed version bounds on pandoc-types, test-framework.
14913## pandoc 1.8.2 (2011-07-30)
14915 * Added script to produce OS X package.
14917 * Made `templates` directory a git submodule. This should make it
14918 easier for people to revise their custom templates when the default
14919 templates change.
14921 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
14922 **Note:** If you have existing templates in `~/.pandoc/templates`, you
14923 must rename them to conform to the new scheme!
14925 * Default template improvements:
14927 + HTML: Display author and date after title.
14928 + HTML: Made table of contents more customizable. The container
14929 for the TOC is now in the template, so users can insert a header
14930 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
14931 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
14932 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
14933 hard-coding. If you want to put your slidy files in the slidy
14934 subdirectory, for example, you can do
14935 `pandoc -t slidy -V slidy-url=slidy -s`.
14936 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
14937 & writer). Closes #279.
14938 + LaTeX: Set `\emergencystretch` to prevent overfull lines.
14939 + LaTeX: Use different `hyperref` options for `xetex`, fixing
14940 problems with unicode bookmarks (thanks to CircleCode).
14941 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
14942 with `inputenc`. This covers fewer characters but is more
14943 robust with other packages, and `ucs` is unmaintained. Users
14944 who need better unicode support should use xelatex or lualatex.
14946 * If a template specified with `--template` is not found, look for it
14947 in `datadir`. Also, if no extension is provided, supply one based
14948 on the writer. So now you can put your `special.latex` template in
14949 `~/.pandoc/templates`, and use it from any directory via
14950 `pandoc -t latex --template special`.
14952 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
14954 * Fixed smart quotes bug, now handling `'...hi'` properly.
14956 * RST reader:
14958 + Partial support for labeled footnotes.
14959 + Improved accuracy of `simpleReferenceName` parser.
14961 * HTML reader:
14963 + Substitute correct unicode characters for
14964 characters in the 128..159 range, which are often found even in
14965 HTML that purports to be UTF-8.
14967 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
14968 to the title, after a colon and linebreak). Closes #280.
14970 * Leaner `reference.odt`.
14972 * Added unexported module `Text.Pandoc.MIME` for use in
14973 the ODT writer.
14975 * ODT writer: Construct `manifest.xml` based on archive contents.
14976 This fixes a bug in ODTs containing images. Recent versions of
14977 LibreOffice would reject these as corrupt, because `manifest.xml`
14978 did not contain a reference to the image files.
14980 * LaTeX writer:
14982 + Make verbatim environments flush to avoid spurious
14983 blank lines. Closes #277.
14984 + Use `\texttt` and escapes insntead of `\verb!...!`, which
14985 is too fragile (doesn't work in command arguments).
14986 + Use `\enquote{}` for quotes if the template includes
14987 the `csquotes` package. This provides better support for
14988 local quoting styles. (Thanks to Andreas Wagner for the idea.)
14990 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
14991 margin, preventing spurious blank lines.
14993 * Slidy writer:
14995 + Use non-minimized version of `slidy.css` with `--offline`
14996 option, so users can more easily edit it.
14997 + Also fixed a bug in the CSS that prevented proper centering
14998 of title (now reported and fixed upstream).
15000 * S5 writer:
15002 + Replaced `s5/default/slides.js.{comment,packed}` with
15003 new compressed `s5/default/slides.min.js`.
15004 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
15005 when `--offline` is specified. Using inline CSS didn't
15006 work with Chrome or Safari. This fixes offline
15007 S5 on those browsers.
15009 * HTML writer: Removed English title on footnote backlinks.
15010 This is incongrous in non-English documents.
15012 * Docbook writer:
15014 + Use CALS tables. (Some older docbook software does not work
15015 well with XHTML tables.) Closes #77.
15016 + Use `programlisting` tags (instead of `screen`) for code blocks.
15018 * `markdown2pdf`:
15020 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
15021 of `-interaction=batchmode`, which essentially just ignored errors,
15022 leading to bad results. Better to know when something is wrong.
15023 + Fixed issues with non-UTF-8 output of `pdflatex`.
15024 + Better error reporting.
15026 * `--mathjax` now takes an optional URL argument. If it is not
15027 provided, pandoc links directly to the (secure) mathjax CDN,
15028 as now recommended (thanks to dsanson).
15030 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
15031 since the LaTeX writer now produces a file that can be processed by
15032 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
15034 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
15035 to be used to create the PDF.
15038## pandoc 1.8.1.2 (2011-07-16)
15040 * Added `--epub-cover-image` option.
15042 * Documented `--biblatex` and `--natbib` options.
15044 * Allow `--section-divs` with slidy output. Resolves Issue #296.
15046 * Disallow notes within notes in reST and markdown.
15047 These previously caused infinite looping and stack overflows.
15048 For example:
15050 [^1]
15052 [^1]: See [^1]
15054 Note references are allowed in reST notes, so this isn't a full
15055 implementation of reST. That can come later. For now we need to
15056 prevent the stack overflows. Partially resolves Issue #297.
15058 * EPUB writer: Allow non-plain math methods.
15060 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
15061 `(@item1; @item2)` because the final paren was being parsed as part of
15062 the item key.
15064 * Changed URI parser so it doesn't include trailing punctuation.
15065 So, in RST, `http://google.com.` should be parsed as a link followed by a
15066 period. The parser is smart enough to recognize balanced parentheses, as
15067 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
15069 * Markdown+lhs reader: Require space after inverse bird tracks, so that
15070 HTML tags can be used freely at the left margin of a markdown+lhs document.
15071 Thanks to Conal Elliot for the suggestion.
15073 * Markdown reader: Fixed bug in footnote order (reported by CircleCode).
15075 * RST reader:
15076 + Fixed bug in in field lists with multi-line items at the
15077 end of the list.
15078 + Added parentheses to RST `specialChars`, so
15079 `(http://google.com)` will be parsed as a link in parens.
15080 Resolves Issue #291.
15081 + Allow `|` followed by newline in RST line block.
15083 * LaTeX reader:
15084 + Support `\dots`.
15085 + Gobble option & space after linebreak `\\[10pt]`.
15087 * Textile reader:
15088 + Make it possible to have colons after links. (qerub)
15089 + Make it possible to have colons after links. (Christoffer Sawicki)
15091 * HTML reader:
15092 + Skip spaces after `<b>`, `<emph>`, etc.
15093 + Handle tbody, thead in simple tables. Closes #274.
15094 + Implicit `Para`s instead of `Plains` in some contexts.
15096 * OpenDocument writer: Use special `First paragraph` style for
15097 first paragraph after most non-paragraph blocks. This allows users to
15098 specify e.g. that only paragraphs after the first paragraph of a block are
15099 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
15101 * LaTeX writer: use `deVerb` on table and picture captions.
15102 Otherwise LaTeX complains about `\verb` inside command argument.
15103 Thanks to bbanier for reporting the bug.
15105 * Markdown writer: Insert HTML comment btw list and indented code block.
15106 This prevents the code block from being interpreted as part of the list.
15108 * EPUB writer: Add a meta element specify the cover.
15109 Some EPUB e-readers, such as the Nook, require a meta element inside the
15110 OPF metadata block to ensure the cover image is properly displayed.
15111 (Kelsey Hightower)
15113 * HTML writer: Use embed tag for images with non-image extensions.
15114 (e.g. PDFs). Closes #264.
15116 * LaTeX writer: Improved tables.
15118 + More space between lines, top-align cells.
15119 + Use ctable package, which allows footnotes and
15120 provides additional options.
15121 + Made cell alignments work in multiline tables.
15122 + Closes #271, #272.
15124 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
15125 Also do this when copying image files into EPUBs and ODTs.
15126 Closes #263.
15128 * Changed to github issue tracker.
15130 * Added failing emph/strong markdown test case due to Perry Wagle.
15132 * Slidy improvements:
15133 + Updated to use Slidy2.
15134 + Fixed bug, unclosed div tag.
15135 + Added `duration` variable in template.
15136 Setting this activates the timer.
15137 + Use 'titlepage' instead of 'cover' for title div.
15140## pandoc 1.8.1.1 (2011-02-13)
15142 * `markdown2pdf`: Removed some debugging lines accidentally included
15143 in the 1.8.1 release. With those lines, the temp directory is created
15144 in the working directory, and it is not deleted. This fix restores
15145 the original behavior.
15147## pandoc 1.8.1 (2011-02-13)
15149 * Added `--ascii` option. Currently supported only in HTML writer,
15150 which it causes to use numerical entities instead of UTF-8.
15152 * EPUB writer: `--toc` now works to provide a table of contents
15153 at the beginning of each chapter.
15155 * LaTeX writer: Change figure defaults to `htbp`.
15156 This prevents "too many unprocessed floats." Resolves
15157 Issue #285.
15159 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
15160 base.
15162 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
15163 Tanimoto. Resolves Issue #286.
15165 * HTML writer: Put line breaks in section divs.
15167 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
15169## pandoc 1.8.0.3 (2011-02-05)
15171 * Fixed Source-repository stanza in cabal file.
15173## pandoc 1.8.0.2 (2011-02-05)
15175 * HTML writer:
15177 + Stringify alt text instead of converting to HTML.
15178 + Break lines after block elements, not inside tags.
15179 HTML output now closely resembles that of tidy. Resolves Issue #134.
15181 * Markdown reader: Fixed bug in footnote block parser (pointed out
15182 by Jesse Rosenthal). The problem arose when the blank line
15183 at the end of a footnote block contained indenting spaces.
15185 * Shared: Improved 'normalize' function so it normalizes Spaces too.
15186 In normal form, Space elements only occur to separate two non-Space
15187 elements. So, we never have [Space], or [, ..., Space].
15189 * Tests:
15191 + Improved Arbitrary instance.
15192 + Added timeout for test instances.
15194 * README:
15196 + Added section on four-space rule for lists. Resolves Issue #283.
15197 + Clarified optional arguments on math options.
15199 * markdown2pdf: Fixed bug with output file extensions.
15200 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
15201 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
15203## pandoc 1.8.0.1 (2011-01-31)
15205 * Revised Interact.hs so that it works with the CPP macros
15206 in the UTF8 module.
15208 * Revised Setup.hs so that we don't call MakeManPage.hs unless
15209 the man pages are out of date.
15211## pandoc 1.8 (2011-01-30)
15213### New features
15215 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
15216 You can now write, for example,
15218 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
15220 and, when you process your document using `pandoc`, specifying
15221 a citation style using `--csl` and a bibliography using `--bibliography`,
15222 the citation will be replaced by an appropriately formatted
15223 citation, and a list of works cited will be added to the end
15224 of the document.
15226 This means that you can switch effortlessly between different citation
15227 and bibliography styles, including footnote, numerical, and author-date
15228 formats. The bibliography can be in any of the following formats: MODS,
15229 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
15230 See the README for further details.
15232 Citations are supported in the markdown reader, using a special
15233 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
15234 (Thanks to Nathan Gass for the natbib and biblatex support.)
15236 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
15237 the `textile` reader, an almost complete implementation of the textile
15238 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
15239 Resolves Issue #51.
15241 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
15243 * New `json` reader and writer, for reading and writing a JSON
15244 representation of the native Pandoc AST. These are much faster
15245 than the `native` reader and writer, and should be used for
15246 serializing Pandoc to text. To convert between the JSON representation
15247 and native Pandoc, use `encodeJSON` and `decodeJSON` from
15248 `Text.JSON.Generic`.
15250 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
15251 to write scripts that transform a JSON-encoded pandoc document.
15252 For example:
15254 -- removelinks.hs - removes links from document
15255 import Text.Pandoc
15256 main = interact $ jsonFilter $ bottomUp removeLink
15257 where removeLink (Link xs _) = Emph xs
15258 removeLink x = x
15260 To use this to remove links while translating markdown to LaTeX:
15262 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
15264 * Attributes are now allowed in inline `Code` elements, for example:
15266 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
15268 The attribute syntax is the same as for delimited code blocks.
15269 `Code` inline has an extra argument place for attributes, just like
15270 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
15271 is compiled with highlighting support. Resolves Issue #119.
15273 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
15274 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
15275 scripts to transform Pandoc documents. Scripts can now change
15276 how each element is rendered in each output format.
15278 * You can now define LaTeX macros in markdown documents, and pandoc
15279 will apply them to TeX math. For example,
15281 \newcommand{\plus}[2]{#1 + #2}
15282 $\plus{3}{4}$
15284 yields `3+4`. Since the macros are applied in the reader, they
15285 will work in every output format, not just LaTeX.
15287 * LaTeX macros can also be used in LaTeX documents (both in math
15288 and in non-math contexts).
15290 * A new `--mathjax` option has been added for displaying
15291 math in HTML using MathJax. Resolves issue #259.
15293 * Footnotes are now supported in the RST reader. (Note, however,
15294 that unlike docutils, pandoc ignores the numeral or symbol used in
15295 the note; footnotes are put in an auto-numbered ordered list.)
15296 Resolves Issue #258.
15298 * A new `--normalize` option causes pandoc to normalize the AST
15299 before writing the document. This means that, for example,
15300 `*hi**there*` will be rendered as `<em>hithere</em>`
15301 instead of `<em>hi</em><em>there</em>`. This is not the default,
15302 because there is a significant performance penalty.
15304 * A new `--chapters` command-line option causes headers
15305 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
15306 Resolves Issue #265.
15308 * In DocBook output, `<chapter>` is now used for top-level
15309 headers if the template contains `<book>`. Resolves Issue #265.
15311 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
15312 the LaTeX writer to use the listings package for code blocks.
15313 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
15314 Millon for the markdown2pdf patch.)
15316 * `markdown2pdf` now supports `--data-dir`.
15318 * URLs in autolinks now have class "url" so they can be styled.
15320 * Improved prettyprinting in most formats. Lines will be wrapped
15321 more evenly and duplicate blank lines avoided.
15323 * New `--columns` command-line option sets the column width for
15324 line wrapping and relative width calculations for tables.
15326 * Made `--smart` work in HTML, RST, and Textile readers, as well
15327 as markdown.
15329 * Added `--html5` option for HTML5 output.
15331 * Added support for listings package in LaTeX reader
15332 (Puneeth Chaganti).
15334 * Added support for simple tables in the LaTeX reader.
15336 * Added support for simple tables in the HTML reader.
15338 * Significant performance improvements in many readers and writers.
15340### API and program changes
15342 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
15343 auxiliary package, `pandoc-types`. This will make it possible for other
15344 programs to supply output in Pandoc format, without depending on the whole
15345 pandoc package.
15347 * Added `Attr` field to `Code`.
15349 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
15350 `RawBlock` and `RawInline`.
15352 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
15353 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
15354 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
15356 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
15358 * `Text.Pandoc` now exports association lists `readers` and `writers`.
15360 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
15361 `readNative` can now read full pandoc documents, block lists, blocks,
15362 inline lists, or inlines. It will interpret `Str "hi"`
15363 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
15364 This should make testing easier.
15366 * Removed deprecated `-C/--custom-header` option.
15367 Use `--template` instead.
15369 * `--biblio-file` has been replaced by `--bibliography`.
15370 `--biblio-format` has been removed; pandoc now guesses the format
15371 from the file extension (see README).
15373 * pandoc will treat an argument as a URI only if it has an
15374 `http(s)` scheme. Previously pandoc would treat some
15375 Windows pathnames beginning with `C:/` as URIs.
15377 * The `--sanitize-html` option and the `stateSanitize` field in
15378 `ParserState` have been removed. Sanitization is better done in the
15379 resulting HTML using `xss-sanitize`, which is based on pandoc's
15380 sanitization, but improved.
15382 * pandoc now adds a newline to the end of its output in fragment
15383 mode (= not `--standalone`).
15385 * Added support for `lang` in `html` tag in the HTML template,
15386 so you can do `pandoc -s -V lang=es`, for example.
15388 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
15389 a boolean argument that selects between "inline" and
15390 "block" HTML.
15392 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
15393 Images are embedded in RTF output when possible (png, jpeg).
15394 Resolves Issue #275.
15396 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
15397 `pretty` package. Changed all writers that used
15398 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
15400 * Rewrote `writeNative` using the new prettyprinting module. It is
15401 now much faster. The output has been made more consistent and compressed.
15402 `writeNative` is also now sensitive to writerStandalone`, and will simply
15403 `print a block list if writerStandalone` is False.
15405 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
15406 blocks and concatenate them, so a separate module is no longer needed.
15408 * `Text.Pandoc.Shared`:
15410 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
15411 `WriterOptions`.
15412 + Added `normalize`.
15413 + Removed unneeded prettyprinting functions:
15414 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
15415 `BlockWrapper`, `wrappedBlocksToDoc`.
15416 + Made `splitBy` take a test instead of an element.
15417 + Added `findDataFile`, refactored `readDataFile`.
15418 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
15419 + Fixed `inlineListToIdentifier` to treat `\160` as ' '.
15421 * `Text.Pandoc.Readers.HTML`:
15423 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
15424 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
15425 `htmlBlockElement`, `htmlComment`
15426 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
15427 `isTextTag`
15429 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
15430 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
15431 an inline parser.
15433 * Ellipses are no longer allowed to contain spaces.
15434 Previously we allowed '. . .', ' . . . ', etc. This caused
15435 too many complications, and removed author's flexibility in
15436 combining ellipses with spaces and periods.
15438 * Allow linebreaks in URLs (treat as spaces). Also, a string of
15439 consecutive spaces or tabs is now parsed as a single space. If you have
15440 multiple spaces in your URL, use `%20%20`.
15442 * `Text.Pandoc.Parsing`:
15444 + Removed `refsMatch`.
15445 + Hid `Key` constructor.
15446 + Removed custom `Ord` and `Eq` instances for `Key`.
15447 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
15448 + Generalized type on `readWith`.
15450 * Small change in calculation of relative widths of table columns.
15451 If the size of the header > the specified column width, use
15452 the header size as 100% for purposes of calculating
15453 relative widths of columns.
15455 * Markdown writer now uses some pandoc-specific features when `--strict`
15456 is not specified: `\` newline is used for a hard linebreak instead of
15457 two spaces then a newline. And delimited code blocks are used when
15458 there are attributes.
15460 * HTML writer: improved gladTeX output by setting ENV appropriately
15461 for display or inline math (Jonathan Daugherty).
15463 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
15465 * LaTeX reader:
15467 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
15468 + `\index{}` commands are skipped.
15470 * Added `fontsize` variable to default LaTeX template.
15471 This makes it easy to set the font size using `markdown2pdf`:
15472 `markdown2pdf -V fontsize=12pt input.txt`.
15474 * Fixed problem with strikeout in LaTeX headers when using
15475 hyperref, by adding a command to the default LaTeX template
15476 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
15477 for the fix.
15479 * The `COLUMNS` environment variable no longer has any effect.
15481### Under-the-hood improvements
15483 * Pandoc now compiles with GHC 7. (This alone leads to a
15484 significant performance improvement, 15-20%.)
15486 * Completely rewrote HTML reader using tagsoup as a lexer. The
15487 new reader is faster and more accurate. Unlike the
15488 old reader, it does not get bogged down on some input
15489 (Issues #277, 255). And it handles namespaces in tags
15490 (Issue #274).
15492 * Replaced `escapeStringAsXML` with a faster version.
15494 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
15495 for a significant performance boost.
15497 * Improved performance of all readers by rewriting parsers.
15499 * Simplified Text.Pandoc.CharacterReferences by using
15500 entity lookup functions from TagSoup.
15502 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
15503 from `System.IO` if base >= 4.2. This gives support for
15504 windows line endings on windows.
15506 * Remove duplications in documentation by generating the
15507 pandoc man page from README, using `MakeManPage.hs`.
15509 * README now includes a full description of markdown syntax,
15510 including non-pandoc-specific parts. A new `pandoc_markdown`
15511 man page is extracted from this, so you can look up markdown
15512 syntax by doing `man pandoc_markdown`.
15514 * Completely revised test framework (with help from Nathan Gass).
15515 The new test framework is built when the `tests` Cabal flag is set. It
15516 includes the old integration tests, but also some new unit and quickcheck
15517 tests. Test output has been much improved, and you can now specify a glob
15518 pattern after `cabal test` to indicate which tests should be run;
15519 for example `cabal test citations` will run all the citation tests.
15521 * Added a shell script, `stripansi.sh`, for filtering ANSI control
15522 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
15524 * Added `Interact.hs` to make it easier to use ghci while developing.
15525 `Interact.hs` loads `ghci` from the `src` directory, specifying
15526 all the options needed to load pandoc modules (including
15527 specific package dependencies, which it gets by parsing
15528 dist/setup-config).
15530 * Added `Benchmark.hs`, testing all readers + writers using criterion.
15532 * Added `stats.sh`, to make it easier to collect and archive
15533 benchmark and lines-of-code stats.
15535 * Added upper bounds to all cabal dependencies.
15537 * Include man pages in extra-source-files. This allows users to
15538 install pandoc from the tarball without needing to build the man
15539 pages.
15541### Bug fixes
15543 * Filenames are encoded as UTF8. Resolves Issue #252.
15545 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
15546 were just parsed literally, leading to problems in some output formats.
15547 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
15548 Resolves Issue #270.
15550 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
15551 Spaces at end of line were not being stripped properly,
15552 resulting in unintended LineBreaks.
15554 * Markdown reader:
15556 + Allow HTML comments as inline elements in markdown.
15557 So, `aaa <!-- comment --> bbb` can be a single paragraph.
15558 + Fixed superscripts with links: `^[link](/foo)^` gets
15559 recognized as a superscripted link, not an inline note followed by
15560 garbage.
15561 + Fixed regression, making markdown reference keys case-insensitive again.
15562 Resolves Issue #272.
15563 + Properly handle abbreviations (like `Mr.`) at the end of a line.
15564 + Better handling of intraword underscores, avoiding exponential
15565 slowdowns in some cases. Resolves Issue #182.
15566 + Fixed bug in alignments in tables with blank rows in the header.
15568 * RST reader:
15570 + Field lists now allow spaces in field names, and
15571 block content in field values. (Thanks to Lachlan Musicman
15572 for pointing out the bug.)
15573 + Definition list items are now always `Para` instead of
15574 `Plain`, matching behavior of `rst2xml.py`.
15575 + In image blocks, the description is parsed properly and
15576 used for the alt attribute, not also the title.
15577 + Skip blank lines at beginning of file. Resolves
15578 Debian #611328.
15580 * LaTeX reader:
15582 + Improved parsing of preamble.
15583 Previously you'd get unexpected behavior on a document that
15584 contained `\begin{document}` in, say, a verbatim block.
15585 + Allow spaces between `\begin` or `\end` and `{`.
15586 + Support `\L` and `\l`.
15587 + Skip comments inside paragraphs.
15589 * LaTeX writer:
15591 + Escape strings in `\href{..}`.
15592 + In nonsimple tables, put cells in `\parbox`.
15594 * OpenDocument writer: don't print raw TeX.
15596 * Markdown writer:
15598 + Fixed bug in `Image`. URI was getting unescaped twice!
15599 + Avoid printing extra blank lines at the end if there are
15600 no notes or references.
15602 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
15603 This avoids unwanted interpretation as an optional argument.
15605 * ConTeXt writer: Fixed problem with inline code. Previously
15606 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
15607 If it contains neither, use `\type{}`; otherwise use `\mono{}`
15608 with an escaped version of the string.
15610 * `:` now allowed in HTML tags. Resolves Issue #274.
15614## pandoc 1.6 (2010-07-24)
15616+ New EPUB and HTML Slidy writers. (Issue #122)
15618 - [EPUB] is a standard ebook format, used in Apple's iBooks for
15619 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
15620 reader, and many other devices, and by online ebook readers like
15621 [bookworm]. (Amazon's Kindle uses a different format, MobiPocket,
15622 but EPUB books can easily be converted to Kindle format.) Now you
15623 can write your book in markdown and produce an ebook with a single
15624 command! I've put up a short [tutorial here].
15625 - [Slidy], like S5, is a system for producing HTML+javascript slide shows.
15627+ All input is assumed to be UTF-8, no matter what the locale and ghc
15628 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
15629 Also, a BOM, if present, is stripped from the input.
15631+ Markdown now supports grid tables, whose cells can contain
15632 arbitrary block elements. (Issue #43)
15634+ Sequentially numbered example lists in markdown with `@` marker.
15636+ Markdown table captions can begin with a bare colon and no longer need
15637 to include the English word "table." Also, a caption can now occur
15638 either before or after the table. (Issue #227)
15640+ New command-line options:
15642 - `--epub-stylesheet` allows you to specify a CSS file that will
15643 be used to style your ebook.
15644 - `--epub-metadata` allows you to specify metadata for the ebook.
15645 - `--offline` causes the generated HTML slideshow to include all
15646 needed scripts and stylesheets.
15647 - `--webtex` causes TeX math to be converted to images using the
15648 Google Charts API (unless a different URL is specified).
15649 - `--section-divs` causes div tags to be added around each section
15650 in an HTML document. (Issue #230, 239)
15652+ Default behavior of S5 writer in standalone mode has changed:
15653 previously, it would include all needed scripts and stylesheets
15654 in the generated HTML; now, only links are included unless
15655 the `--offline` option is used.
15657+ Default behavior of HTML writer has changed. Between 1.2 and 1.5,
15658 pandoc would enclose sections in div tags with identifiers on the
15659 div tags, so that the sections can be manipulated in javascript.
15660 This caused undesirable interactions with raw HTML div tags. So,
15661 starting with 1.6, the default is to put the identifiers directly
15662 on the header tags, and not to include the divs. The `--section-divs`
15663 option selects the 1.2-1.5 behavior.
15665+ API changes:
15667 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
15668 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
15669 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
15670 `writerIncludeAfter`.
15671 - Added `headerShift` to `Text.Pandoc.Shared`.
15672 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
15673 to a new module, `Text.Pandoc.Parsing`.
15674 - Added `stateHasChapters` to `ParserState`.
15675 - Added `HTMLSlideVariant`.
15676 - Made `KeyTable` a map instead of an association list.
15677 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`, `docDate`).
15678 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord` instances.
15679 - Reference keys now have a type of their own (`Key`), with its
15680 own `Ord` instance for case-insensitive comparison.
15681 - Added `Text.Pandoc.Writers.EPUB`.
15682 - Added `Text.Pandoc.UUID`.
15683 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
15684 Removed `saveOpenDocumentAsODT`, added `writeODT`.
15685 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
15686 Removed `prettyPandoc`.
15687 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
15688 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
15689 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
15690 To write S5, you now use `writeHtml` with `writerSlideVariant`
15691 set to `S5Slides` or `SlidySlides`.
15693+ Template changes. If you use custom templates, please update them,
15694 particularly if you use syntax highlighting with pandoc. The old HTML
15695 templates hardcoded highlighting CSS that will no longer work with
15696 the most recent version of highlighting-kate.
15698 - HTML template: avoid empty meta tag if no date.
15699 - HTML template: Use default highlighting CSS from highlighting-kate
15700 instead of hard-coding the CSS into the template.
15701 - HTML template: insert-before text goes before the title, and
15702 immediately after the `<body>` tag, as documented. (Issue #241)
15703 - Added slidy and s5 templates.
15704 - Added amssymb to preamble of latex template. (github Issue 1)
15706+ Removed excess newlines at the end of output. Note: because output
15707 will not contain an extra newline, you may need to make adjustments
15708 if you are inserting pandoc's output into a template.
15710+ In S5 and slidy, horizontal rules now cause a new slide, so you
15711 are no longer limited to one slide per section.
15713+ Improved handling of code in man writer. Inline code is now monospace,
15714 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
15716+ HTML reader parses `<tt>` as Code. (Issue #247)
15718+ html+lhs output now contains bird tracks, even when compiled without
15719 highlighting support. (Issue #242)
15721+ Colons are now no longer allowed in autogenerated XML/HTML identifiers,
15722 since they have a special meaning in XML.
15724+ Code improvements in ODT writer. Remote images are now replaced with
15725 their alt text rather than a broken link.
15727+ LaTeX reader improvements:
15729 - Made latex `\section`, `\chapter` parsers more forgiving of whitespace.
15730 - Parse `\chapter{}` in latex.
15731 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
15732 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
15733 for use in markdown reader.
15734 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
15735 in markdown document.
15737+ LaTeX writer: images are automatically shrunk if they would extend
15738 beyond the page margin.
15740+ Plain, markdown, RST writers now use unicode for smart punctuation.
15742+ Man writer converts math to unicode when possible, as in other writers.
15744+ `markdown2pdf` can now recognize citeproc options.
15746+ Command-line arguments are converted to UTF-8. (Issue #234)
15748+ `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
15749 This allows it to handle a wider range of formulas. Also, if a formula
15750 cannot be converted, it is left in raw TeX; formulas are no longer
15751 partially converted.
15753+ Unicode curly quotes are left alone when parsing smart quotes. (Issue #143)
15755+ Cabal file changes:
15757 - Removed parsec < 3 restriction.
15758 - Added 'threaded' flag for architectures where GHC lacks a threaded
15759 runtime.
15760 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
15761 - Require highlighting-kate 0.2.7.
15763+ Use explicit imports from `Data.Generics`. Otherwise we have a
15764 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
15766+ New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
15768[EPUB]: http://en.wikipedia.org/wiki/EPUB
15769[Slidy]: http://www.w3.org/Talks/Tools/Slidy
15770[bookworm]: http://bookworm.oreilly.com/
15771[tutorial here]: http://johnmacfarlane.net/pandoc/epub.html
15773## pandoc 1.5.1.1 (2010-03-29)
15775+ Fixed header identifiers (uniqueIdent in Shared) so they
15776 work as advertized in README and are guaranteed to be
15777 valid XHTML names. Thanks to Xyne for reporting the bug.
15779## pandoc 1.5.1 (2010-03-23)
15781+ Fixed treatment of unicode characters in URIs.
15782+ Revised Setup.hs so it works with debian's build process.
15783+ Fixed bug in OpenDocument writer that led to invalid
15784 XML for some input.
15786## pandoc 1.5.0.1 (2010-03-21)
15788+ HTML writer: Fixed error in math writer (with MathML option)
15789 that caused an infinite loop for unparsable MathML.
15791## pandoc 1.5 (2010-03-20)
15793+ Moved repository to [github](http://github.com/jgm/pandoc).
15794+ New `--mathml` option, for display of TeX math as MathML.
15795+ New `--data-dir` option, allowing users to specify a data
15796 directory other than `~/.pandoc`. Files placed in this directory
15797 will be used instead of system defaults.
15798+ New `--base-header-level` option. For example, `--base-header-level=2`
15799 changes level 1 headers to level 2, level 2 to level 3, etc.
15800+ New 'plain' output format: plain text without pictures, hyperlinks,
15801 inline formatting, or anything else that looks even vaguely
15802 markupish.
15803+ Titles and authors in title blocks can now span multiple lines,
15804 as long as the continuation lines begin with a space character.
15805+ When given an absolute URI as a parameter, pandoc will fetch
15806 the content via HTTP.
15807+ The HTML reader has been made much more forgiving. It no
15808 longer requires well-formed xhtml as input.
15809+ `html2markdown` has been removed; it is no longer necessary, given
15810 the last two changes. `pandoc` can be used by itself to convert
15811 web pages to markdown or other formats.
15812+ `hsmarkdown` has also been removed. Use `pandoc --strict` instead.
15813 Or symlink pandoc's executable to `hsmarkdown`; `pandoc` will then
15814 behave like `hsmarkdown` used to.
15815+ An image in a paragraph by itself is now rendered as a figure
15816 in most writers, with the alt text as the caption.
15817+ Incomplete support for reST tables (simple and grid). Thanks to
15818 Eric Kow. Colspans and rowspans not yet supported.
15819+ In mediawiki, links with relative URLs are now formatted as wikilinks.
15820 Also, headers have been promoted: `= head =` is now level 1 instead of
15821 level 2.
15822+ The markdown reader now handles "inverse bird tracks" when parsing
15823 literate haskell. These are used for haskell example code that
15824 is not part of the literate program.
15825+ The `-B` and `-A` options now imply `-s` and no longer work in
15826 fragment mode.
15827+ Headerless tables are now printed properly in all writers.
15828 In addition, tbody, thead, and cols are used in HTML and Docbook
15829 tables.
15830+ Improved build system; removed obsolete Makefile.
15831+ In LaTeX writer, `\chapter` is now used instead of `\section`.
15832 when the documentclass is book, report, or memoir.
15833+ Many small bug fixes. See [changelog] for details.
15835## pandoc 1.4 (2010-01-02)
15837+ New template system replaces old headers, giving users much
15838 more control over pandoc's output in `--standalone` mode.
15839 Added `--template` and `--variable` options. The `--print-default-header`
15840 option is now `--print-default-template`. See README under
15841 "Templates" for details.
15842+ The old `--custom-header` option should still work, but it has
15843 been deprecated.
15844+ New `--reference-odt` option allows users to customize styles
15845 in ODT output.
15846+ Users may now put custom templates, s5 styles, and a reference
15847 ODT in the `~/.pandoc` directory, where they will override system
15848 defaults. See README for details.
15849+ Unicode is now used whenever possible in HTML and XML output. Entities
15850 are used only where necessary (`&gt;`, `&lt;`, `&quot;`, `&amp;`).
15851+ Authors and dates may now include formatting and notes.
15852+ Added `--xetex` option for `pandoc` and `markdown2pdf`.
15853+ Windows installer now includes highlighting support and
15854 `markdown2pdf` and `hsmarkdown` wrappers.
15855+ Pandoc no longer requires Template Haskell, which should make
15856 it more portable.
15857+ Pandoc can now be built on GHC 6.12, as well as earlier versions.
15858+ See README for other small improvements and bug fixes.
15860## pandoc 1.3 (2009-12-10)
15862+ Added `--id-prefix` option to help prevent duplicate
15863 identifiers when you're generating HTML fragments.
15864+ Added `--indented-code-classes` option, which specifies
15865 default highlighting syntax for indented code blocks.
15866+ `--number-sections` now affects HTML output.
15867+ Improved syntax for markdown definition lists.
15868+ Better looking simple tables.
15869+ Markdown tables without headers are now possible.
15870+ New hard line break syntax: backslash followed by newline.
15871+ Improved performance of markdown reader by ~10% by eliminating the
15872 need for a separate parsing pass for notes.
15873+ Improved syntax highlighting for literate Haskell.
15874+ Support for "..code-block" directive in RST reader.
15875+ Windows binary now includes highlighting support.
15876+ Many bug fixes and small improvements. See [changelog]
15877 for details.
15879## pandoc 1.2.1 (2009-07-18)
15881+ Improved the efficiency of the markdown reader's
15882 abbreviation parsing (should give a big performance
15883 boost with `--smart`).
15884+ HTML writer now wraps sections in divs with unique
15885 identifiers, for easier manipulation.
15886+ Improved LaTeX reader's coverage of math modes.
15887+ Added a portable Haskell version of markdown2pdf (thanks
15888 to Paolo Tanimoto).
15889+ Made `--strict` compatible with `--standalone` and `--toc.`
15890+ Many other small improvements and bug fixes.
15891 See [changelog] for details.
15893## pandoc 1.2 (2009-03-01)
15895+ Added support for literate Haskell. lhs support is triggered by
15896 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
15897 Haskell LaTeX. '.lhs' files are treated by default as literate
15898 markdown.
15899+ Added `--email-obfuscation` option.
15900+ Brought citeproc support up to date for citeproc-hs-0.2.
15901+ Many bugs fixed. See [changelog] for details.
15903## pandoc 1.1 (2008-11-06)
15905+ New `--jsmath` option supporting use of pandoc with [jsMath].
15906+ Classes on HTML table output for better CSS styling.
15907+ Windows installer no longer requires admin privileges.
15908+ Many bugs fixed. See [changelog] for details.
15910## pandoc 1.0 (2008-09-13)
15912+ New writers for MediaWiki, GNU Texinfo (thanks to Peter Wang),
15913 OpenDocument XML (thanks to Andrea Rossato), and ODT (OpenOffice
15914 document).
15915+ New [delimited code blocks](README.html#delimited-code-blocks),
15916 with optional syntax highlighting.
15917+ Reorganized build system: pandoc can now be built using standard
15918 Cabal tools. It can be compiled on Windows without Cygwin.
15919 The tests can also be run without perl or unix tools.
15920+ LaTeXMathML replaces ASCIIMathML for rendering math in HTML.
15921+ Support for "displayed" math.
15922+ Common abbreviations are now handled more intelligently, with
15923 a non-breaking space (and not a sentence-ending space) after
15924 the period.
15925+ Code is -Wall clean.
15926+ Many bug fixes and small improvements. See [changelog] for
15927 full details.
15929## pandoc 0.46 (2008-01-08)
15931+ Added a `--sanitize-html` option (and a corresponding parameter
15932 in `ParserState` for those using the pandoc libraries in programs).
15933 This option causes pandoc to sanitize HTML (in HTML or Markdown
15934 input) using a whitelist method. Possibly harmful HTML elements
15935 are replaced with HTML comments. This should be useful in the
15936 context of web applications, where pandoc may be used to convert
15937 user input into HTML.
15938+ Made -H, -A, and -B options cumulative: if they are specified
15939 multiple times, multiple files will be included.
15940+ Many bug fixes and small improvements. See [changelog] for full
15941 details.
15943## pandoc 0.45 (2007-12-09)
15945+ Many bug fixes and structural improvements. See [changelog] for
15946 full details.
15947+ Improved treatment of math. Math is now rendered using unicode
15948 by default in HTML, RTF, and DocBook output. For more accurate
15949 display of math in HTML, `--gladtex`, `--mimetex`, and `--asciimathml`
15950 options are provided. See the [User's Guide](README.html#math) for
15951 details.
15952+ Removed support for box-style block quotes in markdown.
15953+ More idiomatic ConTeXt output.
15954+ Text wrapping in ConTeXt and LaTeX output.
15955+ Pandoc now correctly handles all standard line endings
15956 (CR, LF, CRLF).
15957+ New `--no-wrap` option that disables line wrapping and minimizes
15958 whitespace in HTML output.
15959+ Build process is now compatible with both GHC 6.8 and GHC 6.6.
15960 GHC and GHC_PKG environment variables may be used to specify
15961 which version of the compiler to use, when multiple versions are
15962 installed.
15964## pandoc 0.44 (2007-09-03)
15966 [ John MacFarlane ]
15968 * Fixed bug in HTML writer: when --toc was used, anchors were put around
15969 headers, which is invalid XHTML (block content within inline element).
15970 Now the anchors are put inside the header tags. Resolves Issue #23.
15972 * Added xmlns attribute to html element in html writer tests.
15973 This attribute is added by more recent versions of the
15974 xhtml library (>= 3000), and is required for valid XHTML.
15976 [ Recai Oktaş ]
15978 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
15979 command instead of 'runhaskell', which, on some platforms (such as s390,
15980 alpha, m68k), throws the following error:
15982 runhaskell Setup.hs configure --prefix=/usr
15983 ghc-6.6.1: not built for interactive use
15985 This causes a serious FTBFS bug. Closes: #440668.
15987## pandoc 0.43 (2007-09-02)
15989 [ John MacFarlane ]
15991 * The focus of this release is performance. The markdown parser
15992 is about five times faster than in 0.42, based on benchmarks
15993 with the TextMate manual.
15995 * Main.hs: Replaced CRFilter and tabFilter with single function
15996 tabFilter, which operates on the whole string rather than breaking
15997 it into lines, and handles dos-style line-endings as well as tabs.
15999 * Added separate LaTeX reader and native reader tests; removed
16000 round-trip tests.
16002 * Text.Pandoc.Shared:
16004 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
16005 + General code cleanup (to elimante warnings when compiling with -Wall.)
16006 + Added 'wrapped' function, which helps wrap text into paragraphs,
16007 using the prettyprinting library.
16008 + Rewrote charsInBalanced and charsInBalanced'.
16009 - Documented restriction: open and close must be distinct characters.
16010 - Rearranged options for greater efficiency.
16011 - Bug fix: Changed inner call to charsInBalanced inside
16012 charsInBalanced' to charsInBalanced'.
16013 + anyLine now requires that the line end with a newline (not eof).
16014 This is a harmless assumption, since we always add newlines to the
16015 end of a block before parsing with anyLine, and it yields a 10% speed
16016 boost.
16017 + Removed unnecessary 'try' in anyLine.
16018 + Removed unneeded 'try' from romanNumeral parser.
16019 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
16020 + Removed unneeded 'try' in parseFromString.
16021 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
16022 like 'string'.)
16023 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
16024 'try' is not automatically applied to the 'end' parser. Added
16025 'try' in calls to 'enclosed' where needed. Slight speed increase.
16027 * Writers:
16029 + Replaced individual wrapping routines in RST, Man, and Markdown
16030 writers with 'wrapped' from Text.Pandoc.Shared.
16031 + Rewrote LaTeX writer to use the prettyprinting library,
16032 so we get word wrapping, etc.
16033 + Modified latex writer tests for new latex writer using prettyprinter.
16034 + Fixed bug in LaTeX writer: autolinks would not cause
16035 `\usepackage{url}` to be put in the document header. Also, changes
16036 to state in enumerated list items would be overwritten.
16037 + In Markdown writer, escape paragraphs that begin with ordered list
16038 markers, so they don't get interpreted as ordered lists.
16040 * Text.Pandoc.Reades.LaTeX:
16042 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
16043 numeral after "enum" in "setcounter" would consist entirely of
16044 "i"s. 'enumiv' is legitimate.
16045 + LaTeX command and environment names can't contain numbers.
16046 + Rearranged order of parsers in inline for slight speed improvement.
16047 + Added '`' to special characters and 'unescapedChar'.
16049 * Text.Pandoc.Readers.RST:
16051 + Removed unneeded try's in RST reader; also minor code cleanup.
16052 + Removed tabchar.
16053 + Rearranged parsers in inline (doubled speed).
16055 * Text.Pandoc.Readers.Markdown:
16057 + Skip notes parsing if running in strict mode. (This yields a nice
16058 speed improvement in strict mode.)
16059 + Simplify autolink parsing code, using Network.URI to test for
16060 URIs. Added dependency on network library to debian/control and
16061 pandoc.cabal.
16062 + More perspicuous definition of nonindentSpaces.
16063 + Removed unneeded 'try' in 'rawLine'.
16064 + Combined linebreak and whitespace into a new whitespace parser, to
16065 avoid unnecessary reparsing of space characters.
16066 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
16067 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
16068 + Use lookAhead in parsers for setext headers and definition lists
16069 to see if the next line begins appropriately; if not, don't waste
16070 any more time parsing.
16071 + Don't require blank lines after code block. (It's sufficient to
16072 end code block with a nonindented line.)
16073 + Changed definition of 'emph': italics with '_' must not
16074 be followed by an alphanumeric character. This is to help
16075 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
16076 `[LC<em>TYPE]:my</em>type`.
16077 + Improved Markdown.pl-compatibility in referenceLink: the two parts
16078 of a reference-style link may be separated by one space, but not
16079 more... [a] [link], [not] [a link].
16080 + Fixed markdown inline code parsing so it better accords with
16081 Markdown.pl: the marker for the end of the code section is a clump
16082 of the same number of `'s with which the section began, followed
16083 by a non-` character. So, for example,
16084 ` h ``` i ` -> `<code>h ``` i</code>`.
16085 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
16086 rules are slightly different.
16087 + Rewrote 'para' for greater efficiency.
16088 + Rewrote link parsers for greater efficiency.
16089 + Removed redundant 'referenceLink' in definition of inline (it's
16090 already in 'link').
16091 + Refactored escapeChar so it doesn't need 'try'.
16092 + Refactored hrule for performance in Markdown reader.
16093 + More intelligent rearranging of 'inline' so that most frequently
16094 used parsers are tried first.
16095 + Removed tabchar parser, as whitespace handles tabs anyway.
16097 * Text.Pandoc.CharacterReferences:
16099 + Refactored.
16100 + Removed unnecessary 'try's for a speed improvement.
16101 + Removed unnecessary '&' and ';' from the entity table.
16103 * Build process:
16105 + Makefile: Get VERSION from cabal file, not Main.hs.
16106 + Modified MacPorts Portfile:
16107 - Depend on haddock
16108 - Build and install libraries and library documentation in
16109 addition to pandoc executable
16110 - Added template item for md5 sum in Portfile.in.
16111 - Incorporated changes from MacPorts repository (r28278).
16112 + FreeBSD port: Don't try to generate distinfo in Makefile.
16113 It can be made using 'make makesum' in FreeBSD.
16114 + Make both freebsd and macports targets depend on tarball.
16116 * Website and documentation:
16118 + Updated INSTALL instructions.
16119 + Added pandocwiki demo to website.
16120 + Removed local references to Portfile, since pandoc is now in the
16121 MacPorts repository.
16123## pandoc 0.42 (2007-08-26)
16125 [ John MacFarlane ]
16127 * Main.hs: Use utf8 conversion on the extra files loaded with
16128 the -H, -C, -B, and -A options. This fixes problems with unicode
16129 characters in these files.
16131 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
16132 Text.Pandoc.Readers.HTML and without it we get a linking error when
16133 using the library.
16135 * Markdown reader:
16137 + Added new rule for enhanced markdown ordered lists: if the list
16138 marker is a capital letter followed by a period (including a
16139 single-letter capital roman numeral), then it must be followed by
16140 at least two spaces. The point of this is to avoid accidentally
16141 treating people's initials as list markers: a paragraph might begin,
16142 "B. Russell was an English philosopher," and this shouldn't be
16143 treated as a list. Documented change in README.
16144 + Blocks that start with "p. " and a digit are no longer treated
16145 as ordered lists (it's a page number).
16146 + Added a needed 'try' to listItem.
16147 + Removed check for a following setext header in endline.
16148 A full test is too inefficient (doubles benchmark time), and the
16149 substitute we had before is not 100% accurate.
16150 + Don't use Code elements for autolinks if --strict specified.
16152 * LaTeX writer: When a footnote ends with a Verbatim environment, the
16153 close } of the footnote cannot occur on the same line or an error occurs.
16154 Fixed this by adding a newline before the closing } of every footnote.
16156 * HTML writer:
16157 + Removed incorrect "{}" around style information in HTML tables.
16158 Column widths now work properly in HTML.
16159 + If --strict option is specified (and --toc is not), don't include
16160 identifiers in headers, for better Markdown compatibility.
16162 * Build process:
16164 + Separated $(web_dest) and website targets.
16165 + In website, index.txt is now constructed from template index.txt.in.
16166 + Added freebsd target to Markefile. This creates the freebsd Makefile
16167 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
16168 from the repository.
16169 + Added macport target to Makefile. Portfile is built from template
16170 Portfile.in.
16171 + Removed OSX package targets. (Too many difficulties involving
16172 dependencies on dynamic libraries.)
16173 + More complete INSTALL instructions for all architectures.
16175 * Website:
16176 + Added a programming demo, pandocwiki.
16178 [ Recai Oktaş ]
16180 * Do not forget to close pandoc's ITP. Closes: #391666
16182## pandoc 0.41 (2007-08-19)
16184 [ John MacFarlane ]
16186 * Fixed bugs in HTML reader:
16187 + Skip material at end *only if* `</html>` is present (previously,
16188 only part of the document would be parsed if an error was
16189 found; now a proper error message is given).
16190 + Added new constant eitherBlockOrInline with elements that may
16191 count either as block-level or as inline. Modified isInline and
16192 isBlock to take this into account.
16193 + Modified rawHtmlBlock to accept any tag (even an inline tag):
16194 this is innocuous, because rawHtmlBlock is tried only if a regular
16195 inline element can't be parsed.
16196 + Added a necessary 'try' in definition of 'para'.
16198 * Fixed bug in markdown ordered list parsing. The problem was that
16199 anyOrderedListStart did not check for a space following the
16200 ordered list marker. So in 'A.B. 2007' the parser would be
16201 expecting a list item, but would not find one, causing an error.
16202 Fixed a similar bug in the RST reader. Resolves Issue #22.
16204 * Refactored RST and Markdown readers using parseFromString.
16206 * LaTeX reader will now skip anything after \end{document}.
16208 * Fixed blockquote output in markdown writer: previously, block
16209 quotes in indented contexts would be indented only in the first
16210 line.
16212 * Added note to INSTALL about variations in versions of the xhtml
16213 library that can lead to failed tests (thanks to Leif LeBaron).
16215## pandoc 0.4 (2007-01-16)
16217 [ John MacFarlane ]
16219 * Added two new output formats: groff man pages and ConTeXt. By
16220 default, output files with extensions ".ctx" and ".context" are
16221 assumed to be ConTeXt, and output files with single-digit extensions
16222 are assumed to be man pages.
16224 * Enhanced ordered lists (documented in README, under Lists):
16225 + The OrderedList block element now stores information about
16226 list number style, list number delimiter, and starting number.
16227 + The readers parse this information when possible.
16228 + The writers use this information to style ordered lists.
16229 + The enhancement can be disabled using the --strict option.
16231 * Added support for tables (with a new Table block element). Two kinds
16232 of tables are supported: a simple table with one-line rows, and a
16233 more complex variety with multiline rows. All output formats are
16234 supported, but only markdown tables are parsed at the moment. The
16235 syntax is documented in README.
16237 * Added support for definition lists (with a new DefinitionList block
16238 element). All output and input formats are supported. The syntax is
16239 documented in README.
16241 * Added support for superscripts and subscripts (with new Superscript
16242 and Subscript inline elements). All input and output
16243 formats. The syntax is documented in README.
16245 * Added support for strikeout (with a new Strikeout inline element).
16246 All input and output formats are supported. Thanks to Bradley Kuhn,
16247 who contributed a patch. The syntax is documented in README. Resolves
16248 Issue #18.
16250 * Added a --toc|--table-of-contents option. This causes an automatically
16251 generated table of contents (or an instruction that creates one) to
16252 be inserted at the beginning of the document. Not supported in S5,
16253 DocBook, or man page writers.
16255 * Modified the -m|--asciimathml option:
16257 + If an optional URL argument is provided, a link is inserted
16258 instead of the contents of the ASCIIMathML.js script.
16259 + Nothing is inserted unless the document actually contains
16260 LaTeX math.
16262 * Removed Blank block element as unnecessary.
16264 * Removed Key and Note blocks from the Pandoc data structure. All
16265 links are now stored as explicit links, and note contents are
16266 stored with the (inline) notes.
16268 + All link Targets are now explicit (URL, title) pairs; there
16269 is no longer a 'Ref' target.
16270 + Markdown and RST parsers now need to extract data from key and
16271 note blocks and insert them into the relevant inline elements.
16272 Other parsers have been simplified, since there is no longer any need
16273 to construct separate key and note blocks.
16274 + Markdown, RST, and HTML writers need to construct lists of
16275 notes; Markdown and RST writers need to construct lists of link
16276 references (when the --reference-links option is specified); and
16277 the RST writer needs to construct a list of image substitution
16278 references. All writers have been rewritten to use the State monad
16279 when state is required.
16280 + Several functions (generateReference, keyTable,
16281 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
16282 used by them) have been removed from Text.Pandoc.Shared, since
16283 they are no longer needed. New functions and data structures
16284 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
16285 added. The functions inTags, selfClosingTag, inTagsSimple, and
16286 inTagsIndented have been moved to the DocBook writer, since that
16287 is now the only module that uses them. NoteTable is now exported
16288 in Text.Pandoc.Shared.
16289 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
16290 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
16291 + Added writerNotes and writerReferenceLinks to WriterOptions.
16293 * Added Text.Pandoc module that exports basic readers, writers,
16294 definitions, and utility functions. This should export everything
16295 needed for most uses of Pandoc libraries. The haddock documentation
16296 includes a short example program.
16298 * Text.Pandoc.ASCIIMathML is no longer an exported module.
16300 * Added Text.Pandoc.Blocks module to help in printing markdown
16301 and RST tables. This module provides functions for working with
16302 fixed-width blocks of text--e.g., placing them side by side, as
16303 in a table row.
16305 * Refactored to avoid reliance on Haskell's Text.Regex library, which
16306 (a) is slow, and (b) does not properly handle unicode. This fixed
16307 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
16309 + Replaced 'gsub' with a general list function 'substitute'
16310 that does not rely on Text.Regex.
16311 + Rewrote extractTagType in HTML reader so that it doesn't use
16312 regexs.
16313 + In Markdown reader, replaced email regex test with a custom email
16314 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
16315 with a custom function isSelfClosingTag.
16316 + Modified Docbook writer so that it doesn't rely on Text.Regex for
16317 detecting 'mailto' links.
16318 + Removed escapePreservingRegex and reamped entity-handling
16319 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
16320 avoid reliance on Text.Regex (see below on character reference
16321 handling changes).
16323 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
16325 * Changed handling of XML entities. Entities are now parsed (and unicode
16326 characters returned) in the Markdown and HTML readers, rather than being
16327 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
16328 instead of entities for characters above 128. This makes the HTML and
16329 DocBook output much more readable and more easily editable.
16331 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
16332 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
16333 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
16334 Moved both functions to Text.Pandoc.Writers.Docbook.
16335 + Added characterReference parser to Text.Pandoc.CharacterReferences.
16336 This parses a string and return a unicode character.
16337 + Rewrote decodeCharacterReferences to use the new parser instead of
16338 Text.Regex.
16339 + Added new charRef parser for Markdown and HTML, which replaces the
16340 old 'entity' parser. Added '&' as a special character in Markdown reader.
16341 + Modified HTML and Markdown readers to call decodeEntities on all raw
16342 strings (e.g. authors, dates, link titles), to ensure that no
16343 unprocessed entities are included in the native representation of
16344 the document. (In the HTML reader, most of this work is done by a
16345 change in extractAttributeName.)
16346 + In XML and Markdown output, escape unicode nonbreaking space as '&nbsp;',
16347 since a unicode non-breaking space is impossible to distinguish visually
16348 from a regular space. (Resolves Issue #3.)
16349 + Removed encodeEntitiesNumerical.
16350 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
16351 slight performance boost over the old association list.
16352 + Removed unneeded decodeEntities from 'str' parser in HTML and
16353 Markdown readers.
16355 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
16356 fromUTF8, for clarity.
16358 * Replaced old haskell98 module names replaced by hierarchical module
16359 names, e.g. List by Data.List. Removed haskell98 from dependencies
16360 in pandoc.cabal, and added mtl (needed for state monad). Substituted
16361 xhtml for html.
16363 * Refactored and cleaned up character escaping in writers, using
16364 backslashEscapes and escapeStringUsing functions.
16366 * Instead of adding `\n\n` to the end of an input string in Main.hs,
16367 this is now done in the readers. This makes the libraries behave
16368 the way you'd expect from the pandoc program. Resolves Issue #10.
16370 * URLs and email addresses in autolinks are now typeset as Code.
16372 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
16373 doesn't display the whole output unless there's a line ending.
16375 * Major code cleanup in all modules, for greater consistency, concision,
16376 and readability.
16378 * HTML reader:
16380 + Fixed several bugs (extractTagType, attribute parsing).
16381 + Remove Null blocks in lists of blocks when possible.
16382 + Allow HTML comments as raw HTML inline.
16384 * Markdown reader:
16386 + Ordered list items may no longer begin with uppercase letters, or
16387 letters greater than 'n'. (This prevents first initials and page
16388 reference, e.g. 'p. 400', from being parsed as beginning lists.)
16389 Also, numbers beginning list items may no longer end with ')',
16390 which is now allowed only after letters. Note: These changes
16391 may cause documents to be parsed differently. Users should take
16392 care in upgrading.
16393 + Changed autoLink parsing to conform better to Markdown.pl's
16394 behavior. `<google.com>` is not treated as a link, but
16395 `<http://google.com>`, `<ftp://google.com>`, and
16396 `<mailto:google@google.com>` are.
16397 + Cleaned up handling of embedded quotes in link titles. Now these are
16398 stored as a '"' character, not as '&quot;'.
16399 + Use lookAhead parser for the 'first pass' (looking for reference keys),
16400 instead of parsing normally, then using setInput to reset input. This
16401 yields a slight performance boost.
16402 + Fixed several bugs in smart quote recognition.
16403 + Fixed bug in indentSpaces (which didn't properly handle
16404 cases with mixed spaces and tabs).
16405 + Consolidated 'text', 'special', and 'inline' into 'inline'.
16406 + Fixed bug which allowed URL and title to be separated by multiple blank
16407 lines in links and reference keys. They can be on separate lines but
16408 can't have blank lines between them.
16409 + Correctly handle bracketed text inside inline footnotes and links,using
16410 new function inlinesInBalanced. Resolves Issue #14.
16411 + Fixed bug in footnotes: links in footnotes were not being
16412 processed. Solution: three-stage parse. First, get all the
16413 reference keys and add information to state. Next, get all the
16414 notes and add information to state. (Reference keys may be needed
16415 at this stage.) Finally, parse everything else.
16416 + Replaced named constants like 'emphStart' with literals.
16417 + Removed an extra occurrence of escapedChar in definition of inline.
16419 * RST reader:
16421 + Allow the URI in a RST hyperlink target to start on the line
16422 after the reference key.
16423 + Added 'try' in front of 'string', where needed, or used a different
16424 parser. This fixes a bug where ````` would not be correctly parsed as
16425 a verbatim `.
16426 + Fixed slow performance in parsing inline literals in RST reader. The
16427 problem was that ``#`` was seen by 'inline' as a potential link or image.
16428 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
16429 Resolves Issue #8.
16430 + Use lookAhead instead of getInput/setInput in RST reader. Removed
16431 unneeded getState call, since lookAhead automatically saves and
16432 restores the parser state.
16433 + Allow hyperlink target URIs to be split over multiple lines, and
16434 to start on the line after the reference. Resolves Issue #7.
16435 + Fixed handling of autolinks.
16437 * LaTeX reader:
16439 + Replaced `choice [(try (string ...), ...]` idiom with `oneOfStrings`,
16440 for clarity.
16441 + Added clauses for tilde and caret. Tilde is `\ensuremath{\sim}`, and
16442 caret is `\^{}`, not `\^` as before.
16443 + Added parsing for `\url`.
16444 + Parse `\texttt{}` as code, provided there's nothing fancy inside.
16446 * HTML writer:
16448 + Modified HTML writer to use the Text.XHtml library. This results
16449 in cleaner, faster code, and it makes it easier to use Pandoc in
16450 other projects, like wikis, which use Text.XHtml. Two functions are
16451 now provided, writeHtml and writeHtmlString: the former outputs an
16452 Html structure, the latter a rendered string. The S5 writer is also
16453 changed, in parallel ways (writeS5, writeS5String).
16454 + The Html header is now written programmatically, so it has been
16455 removed from the 'headers' directory. The S5 header is still
16456 needed, but the doctype and some of the meta declarations have
16457 been removed, since they are written programmatically. This change
16458 introduces a new dependency on the xhtml package.
16459 + Fixed two bugs in email obfuscation involving improper escaping
16460 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
16461 Issue #9.
16462 + Fixed another bug in email obfuscation: If the text to be obfuscated
16463 contains an entity, this needs to be decoded before obfuscation.
16464 Thanks to thsutton for the patch. Resolves Issue #15.
16465 + Changed the way the backlink is displayed in HTML footnotes.
16466 Instead of appearing on a line by itself, it now generally
16467 appears on the last line of the note. (Exception: when the
16468 note does not end with a Plain or Para block.) This saves space
16469 and looks better.
16470 + Added automatic unique identifiers to headers:
16471 - The identifier is derived from the header via a scheme
16472 documented in README.
16473 - WriterState now includes a list of header identifiers and a table
16474 of contents in addition to notes.
16475 - The function uniqueIdentifiers creates a list of unique identifiers
16476 from a list of inline lists (e.g. headers).
16477 - This list is part of WriterState and gets consumed by blockToHtml
16478 each time a header is encountered.
16479 + Include CSS for .strikethrough class in header only if strikethrough
16480 text appears in the document.
16481 + If the 'strict' option is specified, elements that do not appear in
16482 standard markdown (like definition lists) are passed through as
16483 raw HTML.
16484 + Simplified treatment of autolinks, using pattern matching instead of
16485 conditionals.
16487 * Markdown writer:
16489 + Links in markdown output are now printed as inline links by default,
16490 rather than reference links. A --reference-links option has been added
16491 that forces links to be printed as reference links. Resolves Issue #4.
16492 + Use autolinks when possible. Instead of `[site.com](site.com)`,
16493 use `<site.com>`.
16495 * LaTeX writer:
16497 + Rewrote to use the State monad. The preamble now includes only those
16498 packages that are actually required, given the document's content.
16499 Thus, for example, if strikeout is not used, ulem is not required.
16500 Modified LaTeXHeader accordingly.
16501 + Modified LaTeX writer to insert `\,` between consecutive quotes.
16502 + Removed unused function tableRowColumnWidths.
16503 + Simplified code for escaping special characters.
16504 + Leave extra blank line after `\maketitle`.
16505 + Include empty `\author{}` when no author specified to avoid LaTeX
16506 errors.
16507 + Include fancyvrb code in header only if needed -- that is, only
16508 if there is actually code in a footnote.
16509 + Use `\url{}` for autolinks.
16510 + Include [mathletters] option in ucs package, so that basic unicode
16511 Greek letters will work correctly.
16513 * RST writer: Force blank line before lists, so that sublists will
16514 be handled correctly.
16516 * Docbook writer: Fixed a bug: email links with text, like
16517 [foo](me@bar.baz), were being incorrectly treated as autolinks.
16519 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
16520 Text.Pandoc.Shared.
16522 * Text.Pandoc.Shared:
16524 + Added defaultWriterOptions.
16525 + Added writerTableOfContents to WriterOptions.
16526 + Added writerIgnoreNotes option to WriterOptions. This is needed
16527 for processing header blocks for a table of contents, since notes on
16528 headers should not appear in the TOC.
16529 + Added prettyprinting for native Table format.
16530 + Removed some unneeded imports.
16531 + Moved escape and nullBlock parsers from
16532 Text.ParserCombinators.Pandoc, since the latter is for
16533 general-purpose parsers that don't depend on Text.Pandoc.Definition.
16534 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
16535 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
16536 writer, because HTML writer now uses these in constructing a table
16537 of contents.
16538 + Added clauses for new inline elements (Strikeout, Superscript,
16539 Subscript) to refsMatch.
16540 + Removed backslashEscape; added new functions escapeStringUsing and
16541 backslashEscapes.
16542 + Moved failIfStrict from markdown reader, since it is now used also
16543 by the HTML reader.
16544 + Added a 'try' to the definition of indentSpaces.
16545 + In definition of 'reference', added check to make sure it's not a note
16546 reference.
16547 + Added functions: camelCaseToHyphenated, toRomanNumeral,
16548 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
16549 charsInBalanced', withHorizDisplacement, romanNumeral
16550 + Fixed a bug in the anyLine parser. Previously it would parse an empty
16551 string "", but it should fail on an empty string, or we get an error
16552 when it is used inside "many" combinators.
16553 + Removed followedBy' parser, replacing it with the lookAhead parser from
16554 Parsec.
16555 + Added some needed 'try's before multicharacter parsers, especially in
16556 'option' contexts.
16557 + Removed the 'try' from the 'end' parser in 'enclosed', so that
16558 'enclosed' behaves like 'option', 'manyTill', etc.
16559 + Added lineClump parser, which parses a raw line block up to and
16560 including any following blank lines.
16561 + Renamed parseFromStr to parseFromString.
16562 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
16563 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
16564 in calling code.
16565 + Removed unneeded 'try' in blanklines.
16566 + Removed endsWith function and rewrote calling functions to use
16567 isSuffixOf instead.
16568 + Added >>~ combinator.
16569 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
16570 Space.
16572 * Refactored runtests.pl; added separate tests for tables.
16574 * Shell scripts:
16576 + Added -asxhtml flag to tidy in html2markdown. This will
16577 perhaps help the parser, which expects closing tags.
16578 + Modified markdown2pdf to run pdflatex a second time if --toc or
16579 --table-of-contents was specified; otherwise the table of
16580 contents won't appear.
16581 + Modified markdown2pdf to print a helpful message if the 'ulem'
16582 LaTeX package is required and not found.
16584 * Changes to build process:
16586 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
16587 is now required.
16588 + Removed cabalize and Pandoc.cabal.in. The repository now contains
16589 pandoc.cabal itself.
16590 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
16591 likes the cabal file to have the same name as the tarball.
16592 + Expanded and revised the package description in pandoc.cabal.
16593 Revised the package synopsis.
16594 + The tarball built by 'make tarball' now contains files built from
16595 templates (including man pages and shell scripts), so pandoc can
16596 be built directly using Cabal tools, without preprocessing.
16597 + Executable binaries are now stripped before installing.
16598 + Man pages are now generated from markdown sources, using pandoc's
16599 man page writer.
16600 + Use HTML version of README (instead of RTF) in Mac OS X installer.
16601 + Instead of testing for the existence of a pandoc symlink in build-exec,
16602 use ln -f.
16604 * Documentation:
16606 + Updated README and man pages with information on new features.
16607 + Updated INSTALL instructions with some useful clarifications and
16608 links.
16609 + Updated web content.
16611 * Added FreeBSD port.
16613 [ Recai Oktaş ]
16615 * debian/control:
16617 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
16618 libghc6-xhtml-dev. Removed libghc6-html-dev.
16619 + Suggest texlive-latex-recommended | tetex-extra instead of
16620 tetex-bin. This brings in fancyvrb and unicode support.
16623## pandoc 0.3 (2007-01-05)
16625 [ John MacFarlane ]
16627 * Changes in pandoc options:
16629 + Allow options to follow or precede arguments.
16630 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
16631 + Added '--strict' option.
16632 + Added '-o/--output' option.
16633 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
16634 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
16635 error conditions. This is helpful for writing wrappers.
16636 + Added copyright message to '-v' output, modeled after FSF messages.
16637 + Reformatted usage message so that it doesn't wrap illegibly.
16638 + Removed extra blanks after '-h' and '-D' output.
16640 * Added docbook writer.
16642 * Added implicit setting of default input and output format based
16643 on input and output filename extensions. These defaults are
16644 overridden if explicit input and output formats are specified using
16645 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
16646 and README.
16648 * Allow ordered list items to begin with (single) letters, as well
16649 as numbers. The list item marker may now be terminated either by
16650 '.' or by ')'. This extension to standard markdown is documented
16651 in README.
16653 * Revised footnote syntax. (See README for full details.) The
16654 '[^1]' format now standard in markdown extensions is supported,
16655 as are inline footnotes with this syntax: `^[My note.]`.
16656 The earlier footnote syntax `^(1)` is no longer supported.
16658 * Improved HTML representation of footnotes. All footnotes
16659 are now auto-numbered and appear in an ordered list at the
16660 end of the HTML document. Since the default appearance is now
16661 acceptable, the old footnote styles have been removed from the
16662 HTML header.
16664 * Bug fixes:
16666 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
16667 These readers ran 'runParser' on processed chunks of text to handle
16668 embedded block lists in lists and quotation blocks. But then
16669 any changes made to the parser state in these chunks was lost,
16670 as the state is local to the parser. So, for example, footnotes
16671 didn't work in quotes or list items. The fix: instead of calling
16672 runParser on some raw text, use setInput to make it the input, then
16673 parse it, then use setInput to restore the input to what it was
16674 before. This is shorter and more elegant, and it fixes the problem.
16675 + Fixed bug in notFollowedBy' combinator (adding 'try' before
16676 'parser'). Adjusted code that uses this combinator accordingly.
16677 + Fixed bug in RTF writer that caused improper indentation on
16678 footnotes occurring in indented blocks like lists.
16679 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
16680 and date are parsed correctly. Everything else in the preamble
16681 is skipped.
16682 + Modified escapedChar in LaTeX reader to allow a `\` at the end of a
16683 line to count as escaped whitespace.
16684 + Modified LaTeX reader to produce inline links rather than reference
16685 links. Otherwise, links in footnotes aren't handled properly.
16686 + Fixed handling of titles in links in Markdown reader, so that
16687 embedded quotation marks are now handled properly.
16688 + Fixed Markdown reader's handling of embedded brackets in links.
16689 + Fixed Markdown reader so that it only parses bracketed material
16690 as a reference link if there is actually a corresponding key.
16691 + Revised inline code parsing in Markdown reader to conform to
16692 markdown standard. Now any number of `s can begin inline code,
16693 which will end with the same number of `s. For example, to
16694 have two backticks as code, write ``` `` ```. Modified Markdown
16695 writer accordingly.
16696 + Fixed bug in text-wrapping routine in Markdown and RST writers.
16697 Now LineBreaks no longer cause wrapping problems.
16698 + Supported hexadecimal numerical entity references as well as
16699 decimal ones.
16700 + Fixed bug in Markdown reader's handling of underscores and other
16701 inline formatting markers inside reference labels: for example,
16702 in '[A_B]: /url/a_b', the material between underscores was being
16703 parsed as emphasized inlines.
16704 + Changed Markdown reader's handling of backslash escapes so that
16705 only non-alphanumeric characters can be escaped. Strict mode
16706 follows Markdown.pl in only allowing a select group of punctuation
16707 characters to be escaped.
16708 + Modified HTML reader to skip a newline following a `<br>` tag.
16709 Otherwise the newline will be treated as a space at the beginning
16710 of the next line.
16712 * Made handling of code blocks more consistent. Previously, some
16713 readers allowed trailing newlines, while others stripped them.
16714 Now, all readers strip trailing newlines in code blocks. Writers
16715 insert a newline at the end of code blocks as needed.
16717 * Modified readers to make spacing at the end of output more consistent.
16719 * Minor improvements to LaTeX reader:
16721 + `\thanks` now treated like a footnote.
16722 + Simplified parsing of LaTeX command arguments and options.
16723 commandArgs now returns a list of arguments OR options (in
16724 whatever order they appear). The brackets are included, and
16725 a new stripFirstAndLast function is provided to strip them off
16726 when needed. This fixes a problem in dealing with \newcommand
16727 and \newenvironment.
16729 * Revised RTF writer:
16731 + Default font is now Helvetica.
16732 + An `\f0` is added to each `\pard`, so that font resizing works
16733 correctly.
16735 * Moved handling of "smart typography" from the writers to the Markdown
16736 and LaTeX readers. This allows great simplification of the writers
16737 and more accurate smart quotes, dashes, and ellipses. DocBook can
16738 now use `<quote>`. The '--smart' option now toggles an option in
16739 the parser state rather than a writer option. Several new kinds
16740 of inline elements have been added: Quoted, Ellipses, Apostrophe,
16741 EmDash, EnDash.
16743 * Changes in HTML writer:
16745 + Include title block in header even when title is null.
16746 + Made javascript obfuscation of emails even more obfuscatory,
16747 by combining it with entity obfuscation.
16749 * Changed default ASCIIMathML text color to black.
16751 * Test suite:
16753 + Added --strip-trailing-cr option to diff in runtests.pl, for
16754 compatibility with Windows.
16755 + Added regression tests with footnotes in quote blocks and lists.
16757 * Makefile changes:
16759 + osx-pkg target creates a Mac OS X package (directory). New osx
16760 directory contains files needed for construction of the package.
16761 + osx-dmg target creates a compressed disk image containing the package.
16762 + win-pkg target creates Windows binary package.
16763 + tarball target creates distribution source tarball.
16764 + website target generates pandoc's website automatically, including
16765 demos. New 'web' directory contains files needed for construction
16766 of the website (which will be created as the 'pandoc' subdirectory
16767 of 'web').
16768 + Makefile checks to see if we're running Windows/Cygwin; if so,
16769 a '.exe' extension is added to each executable in EXECS.
16771 * Removed all wrappers except markdown2pdf and html2markdown.
16773 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
16774 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
16775 option and disables other options.
16777 * Added code to html2markdown that tries to determine the character
16778 encoding of an HTML file, by parsing the "Content-type" meta tag.
16780 + If the encoding can't be determined, then if the content is local,
16781 the local encoding is used; if it comes from a URL, UTF-8 is used
16782 by default.
16783 + If input is from STDIN, don't try to determine character encoding.
16784 + Encoding can be specified explicitly using '-e' option.
16786 * Improved warning messages in wrappers:
16788 + Print warning if iconv not available
16789 + More user-friendly error messages in markdown2pdf, when
16790 pdflatex fails.
16792 * Code cleanup:
16794 + Renamed 'Text/Pandoc/HtmlEntities' module to
16795 'Text/Pandoc/Entities'. Also changed function names so as
16796 not to be HTML-specific.
16797 + Refactored SGML string escaping functions from HTML and Docbook
16798 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
16799 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
16800 used anywhere.
16801 + Removed splitBySpace and replaced it with a general, polymorphic
16802 splitBy function.
16803 + Refactored LaTeX reader for clarity (added isArg function).
16804 + Converted some CR's to LF's in src/ui/default/print.css.
16805 + Added license text to top of source files.
16806 + Added module data for haddock to source files.
16807 + Reformatted code for consistency.
16809 * Rewrote documentation and man pages. Split README into INSTALL
16810 and README.
16812 * Split LICENSE into COPYING and COPYRIGHT.
16814 * Removed TODO, since we now maintain ToDo on the wiki.
16816 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
16817 duplication.
16819 [ Recai Oktaş ]
16821 * Revamped build process to conform to debian standards and created
16822 a proper debian package. Closes: #391666.
16824 * Modified build process to support GHC 6.6.
16826 + The package can still be compiled using GHC 6.4.2, though because
16827 of dependencies the "make deb" target works only with GHC 6.6+.
16828 + The script 'cabalize' is used to create an appropriate
16829 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
16830 Cabal versions.
16832 * Refactored template processing (fillTemplates.pl).
16834 * Modified wrapper scripts to make them more robust and portable.
16835 To avoid code duplication and ensure consistency, wrappers are
16836 generated via a templating system from templates in src/wrappers.
16838 + Wrappers now accept multiple filenames, when appropriate.
16839 + Spaces and tabs allowed in filenames.
16840 + getopts shell builtin is used for portable option parsing.
16841 + Improved html2markdown's web grabber code, making it more robust,
16842 configurable and verbose. Added '-e', '-g' options.
16845## pandoc 0.2 (2006-08-14)
16847 * Fixed unicode/utf-8 translation
16849## pandoc 0.1 (2006-08-14)
16851 * Initial creation of debian package