git.iko.soy/typeable/pandoc
on 2.14 help sign in
typeable/pandoc/changelog.md
20167 lines 867 kB history raw
1# Revision history for pandoc
3## pandoc 2.14 (2021-05-28)
5 * Change reader types, allowing better tracking of source positions
6 [API change]. Previously, when multiple file arguments were provided,
7 pandoc simply concatenated them and passed the contents to the readers,
8 which took a Text argument. As a result, the readers had no way of knowing
9 which file was the source of any particular bit of text. This meant that
10 we couldn't report accurate source positions on errors or include accurate
11 source positions as attributes in the AST. More seriously, it meant that
12 we couldn't resolve resource paths relative to the files containing them
13 (see e.g. #5501, #6632, #6384, #3752).
15 * Add `rebase_relative_paths` extension (#3752). When enabled, this
16 extension rewrites relative image and link paths by prepending
17 the (relative) directory of the containing file. This
18 behavior is useful when your input sources are split
19 into multiple files, across several directories, with files
20 referring to images stored in the same directory. The
21 extension can be enabled for all markdown and commonmark-based formats.
23 * Add Text.Pandoc.Sources (exported module), with a `Sources` type and a
24 `ToSources` class. A `Sources` wraps a list of `(SourcePos, Text)` pairs
25 [API change]. A parsec `Stream` instance is provided for `Sources`. The
26 module also exports versions of parsec's `satisfy` and other Char parsers
27 that track source positions accurately from a `Sources` stream (or any
28 instance of the new `UpdateSourcePos` class).
30 * Text.Pandoc.Parsing
32 + Export the modified Char parsers defined in Text.Pandoc.Sources
33 instead of the ones parsec provides. Modified parsers to use a
34 `Sources` as stream [API change].
35 + Improve include file functions [API change]. Remove old
36 `insertIncludedFileF`. Give `insertIncludedFile` a more general type,
37 allowing it to be used where `insertIncludedFileF` was.
38 + Add parameter to the `citeKey` parser from
39 Text.Pandoc.Parsing, which controls whether the `@{..}`
40 syntax is allowed [API change].
42 * Text.Pandoc.Error: Modified the constructor `PandocParsecError` to take a
43 `Sources` rather than a `Text` as first argument, so parse error locations
44 can be accurately reported.
46 * Fix source position reporting for YAML bibliographies (#7273).
48 * Issue error message when reader or writer format is malformed
49 (#7231). Previously we exited with an error status but (due to a bug)
50 no message.
52 * Smarter smart quotes (#7216, #2103). Treat a leading `"` with no
53 closing `"` as a left curly quote. This supports the practice, in
54 fiction, of continuing paragraphs quoting the same speaker without an
55 end quote. It also helps with quotes that break over lines in line blocks.
57 * Markdown reader:
59 + Use MetaInlines not MetaBlocks for multimarkdown metadata fields.
60 This gives better results in converting to e.g. pandoc markdown.
61 + Implement curly-brace syntax for Markdown citation keys (#6026).
62 The change provides a way to use citation keys that contain
63 special characters not usable with the standard citation key syntax.
64 Example: `@{foo_bar{x}'}` for the key `foo_bar{x}`. It also allows
65 separating citation keys from immediately following text, e.g. `@{foo}A`.
67 * RST reader:
69 + Seek include files in the directory of the file
70 containing the include directive, as RST requires (#6632).
71 + Use `insertIncludedFile` from Text.Pandoc.Parsing
72 instead of reproducing much of its code.
74 * Org reader: Resolve org includes relative to the directory containing the
75 file containing the INCLUDE directive (#5501).
77 * ODT reader: Treat tabs as spaces (#7185, niszet).
79 * Docx reader:
81 + Add handling of vml image objects (#7257, mbrackeantidot).
82 + Support new table features (Emily Bourke, #6316): column
83 spans, row spans, multiple header rows, table description
84 (parsed as a simple caption), captions, column widths.
86 * LaTeX reader:
88 + Improved siunitx support (#6658, #6620).
89 + Better support for `\xspace` (#7299).
90 + Improve parsing of `\def` macros. We previously set "verbatim mode"
91 even for parsing the initial `\def`; this caused problems
92 for `\def` nested inside another `\def`.
93 + Implement `\newif`.
95 * ConTeXt writer: improve ordered lists (#5016, Denis Maier).
96 Change ordered list from itemize to enumerate. Add new
97 itemgroup for ordered lists. Remove manual insertion of
98 width attributes. Use tabular figures in ordered list
99 enumerators.
101 * HTML reader:
103 + Don't fail on unmatched closing "script" tag (Albert Krenkel, #7282).
104 + Keep h1 tags as normal headers (#2293, Albert Krewinkel).
105 The tags `<title>` and `<h1 class="title">` often contain the same
106 information, so the latter was dropped from the document. However, as
107 this can lead to loss of information, the heading is now always
108 retained. Use `--shift-heading-level-by=-1` to turn the `<h1>`
109 into the document title, or a filter to restore the previous behavior.
110 + Handle relative lengths (e.g. `2*`) in HTML column widths (#4063).
111 See <https://www.w3.org/TR/html4/types.html#h-6.6>.
113 * DocBook/JATS readers:
115 + Fix mathml regression caused by the switch in XML libraries (#7173).
116 + Fix "phrase" in DocBook: take classes from "role" not "class" (#7195).
118 * DocBook reader: ensure that first and last names are separated (#6541).
120 * Jira reader (Albert Krewinkel, #7218):
122 + Support "smart" links: `[alias|https://example.com|smart-card]` syntax.
123 + Allow spaces and most unicode characters in attachment links.
124 + No longer require a newline character after `{noformat}`.
125 + Only allow URI path segment characters in bare links.
126 + The `file:` schema is no longer allowed in bare links; these
127 rarely make sense.
129 * Plain writer: handle superscript unicode minus (#7276).
131 * LaTeX writer:
133 + Better handling of line breaks in simple tables (#7272).
134 Now we also handle the case where they're embedded in other elements,
135 e.g. spans.
136 + For beamer output, support `exampleblock` and `alertblock` (#7278).
137 A block will be rendered as an `exampleblock` if the heading
138 has class `example` and an `alertblock` if it has class `alert`.
139 + Separate successive quote chars with thin space (#6958,
140 Albert Krewinkel). Successive quote characters are separated with
141 a thin space to improve readability and to prevent unwanted ligatures.
142 Detection of these quotes sometimes had failed if the second quote
143 was nested in a span element.
144 + Separate successive quote chars with thin space (#6958, Albert
145 Krewinkel).
147 * EPUB Writer: Fix belongs-to-collection XML id choice (#7267, nuew).
148 The epub writer previously used the same XML id for both the book
149 identifier and the epub collection. This causes an error on epubcheck.
151 * BibTeX/BibLaTeX writer: Handle `annote` field (#7266).
153 * ZimWiki writer: allow links and emphasis in headers (#6605,
154 Albert Krewinkel).
156 * ConTeXt writer:
158 + Support blank lines in line blocks (#6564, Albert Krewinkel,
159 thanks to @denismaier).
160 + Use span identifiers as reference anchors (#7246, Albert Krewinkel).
162 * HTML writer:
164 + Keep attributes from code nested below `pre` tag (#7221,
165 Albert Krewinkel). If a code block is defined with `<pre><code
166 class="language-x">…</code></pre>`, where the `<pre>` element has no
167 attributes, then the attributes from the `<code>` element are used
168 instead. Any leading `language-` prefix is dropped in the code's
169 `class` attribute are dropped to improve syntax highlighting.
170 + Ensure headings only have valid attribs in HTML4 (#5944, Albert
171 Krewinkel).
172 + Parse `<header>` as a Div (Albert Krewinkel).
174 * Org writer:
176 + Inline latex envs need newlines (#7252, tecosaur).
177 As specified in https://orgmode.org/manual/LaTeX-fragments.html, an
178 inline \begin{}...\end{} LaTeX block must start on a new line.
179 + Use LaTeX style maths deliminators (#7196, tecosaur).
181 * JATS writer (Albert Krewinkel):
183 + Use either styled-content or named-content for spans (#7211).
184 If the element has a content-type attribute, or at least one class,
185 then that value is used as `content-type` and the span is put inside
186 a `<named-content>` element. Otherwise a `<styled-content>` element
187 is used instead.
188 + Reduce unnecessary use of `<p>` elements for wrapping (#7227).
189 The `<p>` element is used for wrapping in cases were the contents
190 would otherwise not be allowed in a certain context. Unnecessary
191 wrapping is avoided, especially around quotes (`<disp-quote>` elements).
192 + Convert spans to `<named-content>` elements (#7211). Spans with
193 attributes are converted to `<named-content>` elements instead of
194 being wrapped with `<milestone-start/>` and `<milestone-end>`
195 elements. Milestone elements are not allowed in documents using the
196 articleauthoring tag set, so this change ensures the creation of valid
197 documents.
198 + Add footnote number as label in backmatter (#7210). Footnotes in the
199 backmatter are given the footnote's number as a label. The
200 articleauthoring output is unaffected from this change, as footnotes
201 are placed inline there.
202 + Escape disallows chars in identifiers. XML identifiers must start
203 with an underscore or letter, and can contain only a limited set
204 of punctuation characters. Any IDs not adhering to these rules are
205 rewritten by writing the offending characters as `Uxxxx`,
206 where `xxxx` is the character's hex code.
208 * Jira writer: use `{color}` when span has a color attribute
209 (Albert Krewinkel, tarleb/jira-wiki-markup#10).
211 * Docx writer:
213 + Autoset table width if no column has an explicit width (Albert
214 Krewinkel).
215 + Extract Table handling into separate module (Albert Krewinkel).
216 + Support colspans and rowspans in tables (Albert Krewinkel, #6315).
217 + Support multirow table headers (Albert Krewinkel).
218 + Improve integration of settings from reference.docx (#1209).
219 This change allows users to create a reference.docx that
220 sets `w:proofState` for spelling or grammar to `dirty`,
221 so that spell/grammar checking will be triggered on the
222 generated docx.
223 + Copy over more settings from reference.docx (#7240). From settings.xml
224 in the reference-doc, we now include: `zoom`, `embedSystemFonts`,
225 `doNotTrackMoves`, `defaultTabStop`, `drawingGridHorizontalSpacing`,
226 `drawingGridVerticalSpacing`, `displayHorizontalDrawingGridEvery`,
227 `displayVerticalDrawingGridEvery`, `characterSpacingControl`,
228 `savePreviewPicture`, `mathPr`, `themeFontLang`, `decimalSymbol`,
229 `listSeparator`, `autoHyphenation`, `compat`.
230 + Set zoom to 100% by default in settings.xml.
231 + Align math options more with current Word defaults (e.g. Cambria Math
232 font).
233 + Remove `rsid`s from default settings.xml. Word will add these
234 when revisions are made.
236 * Ms writer: Handle tables with multiple paragraphs (#7288).
237 Previously they overflowed the table cell width. We now set line lengths
238 per-cell and restore them after the table has been written.
240 * Markdown writer:
242 + Use cleaner braceless syntax for code blocks with a
243 single class (#7242, Jan Tojnar).
244 + Add quotes properly in markdown YAML metadata fields (#7245).
245 This fixes a bug, which caused the writer to look at the *last*
246 rather than the *first* character in determining whether quotes
247 were needed. So we got spurious quotes in some cases and
248 didn't get necessary quotes in others.
249 + Use `@{..}` syntax for citations when needed.
250 + Use fewer unneeded escapes for `#` (see #6259).
251 + Improve escaping of `@`. We need to escape literal `@` before
252 `{` because of the new citation syntax.
254 * Commonmark writer: Use backslash escapes for `<` and `|`...
255 instead of entities (#7208).
257 * Powerpoint writer: allow `monofont` to be specified in metadata
258 (#7187).
260 * LaTeX template:
262 + Use non-starred names for xcolor color names (#6109).
263 This should make svgnames and x11names work properly.
264 + Fix bad vertical spacing after bibliography (#7234, badumont).
265 + List of figures before list of tables (#7235, Julien Dutant).
266 + Move CSL macro definitions before header-includes so they can be
267 overridden (#7286).
268 + Improve treatment of CSL `entry-spacing` (#7296).
269 Previously with the default template settings (`indent` variable
270 not set), we would get interparagraph spaces separating bib
271 entries even with `entry-spacing="0"`. On the other hand,
272 setting `entry-spacing="2"` gave ridiculously large spacing.
273 This change makes the spacing caused by `entry-spacing` a multiple
274 of `\parskip` by default, which gives aesthetically reasonable
275 output. Those who want a larger or smaller unit (e.g. because
276 they use `indent` which sets `\parskip` to 0) may
277 `\setlength{\cslentryspacingunit}{10pt}` in header-includes
278 to override the defaults.
279 + Move title, author, date up to top of preamble (#7295).
280 This allows header-includes to use them, and puts them
281 in a position where you can see them immediately.
282 + Define commands for zero width non-joiner character
283 (#6639, Albert Krewinkel). The zero-width non-joiner character
284 is used to avoid ligatures (e.g. in German).
286 * ConTeXt template: List of figures before list of tables (#7235,
287 Julien Dutant).
289 * reveal.js template:
291 + Support `toc-title` (#7171, Florian Kohrt).
292 + Use `hash: true` by default rather than `history: true` (#6968).
294 * HTML-based slide shows: add support for `institute` (#7289, Thomas
295 Hodgson).
297 * Text.Pandoc.Extensions: Add constructor `Ext_rebase_relative_paths` to
298 `Extensions` [API change].
300 * Text.Pandoc.XML.Light: add Eq, Ord instances for Content,
301 Element, Attr, CDataKind [API change].
303 * Text.Pandoc.MediaBag:
305 + Change type to use a `Text` key instead of `[FilePath]`.
306 We normalize the path and use `/` separators for consistency.
307 + Export `MediaItem` type [API change].
308 + Change `MediaBag` type to a map from Text to MediaItem [API change].
309 + `lookupMedia` now returns a `MediaItem` [API change].
310 + Change `insertMedia` so it sets the `mediaPath` to a filename based on
311 the SHA1 hash of the contents. This will be used when contents
312 are extracted.
314 * Text.Pandoc.Class.PandocMonad:
316 + Remove `fetchMediaResource` [API change]. Use `fetchItem` to get
317 resources in `fillMediaBag`.
318 + Add informational message in `downloadOrRead` indicating what path
319 local resources have been loaded from.
321 * Text.Pandoc.Logging:
323 + Remove single quotes around paths in messages.
324 + Add LoadedResource constructor to LogMessage [API change].
325 This is for INFO-level messages telling where image data has been
326 loaded from. (This can vary because of the resource path.)
328 * Text.Pandoc.Asciify: simplify code and export `toAsciiText` [API change].
329 Instead of encoding a giant (and incomplete) map, we now
330 just use unicode-transforms to normalize the text to
331 a canonical decomposition, and manipulate the result.
333 * App: allow tabs expansion even if file-scope is used (Albert Krewinkel,
334 #6709). Tabs in plain-text inputs are now handled correctly, even if
335 the `--file-scope` flag is used.
337 * Add new internal module Text.Pandoc.Writers.GridTable (Albert Krewinkel).
339 * Text.Pandoc.Highlighting: Change type of `languagesByExtension`, adding
340 a parameter for a `SyntaxMap` [API change] (Jan Tojnar, #7241).
341 Languages defined using `--syntax-definition` were not recognized by
342 `languagesByExtension`. This patch corrects that, allowing the writers
343 to see all custom definitions. The LaTeX writer still uses the default
344 syntax map, but that's okay in that context, since
345 `--syntax-definition` won't create new listings styles.
347 * Text.Pandoc.Citeproc:
349 + Ensure that CSL-related attributes are passed on to a Div with id
350 'refs'. Otherwise things like `entry-spacing` won't work when
351 such Divs are used.
352 + Use metadata's `lang` for the lang parameter of citeproc, overriding
353 `localeLanguage`.
354 + Recognize locators spelled with a capital letter (#7323).
355 + Add a comma and a space in front of the suffix if it doesn't start
356 with space or punctuation (#7324).
357 + Don't detect math elements as locators (#7321).
359 * Remove Text.Pandoc.BCP47 module [API change]. Use types and functions
360 from UnicodeCollation.Lang instead. This is a richer implementation
361 of BCP 47.
363 * Text.Pandoc.Shared:
365 + Fix regression in grid tables for wide characters (#7214).
366 In the translation from String to Text, a char-width-sensitive
367 `splitAt'` was dropped. This commit reinstates it and uses it to make
368 `splitTextByInstances` char-width sensitive.
369 + Add `getLang` (formerly in the now-removed BCP47) [API change].
371 * Text.Pandoc.SelfContained: use `application/octet-stream`
372 for unknown mime types instead of halting with an error (#7202).
374 * Lua filters: respect Inlines/Blocks filter functions in `pandoc.walk_*`
375 (Albert Krewinkel).
377 * Add text as build-depend for trypandoc (#7193, Roman Beránek).
379 * Bump upper-bounds for network-uri, time, attoparsec.
381 * Use citeproc 0.4.
383 * Use texmath 0.12.3.
385 * Use jira-wiki-markup 1.3.5 (Albert Krewinkel).
387 * Require latest skylighting (fixes a bug in XML syntax highlighting).
389 * Use latest xml-conduit.
391 * Use latest commonmark, commonmark-extensions, commonmark-pandoc.
393 * Use haddock-library-1.10.0 (Albert Krewinkel).
395 * Allow compilation with base 4.15 (Albert Krewinkel).
397 * MANUAL:
399 + Add information about `lang` and bibliography sorting.
400 + Add info about YAML escape sequences, link to spec (#7152,
401 Albert Krewinkel).
402 + Note that `institute` variable works for HTML-based slides.
403 + Update documentation on citation syntax.
404 + Add citation example for locators and suffixes (Tristan Stenner)
406 * Updated and fixed typos in documentation (Charanjit Singh,
407 Anti-Distinctlyminty, Tatiana Porras, obcat).
409 * Add instructions for installing pandoc-types before compiling filter.
411 * INSTALL: add note that parallel installations should be avoided
412 (#6865).
414 * Remove `biblatex-nussbaum.md` test. It is basically the same
415 as `biblaetx-quotes.md`.
417 * Command tests: fail if a file contains no tests---and fix a
418 test that failed in that way!
421## pandoc 2.13 (2021-03-21)
423 * Support `yaml_metadata_block` extension for `commonmark`, `gfm` (#6537).
424 This supported is a bit more limited than with pandoc's
425 `markdown`. The YAML block must be the first thing in the input,
426 and the leaf notes are parsed in isolation from the rest of
427 the document. So, for example, you can't use reference
428 links if the references are defined later in the document.
430 * Fix fallback to default partials when custom templates are used.
431 If the directory containing a template does not contain the partial,
432 it should be sought in the default templates, but this was not
433 working properly (#7164).
435 * Handle `nocite` better with `--biblatex` and `--natbib` (#4585).
436 Previously the nocite metadata field was ignored with these formats.
437 Now it populates a `nocite-ids` template variable and causes a
438 `\nocite` command to be issued.
440 * Text.Pandoc.Citeproc: apply `fixLinks` correctly (#7130). This is code
441 that incorporates a prefix like `https://doi.org/` into a following link
442 when appropriate.
444 * Text.Pandoc.Shared:
446 + Remove `backslashEscapes`, `escapeStringUsing` [API change]. Replace
447 these inefficient association list lookups with more efficient escaping
448 functions in the writers that used them (for a 10-25% performance boost
449 in org, haddock, rtf, texinfo writers).
450 + Remove `ToString`, `ToText` typeclasses [API change]. These were needed
451 for the transition from String to Text, but they are no longer used and
452 may clash with other things.
453 + Simplify `compactDL`.
455 * Text.Pandoc.Parsing:
457 + Change type of `readWithM` so that it is no longer polymorphic
458 [API change]. The `ToText` class has been removed, and now that we've
459 completed the transition to Text we no longer need this to operate
460 on Strings.
461 + Remove `F` type synonym [API change]. Muse and Org were defining their
462 own `F` anyway.
464 * Text.Pandoc.Readers.Metadata:
466 + Export `yamlMetaBlock` [API change].
467 + Make `yamlBsToMeta`, `yamlBsToRefs` polymorphic on the parser state
468 [API change].
470 * Markdown reader: Fix regression with `tex_math_backslash` (#7155).
472 * MediaWiki reader: Allow block-level content in notes (ref) (#7145).
474 * Jira reader (Albert Krewinkel):
476 + Fixed parsing of autolinks (i.e., of bare URLs in the text).
477 Previously an autolink would take up the rest of a line, as spaces
478 were allowed characters in these items.
479 + Emoji character sequences no longer cause parsing failures. This was
480 due to missing backtracking when emoji parsing fails.
481 + Mark divs created from panels with class "panel".
483 * RST reader: fix logic for ending comments (#7134). Previously comments
484 sometimes got extended too far.
486 * DocBook writer: include Header attributes as XML attributes on
487 section (Erik Rask). Attributes with key names that are not allowed
488 as XML attributes are dropped, as are attributes with invalid values
489 and `xml:id` (DocBook 5) and `id` (DocBook 4).
491 * Docx writer:
493 + Make `nsid` in `abstractNum` deterministic. Previously we assigned
494 a random number, but we don't need random values, so now we just
495 assign a value based on the list marker.
496 + Use integral values for `w:tblW` (#7141).
498 * Jira writer (Albert Krewinkel):
500 + Block quotes are only rendered as `bq.` if they do not contain a
501 linebreak.
502 + Jira writer: improve div/panel handling. Include div attributes in
503 panels, always render divs with class `panel` as panels, and
504 avoid nesting of panels.
506 * HTML writer: Add warnings on duplicate attribute values.
507 This prevents emitting invalid HTML. Ultimately it would be good to
508 prevent this in the types themselves, but this is better for now.
510 * Org writer: Prevent unintended creation of ordered list items (#7132,
511 Albert Krewinkel). Adjust line wrapping if default wrapping would cause
512 a line to be read as an ordered list item.
514 * JATS templates: support 'equal-contrib' attrib for authors (Albert
515 Krewinkel). Authors who contributed equally to a paper may be marked
516 with `equal-contrib`.
518 * reveal.js template: replace JS comment with HTML (#7154, Florian Kohrt).
520 * Text.Pandoc.Logging: Add `DuplicateAttribute` constructor to `LogMessage`.
521 [API change]
523 * Use `-j4` for linux release build. This speeds up the build dramatically
524 on arm.
526 * cabal.project: remove ghcoptions. Move flags to top level, so they can
527 be set differently on the command line.
529 * Require latest texmath, skylighting, citeproc, jira-wiki-markup.
530 (The latest skylighting fixes a bad bug with Haskell syntax highlighting.)
531 Narrow version bounds for texmath, skylighting, and citeproc, since
532 the test output depend on them.
534 * Use doclayout 0.3.0.2. This significantly reduces the time and memory
535 needed to compile pandoc.
537 * Use `foldl'` instead of `foldl` everywhere.
539 * Update bounds for random (#7156, Alexey Kuleshevich).
541 * Remove uses of some partial functions.
543 * Don't bake in a larger stack size for the executable.
545 * Test improvements:
547 + Use `getExecutablePath` from base, avoiding the dependency on
548 `executable-path`.
549 + Factor out `setupEnvironment` in Helpers, to avoid code duplication.
550 + Fix finding of data files by setting teh `pandoc_datadir` environment
551 variable when we shell out to pandoc. This avoids the need to use
552 `--data-dir` for the tests, which caused problems finding `pandoc.lua`
553 when compiling without the `embed_data_files` flag (#7163).
555 * Benchmark improvements:
557 + Build `+RTS -A8m -RTS` into default ghc-options for benchmark.
558 This is necessary to get accurate benchmark results; otherwise we
559 are largely measuring garbage collecting, some not related to the
560 current benchmark.
561 + Allow specifying BASELINE file in 'make bench' for comparison
562 (otherwise the latest benchmark is chosen by default).
563 + Force `readFile` in benchmarks early (Bodigrim).
565 * CONTRIBUTING: suggest using a `cabal.project.local` file (#7153,
566 Albert Krewinkel).
568 * Add ghcid-test to Makefile. This loads the test suite in ghcid.
571## pandoc 2.12 (2021-03-08)
573 * `--resource-path` now accumulates if specified multiple
574 times (#6152). Resource paths specified later on the command line are
575 prepended to those specified earlier. Thus,
576 `--resource-path foo --resource-path bar:baz` is equivalent to
577 `--resource-path bar:bas:foo`. (The previous behavior was
578 for the last `--resource-path` to replace all the rest.)
579 `resource-path` in defaults files behaves the same way: it
580 will be prepended to the resource path set by earlier
581 command line options or defaults files. This change
582 facilitates the use of multiple defaults files: each can
583 specify a directory containing resources it refers to
584 without clobbering the resource paths set by the others.
586 * Allow defaults files to refer to the home directory, the
587 user data directory, and the directory containing the defaults file
588 itself (#5871, #5982, #5977). In fields that expect file paths
589 (and only in these fields),
591 + `${VARIABLE}` will expand to the value of the environment variable
592 `VARIABLE` (and in particular `${HOME}` will expand to the path
593 of the home directory). A warning will be raised for undefined
594 variables.
595 + `${USERDATA}` will expand to the path of the user data
596 directory in force when the defaults file is being processed.
597 + `${.}` will expand to the directory containing the defaults file.
598 (This allows default files to be placed in a directory containing
599 resources they make use of.)
601 * When downloading content from URL arguments, be sensitive to
602 the character encoding (#5600). We can properly handle UTF-8 and latin1
603 (ISO-8859-1); for others we raise an error. Fall back to latin1 if
604 no charset is given in the mime type and UTF-8 decoding fails.
606 * Allow abbreviations that don't end in a period to be
607 specified using `--abbreviations` (#7124).
609 * Add new unexported module Text.Pandoc.XML.Light, as well
610 as Text.Pandoc.XML.Light.Types, Text.Pantoc.XML.Light.Proc,
611 Text.Pandoc.XML.Light.Output. (Closes #6001, #6565, #7091).
613 This module exports definitions of `Element` and `Content`
614 that are isomorphic to xml-light's, but with Text
615 instead of String. This allows us to keep most of the code in existing
616 readers that use xml-light, but avoid lots of unnecessary allocation.
618 We also add versions of the functions from xml-light's
619 Text.XML.Light.Output and Text.XML.Light.Proc that operate on our
620 modified XML types, and functions that convert xml-light types to our
621 types (since some of our dependencies, like texmath, use xml-light).
623 We export functions that use xml-conduit's parser to produce an
624 `Element` or `[Content]`. This allows existing pandoc code to use
625 a better parser without much modification.
627 The new parser is used in all places where xml-light's parser was
628 previously used. Benchmarks show a significant performance improvement
629 in parsing XML-based formats (with docbook, opml, jats, and docx
630 almost twice as fast, odt and fb2 more than twice as fast).
632 In addition, the new parser gives us better error reporting than
633 xml-light. We report XML errors, when possible, using the new
634 `PandocXMLError` constructor in `PandocError`.
636 These changes revealed the need for some changes in the tests. The
637 docbook-reader.docbook test lacked definitions for the entities it used;
638 these have been added. And the docx golden tests have been updated,
639 because the new parser does not preserve the order of attributes.
641 * DocBook reader:
643 + Avoid expensive tree normalization step, as it is not necessary
644 with the new XML parser.
645 + Support `informalfigure` (#7079) (Nils Carlson).
647 * Docx reader:
649 + Use Map instead of list for Namespaces. This gives a speedup of
650 about 5-10%. With this and the XML parsing changes, the docx reader
651 is now about twice as fast as in the previous release.
653 * HTML reader:
655 + Small performance tweaks.
656 + Also, remove exported class `NamedTag(..)` [API change]. This was just
657 intended to smooth over the transition from String to Text and is no
658 longer needed.
659 + As a result, the functions `isInlineTag` and `isBlockTag`
660 are no longer polymorphic; they apply to a `Tag Text` [API change].
661 + Do a lookahead to find the right parser to use. This takes
662 benchmarks from 34ms to 23ms, with less allocation.
663 + Fix bad handling of empty `src` attribute in `iframe` (#7099).
664 If `src` is empty, we simply skip the `iframe`.
665 If `src` is invalid or cannot be fetched, we issue a warning
666 nd skip instead of failing with an error.
668 * JATS reader:
670 + Avoid tree normalization, which is no longer necessary given the
671 new XML parser.
673 * LaTeX reader:
675 + Don't export `tokenize`, `untokenize` [API change]. These are internal
676 implementation details, which were only exported for testing.
677 They don't belong in the public API.
678 + Improved efficiency of the parser. With these changes the reader
679 is almost twice as fast as in the last release in our benchmarks.
680 + Code cleanup, removing some unnecessary things.
681 + Rewrite `withRaw` so it doesn't rely on fragile assumptions
682 about token positions (which break when macros are expanded)
683 (#7092). This requires the addition of `sEnableWithRaw` and
684 `sRawTokens` in `LaTeXState`, and a new combinator `disablingWithRaw`
685 to disable collecting of raw tokens in certain contexts.
686 Add `parseFromToks` to Text.Pandoc.Readers.LaTeX.Parsing.
687 Fix parsing of single character tokens so it doesn't mess
688 up the new raw token collecting. These changes slightly increase
689 allocations and have a small performance impact.
690 + Handle some bibtex/biblatex-specific commands that used to be
691 dealt with in pandoc-citeproc (#7049).
692 + Optimize `satisfyTok`, avoiding unnecessary macro expansion steps.
693 Benchmarks after this change show 2/3 of the run time and 2/3 of the
694 allocation of the Feb. 10 benchmarks.
695 + Removed `sExpanded` in state. This isn't actually needed and checking
696 it doesn't change anything.
697 + Improve `braced'`. Remove the parameter, have it parse the
698 opening brace, and make it more efficient.
699 + Factor out pieces of the LaTeX reader to make the module smaller.
700 This reduces memory demands when compiling. Created
701 Text.Pandoc.Readers.{LaTeX,Math,Citation,Table,Macro,Inline}.
702 Changed Text.Pandoc.Readers.LaTeX.SIunitx to export a command map
703 instead of individual commands.
704 + Handle table cells containing `&` in `\verb` (#7129).
706 * Make Text.Pandoc.Readers.LaTeX.Types an unexported module [API change].
708 * Markdown reader:
710 + Improved handling of mmd link attributes in references (#7080).
711 Previously they only worked for links that had titles.
712 + Improved efficiency of the parser (benchmarks show a 15% speedup).
714 * OPML reader:
716 + Avoid tree normalization, which is no longer necessary with the
717 new XML parser.
719 * ODT reader:
721 + Finer-grained errors on parse failure (#7091).
722 + Give more information if the zip container can't be unpacked.
724 * Org reader:
726 + Support `task_lists` extension (Albert Krewinkel, #6336).
727 + Fix bug in org-ref citation parsing (Albert Krewinkel, #7101).
728 The org-ref syntax allows to list multiple citations separated by
729 comma. Previously commas were accepted as part of the citation id,
730 so all citation lists were parsed as one single citation.
732 * RST reader:
734 + Use `getTimestamp` instead of `getCurrentTime` to fetch timestamp.
735 Setting `SOURCE_DATE_EPOCH` will allow reproducible builds.
736 + RST reader: fix handling of header in CSV tables (#7064).
737 The interpretation of this line is not affected by the delim option.
739 * Jira reader:
741 + Modified the Doc parser to skip leading blank lines. This fixes
742 parsing of documents which start with multiple blank lines (Albert
743 Krewinkel, #7095).
744 + Prevent URLs within link aliases to be treated as autolinks (Albert
745 Krewinkel, #6944).
747 * Text.Pandoc.Shared
749 + Remove formerly exported functions that are no longer used in the
750 code base: `splitByIndices`, `splitStringByIndicies`, `substitute`,
751 and `underlineSpan` (which had been deprecated in April 2020)
752 [API change].
753 + Export `handleTaskListItem` (Albert Krewinkel) [API change].
754 + Change `defaultUserDataDirs` to `defaultUserDataDir` [API
755 change]. We determine what is the default user data directory
756 by seeing whether the XDG directory and/or legacy
757 directory exist.
759 * BibTeX writer:
761 + BibTeX writer: use doclayout and doctemplate. This change allows
762 bibtex/biblatex output to wrap as other formats do,
763 depending on the settings of `--wrap` and `--columns` (#7068).
765 * CSL JSON writer:
767 + Output `[]` if no references in input, instead of raising a
768 PandocAppError as before.
770 * Docx writer:
772 + Use `getTimestamp` instead of `getCurrentTime` for timestamp.
773 Setting `SOURCE_DATE_EPOCH` will allow reproducible builds.
775 * EPUB writer:
777 + Use `getTimestamp` instead of `getCurrentTime` for timestamp.
778 Setting `SOURCE_DATE_EPOCH` will allow reproducible builds (#7093).
779 This does not suffice to fully enable reproducible in EPUB, since
780 a unique id is still being generated for each build.
781 + Support `belongs-to-collection` metadata (#7063) (Nick Berendsen).
783 * JATS writer:
785 + Escape special chars in reference elements (Albert Krewinkel).
786 Prevents the generation of invalid markup if a citation element
787 contains an ampersand or another character with a special meaning
788 in XML.
790 * Jira writer:
792 + Use Span identifiers as anchors (Albert Krewinkel).
793 + Use `{noformat}` instead of `{code}` for unknown languages (Albert
794 Krewinkel). Code blocks which are not marked as a language supported
795 by Jira are rendered as preformatted text via `{noformat}` blocks.
797 * LaTeX writer:
799 + Adjust hypertargets to beginnings of paragraphs (#7078).
800 Use `\vadjust pre` so that the hypertarget takes you to the beginning
801 of the paragraph rather than one line down.
802 This makes a particular difference for links to citations using
803 `--citeproc` and `link-citations: true`.
804 + Change BCP47 lang tag from `jp` to `ja` (Mauro Bieg, #7047).
805 + Use function instead of map for accent lookup (should be
806 more efficient).
807 + Split the module to make it easier to compile on low-memory
808 systems: added Text.Pandoc.Writers.LaTeX.{Util,Citation,Lang}.
810 * Markdown writer:
812 + Handle math right before digit. We insert an HTML comment to
813 avoid a `$` right before a digit, which pandoc will not recognize
814 as a math delimiter.
815 + Split the module to make it easier to compile on low-memory
816 systems: added Text.Pandoc.Writers.Markdown.{Types,Inline}.
818 * ODT writer:
820 + Use `getTimestamp` instead of `getCurrentTime` for timestamp.
821 Setting `SOURCE_DATE_EPOCH` will allow reproducible builds.
822 + Update default ODT style (Lorenzo). Previously, the "First paragraph"
823 style inherited from "Standard" but not from "Text body." Now
824 it is adjusted to inherit from "Text body", to avoid some ugly
825 spacing issues. It may be necessary to update a custom `reference.odt`
826 in light of this change.
828 * Org writer:
830 + Support `task_lists` extension (Albert Krewinkel, #6336).
832 * Pptx writer:
834 + Use `getTimestamp` instead of `getCurrentTime` for timestamp.
835 Setting `SOURCE_DATE_EPOCH` will allow reproducible builds.
837 * JATS templates: tag `author.name` as `string-name` (Albert Krewinkel).
838 The partitioning the components of a name into surname, given names,
839 etc. is not always possible or not available. Using `author.name`
840 allows to give the full name as a fallback to be used when
841 `author.surname` is not available.
843 * Add default templates for bibtex and biblatex, so that
844 the variables `header-include`, `include-before`, `include-after`
845 (or alternatively the command line options
846 `--include-in-header`, `--include-before-body`, `--include-after-body`)
847 may be used.
849 * LaTeX template:
851 + Update to iftex package (#7073) (Andrew Dunning)
852 + Wrap url colours in braces (#7121) (Loïc Grobol).
854 * revealjs template: Add 'center' option for vertical slide centering.
855 (maurerle, #7104).
857 * Text.Pandoc.XML: Improve efficiency of `fromEntities`.
859 * Text.Pandoc.MIME
861 + Add exported function `getCharset` [API change].
863 * Text.Pandoc.UTF8: change IO functions to return Text, not String
864 [API change]. This affects `readFile`, `getContents`, `writeFileWith`,
865 `writeFile`, `putStrWith`, `putStr`, `putStrLnWith`, `putStrLn`.
866 `hPutStrWith`, `hPutStr`, `hPutStrLnWith`, `hPutStrLn`, `hGetContents`.
867 This avoids the need to uselessly create a linked list of characters
868 when emiting output.
870 * Text.Pandoc.App
872 + Add `parseOptionsFromArgs` [API change, new exported function].
873 + Add fields for CSL options to `Opt` [API change]:
874 `optCSL`, `optbibliography`, `optCitationAbbreviations`.
876 * Text.Pandoc.Citeproc.BibTeX
878 + `Text.Pandoc.Citeproc.writeBibTeXString` now returns
879 `Doc Text` instead of `Text` (#7068).
880 + Correctly handle `pages` (= `page` in CSL) (#7067).
881 + Correctly handle BibLaTeX `langid` (= `language` in CSL, #7067).
882 + In BibTeX output, protect foreign titles since there's no language
883 field (#7067).
884 + Clean up BibTeX parsing (#7049). Previously there was a messy code
885 path that gave strange results in some cases, not passing through raw
886 tex but trying to extract a string content. This was an artefact of
887 trying to handle some special bibtex-specific commands in the BibTeX
888 reader. Now we just handle these in the LaTeX reader and simplify
889 parsing in the BibTeX reader. This does mean that more raw tex will
890 be passed through (and currently this is not sensitive to the
891 `raw_tex` extension; this should be fixed).
893 * Text.Pandoc.Citeproc.MetaValue
895 + Correctly parse "raw" date value in markdown references metadata.
896 (See jgm/citeproc#53.)
898 * Text.Pandoc.Citeproc
900 + Use https URLs for links (Salim B, #7122).
902 * Text.Pandoc.Class
904 + Add `getTimestamp` [API change]. This attempts to read the
905 `SOURCE_DATE_EPOCH` environment variable and parse a UTC time
906 from it (treating it as a unix date stamp, see
907 https://reproducible-builds.org/specs/source-date-epoch/). If the
908 variable is not set or can't be parsed as a unix date stamp, then the
909 function returns the current date.
911 * Text.Pandoc.Error
913 + Add `PandocUnsupportedCharsetError` constructor for
914 `PandocError` [API change].
915 + Export `renderError` [API change].
916 + Refactor `handleError` to use `renderError`. This allows us render
917 error messages without exiting.
919 * Text.Pandoc.Extensions
921 + `Ext_task_lists` is now supported by org (and turned
922 on by default) (Albert Krewinkel, #6336).
923 + Remove `Ext_fenced_code_attributes` from allowed commonmark attributes
924 (#7097). This attribute was listed as allowed, but it didn't actually
925 do anything. Use `attributes` for code attributes and more.
927 * Lua subsystem:
929 + Always load built-in Lua scripts from default data-dir (Albert
930 Krewinkel). The Lua modules `pandoc` and `pandoc.List` are now always
931 loaded from the system's default data directory. Loading from a
932 different directory by overriding the default path, e.g. via
933 `--data-dir`, is no longer supported to avoid unexpected behavior
934 and to address security concerns.
935 + Add module "pandoc.path" (Albert Krewinkel, #6001, #6565).
936 The module allows to work with file paths in a convenient and
937 platform-independent manner.
938 + Use strict evaluation when retrieving AST value from the stack
939 (Albert Krewinkel, #6674).
941 * Text.Pandoc.PDF
943 + Disable `smart` extension when building PDF via LaTeX.
944 This is to prevent accidental creation of ligatures like
945 `` ?` `` and `` !` `` (especially in languages with quotations like
946 German), and similar ligature issues. (See jgm/citeproc#54.)
948 * Text.Pandoc.CSV:
950 + Fix parsing of unquoted values (#7112). Previously we didn't allow
951 unescaped quotes in unquoted values, but they are allowed
952 in CSV.
954 * Test suite:
956 + Use a more robust method for testing the executable. Many
957 of our tests require running the pandoc executable. This
958 is problematic for a few different reasons. First,
959 cabal-install will sometimes run the test suite after
960 building the library but before building the executable,
961 which means the executable isn't in place for the tests.
962 One can work around that by first building, then building
963 and running the tests, but that's fragile. Second, we
964 have to find the executable. So far, we've done that using
965 a function `findPandoc` that attempts to locate it
966 relative to the test executable (which can be located
967 using findExecutablePath). But the logic here is delicate
968 and work with every combination of options. To solve both
969 problems, we add an `--emulate` option to the
970 `test-pandoc` executable. When `--emulate` occurs as the
971 first argument passed to `test-pandoc`, the program simply
972 emulates the regular pandoc executable, using the rest of
973 the arguments (after `--emulate`). Thus, `test-pandoc
974 --emulate -f markdown -t latex` is just like `pandoc -f
975 markdown -t latex`. Since all the work is done by library
976 functions, implementing this emulation just takes a couple
977 lines of code and should be entirely reliable. With this
978 change, we can test the pandoc executable by running the
979 test program itself (locatable using `findExecutablePath`)
980 with the `--emulate` option. This removes the need for the
981 fragile `findPandoc` step, and it means we can run our
982 integration tests even when we're just building the
983 library, not the executable. [Note: part of this change
984 involved simplifying some complex handling to set
985 environment variables for dynamic library paths. I have
986 tested a build with `--enable-dynamic-executable`, and it
987 works, but further testing may be needed.]
988 + Print accurate location if a test fails (Albert
989 Krewinkel). Ensures that tasty-hunit reports the location
990 of the failing test instead of the location of the helper
991 `test` function.
993 * Documentation: Update URLs and use `https` where possible (#7122,
994 Salim B).
996 * Add `doc/libraries.md`, a description of libraries that support pandoc.
998 * MANUAL.txt
1000 + MANUAL: block-level formatting is not allowed in line blocks (#7107).
1001 + Clarify `tex_math_dollars` extension. Note that no blank lines
1002 are allowed between the delimiters in display math.
1003 + Add MANUAL section on reproducible builds.
1004 + Document no template fallback for absolute path (#7077, Nixon
1005 Enraght-Moony.)
1006 + Improve docs for cite-method.
1007 + Update README and man page.
1009 * Makefile: in `make bench`, create CSV files for comparison and compare
1010 against previous benchmark run. Add timestamp to CSV filenames.
1012 * cabal.project: don't explicitly set -trypandoc.
1013 If we do, this can't be overridden on the cabal command line.
1015 * doc/lua-filters.md: improve documentation for
1016 `pandoc.mediabag.insert`, `pandoc.mediabag.fetch`,
1017 `directory`, `normalize` (Albert Krewinkel).
1019 * Allow base64-bytestring-1.2.* (Dmitrii Kovanikov)
1021 * Require jira-wiki-markup 1.3.3 (Albert Krewinkel)
1023 * Require citeproc 0.3.0.8, which correctly titlecases when titles
1024 contain non-ASCII characters.
1026 * Use skylighting 0.10.4. This version of skylighting uses xml-conduit
1027 rather than hxt. This speeds up parsing of XML syntax definitions
1028 fourfold, and removes four packages from pandoc's dependency graph:
1029 hxt-charproperties, hxt-unicode, hxt-regex-xmlschema, hxt.
1031 * Add script `tools/parseTimings.pl` to help pin down which
1032 modules take the most time and memory to compile.
1034 * Avoid unnecessary use of NoImplicitPrelude pragma (#7089) (Albert
1035 Krewinkel)
1037 * Benchmarks
1039 + Use the lighter-weight tasty-bench instead of criterion.
1040 + Run writer benchmarks for binary formats too.
1041 + Alphabetize benchmarks.
1042 + Don't run benchmarks for bibliography formats
1043 (yet; we need a special input for them).
1044 + Show allocation data
1045 + Clean up benchmark code.
1046 + Allow specifying patterns using `-p blah'.
1048 * trypandoc: add 2 second timeout.
1050 * Use `-split-sections` in creating linux release binary.
1051 This reduces executable size significantly (by about 30%).
1053 * Remove `weigh-pandoc`. It's not really useful any more, now that our
1054 regular benchmarks include data on allocation.
1056 * Improve linux package build process and add script to
1057 automate building an arm64 binary package.
1060## pandoc 2.11.4 (2021-01-22)
1062 * Add `biblatex`, `bibtex` as output formats (closes #7040).
1064 * Recognize more extensions as markdown by default (#7034):
1065 `mkdn`, `mkd`, `mdwn`, `mdown`, `Rmd`.
1067 * Implement defaults file inheritance (#6924, David Martschenko).
1068 Allow defaults files to inherit options from other defaults files by
1069 specifying them with the following syntax:
1070 `defaults: [list of defaults files or single defaults file]`.
1072 * Fix infinite HTTP requests when writing epubs from URL source (#7013).
1073 Due to a bug in code added to avoid overwriting the cover image
1074 if it had the form `fileX.YYY`, pandoc made an endless sequence
1075 of HTTP requests when writing epub with input from a URL.
1077 * Org reader:
1079 + Allow multiple pipe chars in todo sequences (Albert Krewinkel, #7014).
1080 Additional pipe chars, used to separate "action" state from "no further
1081 action" states, are ignored. E.g., for the following sequence, both
1082 `DONE` and `FINISHED` are states with no further action required:
1083 `#+TODO: UNFINISHED | DONE | FINISHED`.
1084 + Restructure output of captioned code blocks (Albert Krewinkel, #6977).
1085 The Div wrapper of code blocks with captions now has the class
1086 "captioned-content". The caption itself is added as a Plain block
1087 inside a Div of class "caption". This makes it easier to write filters
1088 which match on captioned code blocks. Existing filters will need to be
1089 updated.
1090 + Mark verbatim code with class `verbatim` (Dimitri Sabadie, #6998).
1092 * LaTeX reader:
1094 + Handle `filecontents` environment (#7003).
1095 + Put contents of unknown environments in a Div when `raw_tex` is not
1096 enabled (#6997). (When `raw_tex` is enabled, the whole environment is
1097 parsed as a raw block.) The class name is the name of the environment.
1098 Previously, we just included the contents without the surrounding Div,
1099 but having a record of the environment's boundaries and name can be
1100 useful.
1102 * Mediawiki reader:
1104 + Allow space around storng/emph delimiters (#6993).
1106 * New module Text.Pandoc.Writers.BibTeX, exporting
1107 writeBibTeX and writeBibLaTeX. [API change]
1109 * LaTeX writer:
1111 + Revert table line height increase in 2.11.3 (#6996).
1112 In 2.11.3 we started adding `\addlinespace`, which produced less dense
1113 tables. This wasn't an intentional change; I misunderstood a comment in
1114 the discussion leading up to the change. This commit restores the earlier
1115 default table appearance. Note that if you want a less dense table, you
1116 can use something like `\def\arraystretch{1.5}` in your header.
1118 * EPUB writer:
1120 + Adjust internal links to identifiers defined in raw HTML sections
1121 after splitting into chapters (#7000).
1122 + Recognize `Format "html4"`, `Format "html5"` as raw HTML.
1123 + Adjust internal links to images, links, and tables after splitting into
1124 chapters. Previously we only did this for Div and Span and Header
1125 elements (see #7000).
1127 * Ms writer:
1129 + Don't justify text inside table cells.
1131 * JATS writer:
1133 + Use `<element-citation>` if `element_citations`
1134 extension is enabled (Albert Krewinkel).
1135 + Fix citations (Albert Krewinkel, #7018). By default
1136 we use formatted citations.
1137 + Ensure that `<disp-quote>` is always wrapped in `<p>` (#7041).
1139 * Markdown writer:
1141 + Cleaned up raw formats. We now react appropriately
1142 to `gfm`, `commonmark`, and `commonmark_x` as raw formats.
1144 * RST writer:
1146 + Fix bug with dropped content from inside spans with a class in
1147 some cases (#7039).
1149 * Docx writer:
1151 + Handle table header using styles (#7008). Instead of hard-coding
1152 the border and header cell vertical alignment, we now let this
1153 be determined by the Table style, making use of Word's
1154 "conditional formatting" for the table's first row. For
1155 headerless tables, we use the tblLook element to tell Word
1156 not to apply conditional first-row formatting.
1158 * Commonmark writer:
1160 + Implement start number on ordered lists (#7009). Previously they always
1161 started at 1, but according to the spec the start number is respected.
1163 * HTML writer:
1165 + Fix implicit_figure at end of footnotes (#7006).
1167 * ConTeXt template: Remove `\setupthinrules` from default template.
1168 The width parameter this used is not actually supported,
1169 and the command didn't do anything.
1171 * Text.Pandoc.Extensions:
1173 + Add `Ext_element_citations` constructor (Albert Krewinkel).
1175 * Text.Pandoc.Citeproc.BibTeX: New unexported function
1176 `writeBibtexString`.
1178 * Text.Pandoc.Citeproc:
1180 + Use finer grained imports (Albert Krewinkel).
1181 + Factor out and export `getStyle` [API change].
1182 + Export `getReferences` [API change, #7106].
1183 + Factor out getLang.
1185 * Text.Pandoc.Parsing: modify `gridTableWith'` for headerless tables.
1186 If the table lacks a header, the header row should be an empty
1187 list. Previously we got a list of empty cells, which caused
1188 an empty header to be emitted instead of no header. In LaTeX/PDF
1189 output that meant we got a double top line with space between.
1191 * ImageSize: use `viewBox` for SVG if no length, width attributes (#7045).
1192 This change allows pandoc to extract size information from more SVGs.
1194 * Add simple default.nix.
1196 * Use commonmark 0.1.1.3.
1198 * Use citeproc 0.3.0.5.
1200 * Update default CSL to use latest chicago-author-date.csl.
1202 * CONTRIBUTING.md: add note on GNU xargs.
1204 * MANUAL.txt:
1206 + Update description of `-L`/`--lua-filter`.
1207 + Document use of citations in note styles (#6828).
1209## pandoc 2.11.3.2 (2020-12-29)
1211 * HTML reader: use renderTags' from Text.Pandoc.Shared (Albert Krewinkel).
1212 A side effect of this change is that empty `<col>` elements are written
1213 as self-closing tags in raw HTML blocks.
1215 * Asciidoc writer: Add support for writing nested tables (#6972, timo-a).
1216 Asciidoc supports one level of nesting. If deeper tables are to be
1217 written, they are omitted and a warning is issued.
1219 * Docx writer: fix nested tables with captions (#6983).
1220 Previously we got unreadable content, because docx seems
1221 to want a `<w:p>` element (even an empty one) at the end of
1222 every table cell.
1224 * Powerpoint writer: allow arbitrary OOXML in raw inline elements
1225 (Albert Krewinkel). The raw text is now included verbatim in the
1226 output. Previously is was parsed into XML elements, which prevented
1227 the inclusion of partial XML snippets.
1229 * LaTeX writer: support colspans and rowspans in tables (#6950,
1230 Albert Krewinkel). Note that the multirow package is needed for
1231 rowspans. It is included in the latex template under a variable,
1232 so that it won't be used unless needed for a table.
1234 * HTML writer: don't include p tags in CSL bibliography entries
1235 (#6966). Fixes a regression in 2.11.3.
1237 * Add `meta-description` variable to HTML templates (#6982). This
1238 is populated by the writer by stringifying the `description`
1239 field of metadata (Jerry Sky). The `description` meta tag will
1240 make the generated HTML documents more complete and SEO-friendly.
1242 * Citeproc: fix handling of empty URL variables (`DOI`, etc.).
1243 The `linkifyVariables` function was changing these to links
1244 which then got treated as non-empty by citeproc, leading
1245 to wrong results (e.g. ignoring nonempty URL when empty DOI is present).
1246 See jgm/citeproc#41.
1248 * Use citeproc 0.3.0.3. Fixes an issue in author-only citations when
1249 both an author and translator are present, and an issue with
1250 citation group delimiters.
1252 * Require texmath 0.12.1. This improves siunitx support in math,
1253 fixes bugs with `\*mod` family operators and arrays, and avoids
1254 italicizing symbols and operator names in docx output.
1256 * Ensure that the perl interpreter used for filters with `.pl`
1257 extension (wuffi).
1259 * MANUAL: note that textarea content is never parsed as Markdown
1260 (Albert Krewinkel).
1263## pandoc 2.11.3.1 (2020-12-18)
1265 * Added some missing files to extra-source-files and data
1266 files, so they are included in the sdist tarball. Closes #6961.
1267 Cleaned up some extraneous data and test files, and added
1268 a CI check to ensure that the test and data files included
1269 in the sdist match what is in the git repository.
1271 * Use citeproc 0.3.0.1, which avoids removing nonbreaking
1272 space at the end of the `initialize-with` attribute. (Some
1273 journals require nonbreaking space after initials, and this
1274 makes that possible.)
1276## pandoc 2.11.3 (2020-12-17)
1278 * With `--bibliography` (or `bibliography` in metadata), a
1279 URL may now be provided, and pandoc will fetch the resource.
1280 In addition, if a file path is provided and it is not
1281 found relative to the working directory, the resource
1282 path will be searched (#6940).
1284 * Add `sourcepos` extension for `commonmark`, `gfm`, `commonmark_x`
1285 (#4565). With the `sourcepos` extension set set, `data-pos`
1286 attributes are added to the AST by the commonmark reader. No other
1287 readers are affected. The `data-pos` attributes are put on elements
1288 that accept attributes; for other elements, an enlosing Div or Span
1289 is added to hold the attributes.
1291 * Change extensions for `commonmark_x`: replace `auto_identifiers`
1292 with `gfm_auto_identifiers` (#6863). `commonmark_x` never actually
1293 supported `auto_identifiers` (it didn't do anything), because the
1294 underlying library implements gfm-style identifiers only. Attempts
1295 to add the `auto_identifiers` extension to `commonmark` will now
1296 fail with an error.
1298 * HTML reader:
1300 + Split module into several submodules (Albert Krewinkel). Reducing
1301 module size should reduce memory use during compilation.
1302 + Support advanced table features (Albert Krewinkel):
1303 block level content in captions, row and colspans,
1304 body headers, row head columns, footers, attributes.
1305 + Disable round-trip testing for tables. Information for cell
1306 alignment in a column is not preserved during round-trips (Albert
1307 Krewinkel).
1308 + Allow finer grained options for tag omission (Albert Krewinkel).
1309 + Simplify list attribute handling (Albert Krewinkel).
1310 + Pay attention to `lang` attributes on body element (#6938).
1311 These (as well as `lang` attributes on the html element) should update
1312 lang in metadata.
1313 + Retain attribute prefixes and avoid duplicates (#6938).
1314 Previously we stripped attribute prefixes, reading `xml:lang` as
1315 `lang` for example. This resulted in two duplicate `lang`
1316 attributes when `xml:lang` and `lang` were both used. This commit
1317 causes the prefixes to be retained, and also avoids invald
1318 duplicate attributes.
1320 * Commonmark reader:
1322 + Refactor `specFor`.
1323 + Set input name to `""` to avoid clutter in sourcepos output.
1325 * Org reader:
1327 + Parse `#+LANGUAGE` into `lang` metadata field (#6845, Albert
1328 Krewinkel).
1329 + Preserve targets of spurious links (#6916, Albert
1330 Krewinkel). Links with (internal) targets that the reader doesn't
1331 know about are converted into emphasized text. Information on the
1332 link target is now preserved by wrapping the text in a Span of class
1333 `spurious-link`, with an attribute `target` set to the link's
1334 original target. This allows to recover and fix broken or unknown
1335 links with filters.
1337 * DocBook reader:
1339 + Table text width support (#6791, Nils Carlson).
1340 Table width in relation to text width is not natively supported
1341 by docbook but is by the docbook `fo` stylesheets through an XML
1342 processing instruction, `<?dbfo table-width="50%"?>`.
1344 * LaTeX reader:
1346 + Improve parsing of command options (#6869, #6873).
1347 In cases where we run into trouble parsing inlines til the
1348 closing `]`, e.g. quotes, we return a plain string with the
1349 option contents. Previously we mistakenly included the brackets
1350 in this string.
1351 + Preserve center environment (#6852, Igor Pashev).
1352 The contents of the `center` environment are put in a `Div`
1353 with class `center`.
1354 + Don't parse `\rule` with width 0 as horizontal rule. These are
1355 sometimes used as spacers in LaTeX.
1356 + Don't apply theorem default styling to a figure inside (#6925).
1357 If we put an image in italics, then when rendering to Markdown
1358 we no longer get an implicit figure.
1360 * Dokuwiki reader:
1362 + Handle unknown interwiki links better (#6932).
1363 DokuWiki lets the user define his own Interwiki links. Previously
1364 pandoc reacted to these by emitting a google search link, which is
1365 not helpful. Instead, we now just emit the full URL including the
1366 wikilink prefix, e.g. `faquk>FAQ-mathml`. This at least gives users
1367 the ability to modify the links using filters.
1369 * Markdown writer:
1371 + Properly handle boolean values in writing YAML metadata (#6388).
1372 + Ensure that a new csl-block begins on a new line (#6921).
1373 This just looks better and doesn't affect the semantics.
1375 * RST writer:
1377 + Better image handling (#6948). An image alone in its paragraph
1378 (but not a figure) is now rendered as an independent image, with an
1379 `alt` attribute if a description is supplied. An inline image that
1380 is not alone in its paragraph will be rendered, as before, using a
1381 substitution. Such an image cannot have a "center", "left", or
1382 "right" alignment, so the classes `align-center`, `align-left`, or
1383 `align-right` are ignored. However, `align-top`, `align-middle`,
1384 `align-bottom` will generate a corresponding `align` attribute.
1386 * Docx writer:
1388 + Keep raw openxml strings verbatim (#6933, Albert Krewinkel).
1389 + Use Content instead of Element. This allows us to inject
1390 raw OpenXML into the document without reparsing it into an
1391 Element, which is necessary if you want to inject an open
1392 tag or close tag.
1393 + Fix bullets/lists indentation, so that the first level is slightly
1394 indented to the right instead of right on the margin (cholonam).
1395 + Support bold and italic in "complex script" (#6911).
1396 Previously bold and italics didn't work properly in LTR
1397 text. This commit causes the w:bCs and w:iCs attributes
1398 to be used, in addition to w:b and w:i, for bold and
1399 italics respectively.
1401 * ICML writer:
1403 + Fix image bounding box for custom widths/heighta (Mauro Bieg, #6936).
1405 * LaTeX writer:
1407 + Improve table spacing (#6842, #6860).
1408 Remove the `\strut` that was added at the end of minipage
1409 environments in cells. Replace `\tabularnewline` with
1410 `\\ \addlinespace`.
1411 + Improve calculation of column spacing (#6883).
1412 + Extract table handling into separate module (Albert Krewinkel).
1413 + Fix bug with nested `csl-` display Spans (#6921).
1414 + Improve longtable output (#6883). Don't create minipages for
1415 regular paragraphs. Put width and alignment information in the
1416 longtable column descriptors.
1418 * OpenDocument writer:
1420 + Support for table width as a percentage of text width
1421 (#6792, Nils Carson).
1422 + Implement Div and Span ident support (#6755, Nils Carson).
1423 Spans and Divs containing an ident in the Attr will become bookmarks
1424 or sections with idents in OpenDocument format.
1425 + Add two extensions, `xrefs_name` and `xrefs_number` (#6774, Nils
1426 Carlson). Links to headings, figures and tables inside the
1427 document are substituted with cross-references that will use the
1428 name or caption of the referenced item for `xrefs_name` or the
1429 number for `xrefs_number`. For the `xrefs_number` to be useful
1430 heading numbers must be enabled in the generated document and
1431 table and figure captions must be enabled using for example the
1432 `native_numbering` extension. In order for numbers and reference
1433 text to be updated the generated document must be refreshed.
1435 * JATS writer:
1437 + Support advanced table features (Albert Krewinkel).
1438 + Support author affiliations (#6687, Albert Krewinkel).
1440 * Docbook writer:
1442 + Use correct id attribute consistently (Jan Tojnar).
1443 DocBook5 should always use `xml:id` instead of `id`.
1444 + Handle admonition titles better (Jan Tojnar).
1445 Docbook reader produces a `Div` with `title` class for `<title>`
1446 element within an “admonition” element. Markdown writer then turns
1447 this into a fenced div with `title` class attribute. Since fenced
1448 divs are block elements, their content is recognized as a
1449 paragraph by the Markdown reader. This is an issue for Docbook
1450 writer because it would produce an invalid DocBook document from
1451 such AST – the `<title>` element can only contain “inline”
1452 elements. Handle this special case separately by unwrapping
1453 the paragraph before creating the `<title>` element.
1454 + Add XML namespaces to top-level elements (#6923, Jan Tojnar).
1455 Previously, we only added `xmlns` attributes to chapter
1456 elements, even when running with `--top-level-division=section`.
1457 These namespaces are now added to part and section elements too,
1458 when they are the selected top-level divisions.
1459 We do not need to add namespaces to documents produced with
1460 `--standalone` flag, since those will already have xmlns attribute on
1461 the root element in the template.
1463 * HTML writer:
1465 + Fix handling of nested `csl-` display spans (#6921).
1466 Previously inner Spans used to represent CSL display attributes were
1467 not rendered as div tags as intended.
1469 * EPUB writer:
1471 + Include title page in landmarks (#6919).
1472 Note that the toc is also included if `--toc` is specified.
1473 + Add frontmatter type on body element for nav.xhtml (#6918).
1475 * EPUB templates: use preserveAspectRatio="xMidYMid" for cover image (#6895,
1476 Shin Sang-jae). This change affects both the epub2 and the epub3
1477 templates. It avoids distortion of the cover image by requiring that the
1478 aspect ratio be preserved.
1480 * LaTeX template:
1482 + Include `csquotes` package if `csquotes` variable set.
1483 + Put back `amssymb`. We need it for checkboxes in todo lists,
1484 and maybe for other things. In this location it seems compatible
1485 with the cases that prompted #6469 and PR #6762.
1486 + Disable language-specific shorthands in babel (#6817, #6887).
1487 Babel defines "shorthands" for some languages, and these can
1488 produce unexpected results. For example, in Spanish, `1.22`
1489 gets rendered as `122`, and `et~al.` as `etal`.
1490 One would think that babel's `shorthands=off` option (which
1491 we were using) would disable these, but it doesn't. So we
1492 remove `shorthands=off` and add some code that redefines
1493 the shorthands macro. Eventually this will be fixed in babel,
1494 I hope, and we can revert to something simpler.
1496 * JATS template: allow array of persistent institute ids in `pid`
1497 (Albert Krewinkel).
1499 * Text.Pandoc.Parsing: minor code and efficiency improvements.
1501 * Text.Pandoc.Extension:
1503 + Add `Ext_sourcepos` constructor for `Extension` [API change].
1504 + Add `Ext_xrefs_name` and `Ext_xrefs_number` constructors for
1505 `Extension` (Nils Carson) [API change].
1507 * Text.Pandoc.Citeproc:
1509 + Fix truncation of `[Citation]` list in `Cite` inside footnotes (#6890).
1510 This affected author-in-text citations in footnotes. It didn't cause
1511 problems for the printed output, but for filters that expected the
1512 citation id and other information.
1513 + Allow the use of both inline and external references (#6951),
1514 as with pandoc-citeproc. References defined in the document's
1515 metadata take priority over references with the same id defined in
1516 an external bibliography.
1517 + Use `fetchItem` to get external bibliography (#6940).
1518 + Ensure that BCP47 lang codes can be used. We ignore the variants
1519 and just use the base lang code and country code when passing off
1520 to citeproc.
1521 + Citeproc BibTeX parser: revert change in `getRawField`
1522 which was made (for reasons forgotten) when transferring
1523 this code from pandoc-citeproc. The change led to `--` in
1524 URLs being interpreted as en-dashes, which is unwanted (#6874).
1526 * Text.Pandoc.ImageSize:
1528 + Default to DPI 72 if the format specifies DPI of 0 (#6880).
1529 This shouldn't happen, in general, but it can happen with
1530 JPEGs that don't conform to the spec. Having a DPI of 0
1531 will blow up size calculations (division by 0).
1532 + ImageSize: use JuicyPixels to determine size for png, jpeg, and
1533 gif, instead of doing our own binary parsing (#6936). This
1534 gives more reliable results.
1536 * Text.Pandoc.CSS:
1538 + Remove `foldOrElse` (internal module) (Albert Krewinkel).
1540 * Use skylighting 0.10.2 (#6625).
1542 * Use citeproc 0.3. This fixes issues with references with
1543 duplicate ids (jgm/citeproc#36).
1545 * Use doctemplates 0.9. This fixes issues with boolean
1546 metadata values in the Markdown writer (#6388)
1547 and in `meta-json` (#6650). It also fixes
1548 issues with nested for loops in templates.
1550 * Add translations zh-Hans.yaml and zh-Hant.yaml (#6904, #6909,
1551 Kolen Cheung, taotieren).
1553 * Add tests: True to cabal.project.
1554 This fixes some CI failures for cabal.
1556 * Normalize test/tables/*.native (#6888, Kolen Cheung).
1558 * Move executable to `app` directory to avoid problems with cabal repl.
1560 * CONTRIBUTING: add section "How can I help?" (#6892, Albert Krewinkel).
1561 Also adds a paragraph aimed at highlighting the importance of feature
1562 maintenance.
1564 * MANUAL: Document that --number-sections works in `ms` (#6935).
1567## pandoc 2.11.2 (2020-11-19)
1569 * Default to using ATX (`##`-style) headings for Markdown output
1570 (#6662, Aner Lucero). Previously we used Setext (underlined) headings
1571 by default for levels 1--2.
1573 * Add option `--markdown-headings=atx|setext`, and deprecate
1574 `--atx-headers` (#6662, Aner Lucero).
1576 * Support `markdown-headings` in defaults files.
1578 * Fix corner case in YAML metadata parsing (#6823). Previously YAML
1579 metadata would sometimes not get recognized if a field ended with a
1580 newline followed by spaces.
1582 * `--self-contained`: increase coverage (#6854).
1583 Previously we only self-contained attributes for certain tag names
1584 (`img`, `embed`, `video`, `input`, `audio`, `source`, `track`,
1585 `section`). Now we self-contain any occurrence of `src`,
1586 `data-src`, `poster`, or `data-background-image`, on any tag; and
1587 also `href` on `link` tags.
1589 * Markdown reader:
1591 + Fix detection of locators following in-text citations.
1592 Prevously, if we had `@foo [p. 33; @bar]`, the `p. 33` would be
1593 incorrectly parsed as a prefix of `@bar` rather than a suffix of
1594 `@foo`.
1595 + Improve period suppression algorithm for citations in notes
1596 in note citation styles (#6835).
1597 + Don't increment `stateNoteNumber` for example list references.
1598 This helps with #6836 (a bug in which example list references
1599 disturb calculation of citation note number and affect when
1600 `ibid` is triggered).
1602 * LaTeX reader:
1604 + Move `getNextNumber` from Readers.LaTeX to Readers.LaTeX.Parsing.
1605 + Fix negative numbers in siunitx commands. A change in pandoc 2.11
1606 broke negative numbers, e.g. `\SI{-33}{\celcius}` or `\num{-3}`.
1607 This fixes the regression.
1609 * DocBook reader: drop period in formalpara title
1610 and put it in a div with class `formalpara-title`, so that
1611 people can reformat with filters (#6562).
1613 * Man reader: improve handling of `.IP` (#6858). We now better handle
1614 `.IP` when it is used with non-bullet, non-numbered lists, creating a
1615 definition list. We also skip blank lines like groff itself.
1617 * Bibtex reader: fall back on `en-US` if locale for LANG not found.
1618 This reproduces earlier pandoc-citeproc behavior (jgm/citeproc#26).
1620 * JATS writer:
1622 + Wrap all tables (Albert Krewinkel).
1623 All `<table>` elements are put inside `<table-wrap>` elements, as the
1624 former are not valid as immediate child elements of `<body>`.
1625 + Move Table handling to separate module (Albert Krewinkel).
1626 Adds two new unexported modules:
1627 Text.Pandoc.Writers.JATS.Types, Text.Pandoc.Writers.JATS.Table.
1629 * Org writer:
1631 + Replace org #+KEYWORDS with #+keywords (TEC).
1632 As of ~2 years ago, lower case keywords became the standard (though
1633 they are handled case insensitive, as always).
1634 + Update org supported languages and identifiers according to the
1635 current list contained in
1636 <https://orgmode.org/worg/org-contrib/babel/languages/index.html>
1637 (TEC).
1639 * Only use `filterIpynbOutput` if input format is ipynb (#6841).
1640 Before this change content could go missing from divs with class
1641 `output`, even when non-ipynb was being converted.
1643 * When checking reader/writer name, check base name now that we permit
1644 extensions on formats other than markdown.
1646 * Text.Pandoc.PDF: Fix `changePathSeparators` for Windows (#6173).
1647 Previously a path beginning with a drive, like `C:\foo\bar`, was
1648 translated to `C:\/foo/bar`, which caused problems.
1649 With this fix, the backslashes are removed.
1651 * Text.Pandoc.Logging:
1653 + Add constructor `ATXHeadingInLHS` to `LogMessage` [API change].
1654 + Add constructor `EnvironmentVariableUndefined` to
1655 `LogMessage` [API change].
1657 * Fix error that is given when people specify `doc` output (#6834,
1658 gison93).
1660 * LaTeX template: add a `\break` after parbox in `CSLRightInline`.
1661 This should fix spacing problems between entries with numeric styles.
1662 Also fix number of params on `CSLReferences`.
1664 * reveal.js template: Put quotes around `controlsLayout`,
1665 `controlsBackArrows`, and `display`, since these require strings.
1666 Add `showSlideNumber`, `hashOneBasedIndex`, `pause`.
1668 * Use citeproc 0.2. This fixes a bug with title case around parentheses.
1670 * pandoc.cabal: remove 'static' flag.
1671 This isn't really necessary and can be misleading (e.g. on macOS,
1672 where a fully static build isn't possible). cabal's new option
1673 `--enable-executable-static` does the same. On stack you can add
1674 something like this to the options for your executable in package.yaml:
1676 ld-options: -static -pthread
1678 * Remove obsolete bibutils flag setting in `linux/make_artifacts.sh`.
1680 * Manual:
1682 + Correct `link-citation` -> `link-citations`.
1683 + Add a sentence about `pagetitle` for HTML (#6843, Alex Toldaiev).
1685 * INSTALL.md: Remove references to `pandoc-citeproc` (#6857).
1687 * CONTRIBUTING: describe hlint and how it's used (#6840, Albert
1688 Krewinkel).
1690## pandoc 2.11.1.1 (2020-11-07)
1692 * Citeproc: improve punctuation in in-text note citations (#6813).
1693 Previously in-text note citations inside a footnote would sometimes have
1694 the final period stripped, even if it was needed (e.g. on the end of
1695 'ibid').
1697 * Use citeproc 0.1.1.1. This improves the decision about when
1698 to use `ibid` in cases where citations are used inside
1699 a footnote (#6813).
1701 * Support `nocase` spans for `csljson` output.
1703 * Require latest commonmark, commonmark-extensions.
1704 This fixes a bug with `autolink_bare_uris` and commonmark.
1706 * LaTeX reader: better handling of `\\` inside math in table cells (#6811).
1708 * DokuWiki writer: translate language names for code elements
1709 and improve whitespace (#6807).
1711 * MediaWiki writer: use `syntaxhighlight` tag instead of deprecated
1712 `source` for highlighted code (#6810). Also support `startFrom`
1713 attribute and `numberLines`.
1715 * Lint code in PRs and when committing to master (#6790,
1716 Albert Krewinkel).
1718 * doc/filters.md: describe technical details of filter invocations (#6815,
1719 Albert Krewinkel).
1722## pandoc 2.11.1 (2020-11-03)
1724 * DocBook Reader: fix duplicate bibliography bug (#6773, Nils Carlson).
1726 * HTML reader:
1728 + Parse contents of iframes (#6770).
1729 + Parse inline svg as image unless `raw_html` is set in the reader (in
1730 which case the svg is passed through as raw HTML) (#6770).
1732 * LaTeX reader:
1734 + Fix bug parsing macro arguments (#6796). If `\cL` is
1735 defined as `\mathcal{L}`, and `\til` as `\tilde{#1}`, then
1736 `\til\cL` should expand to `\tilde{\mathcal{L}}`, but
1737 pandoc was expanding it to `\tilde\mathcal{L}`. This is
1738 fixed by parsing the arguments in "verbatim mode" when the
1739 macro expands arguments at the point of use.
1740 + Properly support optional (cite) argument for
1741 `\blockquote` from `csquotes` (#6802).
1743 * LaTeX writer: Improved calculation of table column widths.
1744 We now have LaTeX do the calculation, using `\tabcolsep`.
1745 So we should now have accurate relative column widths no
1746 matter what the text width. The default template has been modified to load
1747 the calc package if tables are used.
1749 * HTML writer: Fix duplicate "class" attribute for table
1750 rows (Andy Morris).
1752 * Text.Pandoc.Filter: allow shorter YAML representation of Citeproc
1753 (Albert Krewinkel). The map-based YAML representation of filters expects
1754 `type` and `path` fields. The path field had to be present for all filter
1755 types, but is not used for citeproc filters. The field can now be omitted
1756 when type is "citeproc", as described in the MANUAL.
1758 * Text.Pandoc.Error: Add `PandocBibliographyError` constructor
1759 for `PandocError` [API change]. This ensures that bibliography parsing
1760 errors generate messages that include the bibliography file name --
1761 otherwise it can be quite mysterious where it is coming from.
1763 * Citeproc: properly handle `csl` field with `data:` URI (#6783).
1764 This is used with the JATS writer, so this fixes a regression
1765 in pandoc 2.11 with JATS output and citeproc.
1767 * Allow `citation-abbreviations` in defaults file.
1769 * JATS templates: ensure `jats_publishing` output is valid
1770 (Albert Krewinkel).
1772 * LaTeX template: Fix `CSLRightInline`, so that it does not
1773 run over the right margin.
1775 * HTML template: default CSS tweaks (Mauro Bieg and John
1776 MacFarlane).
1778 - Fix margin before codeblock
1779 - Add `monobackgroundcolor` variable, making the background color
1780 and padding of code optional.
1781 - Ensure that backgrounds from highlighting styles take precedence over
1782 monobackgroundcolor
1783 - Remove list markers from TOC
1784 - Add margin-bottom where needed
1785 - Remove italics from blockquote styling
1786 - Change borders and spacing in tables to be more consistent with other
1787 output formats
1788 - Style h5, h6
1789 - Set font-size for print media to 12pt.
1790 - Reduce interline space.
1791 - Reduce interparagraph space.
1792 - Reduce line width.
1793 - Remove the special `line-height: 1` for table cells.
1794 - Remove the special line-height for pre.
1795 - Ensure that there is a bit more space before a heading
1796 than after.
1797 - Slightly reduced space after title header.
1798 - Add CSS example to MANUAL
1800 * man template: Change comment that triggers `tbl` from
1801 `.\"t` to `'\" t`, as specified in groff_man(7) (#6803).
1803 * Use latest commonmark, commonmark-extensions.
1804 This fixes a bug with nested blocks in footnotes with the
1805 `footnote` extension to `commonmark`. See jgm/commonmark-hs#63.
1807 * Citeproc: use comma for in-text citations inside footnotes.
1808 When an author-in-text citation like `@foo` occurs in a footnote,
1809 we now render it with: `AUTHOR NAME + COMMA + SPACE + REST`.
1810 Previously we rendered: `AUTHOR NAME + SPACE + "(" + REST + ")"`.
1811 This gives better results. Note that normal citations are still
1812 rendered in parentheses.
1814 * Use latest citeproc:
1816 + citeproc no longer capitalizes notes, so we do it
1817 in pandoc when appropriate.
1818 + Closes #6783.
1820 * Clarify manual on `--track-changes` (#6801).
1822 * Add `doc/jats.md` to document pandoc's handling of JATS
1823 (#6794, Albert Krewinkel).
1825 * Fix code example in lua-filters.md (#6795).
1827## pandoc 2.11.0.4 (2020-10-21)
1829 * Commonmark writer: fix regression with fenced divs (#6768).
1830 Starting with 2.10.1, fenced divs no longer render with
1831 HTML div tags in commonmark output. This is a regression
1832 due to our transition from cmark-gfm. This commit fixes it.
1834 * Use released version of citeproc. (This fixes a mis-step
1835 in the 2.11.0.3 release, which is now deprecated.)
1837 * Use latest sylighting, with support for `groovy`.
1839 * Document that --html-q-tags requires the smart extension on the reader
1840 (#6766).
1842## pandoc 2.11.0.3 (2020-10-20)
1844 * Use latest citeproc (closes #6765). This fixes a problem with
1845 author-in-text citations for references including both an author
1846 and an editor. Previously, both were included in the text, but only
1847 the author should be.
1849 * With `--citeproc`, ensure that the final period is removed when
1850 citations that occur in notes in note-based styles get put in
1851 parentheses. See jgm/citeproc#20.
1853 * Normalize rewritten image paths with `--extract-media` (#6761).
1854 This change will avoid mixed paths like this one when
1855 `--extract-media` is used with a Word file:
1856 `![](C:\Git\TIJ4\Markdown/media/image30.wmf)`. Instead we'll get
1857 `![](C:\Git\TIJ4\Markdown`media`image30.wmf)`.
1859 * Modify `--version` output. Use space more efficiently and report the
1860 citeproc and ipynb versions, along with skylighting, texmath, and
1861 pandoc-types. Drop the word "default" before "user data directory."
1863 * DocBook reader: bibliomisc and anchor support (#6754, Nils Carlson).
1864 Also ensure that bibliodiv without a title no longer results in
1865 an empty Header.
1867 * ConTeXt template: adds `\setupinterlinespace` to fonts larger
1868 than normal (#6763, Denis Maier).
1870 * LaTeX template: Do not load amssymb if not needed (#6469, Angelo Peronio).
1871 See <https://tex.stackexchange.com/a/549938>.
1873 * Relax upper bound on hslua, allow hslua-1.3.* (Albert Krewinkel).
1875 * MANUAL:
1877 + Improve explanation of "indent" variable (#6767, Cyrus Yip).
1878 + Remove org from list of input formats supporting raw_tex (#6753,
1879 Nick Fleisher).
1882## pandoc 2.11.0.2 (2020-10-15)
1884 * Fix handling of `xdata` in bibtex/biblatex bibliographies (#6752).
1886 * Fix some small typos in the API documentation (#6751, Michael Hoffmann).
1888 * Require citeproc 0.1.0.2. This fixes a regression from pandoc-citeproc
1889 involving spacing between components of a reference in certain styles
1890 (e.g. `cell.csl`).
1892 * Fix typos in comments, doc strings, error messages, and tests
1893 (Albert Krewinkel, #6738).
1895## pandoc 2.11.0.1 (2020-10-13)
1897 * LaTeX reader: support more acronym commands (#6746):
1898 `\acl`, `\aclp`, and capitalized versions of already
1899 supported commands.
1901 * Commonmark reader: add `pipe_table` extension *after* defaults (#6739).
1902 Otherwise we get bad results for non-table, non-paragraph
1903 lines containing pipe characters.
1905 * Markdown writer: Fix autolinks rendering for gfm (#6740).
1906 Previously, autolinks rendered as raw HTML, due to the
1907 `class="uri"` added by pandoc's markdown reader.
1909 * LaTeX writer:
1911 + Escape option values in lstlistings environment (#6742).
1912 + Fix handling of `lang` `pt-BR` (#2953). For polyglossia we now
1913 use `\setmainlanguage[variant=brazilian]{portuguese}` and for babel
1914 `\usepackage[shorthands=off,main=brazilian]{babel}`.
1916 * Depend on latest citeproc (0.1.0.1).
1918 + This fixes the citation number issue with ieee.csl and other
1919 styles that do not explicitly sort bibliographies (#6741). (Pandoc
1920 was numbering them by their order in the bibliography file,
1921 rather than the order cited, as required by the CSL spec.)
1922 + Fixes groupin/collapsing with citation items with prefixes.
1924 * default.latex: fix `CSLReference` macro definition.
1926 * Fix MANUAL.txt CSL JSON conversion examples.
1928 * Fix spelling errors in changelog, MANUAL.txt, `doc/org.md` (#6738).
1931## pandoc 2.11 (2020-10-11)
1933 * Add `--citeproc` (`-C`) option to trigger built-in citation processing.
1934 It is no longer necessary to use the external `pandoc-citeproc`
1935 filter. `--citeproc` behaves like a filter and can be positioned
1936 relative to other filters as they appear on the command line.
1938 The new built-in citation processing uses the citeproc library,
1939 a reimplementation of CSL citation processing that fixes many
1940 of the shortcomings of pandoc-citeproc. In general, citation
1941 processing should work much the same as it did with pandoc-citeproc,
1942 but with greater fidelity to CSL styles and better performance.
1943 (The tests from the pandoc-citeproc package have been carried
1944 over to pandoc.) The following differences should be noted:
1946 - At this point, only some of the writers (HTML, ms, LaTeX) properly
1947 interpret CSL display styles. You should get decent output in
1948 all formats (at least as good as with pandoc-citeproc), but
1949 indentation and block-alignment may not be right.
1951 - pandoc-citeproc searches the `~/.csl` directory for `.csl`
1952 styles. Pandoc instead searches the `csl` subdirectory of
1953 the pandoc user data directory (e.g., `~/.pandoc/csl` or
1954 `~/.local/share/pandoc/csl`). Users who already keep
1955 CSL styles in `~/.csl` may find it convenient to add a
1956 symlink.
1958 - Some of the bibliography formats supported by pandoc-citeproc (via
1959 hs-bibutils) are no longer supported: Copac, EndNote,
1960 ISI, MEDLINE, MODS, and RIS. If you use one of these formats,
1961 you may use the `bibutils` utility to convert to BibLaTeX.
1962 We now support only BibTeX, BibLaTeX, CSL JSON,
1963 and pandoc's YAML/Markdown analogue of CSL JSON.
1965 - pandoc-citeproc would always retrieve the independent parent
1966 of a dependent style by doing an HTTP request. pandoc will
1967 now first seek the independent parent locally (in the resource
1968 path or in the `csl` subdirectory of the pandoc user data
1969 directory) before resorting to HTTP. In addition, you may
1970 omit the `.csl` extension, e.g. `--csl zoology`.
1972 - Using the `--bibliography` option (or including
1973 `bibliography` in YAML metadata) no longer triggers
1974 citation processing implicitly: one must always use the
1975 `--citeproc` option if citation processing is wanted.
1977 * Add `csljson` as and input and output format. This allows pandoc
1978 to convert between `csljson` and other bibliography formats
1979 (e.g. `-f csljson -t markdown -s` or `-f bibtex -t csljson`),
1980 and to generate formatted versions of CSL JSON bibliographies
1981 (e.g., `pandoc -f csljson --citeproc pl.json -o pl.pdf`).
1983 * Added `bibtex`, `biblatex` as input formats. This allows pandoc
1984 to convert between BibLaTeX and BibTeX and other bibliography formats,
1985 and to generated formatted versions of BibTeX/BibLaTeX bibliographies
1986 (e.g., `pandoc -f biblatex --citeproc pl.bib -o pl.pdf`).
1988 * Raise informative errors when YAML metadata parsing fails (#6730).
1989 Previously the command would succeed, returning empty metadata,
1990 with no errors or warnings.
1992 * Sort languages in `--list-highlight-languages` output (#6718,
1993 Albert Krewinkel). Languages were previously sorted by their
1994 long name, which leads to unexpected results).
1996 * Add CSS to default HTML template (#6601, Mauro Bieg). This
1997 greatly improves the default typography in pandoc's HTML
1998 output. The CSS is sensitive to a number of variables
1999 (e.g. `mainfont`, `fontsize`, `linestretch`): see the manual for
2000 details. To restore the earlier, more spartan output, you can
2001 disable this with `-M document-css=false`.
2003 * Support `--toc-depth` option for ODT writer (#6696, niszet).
2005 * Fix issues with Windows UNC paths with some options (#5127).
2007 * Remove `fenced_code_blocks` and `backtick_code_blocks` from allowed
2008 `commonmark` and `gfm` extensions. These shouldn't really be counted
2009 as extensions, because they can't be disabled in commonmark.
2010 Adjust markdown writer to check for the commonmark variant in addition
2011 to extensions.
2013 * Add these extensions to `gfm` and `commonmark`:
2014 `fenced_code_blocks`, `backtick_code_blocks`, `fenced_code_attributes`.
2015 These can't really be disabled in the reader, but they need to be enabled
2016 in the writer or we just get indented code.
2018 * Make sure proper set of extensions is recognized for `commonmark_x`.
2020 * Allow `gfm_auto_identifiers`, `ascii_identifiers` extensions for `docx`.
2022 * Markdown reader:
2024 + Add `Maybe FilePath` parameter to `yamlToMeta` [API change].
2025 + Export `yamlToRefs` [API change], a version of `yamlToMeta`
2026 specialized to references.
2027 + Set `citationNoteNum` accurately in citations.
2028 + Revise abbreviation support. Don't insert a nonbreaking space after a
2029 potential abbreviation if it comes right before a note or citation.
2030 This causes problems for citeproc's moving of note citations.
2032 * LaTeX reader:
2034 + Support missing siunitx commands (#6658).
2035 + Support `squared`, `cubed`, `tothe` in siunitx (#6657).
2036 + Improved uncertainty handling in slunitx.
2037 + Factored out siunitx stuff into separate unexposed module.
2038 + Fix improper empty cell filtering (#6689, Christian Despres).
2039 + Fix parsing of "show name" in `\newtheorem` (#6734).
2040 Previously we were just treating it as a string and
2041 ignoring accents and formatting.
2042 + Prevent wrong nesting of `\multirow` and `\multicolumn` table
2043 cells (#6603, Laurent P. René de Cotret).
2044 + Table cell parser not consuming spaces correctly (#6596,
2045 Laurent P. René de Cotret).
2046 + Change `SIRange` to `SIrange` (#6617, Emerson Harkin).
2047 + Allow blank lines inside `\author` (#6324).
2049 * DocBook reader:
2051 + Don't squelch space at end of emphasis and other inline elements;
2052 instead, move it outside the element (#6719).
2053 + Implement table cell alignment (#6698, Nils Carlson).
2054 + Implement column span support for tables (#6492, Nils Carlson).
2055 + Update list of block level tags (#6610).
2058 * JATS reader:
2060 + Don't squelch space at end of emphasis and other inline elements;
2061 instead, move it outside the element (#6719).
2063 * RST reader:
2065 + Apply `.. class::` directly to following Header rather than creating
2066 a surrounding Div (#6699).
2068 * Docx reader:
2070 + Allow empty dates in comments and tracked changes (#6726, Diego
2071 Balseiro).
2073 * Markdown writer:
2075 + Be less aggressive about using quotes for YAML values,
2076 allowing e.g. a quotation mark or bracket as long as it's not at the
2077 beginning of the line.
2078 + Use double quotes for YAML metadata (#6727).
2079 + Sort YAML metadata keys in Markdown output case-insensitive.
2082 * Asciidoc writer:
2084 + Support asciidoctor's block figures (#6538, argent0).
2086 * LaTeX writer:
2088 + Fix spacing issue with list in definition list.
2089 When a list occurs at the beginning of a definition list definition,
2090 it can start on the same line as the label, which looks bad.
2091 Fix that by starting such lists with an `\item[]`.
2093 * HTML writer:
2095 + Support intermediate table headers (#5314, Albert Krewinkel).
2096 + Support attributes on all table elements (Albert Krewinkel).
2097 + Render table footers if present (#6314, Albert Krewinkel).
2098 + Fix addition of `doc-biblioentry` role.
2099 + Support colspans and rowspans in HTML tables (#6312, Albert Krewinkel).
2101 * ICML writer:
2103 + Support internal document links (#5541, Leonard Rosenthol).
2104 + Changed default link state to invisible (#6676, Leonard Rosenthol).
2106 * Docx writer:
2108 + Better handle list items whose contents are lists (#5948, Michael
2109 Hoffmann). If the first element of a bulleted or ordered list is
2110 another list, then that first item would previously disappear if the
2111 target format is docx.
2112 + Separate adjacent tables (#4315). Word combines adjacent tables,
2113 so to prevent this we insert an empty paragraph between two
2114 adjacent tables.
2116 * Org writer:
2118 + Don't force blank line after headings (#6554).
2120 * OpenDocument writer:
2122 + Implement table cell alignment (#6700 Nils Carson, Mauro Bieg).
2123 + New table cell support with row and column spans (#6682, Nils Carson).
2124 + Syntax highlighting for inline code (#6711, niszet).
2126 * Add Text.Pandoc.Citeproc module, exporting `processCitations`
2127 [API change]. This depends on several other, unexported
2128 modules under Text.Pandoc.Citeproc.
2130 * Add module Text.Pandoc.Writers.CslJson, exporting `writeCslJson`.
2131 [API change]
2133 * Add module Text.Pandoc.Readers.CslJson, exporting `readCslJson`.
2134 [API change]
2136 * Add module Text.Pandoc.Readers.BibTeX, exporting `readBibTeX` and
2137 `readBibLaTeX`. [API change]
2139 * Text.Pandoc.Filter: Add `CiteprocFilter` constructor to Filter.
2140 [API change] This runs the processCitations transformation.
2141 We need to treat it like a filter so it can be placed
2142 in the sequence of filter runs (after some, before others).
2143 In FromYAML, this is parsed from `citeproc` or `{type: citeproc}`,
2144 so this special filter may be specified either way in a defaults file
2145 (or by `citeproc: true`, though this gives no control of positioning
2146 relative to other filters).
2148 * Add new exported module Text.Pandoc.Writers.AnnotatedTable [API change]
2149 (#6655, Christian Despres). This module (which should generally
2150 be imported qualified to avoid name conflicts) provides a
2151 `Table` type that mirrors the structure of a pandoc `Table`,
2152 but with added inferred information so that the writers do not have to
2153 lay out tables themselves. The `toTable` and `fromTable` functions convert
2154 between an annotated `Table` and a regular pandoc `Table`. In addition to
2155 producing a `Table` with coherent and well-formed annotations, the
2156 `toTable` function also normalizes its input table like the table
2157 builder does. Tests ensure that `toTable` normalizes tables exactly
2158 like the table builder, and that its annotations are coherent.
2160 * Text.Pandoc.Logging:
2162 + Remove unused `CouldNotParseYamlMetadata` constructor for `LogMessage`
2163 [API change].
2164 + Add `CiteprocWarning` constructor to `LogMessage` [API change].
2166 * Text.Pandoc.Readers.Metadata: export `yamlBsToRefs` [API change].
2167 These allow specifying an id filter so we parse only references
2168 that are used in the document.
2170 * Text.Pandoc.Parsing:
2172 + Export ParseError [API change].
2173 + Add `stateInNote` and `stateNoteNumber` to `ParserState`
2174 [API change]. These are used to populate note numbers for citation
2175 processing.
2177 * Fix apparent typos in sample.lua (#6729, William Lupton).
2178 Also make the writer less aggressive in escaping quotes.
2180 * Text.Pandoc.Options:
2182 + `defaultMathJaxURL`: use `tex-chtml-full` instead of `tex-mml-chtml`
2183 (#6599, Kolen Cheung). This drops the MathML support (which we
2184 don't need for HTML math rendering) and includes the full JavaScript,
2185 which makes it possible to use `--self-contained` (though there may
2186 still be issues if the required math fonts aren't available). This
2187 change should also reduce latency in pages with lots of formulas.
2188 + Add `/tex-chtml-full.js` to `defaultMathJaxURL` (#6593) Previously we
2189 added this in processing command line options, but not in processing
2190 defaults files, which was inconsistent.
2192 * epub.css: Fix cover page selectors and add note explaining their use
2193 (#6649, a-vrma).
2195 * Add data files needed for Text.Pandoc.Citeproc: these include
2196 `default.csl` in the data directory and a `citeproc` directory that
2197 is only used at compile-time for biblatex localizations. Note that we've
2198 added `file-embed` as a mandatory rather than a conditional
2199 dependency, because of the biblatex localization files.
2201 * Lua filters:
2203 + Add SimpleTable for backwards compatibility (#6575, Albert Krewinkel).
2204 A new type `SimpleTable` is made available to Lua filters. It is
2205 similar to the `Table` type in pandoc versions before 2.10;
2206 conversion functions from and to the new Table type are provided.
2207 Old filters using tables now require minimal changes and can use, e.g.,
2209 if PANDOC_VERSION > {2,10,1} then
2210 pandoc.Table = pandoc.SimpleTable
2211 end
2213 and
2215 function Table (tbl)
2216 tbl = pandoc.utils.to_simple_table(tbl)
2217 …
2218 return pandoc.utils.from_simple_table(tbl)
2219 end
2221 to work with the current pandoc version.
2223 + Make `attr` argument optional in `Table` constructor (Albert Krewinkel).
2224 This changes the Lua API. It is highly unlikely for this change to affect
2225 existing filters, since the documentation for the new Table constructor
2226 (and type) was incomplete and partly wrong before. The Lua API is now
2227 more consistent, as all constructors for elements with attributes now
2228 take attributes as the last parameter.
2230 * MANUAL.txt:
2232 * Add a dedicated Citations section which consolidates the information
2233 the manual used to contain about citation processing, and incorporates
2234 some information formerly found in the pandoc-citeproc man page.
2235 + Add note about lualatex using `selnolig`.
2236 + Remove duplicate `seriespage` (#6568, Blake Eryx).
2237 + Remove lists of support extensions for markdown variants (#6604).
2238 Instead, offer the advice to use `--list-extensions=FORMAT`.
2239 + Fix position of attributes in header (Albert Krewinkel).
2240 + Delete obsolete section on compact and loose lists (#6684).
2243 * doc/lua-filters.md:
2245 + Add info on how to debug Lua filters (#6732, Ian Max Andolina).
2246 + Document Underline type and constructor (Albert Krewinkel).
2247 + Document `body` field (Albert Krewinkel).
2248 + Add missing header attribute
2249 + Add missing Link.title field (Albert Krewinkel).
2250 + Make the setting-the-date example conditional (the-solipsist).
2251 This makes the example a bit more realistic.
2252 + Remove outdated link table example.
2254 * doc/org.md:
2256 + Add section on tables (Albert Krewinkel).
2257 + Add section on handling of unknown directives (Albert Krewinkel).
2259 * CONTRIBUTING.md: fix typo (#6584, Dmitry Volodin).
2261 * Use golden test framework for command tests. This means that
2262 `--accept` can be used to update expected output.
2264 * Use the `smart` extension when generating pandoc's man page (#6613).
2266 * Release-candidate: don't build windows i386.
2267 So far we haven't been able to figure out how to get
2268 stack to use a 32-bit ghc.
2270 * Use `null` instead of deprecated `Builder.isNull`.
2272 * Makefile:
2274 + Fix macospkg target to fetch target from S3 artifacts.
2275 + Fix pandoc-templates target to include all partials.
2277 * Remove duplicated dependency in pandoc.cabal (#6591, Felix Yan).
2279 * Sort build depends in pandoc.cabal alphabetically (#6691,
2280 Albert Krewinkel).
2282 * Add .travis.yml for macos release candidate build (#6622).
2283 We need to build the release candidate on Travis rather
2284 than GitHub actions, because GH has macos 10.15, and
2285 binaries compiled on that OS will not work with 10.13.
2286 This build is only triggered on `rc/*` branches.
2288 * Remove instructions for building pandoc-citeproc from CI and
2289 release binary build instructions. We will no longer distribute
2290 pandoc-citeproc.
2292 * Fix math rendering in trypandoc (this broke after
2293 commit d8ad766d17603784b86fc5c2e1b22864125d04d1).
2295 * Use latest versions of skylighting, commonmark (#6589),
2296 comonmark-extensions, commonmark-pandoc, texmath.
2298 * Relax version bounds for hslua, hslua-module-text, bytestring.
2300 * Use released pandoc-types 1.22. This changes the JSON
2301 encoding slightly for the new table types introduced
2302 in 1.21, so they're more consistent with the rest.
2303 Developers of libraries for pandoc filters will want
2304 to take note.
2306 * Fix hlint suggestions, update hlint.yaml (#6680, Christian Despres).
2308 * Code cleanup (#6678, Joseph C. Sible).
2310 * Add haddocks to functions in Text.Pandoc.Writers.Shared (Albert
2311 Krewinkel).
2313 * Remove duplicate `tshow` definition.
2315 * Linux release candidate build: use ghc-musl container. This simplifies
2316 our build process (over using a customized alpine container).
2319## pandoc 2.10.1 (2020-07-23)
2321 * Add `commonmark_x` output format. This is `commonmark` with a number
2322 of useful pandoc extensions enabled.
2324 * Many more extensions now work with `commonmark` and `gfm`.
2326 * Add generic `attributes` extension. This allows attributes to
2327 be added to any block or inline element in a uniform way. Since
2328 the Pandoc AST doesn't include attributes on each element type,
2329 the attributes will sometimes be added by creating a surrounding
2330 Div or Span container. Currently this extension is only
2331 compatible with the `commonmark` and `gfm` readers.
2333 To add an attribute to a block-level element, e.g. a paragraph,
2334 put it before the block:
2335 ```
2336 {#mypara}
2337 This is a paragraph.
2338 ```
2339 Multiple attributes may be used and will be combined:
2340 ```
2341 {#mypara}
2342 {.blue .warning key="val"}
2343 This is a paragraph.
2344 ```
2345 To add an attribute to an inline-level element, put it
2346 immediately after the element:
2347 ```
2348 *emphasized text*{.special}
2349 ```
2351 * Support `--number-sections` for docx output (#1413).
2353 * LaTeX reader:
2355 + Support `\SIRange` reader (#6418, Emerson Harkin).
2356 + Support table col-span and row-span (#6311, Laurent P. René de Cotret).
2357 Supports `\multirow` and `\multicolumn`.
2358 + Support amsthm: `\newtheorem`, `\theoremstyle`, and theorem and
2359 proof environments, including labels and references. The only thing
2360 that is unsupported is the second optional argument, which causes
2361 numbering to be reset after the specified series is incremented.
2362 + Moved some code to T.P.LaTeX.Parsing. We need to reduce the size
2363 of the LaTeX reader to ease compilation on resource-limited systems.
2365 * RST reader:
2367 + Fix csv tables with multiline cells (#6549).
2368 + Fix spurious newlines in some attributes from directives.
2369 + Avoid extra newline in included code blocks.
2371 * Commonmark reader:
2373 + Switch from cmark-gfm to commonmark-hs for commonmark and gfm
2374 parsing. This avoids depending on a C library
2375 and allows us to support more pandoc extensions for
2376 `commonmark` and `gfm`.
2378 * DocBook reader:
2380 + Parse releaseinfo as metadata (#6542).
2382 * Docx reader:
2384 + Only use `bCs/iCs` on runs with `rtl` or `cs` property (#6514, Nikolay
2385 Yakimov).
2386 + Code cleanup/refactoring (Nikolay Yakimov).
2388 * Org reader (Albert Krewinkel):
2390 + Respect export setting which disables entities
2391 MathML-like entities, e.g., `\alpha`, can be disabled with the
2392 `#+OPTION: e:nil` export setting (Albert Krewinkel).
2393 + Respect export setting disabling footnotes. Footnotes can be removed
2394 from the final document with the `#+OPTION: f:nil` export setting.
2395 + Respect tables-excluding export setting. Tables can be removed from
2396 the final document with the `#+OPTION: |:nil` export setting.
2398 * Markdown writer:
2400 + Move `asciify` out of `escapeString`. Otherwise `unsmartify`
2401 doesn't catch quotes that have already been turned to entities.
2402 + Add `writeCommonmark` (new exported function, API change).
2403 + Use unicode super/subscript characters when possible if the
2404 `superscript` or `subscript` extension or `raw_html` aren't available.
2405 + Render caption as following paragraph when `table_caption` extension
2406 is not enabled.
2407 + Use numerical labels for reference links that are longer
2408 than 999 characters or contain square brackets, for conformity
2409 with commonmark (#6560).
2411 * Commonmark writer:
2413 + Instead of using cmark-gfm, use `writeCommonmark` from the
2414 Markdown writer. This function calls the markdown writer
2415 with appropriate extensions and a few small modifications
2416 (e.g. not requiring backslashes before spaces inside
2417 super/subscripts). With this change `comonmark` and
2418 `gfm` output can be used with a wider selection of
2419 extensions.
2421 * Jira writer: keep image caption as alt attribute (#6529, Albert
2422 Krewinkel).
2424 * HTML writer:
2426 + Improve alt-text/caption handling for HTML5 (#6491, Albert Krewinkel).
2427 Screen readers read an image's `alt` attribute and the figure caption,
2428 both of which come from the same source in pandoc. The figure caption is
2429 hidden from screen readers with the `aria-hidden` attribute. This
2430 improves accessibility. For HTML4, where `aria-hidden` is not allowed,
2431 pandoc still uses an empty `alt` attribute to avoid duplicate contents.
2433 * Ms writer:
2435 + Fix code highlighting with blank lines. Previously blank lines
2436 were simply omitted from highlighted code.
2437 + Escape starting periods in ms writer code blocks (#6505, Michael
2438 Hoffmann). If a line of ms code block output starts with a period (.),
2439 it should be prepended by `\&` so that it is not interpreted as a roff
2440 command.
2442 * Text.Pandoc.Extensions:
2444 + Add `raw_markdown` extension (which only affects `ipynb`
2445 input).
2446 + Trim down `githubMarkdownExtensions`.
2447 Previously it included all of the following, which make
2448 sense for the legacy `markdown_github` but not for `gfm`,
2449 since they are part of base commonmark and thus
2450 can't be turned off in `gfm`:
2452 - `Ext_all_symbols_escapable`
2453 - `Ext_backtick_code_blocks`
2454 - `Ext_fenced_code_blocks`
2455 - `Ext_space_in_atx_header`
2456 - `Ext_intraword_underscores`
2457 - `Ext_lists_without_preceding_blankline`
2458 - `Ext_shortcut_reference_links`
2460 These have been removed from `githubMarkdownExtensions`, though
2461 they're still turned on for legacy `markdown_github`.
2462 + Add `Ext_attributes` constructor for `Extension` [API change].
2464 * LaTeX template: use selnolig to selectively suppress ligatures with
2465 lualatex (#6534).
2467 * Benchmark bytestring readers (Nikolay Yakimov).
2469 * Documentation:
2471 + Update using-the-pandoc-api.md (favonia).
2472 + Fix Typos in lua-filters.md (tajmone).
2473 + Rewrite Raw HTML/TeX section in MANUAL.txt to avoid duplicate
2474 headings for the extensions.
2475 + Fix typo in MANUAL.txt (Benjamin Wuethrich).
2476 + Remove duplicate 'titlepage' in MANUAL.txt (Blake Eryx).
2477 + CONTRIBUTING.md: Advertise the official nightlies in GitHub actions.
2478 Replaces #6500, thanks to @ickc.
2482## pandoc 2.10 (2020-06-29)
2484 * Use pandoc-types 1.21. This adds two things:
2486 + A native Underline constructor for Inline (#6277, Vaibhav Sagar).
2487 + More expressive types for tables (#1024, Christian Despres).
2488 Tables can now take attributes; and rowspans and colspans,
2489 column headers, multiple row headers, table head and foot
2490 can all be represented. (Note, however, that reader and
2491 writer support for these features is still lacking, so
2492 most users won't see any differences in table conversion
2493 yet. These changes just lay the foundation for further
2494 improvements.)
2496 * Support new Underline element in readers and writers (#6277,
2497 Vaibhav Sagar).
2499 * Support new Table type (Christian Despres).
2500 The Builder.simpleTable now only adds a row to the TableHead
2501 when the given header row is not null. This uncovered an
2502 inconsistency in the readers: some would unconditionally
2503 emit a header filled with empty cells, even if the header
2504 was not present. Now every reader has the conditional
2505 behaviour. Only the XWiki writer depended on the header row
2506 being always present; it now pads its head as necessary.
2508 * Add an option to disable certificate validation (#6156, Cédric Couralet,
2509 Cécile Chemin, Juliette Fourcot). This commit adds the option
2510 `--no-check-certificate`, which disables certificate checking when
2511 resources are fetched by HTTP.
2513 * Unify defaults and markdown metadata parsers (#6328, Nikolay
2514 Yakimov). Clean up code in Text.Pandoc.Readers.Metadata and
2515 properly handle errors in `yamlToMeta`. This fixes parsing
2516 of Boolean fields in metadata withinin defaults files and reduces
2517 code duplication.
2519 * Docbook reader:
2521 + Implement `<procedure>` (#6442, Mathieu Boespflug).
2522 + Implement `<phrase>` (#6438, Mathieu Boespflug).
2523 + Treat envar and systemitem like code (#6435, Mathieu Boespflug).
2524 + Implement `<replaceable>` (#6437, Mathieu Boespflug)
2525 + Map `<simplesect>` to unnumbered section (#6436, Mathieu Boespflug).
2527 * JATS reader:
2529 + Handle "label" element in section title (#6288).
2530 + Parse abstract element into metadata field of same name
2531 (#6480, Albert Krewinkel).
2533 * Jira reader (Albert Krewinkel):
2535 + Resolve multiple parsing problems, including issues with empty
2536 table cells, faulty recognition of closing emphasis characters, and
2537 parsing of image attributes (#6212, #6219, #6220).
2538 + Two consecutive markup chars are now parsed verbatim (#6343);
2539 styled text must not be empty.
2540 + Newlines are no longer allowed within styled text (#6325).
2541 + Links to anchors are now parsed as links (#6407).
2542 + Retain image attributes (#6234). Jira images attributes as in
2543 `!image.jpg|align=right!` are retained as key-value pairs. Thumbnail
2544 images, such as `!example.gif|thumbnail!`, are marked by a
2545 `thumbnail` class in their attributes.
2546 + Use Underline for inserted text (#6237). Previously, the span was
2547 marked with the non-standard class `inserted`.
2548 + Improve icon conversion for `(/)`, `(x)`, `(!)`, `(?)`
2549 `(+)`, `(-)`, `(off)`, `(*)`. (#6236, #6264).
2550 + Support citations, attachment links, and user links (#6231, #6238,
2551 #6239).
2552 + Resolve parsing issues of blockquote, color (#6233, #6235).
2554 * HTML reader:
2556 + Parse attributes into table attributes.
2557 + Support `<bdo>` (#5794, Tristan de Cacqueray).
2558 + Add `summary` to list of block-level HTML tags (#6385).
2559 This improves support for summary/details inside Markdown.
2560 NOTE: you need to include a blank line before the closing
2561 `</details>`, if you want the last part of the content to
2562 be parsed as a paragraph.
2563 + Fix parsing unclosed th elements in a table (#6247).
2565 * Commonmark reader: Implement `implicit_figures` extension (#6350).
2567 * Markdown Reader:
2569 + Fix inline code in lists (#6284, Nikolay Yakimov).
2570 Previously inline code containing list markers was sometimes
2571 parsed incorrectly.
2572 + Don't require blank line after grid table (#6481).
2573 This allows grid tables to be enclosed in fenced divs with no
2574 intervening blank lines.
2576 * LaTeX reader:
2578 + Don't parse beyond `\end{document}` (#6380).
2579 This required some internal changes to `\subfile` handling.
2580 + Better handling of `\lettrine`. SmallCaps instead of Span
2581 for the part after the initial capital. Ensure that both
2582 arguments are parsed, so that in Markdown both
2583 are treated as raw LateX. (Closes #6258.)
2585 * Org reader (Albert Krewinkel):
2587 + Recognize images with uppercase extensions (#6472).
2588 + Keep unknown keyword lines as raw org. The lines of unknown
2589 keywords, like `#+SOMEWORD: value` are no longer read as metadata,
2590 but kept as raw `org` blocks. This ensures that more information
2591 is retained when round-tripping org-mode files; additionally,
2592 this change makes it possible to support non-standard org
2593 extensions via filters.
2594 + Unify keyword handling. Handling of export settings and other
2595 keywords (like `#+LINK`) has been combined and unified.
2596 + Support `LATEX_HEADER_EXTRA` and `HTML_HEAD_EXTRA`
2597 settings. These export settings are treated like their non-extra
2598 counterparts, i.e., the values are added to the `header-includes`
2599 metadata list.
2600 + Allow multiple `#+SUBTITLE` export settings. The values of all
2601 lines are read as inlines and collected in the `subtitle`
2602 metadata field.
2603 + Read `#+INSTITUTE` values as text with markup. The value is
2604 stored in the `institute` metadata field and used in the
2605 default beamer presentation template.
2606 + The behavior of the `#+AUTHOR` and `#+KEYWORD` export
2607 settings has changed: Org now allows multiple such lines
2608 and adds a space between the contents of each line. Pandoc
2609 now always parses these settings as meta inlines; setting
2610 values are no longer treated as comma-separated lists.
2611 Note that a Lua filter can be used to restore the previous
2612 behavior.
2613 + Read description lines as inlines (#6485). `#+DESCRIPTION` lines
2614 are now treated as text with markup. If multiple such
2615 lines are given, then all lines are read and separated by soft
2616 linebreaks.
2617 + Honor tex export option (#4070). The `tex` export option can be set
2618 with `#+OPTION: tex:nil` and allows three settings:
2619 `t` (the default) causes LaTeX fragments to be parsed as TeX or added
2620 as raw TeX. `nil` removes all LaTeX fragments from the document.
2621 `verbatim` treats LaTeX as text.
2624 * RST reader:
2626 + Pass arbitrary attributes through in code blocks (#6465).
2627 Exceptions: name (which becomes the id), class (which becomes the
2628 classes), and number-lines (which is treated specially to fit
2629 with pandoc highlighting).
2630 + Handle `date::` directive (#6276).
2632 * Textile reader: support `pre.` for code blocks (#6454).
2634 * Ipynb reader:
2636 + Implement `raw_markdown` extension (#5408). Specifying
2637 `-f ipynb+raw_markdown` will cause Markdown cells
2638 to be represented as raw Markdown blocks, instead of being
2639 parsed. This is not what you want when going from `ipynb`
2640 to other formats, but it may be useful when going from `ipynb`
2641 to Markdown or to `ipynb`, to avoid semantically insignificant
2642 changes in the contents of the Markdown cells that might
2643 otherwise be introduced.
2644 + Handle application/pdf output as image (#6430).
2645 + Properly handle image/svg+xml as an image (#6430).
2647 * Docx reader:
2649 + Distinguish between docx parsing and docx container unpacking errors.
2651 * MediaWiki reader:
2653 + Fix `gfm_auto_identifiers` so that `-` is not replaced by `_` (#6335).
2655 * Vimwiki reader:
2657 + Add nested syntax highlighting (#6256, Vlad Hanciuta).
2658 Nested syntaxes are specified like this:
2659 ```
2660 {{{sql
2661 SELECT * FROM table
2662 }}}
2663 ```
2664 The preformatted code block parser has been extended to check if the
2665 first attribute of the block is not a `key=value` pair, and in that
2666 case it will be considered as a class.
2669 * Jira writer (Albert Krewinkel):
2671 + Always escape braces (#6478). Braces are now always escaped, even
2672 within words or when surrounded by whitespace. Jira and
2673 Confluence treat braces specially.
2674 + Convert Underline to inserted text (`+inserted+`).
2675 + Add image attributes (#6234). Image attributes are added
2676 to the output as image parameters. If the image has a
2677 class "thumbnail", then a thumbnail image is generated;
2678 all other attributes are discarded in this case.
2680 * LaTeX writer:
2682 + Ensure that `-M csquotes` works even in fragment mode (#6265).
2683 + Escape `^` specially for listings (#6460).
2684 + Create hypertarget for links with identifier (#6360).
2685 + Distinguish between single and double quotes when using enquote
2686 package (#6457, dbecher-ito).
2687 + Add support for customizable alignment of columns in beamer (#6331,
2688 andrebauer).
2689 + Add support for customizable alignment of columns in beamer
2690 (#4805, #4150, andrebauer).
2692 * HTML writer:
2694 + Use CSS in favor of `<br>` for display math (#6372)
2695 Some CSS to ensure that display math is
2696 displayed centered and on a new line is now included
2697 in the default HTML-based templates; this may be
2698 overridden if the user wants a different behavior.
2700 * Org writer:
2702 + Clean-up Div handling (Albert Krewinkel).
2704 * Docx writer:
2706 + Enable column and row bands for tables (#6371).
2707 This change will not have any effect with the default style.
2708 However, it enables users to use a style (via a reference.docx)
2709 that turns on row and/or column bands.
2711 * OpenDocument (and ODT) writer:
2713 + Add custom-style "Abstract" in metadata abstract.
2714 This ensures that the abstract is rendered with style Abstract.
2715 + Enable custom-style attribute on a Div.
2716 This allows you to apply a custom style to contained paragraphs.
2718 * DocBook writer:
2720 + Add id of figure to enclosed image.
2721 + Add personname element to docbook author (#6244).
2723 * FB2 writer:
2725 + Properly handle cover-image containing spaces (#6391).
2727 * Markdown writer:
2729 + Ensure consistent padding for pipe tables (#6240).
2730 + Avoid unnecessary escapes before intraword `_` when
2731 `intraword_underscores` extension is enabled (#6296).
2733 * RST writer:
2735 + Properly handle images with same alt text (#6194).
2736 Previously we created duplicate references for these in rendering RST.
2738 * AsciiDoc writer:
2740 + Add blank line after Div (#6308).
2742 * Haddock Writer:
2744 + Support Haddock tables (Joe Hermaszewski).
2745 See this PR on Haddock for details on the table format:
2746 <https://github.com/haskell/haddock/pull/718>.
2748 * PowerPoint writer (Jesse Rosenthal):
2750 + Write math input verbatim in speaker notes (#6301).
2751 OMML in speaker notes would lead to corrupt PowerPoint output. We now
2752 output the OMML verbatim as LaTeX in the speaker notes.
2754 * LaTeX template: Make polyglossia package options list-aware
2755 (#6444, Frederik Elwert).
2757 * Reveal.js template:
2759 + Update template for reveal.js 4.0.0 (#6390, Salim B).
2760 + Update template with newly available options (#6347, Jake Zimmerman).
2761 + Use CDN version of revealjs v4 by default (#6408).
2763 * opendocument template: Add abstract and subtitle to opendocument
2764 template (#6369).
2766 * reference.odt: clean up styles. Add Abstract.
2767 Change Author, Date to centered paragraphs with no character
2768 styling.
2770 * epub.css: wrap overlong lines in highlighted code blocks (#6242).
2771 This fixes a problem in iBooks v2.4 with our earlier
2772 horizontally scrolling code blocks. The problem seems to
2773 be a bug in iBooks, not pandoc, but since iBooks is a major
2774 target we're changing pandoc's default behavior so that
2775 pandoc-produced epubs work on that platform.
2777 * Text.Pandoc.PDF:
2779 + Use `--enable-local-file-access` in invoking `wkhtmltopdf` (#6474).
2780 `wkhtmltopdf` changed in recent versions to require this for
2781 access to local files. This fixes PDF via HTML5 with `--css`.
2782 + Send verbose output to stderr, not stdout (#6483).
2784 * Text.Pandoc.MIME: Fix MIME type for TrueType fonts in EPUBs
2785 (#6464, Michael Reed).
2787 * Text.Pandoc.Shared:
2789 + `makeSections`: omit number attribute when unnumbered class
2790 is present (#6339). Previously the attribute was included but given
2791 an empty value, and this caused the table of contents creation
2792 functions in Text.Pandoc.Writers.Shared to think these items had
2793 numbers, which meant that they were included in the TOC even if the
2794 `unlisted` class was used.
2795 + Deprecate `underlineSpan` in Shared in favor of
2796 `Text.Pandoc.Builder.underline` (Vaibhav Sagar).
2797 + `renderTags'`: use self-closing tag for col element (#6295).
2799 * Text.Pandoc.UUID: Fix `getRandomUUID`, which previously would
2800 return the same value twice in a row. Make `getRandomUUID`
2801 polymorphic in PandocMonad. Remove `getUUID` (#6228, Joseph C. Sible).
2803 * Text.Pandoc.Class: Generalize `PandocIO` functions to `MonadIO`.
2805 * Fixed Katex standalone script (#6399, Lucas Escot).
2806 Global macros are now persistent when using the HTML Writer with the
2807 `--katex` option.
2809 * Lua subsystem (Albert Krewinkel):
2811 + Use new type PandocLua for all pandoc Lua operations (API change).
2812 The new type `PandocLua` is an instance of the `PandocMonad` typeclass
2813 and can thus be used in a way similar to `PandocIO`.
2814 + Use PandocError for exceptions in Lua subsystem (API change).
2815 The PandocError type is used throughout the Lua subsystem. All Lua
2816 functions throw an exception of this type if an error occurs. The
2817 `LuaException` type is removed and no longer exported from
2818 `Text.Pandoc.Lua`. In its place, a new constructor `PandocLuaError`
2819 is added to PandocError.
2821 * Lua filters: improve error messages for failing filters (#6332,
2822 Albert Krewinkel). Print the Lua error properly instead of
2823 displaying their `show` string.
2825 * Use latest skylighting. This fixes a bug with lua multiline
2826 comments (and may improve handling of other syntaxes as well).
2827 IT also adds `aria-hidden="true"` to the empty a elements, which
2828 helps people who use screen readers.
2830 * Use latest texmath.
2832 * Require latest doctemplates 0.8.2.
2833 This adds support for template pipes `first`, `rest`,
2834 `last`, `allbutlast`.
2836 * Revert 0e48a02 and dependency on base-noprelude, which hasn't
2837 been updated for ghc 8.10 (see #6187).
2839 * Dependency adjustments:
2841 + Allow haddock-library 1.9.x.
2842 + Allow hslua 1.1 (#6243, Felix Yan).
2843 + Allow base64-bytestring 1.1.
2844 + Use latest jira-wiki-markup.
2845 + Allow http-client 0.7.
2846 + Allow tasty 1.3.x.
2847 + Allow aeson 1.5 (#6400, Felix Yan).
2848 + Remove unused dependency `vector` (#6462, Laurent P. René de Cotret).
2849 + Bump QuickCheck upper bound.
2851 * Significant code cleanup and simplification (Joseph C. Sible, #6223,
2852 #6209, #6225, #6229, #6226, #6340).
2854 * Remove unnecessary hlint ignores (#6341, Joseph C. Sible).
2856 * Remove obsolete RelaxedPolyRec extension (#6487, Nikolay Yakimov).
2858 * trypandoc improvements (Mike Tzou):
2860 + Add standalone option to the command text (#6210).
2861 + Update third party libraries.
2863 * MANUAL.txt:
2865 + Clarify template partial naming (#6476, Mauro Bieg).
2866 + Describe `jira` as "Jira/Confluence wiki markup" (#6351, Albert
2867 Krewinkel). In the past, Jira's wiki markup was also used by -- and
2868 could be imported into -- Atlassian Confluence.
2869 + Add link to print-css.rocks (#6272, Mauro Bieg).
2870 + Clarify pipe table column width adjustment (#6254).
2871 + Fix ATX header syntax.
2872 + Fix misleading note about image size conversions (#6353).
2873 + Update links to reveal.js documentation (#6386, Salim B).
2874 + Separate adjacent verbatim code blocks (#6307, tom-audm).
2876 * org.md:
2878 + Document behavior of `smart` extension (#4387, Albert Krewinkel).
2879 + Describe all supported export options in detail.
2881 * lua-filters.md:
2883 + Fix description of BulletList Lua type (Levi Gruspe).
2884 + Use pandoc.system module in TikZ example (Albert
2885 Krewinkel). Showcase temporary directory handling with
2886 `with_temporary_directory` and `with_working_directory`.
2888 * INSTALL.md: fix FreeBSD port link (#6422, Mo).
2889 The FreeBSD port was renamed from pandoc to hs-pandoc in 2010.
2890 The old pandoc port is still at version 1.5.1.1
2892 * Propagate `(DY)LD_LIBRARY_PATH` in tests (#6376, Lila).
2894 * Bump `cabal-version` to 2.2 (#6377).
2896 * Make it possible to compile using Stack on NixOS (#6439, Mathieu
2897 Boespflug).
2899 * CI action to check for commit message length (Nikolay Yakimov, #6398).
2902## pandoc 2.9.2.1 (2020-03-23)
2904 * Markdown reader: Fix table alignment when heading begins with t (#6153).
2905 Due to a typo (`t` instead of `\t`) we were center aligning column
2906 headings that begin with a lowercase `t`!
2908 * Text.Pandoc.Readers.Roff:
2910 + Fix parsing of `\.` in man/ms readers (#6175).
2911 Previously due to a typo it was being parsed as `` ` ``.
2912 + Fix parsing of `\'` in man/ms readers (#6175). It was being parsed
2913 as a backtick.
2915 * Jira reader (Albert Krewinkel):
2917 + Fix parsing of tables without preceding blankline (#6198).
2918 A bug was fixed which caused faulty parsing if a table was not
2919 preceded by a newline and the first table cell had no space
2920 after the initial `|` characters.
2921 + Fix parsing of strikeout, emphasis (#6196). A bug was fixed which
2922 caused non-emphasized text containing digits and/or non-special
2923 symbols (like dots) to sometimes be parsed incorrectly.
2924 + Support colored inline text, indented lists (#6183, #6184).
2926 * Ms writer:
2928 + Fix definition lists so indent even when paragraph indent is
2929 set to 0 (as is the default). Also ensure indent for display math
2930 that falls back to TeX.
2931 + Use `.QS/.QE` instead of `.RS/.RE` for block quotes.
2933 * EPUB writer: fix regression on detection of front/back/bodymatter
2934 (#6170). This bug caused sections with epub:type `dedication` to be
2935 misplaced in bodymatter instead of frontmatter as specified
2936 in the manual. The same problem would affect other epub:types.
2937 The pattern matching needed to be changed with the use of
2938 `makeSection`.
2940 * AsciiDoc writer: remove redundant `otherwise` guard in
2941 `inlineToAsciiDoc` (#6146, Ryan Scott).
2943 * Text.Pandoc.Class:
2945 + Fix missing import when data files are not embedded (Albert Krewinkel).
2946 + Subdivide Text.Pandoc.Class into small unexported modules
2947 and ensure that all functions have Haddock documentation (#6106,
2948 Albert Krewinkel).
2949 + Finer grained imports of Text.Pandoc.Class submodules (#6203, Albert
2950 Krewinkel).
2952 * Text.Pandoc.XML: Add to list of HTML5 attributes:
2953 `allow`, `autocapitalize`, `decoding`, `enterkeyhint`,
2954 `imagesizes`, `imagesrcset`, `loading`.
2956 * Use implicit Prelude (#6187, Albert Krewinkel).
2957 The previous behavior was introduced as a fix for #4464. It seems that
2958 this change alone did not fix the issue, and `stack ghci` and `cabal
2959 repl` only work with GHC 8.4.1 or newer, as no custom Prelude is loaded
2960 for these versions. Given this, it seems cleaner to revert to the
2961 implicit Prelude.
2963 * Always use custom prelude (#6187, Albert Krewinkel).
2964 Previously, the custom prelude was used only with older GHC versions, as
2965 a workaround for problems with ghci. The ghci problems are resolved by
2966 replacing package `base` with `base-noprelude`, allowing for consistent
2967 use of the custom prelude across all GHC versions.
2969 * Remove outdated checks for no longer supported base versions
2970 (Albert Krewinkel).
2972 * PDF via wkhtmltopdf: put user-specified options last (#6171).
2973 Certain options (e.g. `cover`) need to come after flags on
2974 the command line.
2976 * Text.Pandoc.App: set resource path at the beginning so it can affect
2977 things like include-in-header (#5982).
2979 * Change macOS release candidate CI process so that notarized
2980 packages can be produced (#6169).
2982 * Make MANUAL more explicit about nonbreaking space handling by
2983 `all_symbols_escapable` (#6154, Fabien Schurter).
2985 * trypandoc (Mike Tzou):
2987 + Add checkbox for standalone option (#6189).
2988 + Use strict mode for JavaScript code (#6188).
2989 + Fetch resources over https (#6188).
2990 + Remove unnecessary attributes on style, script elements (#6188).
2992 * Use details tag to make GitHub releases changelog collapsible.
2994 * Update filter code in doc/filters.md so it works with latest pandoc
2995 (#6185).
2997 * linux/Dockerfile: upgrade to alpine 3.11 (#6180, Albert Krewinkel).
2998 This is used to build the static linux binaries.
3001## pandoc 2.9.2 (2020-02-15)
3003 * Add `csv` as an input format (#6100). The CSV table is converted into a
3004 pandoc simple table. A new module Text.Pandoc.Readers.CSV
3005 exports `readCSV` [API change].
3007 * Introduce new format variants for JATS writer (#6014, Albert Krewinkel):
3009 - `jats_archiving` for the "Archiving and Interchange Tag Set",
3010 - `jats_publishing` for the "Journal Publishing Tag Set", and
3011 - `jats_articleauthoring` for the "Article Authoring Tag Set."
3013 The `jats` output format is now an alias for `jats_archiving`.
3014 The module Text.Pandoc.Writers.JATS now exports
3015 `writeJatsArchiving`, `writeJatsPublishing`, and
3016 `writeJatsArticleAuthoring`, as well as the legacy
3017 `writeJATS` [API change].
3019 * `--defaults`: Support `bibliography` and `csl` fields.
3020 Move `addMeta` from Text.Pandoc.App.CommandLineOptions to
3021 Text.Pandoc.App.Opt (internal change).
3023 * Add timing info for filters in `--verbose` mode (#6112).
3024 When verbose mode is specified (verbosity == INFO), print a
3025 notice when running a filter and when a filter completes (including
3026 timing).
3028 * LaTeX reader:
3030 + Allow `&` in LaTeX citation keys (#6110).
3031 + Improve caption and label parsing.
3032 + Don't emit empty Span elements for labels.
3033 + Put tables with labels in a surrounding Div.
3034 + Resolve `\ref` to table numbers (#6137).
3035 + Skip comments in more places where this is needed (#6114).
3036 + Allow beamer overlays for all commands in all raw tex (#6043).
3037 This affects parsing of raw tex in LaTeX and in Markdown and
3038 other formats.
3039 + Improve parsing of raw environments (#6034). If parsing fails
3040 in a raw environment (e.g. due to special characters like unescaped
3041 `_`), try again as a verbatim environment, which is less sensitive to
3042 special characters. This allows us to capture special environments
3043 that change catcodes as raw tex when `-f latex+raw_tex` is used.
3045 * RST reader:
3047 + Add highlight directive (#6140, Lucas Escot).
3049 * MediaWiki writer:
3051 + Prevent triple `[[[` which confuses MediaWiki (#6119).
3053 * HTML reader:
3055 + Don't parse `data-id` as `id` attribute. And similarly don't
3056 parse any `data-X` as `X` when `X` is a valid HTML attribute.
3058 * Org reader:
3060 + Simplify parsing of sub- and superscripts (#6127, Albert Krewinkel).
3061 Speeds up parsing of single-word, markup-less sub- and superscripts.
3063 * LaTeX writer:
3065 + Group biblatex citations even with prefix and suffix (#5849, Ethan
3066 Riley). Previously biblatex citations were only grouped if there
3067 was no prefix. This patch allows them to be grouped in subgroups split
3068 by prefixes and suffixes, which allows better citation sorting.
3069 + Fix regression in handling of columns in beamer slides (#6033).
3070 Columns in title slides were causing problems with
3071 slide division.
3072 + Fix duplicate frame classes in LaTeX/Beamer output (#6107).
3074 * HTML writer:
3076 + Fix duplicate attributes on headings (#6062), regression from 2.7.x.
3077 + Fix `--number-offset` with HTML TOC. Eventually it would be worth
3078 adding a parameter to `makeSections` so this could be done at that
3079 level; then it would also affect other writers that construct
3080 TOC manually.
3081 + reveal.js: restore old behavior for 2D nesting (#6032).
3082 The fix to #6030 actually changed behavior, so that the
3083 2D nesting occurred at slide level N-1 and N, instead of
3084 at the top-level section. This commit restores the v2.7.3 behavior.
3085 If there are more than 2 levels, the top level is horizontal
3086 and the rest are collapsed to vertical.
3087 + reveal.js: ensure that pauses work even in title slides (#5819).
3089 * Markdown writer:
3091 + Fix regression: spurious dots in markdown_mmd metadata output (#6133).
3093 * Docx writer:
3095 + Fix regression with Compact style on tight lists (#6072).
3096 Starting in 2.8, the docx writer no longer distinguishes between tight
3097 and loose lists, since the Compact style is omitted. This is a
3098 side-effect of the fix to #5670, as explained in the changelog. This
3099 patch fixes the problem by extending the exception currently offered to
3100 Plain blocks inside tables to Plain blocks inside list items.
3102 * Jira writer:
3104 + Fix output of table headers (Albert Krewinkel, #6035).
3106 * Add Text.Pandoc.Image with unexported svgToPng.
3108 * Text.Pandoc.XML: Export `html5Attributes`, `html4Attributes`,
3109 `rdfaAttributes` (formerly unexported in Text.Pandoc.Writers.HTML).
3110 [API change]
3112 * Text.Pandoc.Shared: Export a new function `findM` (#6125,
3113 Joseph C. Sible).
3115 * Text.Pandoc.Logging: Add `RunningFilter`, `FilterCompleted`
3116 constructors to LogMessage [API change].
3118 * Text.Pandoc.CSV: fix bug in CSV parser; previously an extra blank record
3119 would sometimes be inserted at the end.
3121 * LaTeX template: add space option to xeCJK with PassOptionsToPackage
3122 (#6002). Otherwise we can get a clash with documentclasses that
3123 already load the package.
3125 * Lua filters:
3127 + Allow filtering of element lists (#6038, Albert Krewinkel). Lists of
3128 Inline and Block elements can now be filtered via `Inlines` and
3129 `Blocks` functions, respectively. This is helpful if a filter
3130 conversion depends on the order of elements rather than a single
3131 element. For example, the following filter can be used to remove all
3132 spaces before a citation:
3134 function isSpaceBeforeCite (spc, cite)
3135 return spc and spc.t == 'Space'
3136 and cite and cite.t == 'Cite'
3137 end
3139 function Inlines (inlines)
3140 for i = #inlines-1,1,-1 do
3141 if isSpaceBeforeCite(inlines[i], inlines[i+1]) then
3142 inlines:remove(i)
3143 end
3144 end
3145 return inlines
3146 end
3148 + Add methods `insert`, `remove`, and `sort` to pandoc.List
3149 (Albert Krewinkel). Example of use:
3151 local numbers = pandoc.List {2, 3, 1}
3152 numbers:sort() -- numbers is now {1, 2, 3}
3153 + Make `pandoc.List` a callable constructor (Albert Krewinkel).
3154 It is now possible to construct a new List via
3155 `pandoc.List()` instead of `pandoc.List:new()`.
3156 + Add tests for pandoc.List module (Albert Krewinkel).
3158 * Text.Pandoc.App.CommandLineOptions: Change `setVariable` to use `Text`
3159 instead of `String`. This avoids some unnecessary unpacking.
3161 * Use versioned directory for windows release zipfile.
3162 Also remove old `make-windows-installer.bat`, superseded by GitHub
3163 actions workflow, and modify `pandoc.wxs` for new paths.
3165 * Extensive code cleanup (#6141, #6128, #6129, #6130, #6123,
3166 #6105, 6102, #6117, #6124, #6115, #6116, #6111, Joseph C. Sible).
3168 * Fix hlint warnings (Albert Krewinkel).
3170 * Use latest doclayout, doctemplates (#6031). The new version of
3171 doclayout fixes a memory leak that affected `--include-in-header` with
3172 large files (and possibly other cases involving extremely long lines).
3174 * Use latest texmath.
3176 * Use latest skylighting and fix test suite (#6086).
3178 * sample.lua: Fix typo in descriptive comments (#6136, Caleb Maclennan).
3179 Fix typo in error message (#6135).
3181 * Add Docker and GH Actions instructions/links to INSTALL.md.
3183 * Update filter documentation (#6065). Improve cabal v2 instructions.
3184 Remove example using pandoc API directly (we have other
3185 docs for that and it was outdated).
3187 * Lua filter docs:
3189 + Cross-link constructors and types (Albert Krewinkel).
3190 Thanks to @bpj for the idea.
3191 + Sort pandoc.List methods alphabetically (Albert Krewinkel).
3192 + Unify, fix anchors and internal links (#6061, Albert Krewinkel).
3193 Links and anchors now follow consistent conventions, like
3194 lowercase-only anchor names. This breaks some links to specific
3195 sections in the document, but will make it much easier to link
3196 documentation in the future.
3197 + Clarify filter function execution order (#6059, Albert Krewinkel).
3199 * In docs, update URLs and use `https:` wherever possible (#6090,
3200 Salim B).
3202## pandoc 2.9.1.1 (2020-01-05)
3204 * Markdown reader:
3206 + Fix parsing bug affected indented code after raw HTML (#6009, #5360).
3208 * LaTeX writer:
3210 + Fix regression in beamer slide structure with certain slide levels
3211 (#6030).
3212 + Allow framebreaks for beamer's TOC (Heiko Schlittermann, #6012)
3213 + Properly handle unnumbered headings level 4+ (#6018).
3214 Previously the `\paragraph` command was used instead of
3215 `\paragraph*` for unnumbered level 4 headings.
3217 * HTML writer:
3219 + Fix revealjs slide structure regression with certain slide levels
3220 (#6030).
3221 + Add newlines to make slide show output more readable.
3223 * Org writer:
3225 + Remove extra spaces from table cells (Albert Krewinkel, #6024).
3227 * JATS template: Update JATS dtd (Arfon Smith, #6020). Use the archiving
3228 and interchange DTD rather than the more restrictive journal publishing
3229 DTD (which doesn't permit ext-link as a valid child).
3231 * Text.Pandoc.PDF: Fix `runTeXProgram` so that the input source is always
3232 overwritten (#6027). Previously it wasn't overridden if the file already
3233 existed, which led to bad results on subsequent runs when
3234 `pdf-engine-opt=-output-directory=` was used to specify an explicit temp
3235 dir.
3237 * Text.Pandoc.BCP47: Change `getLang` to handle block-level contents
3238 (#6008). Some readers (e.g. RST) will populate the `lang` metadata field
3239 with block-level content. `getLang` has been modified to handle this.
3240 Previously in these cases the LaTeX writer would not properly set the
3241 "main language" of the document.
3243 * Fix `test/tables.org` (Albert Krewinkel).
3245 * Use HTTPS in copyright message (Felix Yan, #6010)
3248## pandoc 2.9.1 (2019-12-23)
3250 * Add Jira reader (Albert Krewinkel, #5556).
3252 * Jira writer: use jira-wiki-markup renderer (Albert Krewinkel,
3253 #5926). The following improvements are included in this change:
3255 + non-jira raw blocks are fully discarded instead of showing
3256 as blank lines;
3257 + table cells can contain multiple blocks;
3258 + unnecessary blank lines are removed from the output;
3259 + markup chars within words are properly surrounded by
3260 braces;
3261 + preserving soft linebreaks via `--wrap=preserve` is
3262 supported.
3264 Note that backslashes are rendered as HTML entities, as there
3265 appears no alternative to produce a plain backslash if it is
3266 followed by markup. This may cause problems when used with
3267 confluence, where rendering seems to fail in this case.
3269 * Fix regression with `--number-sections`. Starting with 2.8,
3270 `--number-sections` also had the effect of `--section-divs`,
3271 even if `--section-divs` was not specified.
3273 * Improved table of contents generation in markdown, RTF,
3274 commonmark, better handling cases where section headings are
3275 enclosed in divs.
3277 * Ensure that later default file values for `variable` replace
3278 earlier ones (5988).
3280 * HTML reader: Add `nav` to list of block-level tags.
3282 * Org reader (Albert Krewinkel):
3284 + Wrap named table in Div, using name as id (#5984).
3285 Tables which are given a name via `#+NAME:` or `#+LABEL:`
3286 are wrapped in an additional Div, with the name set as the
3287 Div's ID.
3288 + Report parsing errors properly.
3289 + Fix parsing problem for colons in headline (#5993).
3291 * Text.Pandoc.PDF: Ensure UTF8 when printing source in
3292 `--verbose` mode, avoiding an error on platforms that
3293 default to something other than UTF-8 (#5997).
3295 * Text.Pandoc.Templates: Strip directory before trying to find
3296 partial in data files (#5987).
3298 * Text.Pandoc.Shared: Improve `makeSections` so we don't get
3299 doubled "number" attributes in EPUB output (or anywhere
3300 else) (#5986).
3302 * Added tests for `--toc` and `--section-divs`.
3304 * Text.Pandoc.MIME: Added glsl MIME type for WebGL maps (#6000,
3305 Jared Lander).
3307 * MANUAL: A bit clearer explanation for `--base-header-level`.
3308 We now say exactly how to translate between the deprecated
3309 `--base-header-level` and `--shift-heading-level-by`.
3311 * lua-filters.md:
3313 + Remove spurious dot in title (#5996, Mauro Bieg).
3314 + Replace metadata example with image centering (#6004,
3315 Albert Krewinkel). Thanks to @efx for proposing this filter.
3318## pandoc 2.9 (2019-12-11)
3320 * Text.Pandoc.Templates [API change]
3322 + Add Monad wrappers `WithDefaultPartials` and `WithPartials`.
3323 Wrapping these around an instance of `PandocMonad` gives
3324 us different instances of `TemplateMonad`, with different
3325 search behavior in retrieving partials.
3326 To compile a template and limit partial search to pandoc's
3327 data files, use `runWithDefaultPartials (compileTemplate ...)`.
3328 To compile a template and allow partials to be found locally
3329 (either on the file system or via HTTP, in the event that
3330 the main template has an absolute URL), ue
3331 `runWithPartials (compileTemplate ...)`.
3332 + Export `getTemplate`, which seeks a template locally,
3333 or via HTTP if the template has an absolute URL, falling
3334 back to the data files if not found.
3335 + Export `compileDefaultTemplate` -- does `getDefaultTemplate`
3336 and compiles the result, raising an error on failure.
3338 * Text.Pandoc.Class [API change]
3340 + Remove `TemplateMonad` instances for `PandocIO` and `PandocPure`.
3341 These were too limiting and caused a bug whereby a local
3342 partial could be used even when the default template was requested.
3343 We now rely on instances provided in the Templates module.
3345 * Text.Pandoc.App.OutputSettings: Simplify template retrieval code.
3347 * ConTeXt template: Adjust to title formatting (#5949, Denis Maier).
3348 Add `\setupinterlinespace` to `title`, `subtitle`, `date` and `author`
3349 elements: otherwise longer titles that run over multiple lines will look
3350 squashed as `\tfd` etc. won't adapt the line spacing to the font size.
3352 * reveal.js template: Add title-slide-attributes variable (#5981,
3353 Frederik Elwert).
3355 * More informative JSON parse error (#5973).
3357 * Use external emojis package (forked from pandoc). Removed emoji data
3358 in Text.Pandoc.Emoji.
3360 * Fix regression in `makeSections` (#5965).
3361 Previously `hierarchicalize` (the ancestor of `makeSections`) would put
3362 header attributes on the containing Div. In 2.8 this behavior changed,
3363 which broke some tools depending on pandoc. Here we roll back this change,
3364 so that attributes again migrate from the header to the containing Div when
3365 `makeSections` is run. Note that attributes are retained on the header as
3366 well (unlike before) -- with the exception of the `id` attribute, which of
3367 course cannot be duplicated.
3369 * Fix `--toc-depth` regression in 2.8 (#5967).
3371 * Use doctemplates 0.8. Rename template 'filters' as 'pipes'
3372 to avoid confusion with the other notion of filter used by pandoc.
3374 * Fix README.md so that relative links from manual become absolute.
3375 Previously they'd be broken links when viewed on GitHub or Hackage.
3376 So we add the base URL for the pandoc manual.
3378 * Document display math syntax in manual.
3380## pandoc 2.8.1 (2019-12-05)
3382 * Add `ascii_identifiers` as a supported extension for `markdown`.
3383 This fixes a regression in 2.8.
3385 * Fix regression with behavior of `--variable` (#5962).
3386 Previously `-Vfoo=1 -Vfoo=2` would produce a list value for foo;
3387 with 2.8 it produced just `2`. This commit restores the earlier
3388 behavior.
3390 * Roll back part of of `--shift-heading-level-by` change (#5957).
3391 With positive heading shifts, starting in 2.8 this option
3392 caused metadata titles to be removed and changed to regular
3393 headings. This behavior is incompatible with the old
3394 behavior of `--base-header-level` and breaks old workflows,
3395 so we have rolled back the change. Note that there is now an
3396 asymmetry in positive and negative heading level shifts:
3397 With positive shifts, the metadata title stays the same and
3398 does not get changed to a heading in the body, while with
3399 negative shifts, a heading can be converted into the
3400 metadata title.
3402 * Text.Pandoc.Shared: Fix `makeSections` so it doesn't turn
3403 column Divs into sections.
3405 * HTML writer: add task-list class to ul if all elements are
3406 task list items. This will allow styling unordered task
3407 lists in a way that omits the bullet.
3409 * HTML-based templates: Add CSS to suppress bullet on unordered task lists.
3411 * ConTeXt template: Fix `\startcslreferences` and use ConTeXt syntax
3412 conventions (#5945, Denis Maier). The old version had a too large
3413 a skip at the beginning of the reference list.
3415 * LaTeX template: keep the `\author{}` command even if author is not
3416 specified (#5961, Yihui Xie). Avoids a LaTeX warning.
3418 * Generate Emoji module with TH.
3420 + Add Text.Pandoc.Emoji.TH.
3421 + Replace long literal list in Text.Pandoc.Emoji with one-liner
3422 generating it from `emoji.json` using TH.
3423 + Add Makefile target to download `emoji.json`.
3424 + Remove `tools/emoji.hs`.
3426 * Increase GC allocation space for compilation in cabal.project.
3428 * Clean up manual on PDF generation backend options (#5940).
3430 * Update release checklist to include code signing step and update
3431 Windows release-candidate builds (#5950).
3434## pandoc 2.8.0.1 (2019-11-26)
3436 * List `pdf` in `--list-output-formats`.
3437 * EPUB writer: Fix regression with `--css` (#5937). In 2.8 `--css`
3438 would not have an effect on EPUB output.
3439 * RST writer: Use grid tables for one-column tables, since
3440 simple tables clash with heading syntax in this case (#5936).
3441 * Add unexported module Text.Pandoc.Readers.Metadata (see #5914).
3442 * Use doctemplates 0.7.2, which adds the `nowrap` filter to
3443 templates.
3444 * Update default man template using `nowrap` for .TH heading (#5929).
3445 * HTML templates: Add support for `toc-title` variable (#5930,
3446 Alexandre Franke).
3447 * Remove `grffile` (LaTeX package) requirement in MANUAL.txt
3448 (#5927, Ian Max Andolina).
3449 * Use skylighting 0.8.3.
3451## pandoc 2.8 (2019-11-22)
3453 * Improvements in templates system (from doctemplates):
3455 + Pandoc templates now support a number of new features that
3456 have been added in doctemplates: notably, `elseif`, `it`,
3457 partials, filters, and syntax to control nesting and reflowing of
3458 text. These changes make pandoc more suitable out of the
3459 box for generating plain-text documents from data in YAML
3460 metadata. It can create enumerated lists and even tabular
3461 structures.
3462 + We now used templates parameterized on doclayout Doc types.
3463 The main impact of this change is better reflowing of
3464 content interpolated into templates. Previously,
3465 interpolated variables were rendered independently and
3466 interpolated as strings, which could lead to overly long
3467 lines. Now the templates interpolated as Doc values which
3468 may include breaking spaces, and reflowing occurs after
3469 template interpolation rather than before.
3470 + Remove code from the LaTeX, Docbook, and JATS writers that
3471 looked in the template for strings to determine whether it
3472 is a book or an article, or whether csquotes is used. This
3473 was always kludgy and unreliable.
3474 + Change template code to use new API for doctemplates.
3476 * Add `--defaults`/`-d` option. This adds the ability to specify
3477 a collection of default values for options in a YAML file. For
3478 example, one might define a set of defaults for letters,
3479 and then do `pandoc -d letter myletter.md -o myletter.pdf`.
3480 See the documentation of this feature in MANUAL.txt.
3482 * Raise error on unsupported extensions (#4338).
3484 * The `--list-extensions[=FORMAT]` option now lists only
3485 extensions that affect the given FORMAT.
3487 * Add `-L` option as shortcut for `--lua-filter`.
3489 * Add `--shift-heading-level-by` option and deprecate
3490 `--base-heading-level` (#5615). The new option does
3491 everything the old one does, but also allows negative shifts.
3492 It also promotes the document metadata (if not null) to a
3493 level-1 heading with a +1 shift, and demotes an initial
3494 level-1 heading to document metadata with a -1 shift. This
3495 supports converting documents that use an initial level-1
3496 heading for the document title.
3498 * Allow `--metadata-file` to be used repeatedly to include
3499 multiple metadata files (Owen McGrath, #5702). Values in
3500 files specified first will be overridden by those in later
3501 files.
3503 * `--ascii` now uses numerical hex character references (#5718).
3505 * Allow PDF output to stdout (#5751). PDF output now behaves like other
3506 binary formats: it will not be output to the terminal, but can be
3507 sent to stdout using either `-o -` or a pipe. The intermediate format
3508 will be determined based on the setting of `--pdf-engine`.
3510 * Make some writers sensitive to 'unlisted' class on headings (#1762).
3511 If this is present on a heading with the 'unnumbered' class,
3512 the heading won't appear in the TOC. This class has no
3513 effect if 'unnumbered' is not also specified. This affects HTML-based
3514 writers (including slide shows and EPUB), LateX (including beamer), RTF,
3515 and PowerPoint. Other writers do not yet support `unlisted`.
3517 * Fix `gfm_auto_identifiers` behavior with emojis (#5813). Note that
3518 we also now use emoji names for emojis when `ascii_identifiers`
3519 is enabled.
3521 * When `--ipynb-output` is used with the default "best" format, strip
3522 ANSI escape codes for non-ipynb output (#5633). These cause problems
3523 in many formats, including LaTeX.
3525 * Don't look for template files remotely for remote input (#5579).
3526 Previously pandoc would look for the template at a remote URL when a
3527 URL was used for the input file, instead of taking it from the
3528 data directory.
3530 * Allow combining `-Vheader-includes` and `--include-in-header` (#5904).
3531 Previously `header-includes` set as a variable would be
3532 clobbered by material included using `--include-in-header`.
3534 * Change merge behavior for metadata. Previously, if a document
3535 contained two YAML metadata blocks that set the same field, the
3536 conflict would be resolved in favor of the first. Now it is resolved
3537 in favor of the second (due to a change in pandoc-types).
3538 This makes the behavior more uniform with other things in pandoc
3539 (such as reference links and `--metadata-file`).
3541 * Don't add a newline to fragment output if there's already one.
3543 * Change exit codes and document in MANUAL.txt:
3545 + `PandocAppError` was 1, is now 4
3546 + `PandocOptionError` was 2, is now 6
3547 + `PandocMakePDFError` was 65, is now 66
3549 * Switch to new pandoc-types and use Text instead of String [API change].
3550 (Christian Despres, #5884).
3552 * HTML reader:
3554 + Better handling of `<q>` with cite attribute (#5798, Ole Martin Ruud).
3555 If a `<q>` tag has a `cite` attribute, we interpret it as a Quoted
3556 element with an inner Span.
3557 + Add support for HTML `<samp>` element (#5792, Amogh Rathore).
3558 The `<samp>` element is parsed as Code with class `sample`.
3559 + Add support for HTML `<var>` element (#5799, Amogh Rathore).
3560 The `<var>` element is parsed as Code with class `variable`.
3561 + Add support for `<mark>` elements (Florian B, #5797). Parse
3562 `<mark>` elements from HTML as Spans with class `mark`.
3563 + Add support for `<kbd>` elements, parsing them as Span with class
3564 `kbd` (Daniele D'Orazio, #5796).
3565 + Add support for `<dfn>`, parsing this as a Span with class `dfn`
3566 (#5882, Florian Beeres).
3568 * Markdown reader:
3570 + Headers: don't parse content over newline boundary (#5714).
3571 + Handle inline code more eagerly within lists (Brian Leung, #5627).
3572 + Removed some needless lookaheads.
3573 + Don't parse footnote body unless extension enabled.
3574 + Fix small super/subscript issue (#5878). Superscripts and subscripts
3575 cannot contain spaces, but newlines were previously allowed
3576 (unintentionally). This led to bad interactions in some cases
3577 with footnotes. With this change newlines are also not allowed inside
3578 super/subscripts.
3579 + Use `take1WhileP` for `str`, table row. This yields a small but
3580 measurable performance improvement.
3583 * LaTeX reader:
3585 + Fix parsing of optional arguments that contain braced text (#5740).
3586 + Don't try to parse includes if `raw_tex` is set (#5673).
3587 When the `raw_tex` extension is set, we just carry through
3588 `\usepackage`, `\input`, etc. verbatim as raw LaTeX.
3589 + Properly handle optional arguments for macros (#5682).
3590 + Fix `\\` in `\parbox` inside a table cell (#5711).
3591 + Improve `withRaw` so it can handle cases where the token string is
3592 modified by a parser (e.g. accent when it only takes part of a Word
3593 token) (#5686). This fixes a bug that caused the ends of
3594 certain documents to be dropped.
3595 + Handle `\passthrough` macro used by latex writer (#5659).
3596 + Support tex `\tt` command (#5654).
3597 + Search for image with list of extensions like latex does, if an
3598 extension is not provided (#4933).
3599 + Handle `\looseness` command values better (#4439).
3600 + Add `mbox` and `hbox` handling (Vasily Alferov, #5586).
3601 When `+raw_tex` is enabled, these are passed through literally.
3602 Otherwise, they are handled in a way that emulates LaTeX's behavior.
3603 + Properly handle `\providecommand` and `\provideenvironment` (#5635).
3604 They are now ignored if the corresponding command or environment
3605 is already defined.
3606 + Support epigraph command in LaTeX Reader (oquechy, #3523).
3607 + Ensure that expanded macros in raw LaTeX end with a space
3608 if the original did (#4442).
3609 + Treat `ly` environment from lilypond as verbatim (Urs Liska, #5671).
3610 + Add `tikzcd` to list of special environments (Eigil Rischel).
3611 This allows it to be processed by filters, in the same way that
3612 one can do for `tikzpicture`.
3614 * Roff reader:
3616 + Better support for `while`.
3617 + More improvements in parsing conditionals.
3618 + Fix problem parsing comments before macro.
3619 + Improve handling of groups.
3620 + Better parsing of groups (#5410). We now allow groups
3621 where the closing `\\}` isn't at the beginning of a line.
3623 * RST reader:
3625 + Keep `name` property in `imgAttr` (Brian Leung, #5619).
3626 + Fixed parsing of indented blocks (#5753). We were requiring
3627 consistent indentation, but this isn't required by RST.
3628 + Use title, not admonition-title, for admonition title.
3629 This puts RST reader into alignment with docbook reader.
3630 + Don't strip final underscore from absolute URI (#5763).
3631 + Avoid spurious warning when resolving links to internal anchors
3632 ending with `_` (#5763).
3634 * Org reader:
3636 + Accept `ATTR_LATEX` in block attributes (Albert Krewinkel, #5648).
3637 Attributes for LaTeX output are accepted as valid block attributes;
3638 however, their values are ignored.
3639 + Modify handling of example blocks (Brian Leung, #5717).
3640 + Allow the `-i` switch to ignore leading spaces (Brian Leung).
3641 + Handle awkwardly-aligned code blocks within lists (Brian Leung).
3642 Code blocks in Org lists must have their `#+BEGIN_` aligned in a
3643 reasonable way, but their other components can be
3644 positioned otherwise.
3645 + Fix parsing of empty comment lines (#5856, Albert Krewinkel).
3646 Comment lines in Org-mode can be completely empty.
3648 * Muse reader (Alexander Krotov):
3650 + Add RTL support (#5551).
3651 + Do not allow closing asterisks to be followed by `*`.
3652 + Do not split series of asterisks into symbols and emphasis (#5821).
3653 + Do not terminate emphasis on `*` not followed by space.
3655 * DokuWiki reader:
3657 + Parse markup inside monospace ('') (#5916, Alexander Krotov).
3659 * Docx reader:
3661 + Move style-parsing-specific code to a new unexported module,
3662 Text.Pandoc.Readers.Docx.Parse.Styles (Nikolay Yakimov).
3663 + Move StyleMap to docx writer (Nikolay Yakimov).
3664 + Only use LTR when it is overriding BiDi setting (#5723, Jesse
3665 Rosenthal). The left-to-right direction setting in docx is used
3666 in the spec only for overriding an explicit right-to-left setting.
3667 We only process it when it happens in a paragraph set with BiDi.
3668 This is especially important for docs exported from Google Docs,
3669 which explicitly (and unnecessarily) set `rtl=0` for every paragraph.
3670 + Fix list number resumption for sublists (#4324).
3671 The first list item of a sublist should not resume numbering
3672 from the number of the last sublist item of the same level,
3673 if that sublist was a sublist of a different list item.
3675 * Docbook reader:
3677 + Richer parse for admonitions (Michael Peyton Jones, #1234).
3678 Instead of parsing admonitions as blockquotes, we now parse
3679 them as Divs with an appropriate class. We also handle titles
3680 for admonitions as a nested Div with the "title" class.
3681 + Fix nesting of chapters and sections (#5864, Florian Klink,
3682 Félix Baylac-Jacqué).
3683 + Fix bug with entities in mathphrase element (#5885).
3685 * MediaWiki reader:
3687 + Skip optional `{{table}}` template (#5757).
3689 * LaTeX reader:
3691 + Fix dollar-math parsing to ensure that space is left between a
3692 control sequence and a following letter (#5836).
3693 + In `untokenize`, ensure space between control sequence
3694 and following letter (#5836).
3695 + Don't omit macro definitions defined in the preamble.
3696 These were formerly omitted (though they still affected macro
3697 resolution if `latex_macros` was set). Now they are included in
3698 the document body.
3699 + Parse macro definitions as raw LaTeX when `latex_macros` is
3700 disabled. (When `latex_macros` is enabled, we omit them, since
3701 pandoc is applying the macros itself.)
3702 + Fix a hang/memory leak in certain circumstances (#5845).
3703 + Text.Pandoc.Readers.LaTeX.Parsing: add `[Tok]` parameter to
3704 `rawLaTeXParser`. This allows us to repeat retokenizing
3705 unnecessarily in e.g. `rawLaTeXBlock`.
3706 + Add KOMA-Script metadata commands (#5910, Andrew Dunning).
3707 Add all titling commands to existing definition for `\dedication`.
3708 + Parse `\micro` siunitx unit command (#5921, Jose Luis Duran).
3710 * Markdown writer:
3712 + Ensure proper nesting when we have long ordered list markers (#5705).
3713 + Make `plain` output plainer (#5741). Previously we used the following
3714 Project Gutenberg conventions for plain output: extra space before and
3715 after level 1 and 2 headings, all-caps for strong emphasis,
3716 underscores surrounding regular emphasis. Now these
3717 conventions are used only when the `gutenberg` extension is
3718 enabled. By default, Strong and Emph are rendered without
3719 special formatting, and headings are rendered without
3720 special formatting, and with only one blank line following.
3721 To restore the former behavior, use `-t plain+gutenberg`.
3722 + Prefer using raw_attribute when enabled (#4311).
3723 The `raw_attribute` will be used to mark raw bits, even HTML
3724 and LaTeX, and even when `raw_html` and `raw_tex` are
3725 enabled, as they are by default. To get the old behavior,
3726 disable `raw_attribute` in the writer.
3727 + Prefer `pipe_tables` to raw HTML even when we must
3728 lose width information (#2608, #4497).
3729 + Improve escaping in list items (#5918).
3731 * AsciiDoc writer:
3733 + Don't include `+` in code blocks for regular asciidoc.
3734 This is asciidoctor-specific.
3735 + Handle admonitions (#5690).
3737 * LaTeX writer:
3739 + Add thin space when needed in LaTeX quote ligatures (#5684).
3740 + Use `\hspace{0pt}` for 0-width space U+200B (#5756).
3741 + Use `cslreferences` environment for csl bibliographies.
3742 This allows bibliographies to receive special formatting.
3743 The template now contains definition of this environment (enabled
3744 only when CSL is used). It also defines a `\cslhangindent` length.
3745 This is set to 2em by default when the bibliography style specifies
3746 a hanging indent. To override the length, you can use e.g.
3747 `\setlength{\cslhangindent}{7em}` in header-includes.
3748 See jgm/pandoc-citeproc#410.
3749 + Strip off `{}` around locator for biblatex/natbib output (#5722).
3750 + Fix line breaks at start of paragraph (#3324).
3751 Previously we just omitted these. Now we render them
3752 using `\hfill\break` instead of `\\`. This is a revision
3753 of a PR by @sabine (#5591) who should be credited with the idea.
3754 + We no longer look in the template or header-includes to see if a
3755 book or article documentclass is used, or to see whether the
3756 `csquotes` package is used. To use `csquotes` for LaTeX, set
3757 `csquotes` in your variables or metadata. To specify a book
3758 style, use the `documentclass` variable or
3759 `--top-level-division`.
3760 + Fix horizontal rule (#5801). We change to use 0.5pt rather than
3761 `\linethickness`, which apparently only ever worked "by accident"
3762 and no longer works with recent updates to texlive.
3764 * ConTeXt writer:
3766 + Add option to include source files in ConTeXt PDFs (Tristan
3767 Stenner, #5578). The metadata field or variable
3768 (`includesource`) can be set to attach the source documents
3769 to the resulting PDF.
3770 + Customizable type of PDF/A for the ConTeXt writer (Karl
3771 Pettersson, #5608). The `pdfa` variable may now be set in metadata.
3772 Also updated color profile settings in accordance with ConTeXt wiki,
3773 and made ICC profile and output intent for PDF/A customizable
3774 using `pdfaiccprofile` and `pdfaintent`.
3775 + Unit tests: adjust code property to avoid an irrelevant
3776 failure involving inline code with two consecutive newlines.
3777 + Set `csl-hanging-indent` variable if needed.
3778 + Use special environment for CSL references.
3779 + Use braces, not start/stop, for inline language tags.
3780 This prevents unwanted gobbling of spaces.
3782 * HTML writer:
3784 + Use numeric character references with `--ascii` (#5718).
3785 Previously we used named character references with html5 output.
3786 But these aren't valid XML, and we aim to produce html5 that is
3787 also valid XHTML (polyglot markup). (This is also needed for epub3.)
3788 + Ensure that line numbers in code blocks get id-prefix (#5650).
3789 + Ensure TeX formulas are rendered correctly (Philip Pesca,
3790 #5658). The web service passed in to `--webtex` may render
3791 formulas using inline or display style by default.
3792 Prefixing formulas with the appropriate command ensures
3793 they are rendered correctly.
3794 + Render inline formulas correctly with `--webtex` (Philip
3795 Pesca, #5655). We add `\textstyle` to the beginning of the
3796 formula to ensure it will be rendered in inline style.
3797 + Pass through `aria-` attributes to HTML5 (#5642).
3798 + Render a Quoted element with an inner Span with
3799 `cite` attribute using a `<q>` tag (#5798, Ole Martin Ruud).
3800 + Render a Span with class `mark` using the `<mark>` element
3801 (Florian Beeres, #5797).
3802 + Render Span with class `dfn` using `<dfn>` element
3803 (Florian Beeres, #5882).
3804 + Render Span with class `kbd` using `<kbd>` element (Daniele
3805 D'Orazio, #5796).
3806 + Render Code with class `variable` using `<var>` element
3807 (Amogh Rathore, #5799).
3808 + Render Code with class `sample` using `<samp>` element
3809 (Amogh Rathore, #5799).
3811 * EPUB writer:
3813 + Improve splitting into chapters (#5761), using `makeSection`.
3814 + Avoid issuing warning multiple times when title not set (see #5760).
3815 + Use svg tag wrapper for cover image (#5638). In addition, the
3816 code generating the image has been moved to the template, to make it
3817 more customizable. NOTE: Those who use custom EPUB
3818 templates will need to adjust their templates, adding the
3819 code to generate the cover image. (Previously this was just
3820 inserted into 'body'.)
3821 + Improve toChapters, making it work better if there are Divs
3822 around sections.
3823 + Add support for EPUB2 covers (blmage, #3992).
3824 + Do not override existing "fileN" medias when writing to EPUB format
3825 (blmage, #4206).
3826 + Ensure that `lang` variable is set on all chapters (so that it
3827 will add an `xml:lang` attribute on the `html` element).
3829 * RST writer:
3831 + Removed remnants of `admonition-title`.
3832 + Fix handling of `:align:` on figures and images (#4420).
3833 When the image has the `align-right` (etc.) class, we now use
3834 an `:align:` attribute.
3835 + Improve spacing for tables with no width information (#5899).
3836 If a simple table would be too wide, we use a grid table.
3837 + Fix backslash escaping after strings (Albert Krewinkel, #5906).
3838 The check whether a complex inline element following a string must
3839 be escaped, now depends on the last character of the string instead
3840 of the first.
3841 + Ensure there's a blank line before tables (#5898).
3843 * Dokuwiki writer:
3845 + Handle mixed lists without HTML fallback (#5107).
3847 * XWiki writer:
3849 + Fix multiline table (Zihang Chen, #5683).
3851 * Muse writer:
3853 + Add RTL support (Alexander Krotov, #5551).
3855 * Man writer:
3857 + Suppress non-absolute link URLs (#5770). Absolute URLs are
3858 still printed in parentheses following the link text, but relative
3859 URLs are suppressed (just as internal links starting with '#'
3860 always have been).
3861 + Improved definition list term output. Now we boldface code but
3862 not other things. This matches the most common style in man pages
3863 (particularly option lists).
3865 * Ms writer:
3867 + Use `.LP` instead of `.PP` for line block (#5588).
3868 + Use boldface for definition terms in DefinitionLists.
3870 * JATS writer:
3872 + Do not emit empty `<fn-group>` (Mauro Bieg, #5595).
3873 + Update template to v1.1dtd (#5632, Arfon Smith).
3874 + Update `data/jats.csl` to avoid commas between editor
3875 name-part elements. (#5629)
3876 + Add `abstract` to template (Mauro Bieg).
3878 * TEI writer:
3880 + Don't strip hash from internal links (#5922).
3882 * Jira writer:
3884 + Remove escapeStringForJira for code blocks (Jan-Otto Kröpke).
3885 + Remove extraneous newline after single-line block quotes
3886 (#5858, Albert Krewinkel).
3887 + Improve escaping of special characters, using backslash escapes
3888 instead of HTML entities (#5858, Albert Krewinkel).
3890 * OpenDocument writer:
3892 + Avoid duplicate attributes (#4634). We use the innermost
3893 attribute in nested cases.
3894 + If `native_numbering` extension is set, use native OpenDocument
3895 enumeration for figures and tables (Nils Carlson).
3896 + Place caption before table (#5681, Dmitry Pogodin).
3898 * ODT writer:
3900 + Add a test for MathML formulas in ODT documents (blmage).
3901 + Improve the parsing of frames in ODT documents (blmage).
3903 * Docx writer:
3905 + Make handling of styles more robust in localized versions
3906 of Word (Nikolay Yakimov, #5523, #5052, #5074). We now use
3907 style names, not ids, for assigning semantic meaning, since
3908 the ids can change depending on the locale. Style name
3909 comparisons are case-insensitive, since those are
3910 case-insensitive in Word. Since docx style names can have
3911 spaces in them, and pandoc-markdown classes can't, anywhere
3912 when style name is used as a class name, spaces are
3913 replaced with ASCII dashes `-`. Code styles, i.e. "Source
3914 Code" and "Verbatim Char" now honor style inheritance. Docx
3915 Reader now honours "Compact" style (used in
3916 Pandoc-generated docx). The side-effect is that "Compact"
3917 style no longer shows up in docx+styles output. Styles
3918 inherited from "Compact" will still show up.
3919 + Re-use Readers.Docx.Parse for StyleMap (#5766, Nikolay Yakimov).
3920 + Internal improvements and code simplification (Nikolay Yakimov).
3921 + Preserve built-in styles in DOCX with custom style (Ben Steinberg,
3922 #5670). This change prevents custom styles on divs and spans
3923 from overriding styles on certain elements inside them, like
3924 headings, blockquotes, and links. On those elements, the
3925 "native" style is required for the element to display correctly.
3926 This change also allows nesting of custom styles; in order to do so,
3927 it removes the default "Compact" style applied to Plain blocks,
3928 except when inside a table.
3929 + Add `proofState` to list of elements carried over from
3930 settings.xml in the reference.docx (Krystof Beuermann, #5703).
3931 + Change order of `ilvl` and `numId` in `document.xml` (Agustín
3932 Martín Barbero, #5645). Also, make list para properties go first.
3933 This reordering of properties shouldn't be necessary but
3934 it seems Word Online does not understand the docx correctly otherwise.
3936 * PowerPoint writer:
3938 + Code formatting is now context dependent (Jeroen de Haas, #5573).
3939 This commit alters the way in which the Powerpoint writer treats
3940 inline code and code blocks. Inline code is now formatted at
3941 the same size as the surrounding text. Code blocks are now given
3942 a margin and font size according to their level.
3943 Furthermore this commit allows changing the font with which code is
3944 formatted via the `monofont` option.
3945 + Start numbering at appropriate numbers (Jesse Rosenthal, #5709).
3946 Starting numbers for ordered lists were previously ignored. Now
3947 we specify the number if it is something other than 1.
3949 * Text.Pandoc.Parsing:
3951 + Add `manyChar`, `many1Char`, `manyTillChar`, `many1TillChar`,
3952 `many1Till`, `manyUntil`, `mantyUntilChar`: these are like their
3953 unsuffixed counterparts but pack some or all of their output
3954 (Christian Despres, #5884).
3955 + Add `stateAllowLineBreaks` to `ParserState` [API change].
3956 + Fix inline parsing in grid table cells (#5708).
3957 + Change type of `setLastStrPos` so it takes a `Maybe SourcePos`
3958 rather than a `SourcePos` [API change].
3959 + Make `parseFromString'` and `gridTableWith` and
3960 `gridTableWith'` polymorphic in the parser state,
3961 constraining it with `HasLastStrPosition` [API change].
3962 + `parseFromString'`: reset `stateLastStrPos` to `Nothing` before parse.
3963 + Rename takeWhileP -> take1WhileP and clean it up.
3964 (It doesn't match the empty sequence.)
3966 * Text.Pandoc.PDF:
3968 + For PDFs via HTML, ensure temp file is deleted even if the pdf
3969 program is not found (#5720).
3970 + Better detection of a Cygwin environment (#5451).
3971 + Don't assume tex log file is UTF8-encoded (#5872).
3972 Fall back to latin1 if it can't be read as UTF-8.
3974 * Text.Pandoc.Extensions:
3976 + Export new function `getAllExtensions`, which returns the
3977 extensions that affect a given format (whether enabled by default
3978 or not) [API change].
3979 + Change type of `parseFormatSpec` from
3980 `Either ParseError (String, Extensions -> Extensions)`
3981 to `Either ParseError (String, [Extension], [Extension])`
3982 [API change].
3983 + Add `Ext_gutenberg` constructor to `Extension` [API change].
3984 + Add `Ext_native_numbering` constructor to `Extension` [API change]
3985 (Nils Carlson).
3987 * Text.Pandoc.Readers, Text.Pandoc.Writers:
3989 + Change type of `getReader` and `getWriter` so they return
3990 a value in the PandocMonad instance rather than an Either
3991 [API change]. Exceptions for unknown formats and unsupported
3992 extensions are now raised by these functions.
3994 * Text.Pandoc.App
3996 + Change `optMetadataFile` type from `Maybe FilePath` to `[FilePath]`
3997 (Owen McGrath, #5702) [API change].
3999 * Text.Pandoc.Logging:
4001 + Add `CouldNotDeduceFormat` constructor to `LogMessage` [API change].
4002 Issue this warning when we're falling back to markdown or
4003 html because we don't recognize the extension of the input or
4004 output files.
4005 + Clarify warning for missing title (#5760).
4006 + Add `UnusualConversion` constructor to `LogMessage` [API change]
4007 (Mauro Bieg, #5736). Emit warning on `-f latex -o out.pdf`.
4009 * Lua filters:
4011 + Improve function documentation (Albert Krewkinkel).
4012 + Traverse nested blocks and inlines in correct order (Albert
4013 Krewinkel, #5667). Traversal methods are updated to use the new
4014 Walk module so that sequences with nested Inline (or Block) elements
4015 are traversed in the order in which they appear in the linearized
4016 document.
4017 + New unexported module `Text.Pandoc.Lua.Walk` (Albert Krewinkel).
4018 Lua filters must be able to traverse sequences of AST
4019 elements and to replace elements by splicing sequences back
4020 in their place. Special `Walkable` instances can be used for
4021 this; those are provided in a new module
4022 `Text.Pandoc.Lua.Walk`.
4023 + `Attr` values can now be given as normal Lua tables (Albert
4024 Krewinkel, #5744). This can be used as a convenient alternative
4025 to constructing `Attr` values with `pandoc.Attr`. Identifiers
4026 are taken from the `id` field, classes must be given as
4027 space separated words in the `class` field. All remaining fields
4028 are included as attributes. With this change, the following lines
4029 now create equal elements:
4030 ```
4031 pandoc.Span('test', {id = 'test', class = 'a b', check = 1})
4032 pandoc.Span('test', pandoc.Attr('test', {'a','b'}, {check = 1}))
4033 ```
4034 This also works when using the *attr* setter:
4035 ```
4036 local span = pandoc.Span 'text'
4037 span.attr = {id = 'test', class = 'a b', check = 1}
4038 ```
4039 Furthermore, the *attributes* field of AST elements can now be a
4040 plain key-value table even when using the `attributes` accessor:
4041 ```
4042 local span = pandoc.Span 'test'
4043 span.attributes = {check = 1} -- works as expected now
4044 ```
4045 + Export `make_sections`, remove `hierarchicalize`. Lua filters that
4046 use `hierarchicalize` will need to be rewritten to use
4047 `make_sections`.
4048 + Add a `clone()` method to all AST elements (Albert Krewinkel, #5568).
4049 + Fix Lua function names in pandoc.system (niszet). Change
4050 `get_current_directory` to `get_working_directory` and
4051 `with_temp_directory` to `with_temporary_directory`, to
4052 conform to the manual.
4054 * Text.Pandoc.Error:
4056 + Add constructors `PandocUnknownReaderError`,
4057 `PandocUnknownWriterError`, `PandocUnsupportedExtensionError`.
4058 [API change].
4059 + Better message for `PandocShouldNeverHappenError`.
4060 + Better message for `PandocTemplateError`.
4062 * Text.Pandoc.Emoji:
4064 + Update emoji list (#5666). Done using new `tools/emojis.hs`,
4065 which uses the list from the gem GitHub uses. Future updates
4066 can be done with this tool.
4068 * Text.Pandoc.PDF:
4070 + Pass value of `--dpi` to `rsvg-convert` when converting SVG to PDF
4071 in the process of creating a PDF (#5721).
4073 * Text.Pandoc.Shared:
4075 + Replace `Element` and `makeHierarchical` with `makeSections`.
4076 Now that we have Divs, we can use them to represent the
4077 structure of sections, and we don't need a special Element type.
4078 `makeSections` reorganizes a block list, adding Divs with class
4079 `section` around sections, and adding numbering if needed.
4080 This change also fixes some longstanding issues recognizing section
4081 structure when the document contains Divs (#3057, see also #997).
4082 + Remove `Element` type [API change]
4083 + Remove `makeHierarchicalize` [API change]
4084 + Add `makeSections` [API change]
4085 + Export `deLink` [API change]
4086 + Make `filterIpynbOutput` strip ANSI escapes from code in output
4087 for non-ipynb formats, when the default "best" option is used with
4088 `--ipynb-output` (#5633).
4089 + Fix `camelCaseToHyphenated` so it handles `ABCDef` better.
4090 + Improve `isTight` (#5857). If a list has an empty item,
4091 this should not count against its being a tight list.
4092 + Export `htmlSpanLikeElements` [API change] (Daniele D'Orazio, #5796).
4093 This is a mapping of HTML span-like elements that are internally
4094 represented as a Span with a single class.
4095 + Change the implementation of `htmlSpanLikeElements` to retain
4096 classes and attributes (#5882, Florian Beeres).
4098 * Text.Pandoc.Slides: recognize content in Divs when determining
4099 slide level.
4101 * Text.Pandoc.SelfContained:
4103 + Omit content-type on type attribute for `<style>` (#5725).
4104 It doesn't seem to be valid for HTML5, and as a result Chrome
4105 ignores the style element.
4107 * Text.Pandoc.Pretty has been removed [API change].
4108 We now use the new external doclayout module instead.
4110 * Text.Pandoc.Writers.Shared:
4112 + Remove `metaToJSON`, `metaToJSON'` [API change].
4113 + Modify `addVariablesToContext`, `defField`, `setField`, `getField`,
4114 `resetField` to work with Context rather than JSON values. [API change]
4115 + Export new function `endsWithPlain` [API change].
4116 + Change `gridTables` so it does better at keeping the widths of
4117 columns (#4320) and does better at figuring out column widths
4118 when no widths are given (#5899).
4120 * Text.Pandoc.Options
4122 + Change type of `writerTemplate` to `Maybe Template` instead
4123 of `Maybe String`.
4124 + Change To/FromJSON instances for `HTMLMathMethod`, `CiteMethod`,
4125 `ObfuscationMethod`, `TrackChanges`, `WrapOption`,
4126 `TopLevelDivision`, `ReferenceLocation`, `HTMLSlideVariant` (#5790).
4127 In each case we use lowercase (or hyphenated lowercase) for
4128 constructors to line up more closely with command-line option
4129 values. This is a breaking change for those who manually decode or
4130 encode JSON for these data types (e.g. for `ReaderOptions` or
4131 `WriterOptions`).
4133 * Text.Pandoc.Filters:
4135 + Add `FromYAML` instance for `Filter`.
4136 + `applyFilters`: Add and apply filters in order (not reversed)
4137 This changes `applyFilters` from Text.Pandoc.Filter so
4138 that it does a left fold rather than a right fold, applying
4139 the filters in the order listed.
4141 * Text.Pandoc.XML:
4143 + Change `toEntities` to emit numerical hex character references
4144 (#5718).
4146 * Text.Pandoc.Highlighting:
4148 + Add additional listings languages (Wandmalfarbe).
4150 * Text.Pandoc.MediaBag:
4152 + Some of the types using Strings were switched to use FilePath instead
4153 (Christian Despres, #5884).
4155 * Text.Pandoc.Templates:
4157 + Don't import/export `varListToJSON` [API change]. It is removed in
4158 doctemplates >= 0.3.
4159 + Change type of `renderTemplate'` [API change]. Return value is
4160 now Text rather than being polymorphic. This makes room for
4161 upcoming removal of the `TemplateTarget` class from doctemplates.
4163 * Text.Pandoc.App.Opt [API changes]:
4165 + More convenient To/FromJSON instances. Make the field names
4166 like `strip-empty-paragraphs` rather than `optStripEmptyParagraphs`.
4167 Anyone who is using JSON serialization of Opt will need to adjust
4168 things accordingly.
4169 + Change `optHighlightStyle` to a `Maybe String` instead of
4170 `Maybe Style`. Do the parsing/loading of themes later, after
4171 option parsing.
4172 + Remove `optBaseHeaderLevel` from `Opt`. We now just use
4173 `optShiftHeadingLevelBy`, to avoid redundancy.
4174 + Change `optShiftHeadingLevel` to `optShiftHeadingLevelBy` to
4175 match the option.
4176 + Custom FromJSON instance for `LineEnding`, so either `CRLF`
4177 or `crlf` will work.
4178 + Change `optVariables` from `[(String, String)]` to `Context Text`.
4179 + Change `optMetadata` to `Meta`, to allow structured values.
4180 The current behavior of the `--metadata` option stays the same.
4181 + Rename `optReader`, `optWriter` as `optFrom`, `optTo`.
4182 + Add `FromYAML` instances to `Opt` and to all subsidiary types.
4183 + Rename `optMetadataFile` to `optMetadataFiles`.
4184 + Rename `optPDFEngineArgs` to `optPDFEngineOpts`.
4185 + Rename `optWrapText` to `optWrap`.
4186 + Add `IpynbOutput` enumerated type: use this instead of
4187 a string for `optIpynbOutput`.
4188 + Change optInputFiles to a `Maybe [FilePath]` (#5888) [API change].
4189 `Nothing` means: nothing specified.
4190 `Just []` means: an empty list specified (e.g. in defaults).
4191 + List fields in Opt so they aren't reversed (#5881) [API change].
4192 Previously `optIncludeInHeader`, etc. were in reverse order.
4193 + The `sourcefile` variable is now always a list. It used to be
4194 sometimes a string, sometimes a list (when there was more than one).
4196 * Template changes:
4198 + default.latex: added code for `cslreferences` environment,
4199 to be used for pandoc-citeproc references. A `csl-hanging-indent`
4200 variable (set automatically if there is a `hanging-ident`
4201 class on the references Div) controls whether contents of this
4202 environment receive a hanging indent.
4203 + default.latex: Add `space` as default option for xeCJK, so that
4204 spaces between words are preserved (#5855, jeongminkim-islab).
4205 This is necessary for Korean.
4206 + default.latex: Remove include of `grffile` (#5848).
4207 This package used to be needed for proper handling of image filenames
4208 containing periods (in addition to the period before the extension).
4209 It no longer works with the latest LaTeX kernel and graphicx,
4210 so we have removed it. Future versions of graphicx will handle
4211 these filenames without the need for `grffile`.
4212 + default.context: add a saner default for page numbers.
4213 Previously they appeared centered at the top of the page;
4214 now we put them centered at the bottom, unless the `pagenumbering`
4215 variable is set.
4216 + default.context: define a start-stop-pair `cslreferences` to
4217 allow for hanging indents in the bibliography (#5875, Denis Maier).
4218 + default.ms: update defaults. Use Palatino font, use slightly
4219 wider interparagraph space, don't indent paragraphs,
4220 and put page numbers on the bottom. This brings ms output
4221 closer to default LaTeX output.
4222 + default.revealjs: add navigationMode (Mauro Bieg, #5657).
4223 + default.muse: handle multiple authors better.
4224 + docbook4, docbook5 templates: add indentation to body.
4225 + HTML-based templates: use `styles.html` partial to avoid
4226 code duplication.
4227 + HTML-based templates: change indentation of styles in template.
4229 * reference.docx (#5820):
4231 + Change Block Text (block quote) style so that the same font
4232 is used as in the body text, and the block text is indented
4233 left and right.
4234 + All headings now have a uniform color.
4235 + Level-1 headings no longer set `w:themeShade="B5"`.
4236 + Level-2 headings are now 14 point rather than 16 point.
4237 + Level-3 headings are now 12 point rather than 14 point.
4238 + Level-4 headings are italic rather than bold.
4240 * epub.css: Add CSS for hanging-indent div to support pandoc-citeproc's
4241 new hanging indents.
4243 * pandoc.cabal:
4245 + Repeat ghc-options in all stanzas.
4246 + Remove conditionals for ghc < 8 (Albert Krewinkel, #5693).
4247 + Compile with `-Wcpp-undef` and `-fhide-source-paths` when possible
4248 (Albert Krewinkel).
4249 + Add cabal.project to extra-source-files (Albert Krewinkel).
4250 + Add dependency on skylighting-core (#5729). Even though it shouldn't
4251 be needed, some tools require it.
4252 + Require latest pandoc-types, texmath, skylighting, haddock-library.
4253 + Ensure TemplateHaskell is added to other-extensions when it is
4254 used (Vanessa McHale, #5728).
4255 + Remove `derive_json_via_th` flag; always use TH. This cuts down
4256 on code duplication and reduces the chance for errors. See #4083.
4258 * Makefile:
4260 + Add ghci target.
4261 + Add ghcid target.
4262 + Remove references to obsolete flag (#5694).
4264 * Benchmarks: fix failure on ipynb.
4266 * Use MathJax 3 (zorkow).
4268 * KaTeX math: respect `classoption=fleqn` variable,
4269 bump KaTeX version to 0.11.1 (#5815, Mauro Bieg).
4271 * Fix redundant constraint compiler warnings (Pete Ryland, #5625).
4273 * Use throwError instead of fail when appropriate.
4275 * Use Prelude.fail to avoid ambiguity with fail from GHC.Base.
4277 * Add `diff-zip.sh` to tools (John MacFarlane, Agustín Martín Barbero).
4278 This is intended to make it easier to test differences in zip
4279 containers, like epub, docx, or odt.
4281 * Add `.gitattributes` (#5747). This ensures that the golden files
4282 in `test/fb2/reader/` don't have newlines converted. This should fix
4283 a test failure on GitHub CI with Windows.
4285 * Reorder options in `--help`.
4287 * Revise code for HsYAML-0.2.0.0 (@vijayphoenix, #5704).
4289 * Remove blank line in code example in Haddocks (Leif Metcalf, #5679).
4291 * Fix trypandoc with `getReader`/`getWriter` changes.
4293 * Allow building pandoc with GHC 8.8.
4295 * linux tarball: add architecture `-amd64` to filename.
4296 Now it will be: `pandoc-VERSION-linux-ARCH.tar.gz`.
4298 * MANUAL.txt:
4300 + Add section for exit codes.
4301 + Document some pptx limitations in slide show section:
4302 No incremental display (#5689). No pause with `. . .` (#5701).
4303 + reveal.js flags (Mauro Bieg, #5653).
4304 + Document addition of `data-` prefix to unknown attributes in HTML5.
4305 + Link to YAML spec (Mauro Bieg, #5687).
4306 + Fix capitalization of "Linux" (#5859, Marcus Stollsteimer).
4307 + Use a table for exit codes.
4308 + Put all template variable docs into one section.
4309 + Use ATX headers consistently.
4310 + Add fuller documentation of templates (#5779), including
4311 new template syntax, partials, etc.
4312 + Add documentation for the variable `hyperrefoptions` (Wandmalfarbe).
4313 + Clarify when macro definitions are passed as raw latex.
4314 In Markdown input, they are always passed through. In LaTeX, only if
4315 `latex_macros` is disabled.
4316 + Clarify that `--dpi` provides a default and doesn't override
4317 dpi values specified in the images themselves (#5721).
4318 + Document how to use custom writers with `--standalone` (#5866).
4319 + Clarify `--preserve-tabs` default.
4321 * INSTALL.md:
4323 + Fix instructions for libicu.
4324 + Add Void Linux instructions (Volodymyr Kozachnyskyi).
4326 * CONTRIBUTING.md:
4328 + Add information on tests (Agustín Martín Barbero, #5652).
4329 + Add information about command test naming to CONTRIBUTING (Florian B).
4331 * Fix typos in changelog and comments (#5896, Brian Wignall).
4333 * doc/lua-filters.md:
4335 + Fix mistakes in mediabag module docs (#5851, Albert Krewinkel).
4336 + Improve metadata replacement example in lua-filters doc (#5851).
4337 + Mention which Lua version is shipped with pandoc (Albert Krewinkel,
4338 #5892).
4340## pandoc 2.7.3 (2019-06-11)
4342 * Add `jira` (Atlassian's Jira wiki markup) as output format (#2497,
4343 Albert Krewinkel).
4345 * Add `tex_math_dollars` to `multimarkdownExtensions` (#5512).
4346 This form is now supported in multimarkdown,
4347 in addition to `tex_math_double_backslash`.
4349 * Fix `--self-contained` so it works when output format has extensions.
4350 Previously if you used `--self-contained` with `html-smart` or
4351 `html+smart`, it wouldn't work.
4353 * Add template variable `curdir` with working directory
4354 from which pandoc is run (#5464).
4356 * Markdown reader: don't create implicit reference for empty header
4357 (#5549).
4359 * Muse reader: allow images inside link descriptions (Alexander Krotov).
4361 * HTML reader: epub related fixes.
4363 + With epub extensions, check for `epub:type` in addition to `type`.
4364 + Fix problem with noteref parsing which caused block-level
4365 content to be eaten with the noteref.
4366 + Rename `pAnyTag` to `pAny`.
4367 + Refactor note resolution.
4368 + Trim definition list terms (Alexander Krotov).
4370 * LaTeX reader:
4372 + Add braces when resolving `\DeclareMathOperator`
4373 (#5441). These seem to be needed for xelatex but not pdflatex.
4374 + Allow newlines in `\mintinline`.
4375 + Pass through unknown listings language as class (#5540).
4376 Previously if the language was not in the list of languages supported
4377 by listings, it would not be added as a class, so highlighting
4378 would not be triggered.
4379 + `rawLaTeXInline`: Include trailing `{}`s in raw latex commands (#5439).
4380 This change affects the markdown reader and other readers that allow raw
4381 LaTeX. Previously, trailing `{}` would be included for unknown
4382 commands, but not for known commands. However, they are sometimes used
4383 to avoid a trailing space after the command. The chances that a `{}`
4384 after a LaTeX command is not part of the command are very small.
4386 * MediaWiki reader: handle multiple attributes in table row (#5471,
4387 chinapedia).
4389 * Docx reader: Add support for `w:rtl` (#5545). Elements with this
4390 property are put into Span inlines with `dir="rtl"`.
4392 * DocBook reader: Issue `IgnoredElement` warnings.
4394 * Org reader (Albert Krewinkel):
4396 + Fix planning elements in headers level 3 and higher
4397 (#5494). Planning info is now always placed before
4398 the subtree contents. Previously, the planning info was placed after
4399 the content if the header's subtree was converted to a list, which
4400 happens with headers of level 3 and higher per default.
4401 + Omit, but warn about unknown export options. Unknown export
4402 options are properly ignored and omitted from the output.
4403 + Prefer plain symbols over math symbols (#5483).
4404 Symbols like `\alpha` are output plain and unemphasized, not as math.
4405 + Recognize emphasis after TODO/DONE keyword (#5484).
4407 * FB2 reader:
4409 + Skip unknown elements rather than throwing errors (#5560).
4410 Sometimes custom elements are used (e.g. `id` element
4411 inside `author`); previously the reader would halt with an error.
4412 Now it skips the element and issues an `IgnoredElement` warning.
4413 + Parse notes (#5493, Alexander Krotov).
4414 + Internal improvements (Alexander Krotov).
4416 * OpenDocument writer: Roll back automatic figure/table numbering
4417 (#5474). This was added in pandoc 2.7.2, but it makes it impossible
4418 to use pandoc-crossref. So this has been rolled back for now,
4419 until we find a good solution to make this behavior optional
4420 (or a creative way to let pandoc-crossref and this feature
4421 to coexist).
4423 * New module Text.Pandoc.Writers.Jira, exporting `writeJira` [API
4424 change] (Albert Krewinkel).
4426 * EPUB writer:
4428 + Don't include 'landmarks' if there aren't any.
4429 Previously we could get an empty ol element, which caused
4430 validation errors with epubcheck.
4431 + Ensure unique ids for styleesheets in content.opf (#5463).
4432 + Make stylesheet link compatible with kindlegen (#5466,
4433 Eric Schrijver). Pandoc omitted `type="text/css"` from both
4434 `<style>` and `<rel="stylesheet">` elements in all templates, which
4435 is valid according to the spec. However, Amazon’s kindlegen software
4436 relies on this attribute on `<link>` elements when detecting
4437 stylesheets to include.
4439 * HTML writer:
4441 + Output video and audio elements depending on file
4442 extension of the image path (Mauro Bieg).
4443 + Emit empty alt tag in figures (#5518, Mauro Bieg).
4444 The same text is already in the <figcaption> and
4445 screen-readers would read it twice, see #4737.
4446 + Don't add variation selector if it's already there.
4447 This fixes round-trip failures.
4448 + Prevent gratuitous emojification on iOS (#5469).
4449 iOS chooses to render a number of Unicode entities, including '↩', as
4450 big colorful emoji. This can be defeated by appending Unicode
4451 VARIATION SELECTOR-15'/'VARIATION SELECTOR-16'. So we now append this
4452 character when escaping strings, for both '↩' and '↔'. If other
4453 characters prove problematic, they can simply be added to
4454 `needsVariationSelector`. + Add `class="heading"` to level 7+ Headers
4455 rendered as `<p>` elements (#5457).
4457 * RST writer: treat Span with no attributes as transparent (#5446).
4458 Previously an Emph inside a Span was being treated as
4459 nested markup and ignored. With this patch, the Span
4460 is just ignored.
4462 * LaTeX writer:
4464 + Include inline code attributes with `--listings` (#5420).
4465 + Don't produce columns environment unless beamer (#5485).
4466 + Fix footnote in image caption. Regression: the fix for #4683 broke
4467 this case.
4468 + Don't highlight code in headings (#5574). This causes
4469 compilation errors.
4470 + Use `\mbox` to get proper behavior inside `\sout` (#5529).
4472 * EPUB writer: Fix document section assignments (#5546).
4473 For example, introduction should go in bodymatter, not frontmatter, and
4474 epigraph, conclusion, and afterward should go in bodymatter, not
4475 backmatter. For the full list of assignments, see the manual.
4477 * Markdown writer:
4479 + Add backslashes to avoid unwanted interpretation of
4480 definition list terms as other kinds of block (#554).
4481 + Ensure the code fence is long enough (#5519).
4482 Previously too few backticks were used when the code block
4483 contained an indented line of backticks. (Ditto tildes.)
4484 + Handle labels with integer names (Jesse Rosenthal, #5495).
4485 Previously if labels had integer names, it could produce a conflict
4486 with auto-labeled reference links. Now we test for a conflict and
4487 find the next available integer. This involves adding a new state
4488 variable `stPrevRefs` to keep track of refs used in other document
4489 parts when using `--reference-location=block|section`
4491 * Textile writer: fix closing tag for math output (Albert Krewinkel).
4492 Opening and closing tag for math output match now.
4494 * Org writer: always indent src blocks content by 2 spaces (#5440, Albert
4495 Krewinkel). Emacs always uses two spaces when indenting the content of
4496 src blocks, e.g., when exiting a `C-c '` edit-buffer. Pandoc used to
4497 indent contents by the space-equivalent of one tab, but now always uses
4498 two spaces, too.
4500 * Asciidoc writer:
4502 + Use `` `+...+` `` form for inline code.
4503 The old `` `a__b__c` `` yields emphasis inside code in asciidoc.
4504 To get a pure literal code span, use `` `+a__b__c+` ``.
4505 + Use proper smart quotes with asciidoctor (#5487).
4506 Asciidoctor has a different format for smart quotes.
4507 + Use doubled ## when necessary for spans (#5566).
4508 + Ensure correct nesting of strong/emph (#5565): strong
4509 must be the outer element.
4511 * JATS writer:
4513 + Wrap elements with p when needed (#5570). The JATS spec restricts
4514 what elements can go inside `fn` and `list-item`. So we wrap other
4515 elements inside `<p specific-use="wrapper">` when needed.
4516 + Properly handle footnotes (#5511) according to "best practice."
4517 (Group them at the end in `<fn-group>` and use `<xref>` elements
4518 to link them.)
4519 + Fix citations with PMID so they validate (#5481). This includes
4520 an update to data/jats.csl.
4521 + Ensure validity of `<pub-date>` by parsing the date and
4522 extracting year, month, and day, as expected. Also add an
4523 iso-8601-date attribute automatically.
4524 + Don't use `<break>` element for LineBreak. It is only
4525 allowed in a few special contexts, and not in `<p>` elements.
4526 + Don't make `<string-name>` a child of `<string>`, which is illegal.
4528 * FB2 writer:
4530 + Do not wrap note references into `<sup>` and brackets
4531 (Alexander Krotov). Existing FB2 readers, such as FBReader, already
4532 display links with type="note" as a superscript.
4533 + Use genre metadata field (#5478).
4535 * Muse writer: do not escape empty line after `<br>` (Alexander Krotov).
4537 * Add unicode code point in "Missing character" warning (#5538).
4538 If the character isn't in the console font, the message is pretty useless,
4539 so we show the code point for anything non-ASCII.
4541 * Lua: add Version type to simplify comparisons (Albert Krewinkel).
4542 Version specifiers like `PANDOC_VERSION` and `PANDOC_API_VERSION` are
4543 turned into `Version` objects. The objects simplify version-appropriate
4544 comparisons while maintaining backward-compatibility.
4545 A function `pandoc.types.Version` is added as part of the newly
4546 introduced module `pandoc.types`, allowing users to create version
4547 objects in scripts.
4549 * pandoc lua module (Albert Krewinkel):
4551 - Fix deletion of nonexistent attributes (#5569).
4552 - Better tests for Attr and AttributeList.
4554 * pandoc.mediabag lua module (Albert Krewinkel):
4556 + Add function `delete` for deleting a single item.
4557 + Add function `empty` for removing all entries.
4558 + Add function `items` for iterating over mediabag.
4560 * Text.Pandoc.Class: Fix handling of `file:` URL scheme in
4561 `downloadOrRead` (#5517, Mauro Bieg). Previously `file:/`
4562 URLs were handled wrongly and pandoc attempted to make HTTP
4563 requests, which failed.
4565 * Text.Pandoc.MIME: add `mediaCategory` [API change] (Mauro Bieg).
4567 * Text.Pandoc.Shared:
4569 + Add `onlySimpleTableCells` [API change]
4570 (Mauro Bieg) and use this to consolidate simple-table detection
4571 (#5524). This fixes an inconsistency in the HTML reader, which did not
4572 treat tables with `<p>` inside cells as simple.
4573 + `metaToJSON`: treat digits starting with 0 as a string, not a number
4574 (#5479). This fixes a regression in YAML metadata in pandoc 2.7.2.
4576 * Text.Pandoc.Logging: Add `IgnoredElement` constructor for
4577 `LogMessage`. `SkippedConetnt` doesn't work for some XML-based
4578 readers which don't have access to parsec source positions.
4580 * Text.Pandoc.Asciify: Add Turkish undotted-i (#5433, Mauro Bieg).
4582 * Improve output of Lua tests (#5499, Albert Krewinkel).
4583 This makes use of tasty-lua, a package to write tests in Lua
4584 and integrate the results into Tasty output. Test output becomes
4585 more informative: individual tests and test groups become visible
4586 in test output. Failures are reported with helpful error messages.
4588 * Lua: add `pandoc.system` module (#5468, Albert Krewinkel).
4589 The `system` Lua module provides utility functions to interact with the
4590 operating- and file system. E.g.
4591 `print(pandoc.system.get_current_directory())`
4592 or
4593 ```lua
4594 pandoc.system.with_temporary_directory('tikz', function (dir)
4595 -- write and compile a TikZ file with pdflatex
4596 end)
4597 ```
4599 * LaTeX template: Add pdflang to hypersetup if lang is set (#5443).
4601 * beamer template: Fix using Beamer with geometry (#5505, Daniel Maslowski).
4602 Beamer already loads geometry, so we need to use the `\geometry`
4603 command to set geometry options.
4605 * EPUB2/3 templates: Move inline styles to default epub.css (#5466).
4606 NOTE: Those who use a custom CSS stylesheet with EPUB should
4607 add these lines:
4609 code{ white-space: pre-wrap; }
4610 span.smallcaps{ font-variant: small-caps; }
4611 span.underline{ text-decoration: underline; }
4612 q { quotes: "“" "”" "‘" "’"; }
4613 div.column{ display: inline-block; vertical-align: top; width: 50%; }
4615 * reveal.js template:
4617 + Updates for revealjs 3.8.0 (#5435, ebiim).
4618 + Remove reference to head.min.js (#5448, Winnie Hellmann).
4619 NOTE: users will need to update reveal.js to at least 3.8.0
4620 for their presentations generated with this version of pandoc
4621 to work correctly.
4623 * Text.Pandoc.PDF:
4625 + Replace `</>` with literal `/` (#5451).
4626 We use forward-slash for a directory separator in tmpDir,
4627 even on Windows (because that's what tex likes). So we
4628 should not put a backslash between the tmpDir and the
4629 filename on Windows. This is harmless enough in normal
4630 Windows setups, but it breaks on Cygwin.
4631 Thanks to @cc2x for noticing and diagnosing the problem.
4632 + Allow use of `-output-directory` in `--pdf-engine-opt` (#5462).
4633 This is currently possible with `mklatex` and `-outdir`, but
4634 was not yet possible with xelatex and `-output-directory`.
4635 + For PDF via ms/pdfroff, make TOC appear at beginning and in
4636 PDF bookmarks (#5553). Previously the TOC appeared at the end
4637 of the document, and was not bookmarked. To keep it at the end,
4638 add `--pdf-engine-opt=--no-toc-relocation` to your command line.
4640 * Fix broken links in documents (#5473, Shim Myeongseob).
4641 Also, use absolute links to pandoc.org when possible, so that
4642 the links can be followed by people viewing these documents
4643 on GitHub.
4645 * Improved sample lua tikz filter in lua-filters docs (#5445,
4646 Matthew Doty). There are three changes:
4648 + It only processes elements which begin with `\begin{tikzpicture}`
4649 + It uses pdf2svg instead of imagemagick to preserve fidelity
4650 + The images produced have transparent backgrounds
4652 * MANUAL.txt:
4654 + Add note about `title-meta`, `author-meta`, `date-meta` (#5486).
4655 + Fix typo (#5489, Christian Krause).
4657 * add test/tables.xwiki to git and pandoc.cabal (#5498, Mauro Bieg).
4659 * Disable missing-home-modules warning in `stack.yaml`.
4660 Otherwise `stack ghci` fails.
4663## pandoc 2.7.2 (2019-04-05)
4665 * Add XWiki writer (#1800, Derek Chen-Becker).
4666 Add `Text.Pandoc.Writers.XWiki`, exporting `writeXWiki` [API change].
4668 * Dokuwiki Reader: parse single curly brace (#5416, Mauro Bieg).
4670 * Vimwiki reader: improve handling of internal links (#5414).
4671 We no longer append `.html` to link targets, and we add a title
4672 `wikilink`. This mirrors behavior of other wiki readers. Generally
4673 the `.html` extension is not wanted. It may be important for output
4674 to HTML in certain circumstances, but it can always be added using a
4675 filter that matches on links with title `wikilink`.
4677 If your workflow requires the current behavior, here is a lua filter
4678 that will add the `.html` extension:
4680 ```lua
4681 function Link(el)
4682 if el.title == 'wikilink' then
4683 el.target = el.target .. ".html"
4684 end
4685 return el
4686 end
4687 ```
4688 * ipynb reader:
4690 + Use format `ipynb` for raw cell where no format given.
4691 + Avoid introducing spurious `.0` on integers in metadata.
4693 * Markdown reader: fenced div takes priority over setext header.
4695 * HTML reader: read `data-foo` attribute into `foo` (#5392).
4696 The HTML writer adds the `data-` prefix for HTML5 for nonstandard
4697 attributes. But the attributes are represented in the AST without
4698 the `data-` prefix, so we should strip this when reading HTML.
4700 * LaTeX reader: Improve autolink detection (#5340).
4702 * PowerPoint writer (Jesse Rosenthal):
4704 + Expand builtin reference doc to model all layouts.
4705 The previous built-in reference doc had only title and content
4706 layouts. Add in a section-header slide and a two-content slide, so
4707 users can more easily modify it to build their own templates.
4708 + Always open up in slide view. When editing a
4709 template/reference-doc, the user might be in Master view, but when
4710 producing a slide show, it is assumed that slide view will be
4711 desired.
4712 + Remove `handoutsMasterList` from template presentation.xml
4713 + Fix numerous errors in templating (#5402). Previously, some templates
4714 produced by Office 365 (MacOS) would not render with `--reference-doc`
4715 correctly. We now apply correct shapes for content, and build
4716 shape trees correctly.
4717 + Make default placeholder type for template lookup.
4718 + Apply speaker notes to metadata slide if applicable.
4719 + Test for speaker notes after breaking header.
4720 + Correctly handle notes after section-title header.
4721 Previously, if notes came after a section-title header (ie, a level-1
4722 header in a slide-level=2 presentation), they would go on the next
4723 slide. This keeps them on the slide with the header.
4724 + Internal improvements.
4726 * ipynb writer:
4728 + Use format `ipynb` for raw cell where no format given.
4729 According to nbformat docs, this is supposed to render in every
4730 format. We don't do that, but we at least preserve it as a raw
4731 block in markdown, so you can round-trip.
4732 + Consolidate adjacent raw blocks. Sometimes pandoc creates two
4733 HTML blocks, e.g. one for the open tag and one for a close tag.
4734 If these aren't consolidated, only one will show up in output cell.
4735 + Fixed carry-over of nbformat from metadata.
4736 + Preserve `nbformat_minor` if it's given. This helps with round-tripping.
4738 * LaTeX writer:
4740 + Avoid inadvertently creating ?` or !` ligatures (#5407).
4741 These are upside down ? and !, resp.
4742 + Fix footnotes in table caption and cells (#5367). This fixes a
4743 bug wherein footnotes appeared in the wrong order, and with
4744 duplicate numbers, when in table captions and cells.
4745 We now use regular `\footnote` commands, even in the table
4746 caption and the minipages containing cells. Apparently
4747 longtable knows how to handle this.
4749 * HTML writer: Don't add data- prefix to RDFa attributes (#5403).
4751 * JATS writer: Ensure that plain strings go inside `<pub-id>` tag (#5397).
4753 * Markdown writer:
4755 + Better rendering of numbers (#5398). If the number is integral,
4756 we render it as an integral not a float.
4757 + Proper rendering of empty map in YAML metadata (#5398). Should
4758 be `{}`, not empty string.
4759 + Properly escape attributes in Markdown writer (#5369).
4760 + Be sure implicit figures work in list contexts (#5368).
4761 Previously they would sometimes not work: e.g., when they
4762 occurred in final paragraphs in lists that were originally
4763 parsed as Plain and converted later using PlainToPara.
4765 * Docx writer: Use `w:br` without attributes for line breaks (#5377).
4766 We previously added the attribute `type="textWrapping"`, but
4767 this causes problems on Word Online.
4769 * LaTeX template (Andrew Dunning):
4771 + Ensure correct heading/table order (#5365). Improve workaround
4772 (#1658) for tables following headings. The new solution works whether
4773 or not the `indent` variable is enabled.
4774 + Remove `subparagraph` variable. The default is now to use run-in
4775 style for level 4 and 5 headings (`\paragraph` and `\subparagraph`).
4776 To get the previous default behavior (where these were formatted as
4777 blocks, like `\subsubsection`), set the `block-headings` variable.
4778 + Add pandoc to PDF metadata (#5388).
4779 + Group graphics-related code (#5389).
4780 + Move `\setstretch` after front matter (#5179). Ensures that
4781 `\maketitle`, `\tableofcontents`, and so forth are not affected by
4782 changes to line spacing.
4784 * Update data/jats.csl to avoid commas between name-part elements
4785 (#5397).
4787 * Add support for golang (`go`) with `--listings` (#5427).
4789 * Text.Pandoc.Shared - improve `metaToJSON` behavior with numbers.
4790 We now do a better job marshalling numbers from MetaString
4791 or MetaInlines into JSON Number.
4793 * Text.Pandoc.Writers.Shared: `metaValueToJSON`: use Number Values for
4794 integers. Pandoc's MetaValue doesn't have a distinguished number type,
4795 so numbers are put in MetaStrings. If the MetaString consists
4796 entirely of digits, we convert it to a Number. We should probably
4797 consider adding a MetaNumber constructor to MetaValue, for better
4798 round-tripping with JSON etc. This change aids round-tripping in
4799 ipynb metadata fields, like `toc_depth`.
4801 * Text.Pandoc.Class: `fetchItem`: don't treat UNC paths as
4802 protocol-relative URLs (#5127). These are paths beginning `//?/UNC/...`.
4804 * Text.Pandoc.ImageSize: Improve `pdfSize` so it handles
4805 a wider range of PDFs (#4322, with help from Richard Davis).
4807 * Text.Pandoc.Pretty: avoid stack overflow by using strict sum (#5401).
4809 * Fix harmless error in file-scope code (#5422).
4811 * MANUAL.txt:
4813 + Improve 'header' and 'heading' usage (#5423, Andrew
4814 Dunning). The term 'header' was being used where 'heading'
4815 is more appropriate.
4816 + Add paragraph on options affecting markdown in ipynb.
4818 * stack.yaml - remove -Wmissing-home-modules
4819 This seems to cause problems with stack ghci. Remove RTS options.
4821 * Add ghc-options to cabal.project.
4823 * appveyor.yml - use ghc 8.6.4. Fixes segfault issues on Windows (#5037).
4825 * linux build process: Remove clone of pandoc-citeproc (#5366).
4826 It wasn't being used; cabal.project specifies the version to use.
4828## pandoc 2.7.1 (2019-03-14)
4830 * Add tectonic as an option for --pdf-engine (#5345, Cormac Relf).
4831 Runs tectonic on STDIN instead of a temporary .tex file, so that it
4832 looks in the working directory for `\include` and `\input` like the rest
4833 of the engines. Allows overriding the output directory
4834 args with `--pdf-engine-opt=--outdir --pdf-engine-opt="$DIR"`.
4836 * Allow `-o/--output` to be used with `--print-default-data-file`,
4837 `--print-highlighting-style`, `--print-default-template`.
4838 Note that `-o` must occur BEFORE the `--print*` command on the command
4839 line (this is documented, #5357).
4841 * LaTeX reader:
4843 + Support `\underline`, `\ul`, `\uline` (#5359, Paul
4844 Tilley). These are parsed as a Span with class `underline`, as
4845 with other readers.
4846 + Ensure that `\Footcite` and `\Footcites` get put in a note.
4848 * ipynb reader:
4850 + Remove sensitivity to `raw_html`, `raw_tex` extensions.
4851 We now include every output format. Pruning is handled by
4852 `--ipynb-output`.
4853 + Better handling of cell metadata. We now include even complex cell
4854 metadata in the Div's attributes (as JSON, in complex cases, or
4855 as plain strings in simple cases).
4857 * ipynb writer:
4859 + Recurse into native divs for output cell data (#5354).
4860 + Render cell metadata fields from div attributes.
4862 * Docx writer: avoid extra copy of abstractNum and num elements
4863 in numbering.xml. This caused pandoc-produced docx files to
4864 be uneditable using Word Online (#5358).
4866 * Markdown writer: improve handling of raw blocks/inline.
4867 We now emit raw content using `raw_attribute` when no more
4868 direct method is available. Use of `raw_attribute` can be
4869 forced by disabling `raw_html` and `raw_tex`.
4871 * LaTeX writer: Add classes for frontmatter support (#5353, Andrew Dunning)
4872 and remove frontmatter from `scrreprt`.
4874 * LaTeX template:
4876 + Improve readability (#5363, Andrew Dunning).
4877 + Robust section numbering removal (#5351, Andrew Dunning).
4878 Ensures that section numbering does not reappear with custom
4879 section levels. See <https://tex.stackexchange.com/questions/473653/>.
4880 + Better handling of front/main/backmatter (#5348).
4881 In pandoc 2.7 we assumed that every class with chapters would accept
4882 `\frontmatter`, `\mainmatter`, and `\backmatter`. This is not so (e.g.
4883 report does not). So pandoc 2.7 breaks on report class by including an
4884 unsupported command. Instead of the `book-class` variable, we use two
4885 variables, `has-chapters` and `has-frontmatter`, and set these
4886 intelligently in the writer.
4888 * Text.Pandoc.Shared: Improve `filterIpynbOutput`. Ensure that
4889 images are prioritized over text. `best` should include everything
4890 for ipynb.
4892 * Tests.Old: specify `--data-dir=../data` to ensure tests can find
4893 data files even if they haven't been installed. Remove old
4894 `pandoc_datadir` environment variable, which hasn't done anything for a
4895 long time.
4897 * MANUAL.txt: Add recommendation to use `raw_attribute` with ipynb (#5354).
4899 * Use cmark-gfm-hs 0.1.8 (note that 0.1.7 is buggy).
4901 * Use latest pandoc-citeproc, texmath.
4904## pandoc 2.7 (2019-03-03)
4906 * Use XDG data directory for user data directory (#3582). Instead of
4907 `$HOME/.pandoc`, the default user data directory is now
4908 `$XDG_DATA_HOME/pandoc`, where `XDG_DATA_HOME` defaults to
4909 `$HOME/.local/share` but can be overridden by setting the
4910 environment variable. If this directory is missing, then
4911 `$HOME/.pandoc` is searched instead, for backwards compatibility.
4912 However, we recommend moving local pandoc data files from
4913 `$HOME/.pandoc` to `$HOME/.local/share/pandoc`. On Windows the
4914 default user data directory remains the same.
4916 * Slide show formats behavior change: content under headers
4917 less than slide level is no longer ignored, but included in
4918 the title slide (for HTML slide shows) or in a slide after
4919 the title slide (for beamer). This change makes possible
4920 2D reveal.js slideshows with content in the top slide on
4921 each stack (#4317, #5237).
4923 * Add command line option `--ipynb-output=all|none|best` (#5339).
4924 Output cells in ipynb notebooks often contain several different
4925 versions of an output, with different MIME types, e.g. an HTML
4926 table and a plain-text fallback. Specifying `--ipynb-output=best`
4927 (the default) ensures that the best version for the output format
4928 is used. `all` includes all versions, and `none` suppresses them
4929 all, leaving output cells empty.
4931 * `asciidoctor` is now an output format separate from `asciidoc`,
4932 to accommodate some minor implementation-specific differences
4933 (currently just in the treatment of display math).
4935 * Add `latexmk` as an option for `--pdf-engine` (#3195).
4936 Note that you can use `--pdf-engine-opt=-outdir=bar` to specify
4937 a persistent temp directory.
4939 * Markdown reader:
4941 + Improve tight/loose list handling (#5285). Previously the
4942 algorithm allowed list items with a mix of Para and Plain, which
4943 is never wanted.
4944 + Add newline when parsing blocks in YAML (#5271). Otherwise last
4945 block gets parsed as a Plain rather than a Para. This is a
4946 regression in pandoc 2.x. This patch restores pandoc 1.19
4947 behavior.
4948 + Make `yamlToMeta` respect extensions (#5272, Mauro Bieg).
4949 This adds a `ReaderOptions` parameter to `yamlToMeta` [API change].
4950 + Fix bug parsing fenced code blocks (#5304). Previously parsing
4951 would break if the code block contained a string of backticks of
4952 sufficient length followed by something other than end of line.
4954 * LaTeX reader: don't let `\egroup` match `{`. `braced` now actually
4955 requires nested braces. Otherwise some legitimate command and
4956 environment definitions can break.
4958 * Docx reader (Jesse Rosenthal):
4960 + Rename `getDocumentPath` as `getDocumentXmlPath`.
4961 + Use field notation for setting `ReaderEnv`.
4962 + Figure out `document.xml` path once at the beginning of parsing, and
4963 add it to the environment, so we can avoid repeated lookups.
4964 + Dynamically determine main document xml path (#5277).
4965 The desktop Word program places the main document file in
4966 `word/document.xml`, but the online word places it in
4967 `word/document2.xml`. This file path is actually stated in the root
4968 `_rels/.rels` file, in the `Relationship` element with an
4969 `http://../officedocument` type.
4970 + Fix paths in archive to prevent Windows failure (#5277).
4971 Some paths in archives are absolute (have an opening slash) which, for
4972 reasons unknown, produces a failure in the test suite on MS
4973 Windows. This fixes that by removing the leading slash if it exists.
4974 + Add comments to aid code readability.
4975 + Trim space inside the last inline (#5273).
4976 + Unwrap sdt elements in footnotes and comments (#5302).
4978 * Muse reader (Alexander Krotov):
4980 + Test that block level markup does not break `<verbatim>`.
4981 + Add secondary note support.
4983 * ipynb reader: handle images referring to attachments. Previously
4984 we didn't strip off the attachment: prefix, so even though the
4985 attachment was available in the mediabag, pandoc couldn't find it.
4987 * JATS reader:
4989 + Fix parsing of figures (#5321). This ensures that a figure
4990 containing a single image is parsed as a pandoc "implicit
4991 figure" (i.e., a Para with a single Image whose title attribute
4992 begins with `fig:`). More complex figures will still be parsed
4993 as divs.
4994 + Support `fig-group` block element (#5317).
4995 + Handle citations with multiple references (#5310). The `rid`
4996 attribute can have a space-separated list of ids.
4998 * AsciiDoc Writer: Add `writeAsciiDoctor` [API change, Tarik Graba].
4999 Handle display math appropriately for Asciidoctor.
5001 * JATS writer: wrap figure caption in `<p>` to fix validation (#5290,
5002 Mauro Bieg).
5004 * HTML writer:
5006 + Implement WAI-ARIA roles for (end)notes, citations, and
5007 bibliography (#4213). Note that doc-biblioref is only used when
5008 link-citations produces links, since it belongs on links.
5009 + Include content (including speaker notes) in title slides
5010 (#4317, #5237).
5012 * ipynb writer:
5014 + Ensure final newline.
5015 + Only include metadata under `jupyter` field.
5016 + Don't create attachments for images with absolute URIs,
5017 including data: URIs (#5303).
5018 + Keep plain text fallbacks in output even if a richer format is
5019 included (#5293). We don't know what output format will be needed.
5020 See the `--ipynb-output` command line option for a way to control
5021 what formats are included in the output.
5023 * Markdown writer: use `markdown="1"` when appropriate for Divs:
5024 when `native_divs` and `markdown_in_html_blocks` are disabled
5025 but `raw_html` and `markdown_attribute` are enabled.
5027 * LaTeX writer:
5029 + Use right fold for `escapeString`. This is more elegant than
5030 the explicit recursive code we were using.
5031 + Avoid `{}` after control sequences when escaping.
5032 `\ldots{}.` doesn't behave as well as `\ldots.` with the latex
5033 ellipsis package. This patch causes pandoc to avoid emitting
5034 the `{}` when it is not necessary. Now `\ldots` and other
5035 control sequences used in escaping will be followed by either
5036 a `{}`, a space, or nothing, depending on context.
5037 + For beamer, include contents under headers superordinate to
5038 slidelevel (#4317). Currently we keep the fancy title slide, and
5039 add a new slide with the same title and whatever content was
5040 under the header.
5042 * Powerpoint writer (Jesse Rosenthal): support underlines.
5043 Use span with single class "underline" as in docx writer.
5045 * Muse writer: escape secondary notes (Alexander Krotov).
5047 * FB2 writer: add section identifiers support (#5229, John KetzerX).
5049 * Make `--fail-if-warnings` work for PDF output (#5343).
5051 * Lua filters (Albert Krewinkel):
5053 + Load module `pandoc` before calling `init.lua` (#5287). The file
5054 `init.lua` in pandoc's data directory is run as part of pandoc's
5055 Lua initialization process. Previously, the `pandoc` module was
5056 loaded in `init.lua`, and the structure for marshaling was
5057 set up after. This allowed simple patching of element
5058 marshaling, but made using `init.lua` more difficult. Now, all
5059 required modules are now loaded before calling `init.lua`. The
5060 file can be used entirely for user customization. Patching
5061 marshaling functions, while discouraged, is still possible via
5062 the `debug` module.
5063 + All Lua modules bundled with pandoc, i.e., `pandoc.List`,
5064 `pandoc.mediabag`, `pandoc.utils`, and `text` are re-exported from the
5065 `pandoc` module. They are assigned to the fields `List`, `mediabag`,
5066 `utils`, and `text`, respectively.
5068 * Text.Pandoc.Lua (Albert Krewinkel):
5070 + Split `StackInstances` into smaller Marshaling modules.
5071 + Get `CommonState` from Lua global. This allows more control over
5072 the common state from within Lua scripts.
5074 * LaTeX template:
5076 + Support the `subject` metadata variable (#5289, Pascal Wagler).
5077 + Add `\frontmatter`, `\mainmatter`, `\backmatter`
5078 for book classes (#5306).
5080 * epub3 template: Add titlepage class to section (#5269).
5082 * HTML5 template: Add ARIA role `doc-toc` for table of contents (#4213).
5084 * Make `--metadata-file` use selected extensions (#5279, #5272, Mauro Bieg).
5086 * Text.Pandoc.Shared:
5088 + Remove `withTempDir` [API change].
5089 + Add new exported function `defaultUserDataDirs` [API change].
5090 + Add `filterIpynbOutput` [API change].
5091 + `compactify`: Avoid lists with a mix of Plain and Para elements
5092 (#5285).
5094 * Text.Pandoc.Translations: reorder alphabetically and remove `Author`
5095 (#5334, Mauro Bieg).
5097 * Text.Pandoc.Extensions:
5099 + More carefully groom ipynb default extensions.
5100 + Add `all_symbols_escapable` to `githubMarkdownExtensions`.
5102 * Text.Pandoc.PDF:
5104 + Use system temp directory when possible (#1192). Previously we
5105 created temp dirs in the working directory, partly (a) because
5106 there were problems using the system temp directory on Windows,
5107 when their pathnames included tildes, and partly (b) because
5108 programs like `epstopdf.pl` would not be allowed to write to
5109 directories outside the working directory in restricted mode. We
5110 now (a) use the system temp dir except when the path includes
5111 tildes, and (b) set `TEXMFOUTPUT` when creating the PDF, so that
5112 subsidiary programs can use the system temp directory. This
5113 addresses problems that occurred when pandoc was used in a
5114 synced directory (such as Dropbox).
5115 + Change types of subsidiary functions to PandocIO, to allow
5116 warnings to be threaded through (#5343).
5118 * Text.Pandoc.MIME: add WebP (#5267, Mauro Bieg).
5120 * Tests: avoid calling `findPandoc` multiple times.
5122 * Old tests: remove need for temp files by using `pipeProcess`.
5124 * Added simple ipynb reader/writer tests (#5274).
5126 * Rearrange `--help` output in a more rational way, with common
5127 options at the beginning and options grouped by function (#5336).
5129 * trypandoc: Add JATS and other missing formats (Arfon Smith, #5291).
5131 * Add missing copyright notices and remove license boilerplate (#4592,
5132 Albert Krewinkel).
5134 * Use latest basement/foundation on 32bit windows.
5136 * Use latest skylighting (#5328). Custom syntax definitions no
5137 longer try to load `language.dtd`.
5139 * Require texmath 0.11.2.1
5141 * Use latest pandoc-citeproc (0.16.1.1).
5143 * MANUAL.txt:
5145 + Clarify variable substitution indentation in templates (#5338,
5146 Agustín Martín Barbero).
5147 + Reorder custom-styles section (#5324, Mauro Bieg).
5149## pandoc 2.6 (2019-01-30)
5151 * Support ipynb (Jupyter notebook) as input and output format.
5153 + Add `ipynb` as input and output format (extension `.ipynb`).
5154 + Added Text.Pandoc.Readers.Ipynb [API change].
5155 + Added Text.Pandoc.Writers.Ipynb [API change].
5156 + Add `PandocIpynbDecodingError` constructor to Text.Pandoc.Error.Error
5157 [API change].
5158 + Depend on ipynb library.
5159 + Note: there is no template for ipynb.
5161 * Add DokuWiki reader (#1792, Alexander Krotov). This adds
5162 Text.Pandoc.Readers.DokuWiki [API change], and adds `dokuwiki`
5163 as an input format.
5165 * Implement task lists (#3051, Mauro Bieg). Added `task_lists`
5166 extension. Task lists are supported from markdown and gfm input.
5167 They should work, to some degree, in all output formats, though in
5168 most formats you'll get a bullet list with a unicode character for
5169 the box. In HTML, you get checkboxes and in LaTeX/PDF output, a
5170 box is used as the list marker. API changes:
5172 + Added constructor `Ext_task_lists` to `Extension`.
5173 + Added `taskListItemFromAscii` and `taskListItemToAscii` to
5174 Text.Pandoc.Shared.
5176 * Allow some command line options to take URL in addition to FILE.
5177 `--include-in-header`, `--include-before-body`, `--include-after-body`.
5179 * HTML reader:
5181 + Handle empty `start` attribute (see #5162).
5182 + Treat `textarea` as a verbatim environment (#5241) and preserve
5183 spacing.
5185 * RST reader:
5187 + Change treatment of `number-lines` directive (Brian Leung,
5188 #5207). Directives of this type without numeric inputs should
5189 not have a `startFrom` attribute; with a blank value, the
5190 writers can produce extra whitespace.
5191 + Removed superfluous `sourceCode` class on code blocks (#5047).
5192 + Handle `sourcecode` directive as synonynm for `code` (#5204).
5194 * Markdown reader:
5196 + Remove `sourceCode` class for literate Haskell code blocks
5197 (#5047). Reverse order of `literate` and `haskell` classes on
5198 code blocks when parsing literate Haskell, so `haskell` is
5199 first.
5200 + Treat `<textarea>` as a verbatim environment (#5241).
5202 * Org reader:
5204 + Handle `minlevel` option differently (#5190, Brian Leung).
5205 When `minlevel` exceeds the original minimum level observed in
5206 the file to be included, every heading should be shifted
5207 rightward.
5208 + Allow for case of `:minlevel == 0` (#5190).
5209 + Fix treatment of links to images (#5191, Albert Krewinkel).
5210 Links with descriptions which are pointing to images are no
5211 longer parsed as inline images, but as links.
5212 + Add support for #+SELECT_TAGS (Brian Leung).
5213 + Separate filtering logic from conversion function (Brian Leung).
5215 * TWiki reader: Fix performance issue with underscores (#3921).
5217 * MediaWiki reader: use `_` instead of `-` in auto-identifiers (#4731).
5218 We may not still be exactly matching mediawiki's algorithm.
5220 * LaTeX reader:
5222 + Remove `sourceCode` class for literate Haskell code blocks
5223 (#5047). Reverse order of `literate` and `haskell` classes on
5224 code blocks when parsing literate Haskell, so `haskell` is
5225 first.
5226 + Support `\DeclareMathOperator` (#5149).
5227 + Support `\inputminted` (#5103).
5228 + Support `\endinput` (#5233).
5229 + Allow includes with dots like `cc_by_4.0`. Previously the `.0`
5230 was interpreted as a file extension, leading pandoc not to add
5231 `.tex` (and thus not to find the file). The new behavior matches
5232 tex more closely.
5234 * Man reader:
5236 + Use `mapLeft` from Shared instead of defining own.
5238 * Docx reader (Jesse Rosenthal):
5240 + Handle level overrides (#5134).
5242 * Docx writer:
5244 + Support custom properties (#3024, #5252, Agustín Martín Barbero).
5245 Also supports additional core properties: `subject`, `lang`,
5246 `category`, `description`.
5247 + Make Level into a real type, instead of an alias for a tuple
5248 (Jesse Rosenthal).
5250 * ICML writer (Mauro Bieg):
5252 + Support custom-styles (#5137, see #2106).
5253 + Support unnumbered headers (#5140).
5255 * Texinfo writer: Use header identifier for anchor if present (#4731).
5256 Previously we were overwriting an existing identifier with a new one.
5258 * Org writer: Preserve line-numbering for example and code blocks
5259 (Brian Leung).
5261 * Man/Ms writers: Don't escape `-` as `\-`. The `\-` gets rendered
5262 in HTML and PDF as a unicode minus sign.
5264 * Ms writer: Ensure we have a newline after .EN in display math (#5251).
5266 * RST writer: Don't wrap simple table header lines (#5128).
5268 * Asciidoc writer: Shorter delimiters for tables, blockquotes
5269 (#4364). This matches asciidoctor reference docs.
5271 * Dokuwiki writer: Remove automatic `:` prefix before internal image
5272 links (#5183, Damien Clochard). This prevented users from making
5273 relative image links.
5275 * Zimwiki writer: remove automatic colon prefix before internal
5276 images (#5183, Damien Clochard).
5278 * MediaWiki writer: fix caption, use 'thumb' instead of 'frame'
5279 (#5105). Captions used to have the word 'caption' prepended; this
5280 has been removed. Also, 'thumb' is used instead of 'frame' to
5281 allow images to be resized.
5283 * reveal.js writer:
5285 + Ensure that we don't get > 2 levels of section nesting,
5286 even with slide level > 2 (#5168).
5287 + If slide level == N but there is no N-level header, make
5288 sure the next header with level > N gets treated as a slide
5289 and put in a section, rather than remaining loose (#5168).
5291 * Markdown writer:
5293 + Make `plain` RawBlocks pass through in `plain` output.
5294 + Include needed whitespace after HTML figure (#5121).
5295 We use HTML for a figure in markdown dialects that can't
5296 represent it natively.
5298 * Commonmark writer:
5300 + Fix handling of SoftBreak with `hard_line_breaks` (#5195).
5301 + Implement `--toc` (`writerTableOfContents`)
5302 in commonmark/gfm writers (#5172).
5304 * EPUB writer:
5306 + Ensure that picture transforms are done on metadata too.
5307 + Small fixes to `nav.xhtml`:
5308 Add 'landmarks' id attribute to the landmarks nav.
5309 Replace old default CSS removing numbers from ol.toc li
5310 with new rules that match `nav#toc ol, nav#landmarks ol`.
5311 We keep the `toc` class on `ol` for backwards compatibility.
5313 * LaTeX writer:
5315 + Make raw content marked `beamer` pass through in `beamer`
5316 output (pandoc/lua-filters#40).
5317 + Beamer: avoid duplicated `fragile` property in some cases
5318 (#5208).
5319 + Add `#` special characters for listings (#4939).
5320 This character needs special handling in `\lstinline`.
5322 * RTF writer: use `toTableOfContents` from Shared to replace
5323 old duplicated code.
5325 * Pptx writer:
5327 + Support custom properties. Also supports additional core
5328 properties: `subject`, `category`, `description` (#5252,
5329 Agustín Martín Barbero).
5330 + Use `toTableOfContents` from Shared to replace old duplicated code.
5332 * ODT writer (Augustín Martín Barbero):
5334 + Fix typo in custom properties (#2839).
5335 + Improve standard properties, including the following core
5336 properties: `generator` (Pandoc/VERSION), `description`, `subject`,
5337 `keywords`, `initial-creator` (from authors), `creation-date`
5338 (actual creation date) (#5252).
5340 * Custom writers:
5342 + Allow '-' in filenames for custom lua writers (#5187).
5343 + sample.lua: add `SingleQuoted`, `DoubleQuoted` (#5104).
5344 + sample.lua: Add a missing `>` (MichaWiedenmann).
5346 * reveal.js template: Add `zoomKey` config (#4249).
5348 * HTML5 template: Remove unnecessary type="text/css" on style and
5349 link for HTML5 (#5146).
5351 * LaTeX template (Andrew Dunning, except where noted):
5353 + Prevent fontspec from scaling `mainfont` to match the default
5354 font, Latin Modern. A main font set to 12pt could
5355 previously appear between 11pt to 13pt depending on its design.
5356 To return to the earlier rendering, use `-V
5357 mainfontoptions="Scale=MatchLowercase"` (#5212, #5218).
5358 + Display monospaced fonts without TeX ligatures when using
5359 `--pdf-engine=lualatex`. It now matches the behaviour of other
5360 engines (#5212, #5218).
5361 + Remove the deprecated `romanfont` variable. The functionality of
5362 `mainfont` is identical (#5218).
5363 + Render `\subtitle` with the standard document classes.
5364 Previously, `subtitle` only appeared when using the KOMA-Script
5365 classes or Beamer (#5213, #5244).
5366 + Use Babel instead of Polyglossia for LuaLaTeX. This avoids
5367 several language selection problems, notably with retaining
5368 French spacing conventions when switching to a verbatim
5369 environment or another language; and in printing Greek text
5370 without hyphenation (#5193).
5371 + Use the [`xurl`](https://ctan.org/pkg/xurl) package if
5372 available, improving the appearance of URLs by allowing them to
5373 break at additional points (#5193).
5374 + Use [`bookmark`](https://ctan.org/pkg/bookmark) if available
5375 to correct heading levels in PDF bookmarks: see the [KOMA-Script
5376 3.26 release notes](https://komascript.de/release3.26) (#5193).
5377 + Require the [`xcolor`](https://ctan.org/pkg/xcolor) package to
5378 avoid a possible error when using additional packages alongside
5379 footnotes in tables (#5193, closes #4861).
5380 + Remove obsolete `fixltx2e` package, which has no functionality
5381 with TeX Live 2015 or later (#5193).
5382 + Allow multiple `fontfamilies.options` (#5193, closes #5194).
5383 + Restrict `institute` variable to Beamer (#5219).
5384 + Use [`footnotehyper`](https://ctan.org/pkg/footnotehyper)
5385 package if available to make footnotes in tables compatible
5386 with `hyperref` (#5234).
5387 + Number parts and chapters in book classes only if the
5388 `numbersections` variable is set, for consistency with other
5389 output formats. To return to the previous behaviour, use
5390 `-V numbersections -V secnumdepth=0` (#5235).
5391 + Reindent file (#5193).
5392 + Use built-in parskip handling with KOMA-Script classes (#5143, Enno).
5393 + Set default listings language for lua, assembler (#5227, John
5394 MacFarlane). Otherwise we get an error when trying to compile code
5395 with lua or assembler code. To change the default dialect
5396 (currently 5.3 for lua and x86masm for assembler), you can use
5397 `--include-in-header` to inject something like
5398 `\lstset{defaultdialect=[5.2]Lua}`.
5400 * Text.Pandoc.Readers: Changed types of `readJSON`; it now runs
5401 in an instance of PandocMonad, like the other readers and
5402 writers. [API change]
5404 * Text.Pandoc.Writers: Changed types of `writeJSON`; it now runs
5405 in an instance of PandocMonad, like the other readers and
5406 writers. [API change]
5408 * Text.Pandoc.Error: Added `PandocUTF8DecodingError` constructor
5409 for `PandocError`. [API change]
5411 * Text.Pandoc.Writers.Shared - add `toTableOfContents`. [API change]
5412 This is refactored out from the Markdown writer.
5413 It can be used in other writers to create a table of contents.
5415 * Improve error messages for UTF-8 decoding errors. Now we give
5416 the filename and byte offset (#4765).
5418 * Text.Pandoc.XML: Strip out illegal XML characters in
5419 `escapeXMLString` (#5119).
5421 * Text.Pandoc.Process: update `pipeProcess` (Albert Krewinkel).
5422 The implementation of `pipeProcess` was rewritten to fix sporadic
5423 failures caused by prematurely closed pipes.
5425 * Use `safeRead` instead of `read` everywhere in the code
5426 (John MacFarlane, Mauro Bieg, #5162, #5180).
5428 * Text.Pandoc.SelfContained: Decompress `.svgz` when
5429 converting to `data:` URI (#5163, Alexander Krotov).
5431 * Text.Pandoc.Parsing: Remove unused `HasHeaderMap`
5432 (#5175, Alexander Krotov). [API change]
5434 * Normalize Windows paths to account for change in ghc 8.6 (#5127).
5435 When pandoc is compiled with ghc 8.6, Windows paths are treated
5436 differently, and paths beginning `\\server` no longer work.
5437 This commit rewrites such patsh to `\\?\UNC\server` which works.
5438 The change operates at the level of argument parsing, so it
5439 only affects the command line program.
5441 * Simplify/fix reading of `--metadata` values on command line
5442 to avoid problems relating to hvr/HsYAML#7 (#5177).
5444 * data/pandoc.lua: auto-fix nested constructor arguments (Albert
5445 Krewinkel). Incorrect types to pandoc element constructors are
5446 automatically converted to the correct types when possible. This was
5447 already done for most constructors, but conversions are now also done
5448 for nested types (like lists of lists).
5450 * Removed custom Setup.hs, use build-type: simple. The only thing we
5451 gained from the custom build was automatic installation of the man
5452 page when using 'cabal install'. But custom builds cause problems,
5453 e.g., with cross-compilation. Installation of the man page is
5454 better handled by packagers. Note to packagers (e.g. Debian): it
5455 may be necessary to add a step installing the man page with the
5456 next release.
5458 * Allow latest http-client, tasty, zip-archive, Glob.
5460 * Require skylighting >= 0.7.5, adding support for sml, J,
5461 typescript.
5463 * Tests: Cleaned up `findPandoc` in `Tests.Helpers`, so it
5464 works well with cabal v2.
5466 * INSTALL.md:
5468 + Use button for installer links (John MacFarlane, Mauro Bieg,
5469 #5167).
5470 + Fix links and bump required stack version (max).
5471 + Improve installation notes on associated software (Andrew
5472 Dunning). Includes explanation of how to install related tools
5473 with package managers (since the method of installing
5474 `rsvg-convert` is not obvious).
5476 * doc/org.md: improve documentation of org features (Albert
5477 Krewinkel).
5479 * doc/lua-filters.md: use 3rd level headers for module fields.
5481 * MANUAL:
5483 + Clarify automatic identifiers (#5201). We remove
5484 non-alphanumerics. This includes, e.g., emojis.
5485 + Fix example for Div with id (Geoffrey Ely).
5486 + Update list of LaTeX packages used.
5487 + Make it clear that `hard_line_breaks` works in `gfm` (see #5195).
5488 + Mention `raw_attribute` in documentation for `raw_html` and
5489 `raw_tex` (#5240, thanks to @eiro).
5490 + Clarify that `$sep$` must come right before `$endfor$` in templates
5491 (#5243, Lev Givon).
5492 + Document metadata support for docx, odt, pptx writers (Agustín
5493 Martín Barbero).
5494 + Reorganize template variables (#5249, Andrew Dunning).
5495 Add additional headings to categorize variables, and
5496 alphabetize when there is large number; add more examples.
5497 + Document `date-meta` template variable (#5260, Tristan Stenner).
5499 * trypandoc: Fix CSS and viewport.
5501## pandoc 2.5 (2018-11-27)
5503 * Text.Pandoc.App: split into several unexported submodules (Albert
5504 Krewinkel): Text.Pandoc.App.FormatHeuristics,
5505 Text.Pandoc.App.Opt, Text.Pandoc.App.CommandLineOptions,
5506 Text.Pandoc.App.OutputSettings. This is motivated partly by the
5507 desire to reduce recompilations when something is modified,
5508 since App previously depended on virtually every other module.
5510 * Text.Pandoc.Extensions
5512 + Semantically, `gfm_auto_identifiers` is now a modifier of
5513 `auto_identifiers`; for identifiers to be set, `auto_identifiers` must
5514 be turned on, and then the type of identifier produced depends on
5515 `gfm_auto_identifiers` and `ascii_identifiers` are set. Accordingly,
5516 `auto_identifiers` is now added to `githubMarkdownExtensions` (#5057).
5517 + Remove `ascii_identifiers` from `githubMarkdownExtensions`.
5518 GitHub doesn't seem to strip non-ascii characters any more.
5520 * Text.Pandoc.Lua.Module.Utils (Albert Krewinkel)
5522 + Test AST object equality via Haskell (#5092). Equality of Lua
5523 objects representing pandoc AST elements is tested by unmarshalling
5524 the objects and comparing the result in Haskell.
5525 A new function `equals` which performs this test has been added to the
5526 `pandoc.utils` module.
5527 + Improve stringify. Meta value strings (MetaString)
5528 and booleans (MetaBool) are now converted to the literal string and the
5529 lowercase boolean name, respectively. Previously, all values of these
5530 types were converted to the empty string.
5532 * Text.Pandoc.Parsing: Remove Functor and Applicative constraints where Monad
5533 already exists (Alexander Krotov).
5535 * Text.Pandoc.Pretty: Don't render BreakingSpace at end of line
5536 or beginning of line (#5050).
5538 * Text.Pandoc.Readers.Markdown
5540 + Fix parsing of citations, quotes, and underline emphasis
5541 after symbols. Starting with pandoc 2.4, citations, quoted inlines,
5542 and underline emphasis were no longer recognized after certain
5543 symbols, like parentheses (#5099, #5053).
5544 + In pandoc 2.4, a soft break after an abbreviation would be
5545 relocated before it to allow for insertion of a nonbreaking
5546 space after the abbreviation. This behavior is here reverted.
5547 A soft break after an abbreviation will remain, and no nonbreaking
5548 space will be added. Those who care about this issue should take care not
5549 to end lines with an abbreviation, or to insert nonbreaking spaces
5550 manually.
5552 * Text.Pandoc.Readers.FB2: Do not throw error for unknown elements in
5553 `<body>` (Alexander Krotov). Some libraries include custom elements
5554 in their FB2 files.
5556 * Text.Pandoc.Readers.HTML
5558 + Allow `tfoot` before body rows (#5079).
5559 + Parse `<small>` as a Span with class "small" (#5080).
5560 + Allow thead containing a row with `td` rather than `th` (#5014).
5562 * Text.Pandoc.Readers.LaTeX
5564 + Cleaned up handling of dimension arguments. Allow decimal points,
5565 preceding space.
5566 + Don't allow arguments for verbatim, etc.
5567 + Allow space before bracketed options.
5568 + Allow optional arguments after `\\` in tables.
5569 + Improve parsing of `\tiny`, `\scriptsize`, etc. Parse as raw,
5570 but know that these font changing commands take no arguments.
5572 * Text.Pandoc.Readers.Muse
5574 + Trim whitespace before parsing grid table cells (Alexander Krotov).
5575 + Add grid tables support (Alexander Krotov).
5577 * Text.Pandoc.Shared
5579 + For bibliography match Div with id `refs`, not class `references`.
5580 This was a mismatch between pandoc's docx, epub, latex, and markdown
5581 writers and the behavior of pandoc-citeproc, which actually looks for a
5582 div with id `refs` rather than one with class `references`.
5583 + Exactly match GitHub's identifier generating algorithm (#5057).
5584 + Add parameter for `Extensions` to `uniqueIdent` and
5585 `inlineListToIdentifier` (#5057). [API change]
5586 This allows these functions to be sensitive to the settings of
5587 `Ext_gfm_auto_identifiers` and `Ext_ascii_identifiers`, and allows us to
5588 use `uniqueIdent` in the CommonMark reader, replacing custom code. It
5589 also means that `gfm_auto_identifiers` can now be used in all formats.
5591 * Text.Pandoc.Writers.AsciiDoc
5593 + Use `.`+ as list markers to support nested ordered lists (#5087).
5594 + Support list number styles (#5089).
5595 + Render Spans using `[#id .class]#contents#` (#5080).
5597 * Text.Pandoc.Writers.CommonMark
5599 + Respect `--ascii` (#5043, quasicomputational).
5600 + Make sure `--ascii` affects quotes, super/subscript.
5602 * Text.Pandoc.Writers.Docx
5604 + Fix bookmarks to headers with long titles (#5091).
5605 Word has a 40 character limit for bookmark names. In addition, bookmarks
5606 must begin with a letter. Since pandoc's auto-generated identifiers may
5607 not respect these constraints, some internal links did not work. With
5608 this change, pandoc uses a bookmark name based on the SHA1 hash of the
5609 identifier when the identifier isn't a legal bookmark name.
5610 + Add bookmarks to code blocks (Nikolay Yakimov).
5611 + Add bookmarks to images (Nikolay Yakimov).
5612 + Refactor common bookmark creation code into a function (Nikolay Yakimov).
5614 * Text.Pandoc.Writers.EPUB: Handle calibre metadata (#5098).
5615 Nodes of the form
5617 <meta name="calibre:series" content="Classics on War and Politics"/>
5619 are now included from an epub XML metadata file. You can also include
5620 this information in your YAML metadata, like so:
5622 calibre:
5623 series: Classics on War and Policitics
5625 In addition, ibooks-specific metadata can now be included via an XML
5626 file. (Previously, it could only be included via YAML metadata, see
5627 #2693.)
5629 * Text.Pandoc.Writers.HTML: Use plain `"` instead of `&quot;` outside of
5630 attributes.
5632 * Text.Pandoc.Writers.ICML: Consolidate adjacent strings, inc. spaces.
5633 This avoids splitting up the output unnecessarily into separate elements.
5635 * Text.Pandoc.Writers.LaTeX: Don't emit `[<+->]` unless beamer output, even
5636 if `writerIncremental` is True (#5072).
5638 * Text.Pandoc.Writers.Muse (Alexander Krotov).
5640 + Output tables as grid tables if they have multi-line cells.
5641 + Indent simple tables only on the top level.
5642 + Output tables with one column as grid tables.
5643 + Add support for `--reference-location`.
5644 + Internal improvements.
5646 * Text.Pandoc.Writers.OpenDocument: Fix list indentation (Nils Carlson,
5647 #5095). This was a regression in pandoc 2.4.
5649 * Text.Pandoc.Writers.RTF: Fix warnings for skipped raw inlines.
5651 * Text.Pandoc.Writers.Texinfo: Add blank line before `@menu` section (#5055).
5653 * Text.Pandoc.XML: in `toHtml5Entities`, prefer shorter entities
5654 when there are several choices for a particular character.
5656 * data/abbreviations
5658 + Add additional abbreviations (Andrew Dunning)
5659 Many of these borrowed from the Chicago Manual of Style 10.42,
5660 'Scholarly abbreviations'.
5662 * Templates
5664 + Asciidoc template: add :lang: to title header is lang is set in
5665 metadata (#5088).
5667 * pandoc.cabal: Add cabal flag `derive_json_via_th` (Albert Krewinkel)
5668 Disabling the flag will cause derivation of ToJSON and FromJSON
5669 instances via GHC Generics instead of Template Haskell. The flag is
5670 enabled by default, as deriving via Generics can be slow (see #4083).
5672 * trypandoc:
5674 + Tweaked drop-down lists.
5675 + Put link to site in footer.
5676 + Preselect output format.
5677 + Update on change of in or out format.
5678 + Add man input format.
5680 * MANUAL.txt:
5682 + Fix outdated description of latex_macros extension.
5683 + Clarified placement of bibliography.
5684 + Added "A note on security."
5685 + Fix note on curly brace syntx for locators.
5686 + Document new explicit syntax for citeproc locators.
5687 + Remove confusing cross-links for some extensions.
5688 + Don't put pandoc in code ticks in heading.
5689 + Document that `--ascii` works for gfm and commonmark too.
5690 + Add `man` to `--from` options.
5692 * doc/customizing-pandoc.md: various improvements (Mauro Bieg).
5695## pandoc 2.4 (2018-11-03)
5697### New features
5699 * New input format `man` (Yan Pashkovsky, John MacFarlane).
5701### Behavior changes
5703 * `--ascii` is now implemented in the writers, not in Text.Pandoc.App,
5704 via the new `writerPreferAscii` field in `WriterOptions`.
5705 Now the `write*` functions for Docbook, HTML, ICML, JATS, LaTeX,
5706 Ms, Markdown, and OPML are sensitive to `writerPreferAscii`.
5707 Previously the to-ascii translation was done in Text.Pandoc.App,
5708 and thus not available to those using the writer functions
5709 directly.
5711 * `--ascii` now works with Markdown output. HTML5 character reference
5712 entities are used.
5714 * `--ascii` now works with LaTeX output. 100% ASCII output can't be
5715 guaranteed, but the writer will use commands like `\"{a}` and `\l`
5716 whenever possible, to avoid emitting a non-ASCII character.
5718 * For HTML5 output, `--ascii` now uses HTML5 character reference
5719 entities rather than numerical entities.
5721 * Improved detection of format based on extension (in Text.Pandoc.App).
5722 We now ensure that if someone tries to convert a file for a
5723 format that has a pandoc writer but not a reader, it won't just
5724 default to markdown.
5726 * Add viz. to abbreviations file (#5007, Nick Fleisher).
5728 * AsciiDoc writer: always use single-line section headers,
5729 instead of the old underline style (#5038). Previously the single-line
5730 style would be used if `--atx-headers` was specified, but
5731 now it is always used.
5733 * RST writer: Use simple tables when possible (#4750).
5735 * CommonMark (and gfm) writer: Add plain text fallbacks. (#4528,
5736 quasicomputational). Previously, the writer would unconditionally
5737 emit HTML output for subscripts, superscripts, strikeouts (if the
5738 strikeout extension is disabled) and small caps, even with
5739 `raw_html` disabled. Now there are plain-text (and, where
5740 possible, fancy Unicode) fallbacks for all of these corresponding
5741 (mostly) to the Markdown fallbacks, and the HTML output is only
5742 used when `raw_html` is enabled.
5744 * Powerpoint writer: support raw openxml (Jesse Rosenthal, #4976).
5745 This allows raw openxml blocks and inlines to be used in the pptx
5746 writer. Caveats: (1) It's up to the user to write
5747 well-formed openxml. The chances for corruption, especially with
5748 such a brittle format as pptx, is high. (2) Because of
5749 the tricky way that blocks map onto shapes, if you are using
5750 a raw block, it should be the only block on a slide
5751 (otherwise other text might end up overlapping it). (3) The
5752 pptx ooxml namespace abbreviations are different from the
5753 docx ooxml namespaces. Again, it's up to the user to get it
5754 right. Unzipped document and ooxml specification should be
5755 consulted.
5757 * With `--katex` in HTML formats, do not use the autorenderer (#4946).
5758 We no longer surround formulas with `\(..\)` or `\[..\]`. Instead,
5759 we tell katex to convert the contents of span elements with
5760 class "math". Since math has already been identified, this
5761 avoids wasted time parsing for LaTeX delimiters. Note, however,
5762 that this may yield unexpected results if you have span elements
5763 with class "math" that don't contain LaTeX math.
5764 Also, use latest version of KaTeX by default (0.9.0).
5766 * The man writer now produces ASCII-only output, using groff escapes,
5767 for portability.
5769 * ODT writer:
5771 + Add title, author and date to metadata; any remaining
5772 metadata fields are added as `meta:user-defined` tags.
5773 + Implement table caption numbering (#4949, Nils Carlson).
5774 Captioned tables are numbered and labeled with format "Table 1:
5775 caption", where "Table" is replaced by a translation, depending
5776 on the value of `lang` in metadata. Uncaptioned tables are not
5777 enumerated.
5778 + OpenDocument writer: Implement figure numbering in captions (#4944,
5779 Nils Carlson). Figure captions are now numbered 1, 2, 3, ...
5780 The format in the caption is "Figure 1: caption" and so on
5781 (where "Figure" is replaced by a translation, depending on the
5782 value of `lang` in the metadata). Captioned figures are numbered
5783 consecutively and uncaptioned figures are not enumerated. This
5784 is necessary in order for LibreOffice to generate an
5785 Illustration Index (Table of Figures) for included figures.
5787 * RST reader: Pass through fields in unknown directives as div attributes
5788 (#4715). Support `class` and `name` attributes for all directives.
5790 * Org reader: Add partial support for `#+EXCLUDE_TAGS` option. (#4284,
5791 Brian Leung). Headers with the corresponding tags should not
5792 appear in the output.
5794 * Log warnings about missing title attributes now include a
5795 suggestion about how to fix the problem (#4909).
5797 * Lua filter changes (Albert Krewinkel):
5799 + Report traceback when an error occurs. A proper Lua traceback is
5800 added if either loading of a file or execution of a filter
5801 function fails. This should be of help to authors of Lua filters
5802 who need to debug their code.
5804 + Allow access to pandoc state (#5015). Lua filters and custom
5805 writers now have read-only access to most fields of pandoc's
5806 internal state via the global variable `PANDOC_STATE`.
5808 + Push ListAttributes via constructor (Albert Krewinkel).
5809 This ensures that ListAttributes, as present in OrderedList elements,
5810 have additional accessors (viz. `start`, `style`, and `delimiter`).
5812 + Rename ReaderOptions fields, use snake_case. Snake case is used
5813 in most variable names, using camelCase for these fields was an
5814 oversight. A metatable is added to ensure that the old field
5815 names remain functional.
5817 + Iterate over AST element fields when using `pairs`. This makes
5818 it possible to iterate over all ield names of an AST element by
5819 using a generic `for` loop with pairs`:
5821 for field_name, field_content in pairs(element) do
5822 ...
5823 end
5825 Raw table fields of AST elements should be considered an
5826 implementation detail and might change in the future. Accessing
5827 element properties should always happen through the fields
5828 listed in the Lua filter docs.
5830 Note that the iterator currently excludes the `t`/`tag` field.
5832 + Ensure that MetaList elements behave like Lists. Methods usable
5833 on Lists can also be used on MetaList objects.
5835 + Fix MetaList constructor (Albert Krewinkel). Passing a MetaList
5836 object to the constructor `pandoc.MetaList` now returns the
5837 passed list as a MetaList. This is consistent with the
5838 constructor behavior when passed an (untagged) list.
5840 * Custom writers: Custom writers have access to the global variable
5841 `PANDOC_DOCUMENT`(Albert Krewinkel, #4957). The variable contains
5842 a userdata wrapper around the full pandoc AST and exposes two
5843 fields, `meta` and `blocks`. The field content is only
5844 marshaled on-demand, performance of scripts not accessing the
5845 fields remains unaffected.
5847### API changes
5849 * Text.Pandoc.Options: add `writerPreferAscii` to `WriterOptions`.
5851 * Text.Pandoc.Shared:
5853 + Export `splitSentences`. This was previously duplicated in the Man and
5854 Ms writers.
5855 + Add `ToString` typeclass (Alexander Krotov).
5857 * New exported module Text.Pandoc.Filter (Albert Krewinkel).
5859 * Text.Pandoc.Parsing
5861 + Generalize `gridTableWith` to any `Char` Stream (Alexander Krotov).
5862 + Generalize `readWithM` from `[Char]` to any `Char` Stream
5863 that is a `ToString` instance (Alexander Krotov).
5865 * New exposed module Text.Pandoc.Filter (Albert Krewinkel).
5867 * Text.Pandoc.XML: add `toHtml5Entities`.
5869 * New exported module Text.Pandoc.Readers.Man (Yan Pashkovsky, John
5870 MacFarlane).
5872 * Text.Pandoc.Writers.Shared
5874 + Add exported functions `toSuperscript` and
5875 `toSubscript` (quasicomputational, #4528).
5876 + Remove exported functions `metaValueToInlines`,
5877 `metaValueToString`. Add new exported functions
5878 `lookupMetaBool`, `lookupMetaBlocks`, `lookupMetaInlines`,
5879 `lookupMetaString`. Use these whenever possible for uniformity
5880 in writers (Mauro Bieg, #4907). (Note that
5881 removed function `metaValueToInlines` was in previous
5882 released versions.)
5883 + Add `metaValueToString`.
5885 * Text.Pandoc.Lua
5887 + Expose more useful internals (Albert Krewinkel):
5889 - `runFilterFile` to run a Lua filter from file;
5890 - data type `Global` and its constructors; and
5891 - `setGlobals` to add globals to a Lua environment.
5893 This module also contains `Pushable` and `Peekable` instances
5894 required to get pandoc's data types to and from Lua. Low-level
5895 Lua operation remain hidden in Text.Pandoc.Lua.
5897 + Rename `runPandocLua` to `runLua` (Albert Krewinkel).
5899 + Remove `runLuaFilter`, merging this into Text.Pandoc.Filter.Lua's
5900 `apply` (Albert Krewinkel).
5902### Bug fixes and under-the-hood improvements
5904 * Text.Pandoc.Parsing
5906 + Make `uri` accept any stream with Char tokens (Alexander Krotov).
5907 + Rewrite `uri` without `withRaw` (Alexander Krotov).
5908 + Generalize `parseFromString` and `parseFromString'` to any
5909 streams with Char token (Alexander Krotov)
5910 + Rewrite `nonspaceChar` using `noneOf` (Alexander Krotov)
5912 * Text.Pandoc.Shared: Reimplement `mapLeft` using `Bifunctor.first`
5913 (Alexander Krotov).
5915 * Text.Pandoc.Pretty: Simplify `Text.Pandoc.Pretty.offset`
5916 (Alexander Krotov).
5918 * Text.Pandoc.App
5920 + Work around HXT limitation for --syntax-definition with windows
5921 drive (#4836).
5922 + Always preserve tabs for man format. We need it for tables.
5923 + Split command line parsing code into a separate unexported
5924 module, Text.Pandoc.App.CommandLineOptions (Albert Krewinkel).
5926 * Text.Pandoc.Readers.Roff: new unexported module for tokenizing
5927 roff documents.
5929 * New unexported module Text.Pandoc.RoffChar, provided character
5930 escape tables for roff formats.
5932 * Text.Pandoc.Readers.HTML: Fix `htmlTag` and `isInlineTag` to
5933 accept processing instructions (#3123, regression since 2.0).
5935 * Text.Pandoc.Readers.JATS: Use `foldl'` instead of `maximum` to
5936 account for empty lists (Alexander Krotov).
5938 * Text.Pandoc.Readers.RST: Don't allow single-dash separator in
5939 headerless table (#4382).
5941 * Text.Pandoc.Readers.Org: Parse empty argument array in inline src
5942 blocks (Brian Leung).
5944 * Text.Pandoc.Readers.Vimwiki:
5946 + Get rid of `F`, `runF` and `stateMeta'` in favor of `stateMeta`
5947 (Alexander Krotov).
5948 + Parse `Text` without converting to `[Char]` (Alexander Krotov).
5950 * Text.Pandoc.Readers.Creole: Parse `Text` without converting to
5951 `[Char]` (Alexander Krotov).
5953 * Text.Pandoc.Readers.LaTeX
5955 + Allow space at end of math after `\` (#5010).
5956 + Add support for `nolinkurl` command (#4992, Brian Leung).
5957 + Simplified type on `doMacros'`.
5958 + Tokenize before pulling tokens, rather than after (#4408). This
5959 has some performance penalty but is more reliable.
5960 + Make macroDef polymorphic and allow in inline context.
5961 Otherwise we can't parse something like `\lowercase{\def\x{Foo}}`.
5962 I have actually seen tex like this in the wild.
5963 + Improved parsing of `\def`, `\let`. We now correctly parse:
5964 ```
5965 \def\bar{hello}
5966 \let\fooi\bar
5967 \def\fooii{\bar}
5968 \fooi +\fooii
5970 \def\bar{goodbye}
5971 \fooi +\fooii
5972 ```
5973 + Improve parsing of `\def` argspec.
5974 + Skip `\PackageError` commands (see #4408).
5975 + Fix bugs omitting raw tex (#4527). The default is `-raw_tex`,
5976 so no raw tex should result unless we explicitly say `+raw_tex`.
5977 Previously some raw commands did make it through.
5978 + Moved `isArgTok` to Text.Pandoc.Readers.LaTeX.Parsing.
5979 + Moved `babelLangToBCP`, `polyglossiaLangToBCP` to new module,
5980 Text.Pandoc.Readers.LaTeX.Lang (unexported).
5981 + Simplified accent code using unicode-transforms.
5982 New dependency on unicode-transforms package for normalization.
5983 + Allow verbatim blocks ending with blank lines (#4624).
5984 + Support `breq` math environments: `dmath`, `dgroup`, `darray`.
5985 This collects some of the general-purpose code from the LaTeX reader,
5986 with the aim of making the module smaller.
5988 * Text.Pandoc.Readers.Markdown
5990 + Fix awkward soft break movements before abbreviations (#4635).
5991 + Add updateStrPos in a couple places where needed.
5993 * Text.Pandoc.Readers.Docx: Trigger bold/italic with bCs, iCs
5994 (#4947). These are variants for "complex scripts" like Arabic
5995 and are now treated just like b, i (bold, italic).
5997 * Text.Pandoc.Readers.Muse (Alexander Krotov)
5999 + Try to parse lists before trying to parse table.
6000 This ensures that tables inside lists are parsed correctly.
6001 + Forbid whitespace after opening and before closing markup
6002 elements.
6003 + Parse page breaks.
6004 + Simplify `museToPandocTable` to get rid of partial functions.
6005 + Allow footnotes to start with empty line.
6006 + Make sure that the whole text is parsed.
6007 + Allow empty headers. Previously empty headers caused parser to
6008 terminate without parsing the rest of the document.
6009 + Allow examples to be indented with tabs.
6010 + Remove indentation from examples indicated by `{{{` and `}}}`.
6011 + Fix parsing of empty cells.
6012 + Various changes to internals.
6013 + Rewrite some parsers in applicative style.
6014 + Avoid tagsoup dependency.
6015 + Allow table caption to contain `+`.
6017 * Text.Pandoc.Writers.LaTeX
6019 + Add newline if math ends in a comment (#4880). This prevents the
6020 closing delimiter from being swalled up in the comment.
6021 + With `--listings`, don't pass through org-babel attributes (#4889).
6022 + With `--biblatex`, use `\autocite` when possible (#4960).
6023 `\autocites{a1}{a2}{a3}` will not collapse the entries. So, if
6024 we don't have prefixes and suffixes, we use instead
6025 `\autocite{a1,a2,a3}`.
6026 + Fix description lists contining highlighted code (#4662).
6028 * Text.Pandoc.Writers.Man
6030 + Don't wrap `.SH` and `.SS` lines (#5019).
6031 + Avoid unnecessary `.RS`/`.RE` pair in definition lists with
6032 one paragraph definitions.
6033 + Moved common groff functions to Text.Pandoc.Writers.Groff.
6034 * Fix strong/code combination on man (should be `\f[CB]` not
6035 `\f[BC]`, see #4973).
6036 + Man writer: use `\f[R]` instead of `\f[]` to reset font
6037 (Alexander Krotov, #4973).
6038 + Move `splitSentences` to Text.Pandoc.Shared.
6040 * Text.Pandoc.Writers.Docx
6042 + Add framework for custom properties (#3034). So far, we don't
6043 actually write any custom properties, but we have the
6044 infrastructure to add this.
6046 + Handle tables in table cells (#4953). Although this is not
6047 documented in the spec, some versions of Word require a `w:p`
6048 element inside every table cell. Thus, we add one when the
6049 contents of a cell do not already include one (e.g. when a table
6050 cell contains a table).
6052 * Text.Pandoc.Writers.AsciiDoc: Prevent illegal nestings.
6053 Adjust header levels so that n+1 level headers are only
6054 found under n level headers, and the top level is 1.
6056 * Text.Pandoc.Writers.OpenDocument: Improve bullet/numbering
6057 alignment (#4385). This change eliminates the large gap we used
6058 to have between bullet and text, and also ensures that numbers
6059 in numbered lists will be right-aligned.
6061 * Text.Pandoc.Writers.ZimWiki
6063 + Number ordered list items sequentially, rather than always
6064 with 1 (#4962).
6065 + Remove extra indentation on lists (#4963).
6067 * Text.Pandoc.Writers.EPUB: Use metadata field `css` instead of
6068 `stylesheet` (Mauro Bieg, #4990).
6070 * Text.Pandoc.Writers.Markdown: Ensure blank between raw block and
6071 normal content (#4629). Otherwise a raw block can prevent a
6072 paragraph from being recognized as such.
6074 * Text.Pandoc.Writers.Ms
6076 + Removed old `escapeBar`. We don't need this now that we use
6077 `@` for math delim.
6078 + Moved common code to Text.Pandoc.Writers.Roff and to
6079 Text.Pandoc.RoffChar.
6080 + Move `splitSentences` to Text.Pandoc.Shared (to avoid duplication
6081 with the man writer).
6083 * Text.Pandoc.Writers.Muse (Alexander Krotov).
6085 + Add support for grid tables.
6086 + Fix Muse writer style.
6087 + Use `length` instead of `realLength` to calculate definition
6088 indentation. Muse parsers don't take character width into
6089 account when calculating indentation.
6090 + Do not insert newline before lists.
6091 + Use lightweight markup after `</em>` tag.
6093 * New unexported module Text.Pandoc.Writers.Roff, providing functions
6094 useful for all roff format writers (man, ms).
6096 * Text.Pandoc.Lua
6098 + Move globals handling to separate module Text.Pandoc.Lua.Global
6099 (Albert Krewinkel).
6101 + Lua filter internals: push Shared.Element as userdata (Albert
6102 Krewinkel). Hierarchical Elements were pushed to Lua as plain
6103 tables. This is simple, but has the disadvantage that marshaling
6104 is eager: all child elements will be marshaled as part of the
6105 object. Using a Lua userdata object instead allows lazy access
6106 to fields, causing content marshaling just (but also each time)
6107 when a field is accessed. Filters which do not traverse the full
6108 element contents tree become faster as a result.
6110### Default template changes
6112 * LaTeX template:
6114 + Add variable `hyperrefoptions` (#4925, Mathias Walter).
6115 + Add variable `romanfont`, `romanfontoptions` (#4665, OvidiusCicero).
6117 * AsciiDoc template: use single-line style for title.
6119 * revealjs template: Fix typo in the socket.io javascript plugin (#5006,
6120 Yoan Blanc).
6122 * Text.Pandoc.Lua.Util: add missing docstring to `defineHowTo`
6123 (Albert Krewinkel).
6125 * data/pandoc.lua: add datatype ListAttributes (Albert Krewinkel)
6127 * data/sample.lua: replace custom pipe function with pandoc.utils.pipe
6128 (Albert Krewinkel).
6130### Documentation improvements
6132 * INSTALL.md
6134 + Add chromeos install instructions (#4958) (Evan Pratten).
6135 + Add note about TinyTeX.
6137 * MANUAL.txt
6139 + Change `groff` -> `roff`.
6140 + Implement `--ascii` for Markdown writer.
6141 + Clarify LaTeX image dimensions output (Mauro Bieg).
6143 * doc/customizing-pandoc.md: added skeleton (Mauro Bieg, #3288).
6145 * doc/getting-started.md: Added title to test1.md to avoid warning.
6147 * doc/lua-filters.md: merge type references into main document,
6148 fix description of Code.text (Albert Krewinkel).
6150### Build infrastructure improvements
6152 * Makefile
6154 + Makefile: added quick-cabal, full-cabal targets.
6155 + Make .msi download targets insensitive to order of appveyor builds.
6157 * Update benchmarks for ghc 8.6.1.
6159 * pandoc.cabal:
6161 + Enable more compiler warnings (Albert Krewinkel).
6162 + Make base lower bound 4.8.
6163 + Bump upper bound for QuickCheck.
6164 + Bump upper bound for binary.
6165 + Updated version bounds for containers and haddock-library (#4974).
6166 + Added docx/docPropos/custom.xml to cabal data-files.
6167 + Require skylighting 0.7.4 (#4920).
6168 + New dependency on unicode-transforms package for normalization.
6170 * Improved .travis.yml testing and test with GHC 8.6.1 (Albert Krewinkel).
6172 * Added `tools/changelog-helper.sh`.
6174 * Added test/grofftest.sh for testing the man reader on real man pages.
6176## pandoc 2.3.1 (2018-09-28)
6178 * RST reader:
6180 + Parse RST inlines containing newlines (#4912, Francesco Occhipinti).
6181 This eliminates a regression introduced after pandoc 2.1.1, which
6182 caused inline constructions containing newlines not to be recognized.
6183 + Fix bug with internal link targets (#4919). They were gobbling up
6184 indented content underneath.
6186 * Markdown reader: distinguish autolinks in the AST. With this change,
6187 autolinks are parsed as Links with the `uri` class. (The same is true
6188 for bare links, if the `autolink_bare_uris` extension is enabled.)
6189 Email autolinks are parsed as Links with the `email` class. This
6190 allows the distinction to be represented in the AST.
6192 * Org reader:
6194 + Force inline code blocks to honor export options (Brian Leung).
6195 + Parse empty argument array in inline src blocks (Brian Leung).
6197 * Muse reader (Alexander Krotov):
6199 + Added additional tests.
6200 + Do not allow code markup to be followed by digit.
6201 + Remove heading level limit.
6202 + Simplify `<literal>` tag parsers
6203 + Parse Text instead of String. Benchmark shows 7% improvement.
6204 + Get rid of HTML parser dependency.
6205 + Various code improvements.
6207 * ConTeXt writer: change `\` to `/` in Windows image paths (#4918).
6208 We do this in the LaTeX writer, and it avoids problems.
6209 Note that `/` works as a LaTeX path separator on Windows.
6211 * LaTeX writer:
6213 + Add support for multiprenote and multipostnote arguments
6214 with `--biblatex` (Brian Leung, #4930). The multiprenotes occur before
6215 the first prefix of a multicite, and the multipostnotes follow the
6216 last suffix.
6217 + Fix a use of `last` that might take empty list. If you ran with
6218 `--biblatex` and have an empty document (metadata but no blocks),
6219 pandoc would previously raise an error because of the use of
6220 `last` on an empty list.
6222 * RTF writer: Fix build failure with ghc-8.6.1 caused by missing
6223 MonadFail instance (Jonas Scholl).
6225 * ODT Writer: Improve table header row style handling (Nils Carlson).
6226 This changes the way styles for cells in the header row
6227 and normal rows are handled in ODT tables.
6228 Previously a new (but identical) style was generated for
6229 every table, specifying the style of the cells within the table.
6230 After this change there are two style definitions for table cells,
6231 one for the cells in the header row, one for all other cells.
6232 This doesn't change the actual styles, but makes post-processing
6233 changes to the table styles much simpler as it is no longer
6234 necessary to introduce new styles for header rows and there are
6235 now only two styles where there was previously one per table.
6237 * HTML writer:
6239 + Don't add `uri` class to presumed autolinks. Formerly the `uri`
6240 class was added to autolinks by the HTML writer, but it had to
6241 guess what was an autolink and could not distinguish
6242 `[http://example.com](http://example.com)` from
6243 `<http://example.com>`. It also incorrectly recognized
6244 `[pandoc](pandoc)` as an autolink. Now the HTML writer
6245 simply passes through the `uri` attribute if it is present,
6246 but does not add anything.
6247 + Avoid adding extra section nestings for revealjs.
6248 Previously revealjs title slides at level (slidelevel - 1)
6249 were nested under an extra section element, even when
6250 the section contained no additional (vertical) content.
6251 That caused problems for some transition effects.
6252 + Omit unknown attributes in EPUB2 output. For example,
6253 `epub:type` attributes should not be passed through,
6254 or the epub produced will not validate.
6256 * JATS writer: remove 'role' attribute on 'bold' and 'sc' elements (#4937).
6257 The JATS spec does not allow these.
6259 * Textile writer: don't represent `uri` class explicitly
6260 for autolinks (#4913).
6262 * Lua filters (Albert Krewinkel):
6264 + Cleanup filter execution code.
6265 + Better error on test failure.
6267 * HTML, Muse reader tests: reduce time taken by round-trip test.
6269 * Added cabal.project.
6271 * MANUAL: `epub:type` is only useful for epub3 (Maura Bieg).
6273 * Use hslua v1.0.0 (Albert Krewinkel).
6275 * Fix `translations/ru` to use modern Russian orthography
6276 (Ivan Trubach).
6278 * Build Windows binary using ghc 8.6.1 and cabal new-build. This
6279 fixes issues with segfaults in the 32-bit Windows binaries (#4283).
6281## pandoc 2.3 (2018-09-16)
6283 * Add `--metadata-file` option (Mauro Bieg, #1960), which allows
6284 users to specify metadata in a YAML file, regardless of the
6285 input format (#1960).
6287 * Text.Pandoc.Writers.Shared: export `isDisplayMath` (API change).
6289 * Text.Pandoc.Readers.Markdown: export `yamlToMeta` (API change,
6290 Mauro Bieg).
6292 * Text.Pandoc.Readers.LaTeX.Types:
6294 + New type `ArgSpec` (API change).
6295 + Second parameter of `Macro` constructor is now `[ArgSpec]` instead of
6296 `Int` (API change).
6298 * Markdown reader:
6300 + Use `tex` instead of `latex` for raw tex-ish content. We can't
6301 always tell if it's LaTeX, ConTeXt, or plain TeX. Better just to
6302 use `tex` always. Note that if `context` or `latex` specifically
6303 is desired, you can still force that in a markdown document by
6304 using the raw attribute. Note that this change may affect some
6305 filters, if they assume that raw tex parsed by the Markdown reader
6306 will be RawBlock (Format `latex`). In most cases it should be
6307 trivial to modify the filters to accept `tex` as well.
6308 + Refactor and reorganize YAML code (Mauro Bieg).
6309 + Make `example_lists` work for interrupted lists
6310 without `startnum` (#4908).
6312 * HTML reader:
6314 + Parse `<script type="math/tex` tags as math (#4877).
6315 These are used by MathJax in some configurations.
6316 + Extract spaces inside links instead of trimming them
6317 (Alexander Krotov, #4845).
6318 + Added round-trip tests (Alexander Krotov).
6319 + Make parsing sensitive to the `raw_tex` extension (#1126). This now
6320 allows raw LaTeX environments, `\ref`, and `\eqref` to be parsed
6321 (which is helpful for translation HTML documents using MathJaX).
6323 * Org reader (Albert Krewinkel):
6325 + Respect export option `p` for planning info. Inclusion of planning info
6326 (`*DEADLINE*`, `*SCHEDULED*`, and `*CLOSED*`) can be controlled via the
6327 `p` export option: setting the option to `t` will add all planning
6328 information in a *Plain* block below the respective headline.
6329 + Org reader internals: don't rely on RecordWildCards and ViewPatterns
6330 ghc extensions.
6331 + Strip planning info from output. Planning info is parsed, but not
6332 included in the output (as is the default with Emacs Org-mode, #4867).
6334 * LaTeX reader:
6336 + Handle parameter patterns for `\def` (#4768, #4771).
6337 For example: `\def\foo#1[#2]{#1 and #2}`.
6338 + Allow `%` characters in URLs. This affects `\href` and `\url` (#4832).
6339 + Fixed parsing of `\texorpdfstring`. We were returning the wrong
6340 argument as the content.
6341 + Support `blockcquote`, `foreignblockquote`, `foreigncblockquote`,
6342 `hyphenblockquote`, `hyphencblockquote`, `enquote*`, `foreignquote`,
6343 `hyphenquote` from `csquotes` (#4848). Note that `foreignquote`
6344 will be parsed as a regular Quoted inline (not using the quotes
6345 appropriate to the foreign language).
6346 + Support more text-mode accents (#4652). Add support for `\|`, `\b`, `\G`,
6347 `\h`, `\d`, `\f`, `\r`, `\t`, `\U`, `\i`, `\j`, `\newtie`,
6348 `\textcircled`. Also fall back to combining characters when composed
6349 characters are not available.
6350 + Resolve `\ref` for figure numbers.
6351 + Support `mintinline` (#4365, Marc Schreiber).
6352 + Fix siunitx unit commands so they are only recognized in
6353 siunitx contexts (#4842). For example, `\l` outside of an
6354 siunitx context should be l-slash, not l (for liter).
6355 + Fix double `unnumbered` class (#4838). The `unnumbered` class
6356 was being included twice for starred sections.
6358 * RST reader: Don't skip link definitions after comments (#4860).
6360 * Muse reader (Alexander Krotov):
6362 + Close the `</quote>` in indented tag test.
6363 There is already a separate test for unclosed `</quote>`.
6364 + Autonumber sections in the correct order. Parsing now stops
6365 at each section header to ensure the header is registered before
6366 parsing of the next section starts.
6367 + Move duplicate code into `headingStart` function.
6368 + Allow newline after opening `*` or `**`.
6369 + Don't allow digits after closing marker in lightweight markup
6370 This change makes reader more compatible with Emacs Muse.
6371 + Parse `<verse>` tag in one pass instead of using
6372 `parseFromString`. This change makes it possible to have
6373 verbatim `</verse>` tag inside verse.
6375 * ODT reader: deal gracefully with missing `<office:font-face-decls/>`
6376 (#4336). This allows pandoc to parse ODT document produced by KDE's
6377 Calligra.
6379 * Muse writer (Alexander Krotov):
6381 + Output headers without asterisks if not on the top level.
6382 + Never wrap definition list terms.
6383 + Set `envInsideBlock = True` when rendering notes.
6384 + Use `""` instead of `[]` for empty String.
6385 + Check for whitespace in the beginning and end of Str's.
6386 + Escape `-`, `;` and `>` in the beginning of strings.
6387 + Escape list markers in the beginning of notes.
6388 + Normalize inline list before testing if tags should be used.
6389 + Use tags instead of lightweight markup for empty strings.
6390 + Use lightweight markup when possible.
6391 + Escape empty strings. This guarantees that `conditionalEscapeString`
6392 never returns empty string.
6393 + Wrap conditionalEscapeString result into `Muse` type.
6394 This removes the need to pass `envInsideLinkDescription` to it.
6395 + Separate `shouldEscapeString` function.
6396 + Simplify inline list rendering.
6397 + Replace newlines in strings with spaces.
6399 * Docx writer:
6401 + Add MetaString case for abstract, subtitle (#4900, Mauro Bieg).
6402 + Properly handle display math in spans (#4826). This isn't a
6403 complete solution, since other nestings of display math may still
6404 cause problems, but it should work for what is by far the most
6405 common case.
6407 * HTML writer:
6409 + Always output `<dt>` element, even if it is empty (#4883,
6410 Alexander Krotov).
6411 + Don't prefix `epub:` attributes with `data-`.
6413 * Org writer: Don't escape literal `_`, `^` (#4882). Org doesn't
6414 recognize these escapes.
6416 * ODT writer: Fix percentage image scaling (#4881, Nils Carlson).
6417 Image scaling was broken when a width was set to a percentage.
6419 * EPUB writer: set `epub:type` on body element in each chapter,
6420 depending on the `epub:type` of the first section (#4823). This
6421 only affects epub3. See
6422 http://www.idpf.org/epub/profiles/edu/structure/#h.l0bzsloklt10
6424 * FB2 writer: put `coverpage` element between title and date rather than in
6425 `document-info` element (#4854).
6427 * Markdown writer: Escape `~` if strikeout extension enabled (#4840).
6429 * Haddock writer: Use proper format for latex math in haddock (#4571, Joe
6430 Hermaszewski). Inline math in `\(..\)`, display math in `\[..\]`,
6431 tex is now used. Previously we'd "fake it with unicode" and fall
6432 back to tex when that didn't work. But newer haddock versions
6433 support latex math.
6435 * TEI writer:
6437 + Ensure that title element is always present, even if empty (#4839).
6438 + Put author tags in the template, rather than adding them in
6439 the writer (#4839).
6441 * LaTeX writer/template: be sensitive to `filecolor` variable (#4822).
6442 `linkcolor` only affects internal links, and `urlcolor` only
6443 affects linked URLs. For external links, the option to use is
6444 `filecolor`.
6446 * ConTeXt writer: output raw `tex` blocks as well as `context` (#969).
6448 * RST writer:
6450 + Use `.. raw:: latex` for `tex` content.
6451 + Use `.. container` for generic Divs, instead of raw HTML.
6452 + Render Divs with admonition classes as admonitions (#4833).
6453 Also omit Div with class `admonition-title`. These are generated
6454 by the RST reader and should be omitted on round-trip.
6456 * Text.Pandoc.PDF: fix message printed when rsvg-convert is not available
6457 (#4855, Antonio Terceiro).
6459 * HTML5 template: add the `title-block-header` identifier to the
6460 `header` element, to make it easier to style precisely (#4767,
6461 J. B. Rainsberger).
6463 * OpenDocument template: Remove unnecessary indenting of TOC title (#4798,
6464 José de Mattos Neto).
6466 * latex template: Add support for $toc-title$ to LaTeX (and PDF)
6467 (#4853, Wandmalfarbe).
6469 * TEI template: improve `publicationStmt`. Add support for
6470 `publisher`, `address`, `pubPlace`, and `date` variables.
6472 * beamer template: Support "toc-title" (#4835, Cyril Roelandt).
6474 * Text.Pandoc.Extensions: Fix haddock on `Ext_footnotes` (Chris Martin).
6476 * Lua: cleanup Lua utils, remove unused functions (Albert Krewinkel).
6478 * MANUAL.txt:
6480 + Clarify that `--biblatex/--natbib` don't work directly for PDF
6481 (#4904).
6482 + Document `epub:type` attribute (Mauro Bieg, #4901)
6483 + Clarify when `--resource-path` has an effect.
6484 + More detail on customization in syntax highlighting section.
6485 + Document encoding issue with `--listings` (#4871, Damien Clochard).
6486 + Remove docs on removed `--katex-stylesheet` (Mauro Bieg, #4862).
6487 + Use https for context wiki links (#4910).
6489 * CONTRIBUTING.md:
6491 + Link to lua-filters repository (#4874).
6492 + Fix mistake in REPL instructions for stack. (#4849, Brian Leung).
6494 * lua-filters.md: add links to filters, and to lua-filters repository
6495 (#4874).
6497 * INSTALL.md:
6499 + Indicate that cabal >= 2.0 is needed.
6500 + Added chocolatey installation method (#4844, Miodrag Milić).
6502 * Travis: exclude round-trip tests, except for nightly test which can fail.
6504 * Use latest texmath, pandoc-citeproc.
6506 * Use a patched version of foundation until
6507 https://github.com/haskell-foundation/foundation/pull/503
6508 is fixed.
6510 * Clean up appveyor build and Windows package creation.
6511 We now use 64-bit stack and ghc 8.4.3, lts-12 for the 64-bit build. The
6512 WiX-based msi is now 64-bit for 64-bit builds (fixing #4795).
6514 * Remove obsolete RELEASE-CHECKLIST.md.
6516 * Added additional compiler warnings in Makefile and CI builds.
6518## pandoc 2.2.3.2 (2018-08-07)
6520 * Markdown reader: Properly handle boolean values in YAML metadata (#4819).
6521 This fixes a regression in 2.2.3, which cause boolean values to
6522 be parsed as MetaInlines instead of MetaBool.
6524 We here record another undocumented (but desirable) change in 2.2.3:
6525 numerical metadata fields are now parsed as MetaInlines rather than
6526 MetaString.
6528## pandoc 2.2.3.1 (2018-08-06)
6530 * Markdown reader: Fix parsing of embedded mappings in YAML metadata
6531 (#4817). This fixes a regression in 2.2.3 which caused embedded
6532 mappings (e.g. mappings in sequences) not to work in YAML metadata.
6534## pandoc 2.2.3 (2018-08-05)
6536 * RST reader: improve parsing of inline interpreted text roles (#4811).
6538 + Use a Span with class "title-reference" for the default
6539 title-reference role.
6540 + Use `B.text` to split up contents into `Space`s, `SoftBreak`s,
6541 and `Str`s for `title-reference`.
6542 + Use Code with class "interpreted-text" instead of Span and Str for
6543 unknown roles. (The RST writer has also been modified to round-trip
6544 this properly.)
6545 + Disallow blank lines in interpreted text.
6546 + Backslash-escape now works in interpreted text.
6547 + Backticks followed by alphanumerics no longer end interpreted text.
6548 + Remove support for nested inlines (Francesco Occhipinti).
6549 RST does not allow nested emphasis, links, or other inline
6550 constructs. This fixes several bugs (#4581, #4561, #4792).
6552 * Org reader: fix parsers relying on `parseFromString` (#4784, Albert
6553 Krewinkel). Emphasis was not parsed when it followed directly after
6554 some block types (e.g., lists).
6556 * Markdown reader: Allow unquoted numbers and booleans as YAML mapping
6557 keys. Previously in 2.2.2 you could not do
6558 ```
6559 ---
6560 0: bar
6561 ...
6562 ```
6563 but only
6564 ```
6565 ---
6566 '0': bar
6567 ...
6568 ```
6569 With this change, both forms work.
6571 * DocBook reader: metadata handling improvements.
6572 Now we properly parse title and subtitle elements that are direct
6573 children of book and article (as well as children of bookinfo,
6574 articleinfo, or info). We also now use the `subtitle` metadata
6575 field for subtitles, rather than tacking the subtitle on to the
6576 title.
6578 * RST writer:
6580 + Allow images to be directly nested within links (#4810, Francesco
6581 Occhipinti).
6582 + Use `titleblock` instead of `title` variable for title block (#4803,
6583 Francesco Occhipinti). `titleblock` contains a properly formatted
6584 title and subtitle (using top-level headers). `title` and
6585 `subtitle` variables are still available and just contain the
6586 title and subtitle text. Note that this change will require an
6587 update to custom rst templates.
6588 + Render Code with class "interpreted-text" as interpreted text role.
6590 * MediaWiki writer: Avoid extra blank line in tables with empty cells
6591 (#4794). Note that the old output is semantically identical, but the
6592 new output looks better.
6594 * Lua Utils module: add function `blocks_to_inlines` (#4799, Albert
6595 Krewinkel). Exposes a function converting which flattenes a list of
6596 blocks into a list of inlines. An example use case would be the
6597 conversion of Note elements into other inlines.
6599 * RST template: use `titleblock` instead of `title`. Users of
6600 custom RST templates will want to update this.
6602 * LaTeX template: Moved some beamer code in default.latex template.
6603 This change allows beamer themes to change the template and font (as
6604 Metropolis does) (#4450).
6606 * Better error message on `-t pdf -o out.pdf` (#1155, Mauro Bieg).
6608 * Added test case for #4669 to repository.
6610 * INSTALL.md: Fix broken link for cabal-install (#4806, ChanHoHo).
6612 * MANUAL.txt:
6614 + Add beamer info for slide backgrounds (#4802, John Muccigrosso).
6615 + Clarify when `csquotes` is used in LaTeX writer (#4514).
6616 + Add `commonmark` to list of output formats where `raw_tex` has an
6617 effect (see #4527).
6620## pandoc 2.2.2.1 (2018-07-19)
6622 * Fix regression finding templates in user data directory (#4777).
6623 Under version 2.2.1 and prior pandoc found latex templates in the
6624 templates directory under the data directory, but this broke in 2.2.2.
6626 * Fix for bug in parsing `\input` in `rawLaTeXBlock` and
6627 `rawLaTeXInline` (#4781). (This primarily affects the markdown
6628 reader, and other readers that accept raw tex.)
6629 Starting in 2.2.2, everything after an `\input` (or `\include`)
6630 in a markdown file would be parsed as raw LaTeX.
6632 * MANUAL:
6634 + Clarify `gfm` vs `markdown_github` (#4783, Mauro Bieg).
6635 * Use `keywords` instead of `tags` in YAML metadata example (#4779).
6636 Unlike `tags`, `keywords` is used in some of the writers
6637 and default templates.
6639 * Add missing `rollingLinks` option to revealjs template (#4778,
6640 Igor Khorlo).
6642## pandoc 2.2.2 (2018-07-16)
6644 * Use HsYAML instead of yaml for translations and YAML metadata (#4747).
6645 yaml wraps a C library; HsYAML is pure Haskell. Advances #4535.
6647 Note: HsYAML implements YAML 1.2, in which the valid true
6648 values are `true`, `True`, `TRUE`. This means a change in
6649 the semantics of YAML metadata that could affect users:
6650 `y`, `yes`, and `on` no longer count as true values.
6652 * Fix regression: make `--pdf-engine` work with full paths (#4681, Mauro
6653 Bieg).
6655 * CommonMark reader: Handle `ascii_identifiers` extension (#4742,
6656 Anders Waldenborg). Non-ascii characters were not stripped from
6657 identifiers even if the `ascii_identifiers` extension was
6658 enabled (which is is by default for gfm).
6660 * TikiWiki reader: Improve list parsing (#4722, Mauro Bieg).
6661 Remove trailing Space from list items. Parse lists that have no space
6662 after marker.
6664 * LaTeX reader:
6666 + Treat `lilypond` as a verbatim environment (#4725).
6667 + Parse figure label into Image id (#4700, Mauro Bieg).
6668 + Beamer: Allow "noframenumbering" option (#4696, Raymond Ehlers).
6669 + Allow spaces around `\graphicspath` arguments (#4698).
6670 + Handle includes without surrounding blanklines (#4553).
6671 In addition, `\input` can now be used in an inline context,
6672 e.g. to provide part of a paragraph, as it can in LaTeX.
6673 + In `rawLaTeXBlock`, handle macros that resolve to a
6674 `\begin` or `\end` (#4667).
6675 + In `rawLaTeXBlock`, don't expand macros in macro definitions (#4653).
6676 Note that this only affected LaTeX in markdown.
6677 + Tighten up reading of beamer overlay specifications (#4669).
6678 Ideally we'd turn these on only when reading beamer, but currently
6679 beamer is not distinguished from latex as an input format.
6680 This commit also activates parsing of overlay specifications
6681 after commands in general (e.g. `\item`), since they can occur
6682 in many contexts in beamer.
6683 + Parse more siunitx unit commands (#4296, #4773).
6684 + Be more forgiving in key/value option parsing (#4761).
6686 * Markdown reader:
6688 + Allow empty code spans, e.g. `` ` ` ``.
6689 + Emojis are now wrapped in Spans with class `emoji` and
6690 attribute `data-emoji` (Anders Waldenborg, #4743).
6691 This allows the writer to handle them in a special way
6692 (e.g. using a special font, or just rendering the
6693 emoji name).
6695 * Muse reader (Alexander Krotov, except where indicated):
6697 + Get rid of non-exhaustive pattern match warning (Mauro Bieg).
6698 + Add support for floating images.
6699 + Add support for images with specified width.
6700 + Parse image URLs without "guard" and "takeExtension".
6701 + Split link and image parsing into separate functions.
6702 + Parse links starting with "URL:" explicitly instead of trying to strip
6703 "URL:" prefix after parsing.
6705 * Texinfo writer: Use `@sup` and `@sub` instead of custom macros (#4728,
6706 Alexander Krotov).
6708 * Markdown writer: Preserve `implicit_figures` with attributes, even if
6709 `implicit_attributes` is not set, by rendering in raw HTML (#4677).
6711 * Markdown and commonmark/github writers now respect the `emoji`
6712 extension. So, `-f markdown+emoji -t markdown+emoji` now leaves
6713 `:smile:` as `:smile:` rather than converting it to a smile
6714 character.
6716 * Docx writer: Be sensitive to `toc` in YAML metadata (#4645).
6718 * ODT/OpenDocument writer: Make internal links work (#4358).
6719 This adds proper bookmarks to the headers with non-null IDs.
6721 * EPUB writer: Properly escape pagetitle. Previously we weren't
6722 escaping `&` and other XML characters in the pagetitle, so a title
6723 containing a `&` would be invalid.
6725 * AsciiDoc Writer: Eescape square brackets at start of line (#4545,
6726 Mauro Bieg).
6728 * RST writer:
6730 + Don't treat 'example' as a syntax name (#4748).
6731 This fixes conversions from org with example blocks.
6732 + Support `--number-sections` via the `section-numbering`
6733 directive in standalone output.
6735 * reveal.js writer and template: reuse mathjax URL
6736 provided by the argument to `--mathjax` or the normal pandoc default,
6737 rather than a hard-coded one in the template (#4701).
6739 * LaTeX writer:
6741 + Properly handle footnotes in table captions (#4683).
6742 Refactored code from figure captions to use in both places.
6743 + In beamer output, fix single digit column percentage (#4690, Mauro
6744 Bieg).
6746 * FB2 writer (Alexander Krotov):
6748 + Convert Plain to Para in annotation (#2424).
6749 + Fix order of items in title-info (#2424).
6751 * Custom writer: fix error message on script failure (Albert Krewinkel).
6752 Error messages produced by Lua were not displayed by Pandoc.
6754 * Text.Pandoc.Emoji now exports `emojiToInline`, which returns a Span
6755 inline containing the emoji character and some attributes with metadata
6756 (class `emoji`, attribute `data-emoji` with emoji name). (API change,
6757 Anders Waldenborg, #4743).
6759 * Text.Pandoc.PDF:
6761 + Revert fix for #4484 (only compress images on last run, #4755).
6762 This will mean some increase in the time it takes to
6763 produce an image-heavy PDF with xelatex, but it will
6764 make tables of contents correct, which is more important.
6765 + Fix logic error in `runTeXProgram`. We were running the tex program
6766 one more time than requested. This should speed up PDF production.
6768 * Allow `--template` to take a URL as argument.
6770 * Text.Pandoc.Highlighting: Add missing re-export of `breezeDark`
6771 highlighting style (#4687, Adrian Sieber, API change).
6773 * Clarify macOS install in INSTALL.md (#4661). Make the binary package
6774 installer the recommended method, and note that on some older versions of
6775 macOS, homebrew installs from source and takes a lot of disk space
6776 (#4664, Ian).
6778 * MANUAL:
6780 + Clarify EPUB linked media (#4756, Mauro Bieg)
6781 + Update manual for "true" YAML values. Now that we're using HsYAML and
6782 YAML 1.2, the valid true values are `true`, `True`, `TRUE`. NOTE!
6783 `y`, `yes`, `on` no longer count as true values.
6784 + Document `-F` as alias for `--filter` (thanks to Gandalf Saxe).
6785 + Update manual on how math is rendered in LaTeX.
6786 + Add proxy description (#4131, Mauro Bieg).
6787 + Clarify that `--toc` requires `--standalone` (#4703).
6788 + Update citation styles link (#4699, wiefling).
6790 * In API docs, clarify how `Ext_east_asian_line_breaks` extension works
6791 (kaizshang91). Note that it will not take effect when readers/writers
6792 are called as libraries (#4674).
6794 * Improved translations/fr (#4766, lux-lth).
6796 * Removed inadvertently added `.orig` files from repository (#4648).
6798 * Remove `network-uri` flag and use 'Network.Socket'.
6799 This removes a compiler warning. There is no need for the old
6800 `network-uri` flag, since network 2.6 was released in 2014.
6802 * Add stack.lts10.yaml, stack.lts11.yaml. use lts-12 in stack.yaml.
6804 * Bump upper bounds for dependent packages.
6806 * Exclude foundation 0.0.21 for ghc 7.10. Otherwise cabal gets
6807 confused because of the way ghc 7.10 is excluded in foundation's
6808 cabal file. This can be removed when haskell-foundation/foundation#500
6809 is fixed.
6811 * Require cabal-version >= 2.0. This is needed for haddock-library.
6816## pandoc 2.2.1 (2018-05-10)
6818 * Restored and undeprecated gladtex for HTML math (#4607).
6820 + Added `GladTeX` constructor to `Text.Pandoc.Options.HTMLMathMethod`
6821 [API change, reverts removal in v2.2]
6822 + Restored and undeprecated `--gladtex` option, removed in v2.2.
6824 * LaTeX reader: Handle `$` in `/text{..}` inside math (#4576).
6826 * Org reader: Fix image filename recognition (Albert Krewinkel).
6827 Use a function from the filepath library to check whether a string is a
6828 valid file name. The custom validity checker that was used before gave
6829 wrong results (e.g. for absolute file paths on Windows,
6830 kawabata/ox-pandoc#52).
6832 * FB2 reader: Replace some errors with warnings (Alexander Krotov).
6834 * HTML writer:
6836 + Strip links from headers when creating TOC (#4340).
6837 Otherwise the TOC entries will not link to the sections.
6838 + Fix regression with tex math environments in HTML + MathJax (#4639).
6840 * Muse writer (Alexander Krotov): Add support for left-align and
6841 right-align classes (#4542).
6843 * Docx writer: Support underline (#4633).
6845 * Text.Pandoc.Parsing: Lookahead for non-whitespace after
6846 `singleQuoteStart` and `doubleQuoteStart` (#4637).
6848 * `test-pandoc-utils.lua`: more robust testing on both windows
6849 and \*nix. Previously the pipe tests were only run if
6850 `\bin/false` and `/bin/sed` were present, which they aren't
6851 in default MacOS and Windows systems. Fixed by using `tr`
6852 and `false`, which should always be in the path on a \*nix
6853 system, and `find` and `echo` for Windows.
6855 * Text.Pandoc.Shared: add `uriPathToPath`.
6856 This adjusts the path from a file: URI in a way that is sensitive
6857 to Windows/Linux differences. Thus, on Windows,
6858 `/c:/foo` gets interpreted as `c:/foo`, but on Linux,
6859 `/c:/foo` gets interpreted as `/c:/foo`. See #4613.
6861 * Use `uriPathToPath` with file: URIs (#4613).
6863 * Revert piping HTML to pdf-engine (Mauro Bieg, #4413). Use a temp
6864 file as before.
6866 * Text.Pandoc.Class: Catch IO errors when writing media files
6867 and issue a warning, rather than an error (Francesco Occhipinti, #4559).
6869 * Don't lowercase custom writer filename (Alexander Krotov, #4610).
6871 * MANUAL (Mauro Bieg):
6873 + Clarify truthiness in template variables (#2281).
6874 + Clarify pipe table width calculation (#4520).
6876 * ConTeXt template: New Greek fallback typeface (Pablo Rodríguez, #4405).
6877 CMU Serif gives better typographic results than the previous
6878 Greek fallback DejaVu Serif.
6880 * Make HTML template polyglot (#4606, OvidiusCicero), by making
6881 `<link rel="stylesheet" href="$css$">` self-closing.
6883 * Use texmath 0.11, allowing better translation of non-ASCII
6884 characters in math (#4642).
6887## pandoc 2.2 (2018-04-27)
6889 * New input format: `fb2` (FictionBook2) (Alexander Krotov).
6891 * Make `--ascii` work for all XML formats (ICML, OPML, JATS,...),
6892 and for `ms` and `man`.
6894 * Remove deprecated `--latexmathml`, `--gladtex`, `--mimetex`, `--jsmath`, `-m`,
6895 `--asciimathml` options.
6897 * New module Text.Pandoc.Readers.FB2, exporting readFB2 (Alexander
6898 Krotov, API change).
6900 * Markdown reader:
6902 + Allow empty key-value attributes, like `title=""` (#2944).
6903 + Handle table w/o following blank line in fenced div (#4560).
6904 + Remove "fallback" for `doubleQuote` parser. Previously the
6905 parser tried to be efficient -- if no end double quote was found,
6906 it would just return the contents. But this could backfire in a
6907 case `**this should "be bold**`, since the fallback would return
6908 the content `"be bold**` and the closing boldface delimiter
6909 would never be encountered.
6910 + Improve computation of the relative width of the last column in a
6911 multiline table, so we can round-trip tables without constantly
6912 shrinking the last column.
6914 * EPUB reader:
6916 + Fix images with space in file path (#4344).
6918 * LaTeX reader:
6920 + Properly resolve section numbers with `\ref` and chapters (#4529).
6921 + Parse sloppypar environment (#4517, Marc Schreiber).
6922 + Improve handling of raw LaTeX (for markdown etc.) (#4589, #4594).
6923 Previously there were some bugs in how macros were handled.
6924 + Support `\MakeUppercase`, `\MakeLowercase`, `\uppercase`,
6925 `\lowercase`, and also `\MakeTextUppercase` and
6926 `\MakeTextLowercase` from textcase (#4959).
6928 * Textile reader:
6930 + Fixed tables with no body rows (#4513).
6931 Previously these raised an exception.
6933 * Mediawiki reader:
6935 + Improve table parsing (#4508). This fixes detection of table
6936 attributes and also handles `!` characters in cells.
6938 * DocBook reader:
6940 + Properly handle title in `section` element (#4526).
6941 Previously we just got `section_title` for `section` (though `sect1`,
6942 `sect2`, etc. were handled properly).
6943 + Read tex math as output by asciidoctor (#4569, Joe Hermaszewski).
6945 * Docx reader:
6947 + Combine adjacent CodeBlocks with the same attributes into
6948 a single CodeBlock. This prevents a multiline codeblock in
6949 Word from being read as different paragraphs.
6951 * RST reader:
6953 + Allow < 3 spaces indent under directives (#4579).
6954 + Fix anonymous redirects with backticks (#4598).
6956 * Muse reader (Alexander Krotov):
6958 + Add support for Text::Amuse multiline headings.
6959 + Add `<math>` tag support.
6960 + Add support for `<biblio>` and `<play>` tags.
6961 + Allow links to have empty descriptions.
6962 + Require block `<literal>` tags to be on separate lines.
6963 + Allow `-` in anchors.
6964 + Allow verse to be indented.
6965 + Allow nested footnotes.
6966 + Internal improvements.
6968 * Muse writer (Alexander Krotov):
6970 + Escape `>` only at the beginning of a line.
6971 + Escape `]` in image title.
6972 + Escape `]` brackets in URLs as `%5D`.
6973 + Only escape brackets when necessary.
6974 + Escape ordered list markers.
6975 + Do not escape list markers unless preceded by space.
6976 + Escape strings starting with space.
6977 + Escape semicolons and markers after line break.
6978 + Escape `;` to avoid accidental comments.
6979 + Don't break headers, line blocks and tables with line breaks.
6980 + Correctly output empty headings.
6981 + Escape horizontal rule only if at the beginning of the line.
6982 + Escape definition list terms starting with list markers.
6983 + Place header IDs before header.
6984 + Improve span writing.
6985 + Do not join Spans in normalization.
6986 + Don't align ordered list items.
6987 + Remove key-value pairs from attributes before normalization.
6988 + Enable `--wrap=preserve` for all tests by default.
6989 + Reduced `<verbatim>` tags in output.
6990 + Internal changes.
6992 * RST writer:
6994 + Use more consistent indentation (#4563). Previously we
6995 used an odd mix of 3- and 4-space indentation. Now we use 3-space
6996 indentation, except for ordered lists, where indentation must
6997 depend on the width of the list marker.
6998 + Flatten nested inlines (#4368, Francesco Occhipinti).
6999 Nested inlines are not valid RST syntax, so we flatten them following
7000 some readability criteria discussed in #4368.
7002 * EPUB writer:
7004 + Ensure that `pagetitle` is always set, even when structured titles
7005 are used. This prevents spurious warnings about empty title
7006 elements (#4486).
7008 * FB2 writer (Alexander Krotov):
7010 + Output links inline instead of producing notes. Previously all links
7011 were turned into footnotes with unclickable URLs inside.
7012 + Allow emphasis and notes in titles.
7013 + Don't intersperse paragraph with empty lines.
7014 + Convert metadata value `abstract` to book annotation.
7015 + Use `<empty-line />` for `HorizontalRule` rather than `LineBreak`.
7016 FB2 does not have a way to represent line breaks inside paragraphs;
7017 previously we used `<empty-line />` elements, but these are not allowed
7018 inside paragraphs.
7020 * Powerpoint writer (Jesse Rosenthal):
7022 + Handle Quoted Inlines (#4532).
7023 + Simplify code with `ParseXml`.
7024 + Allow fallback options when looking for placeholder type.
7025 + Check reference-doc for all layouts.
7026 + Simplify speaker notes logic.
7027 + Change notes state to a simpler per-slide value.
7028 + Remove `Maybe` from `SpeakerNotes` in `Slide`. `mempty`
7029 means no speaker notes.
7030 + Add tests for improved speaker notes.
7031 + Handle speaker notes earlier in the conversion process.
7032 + Keep notes with related blocks (#4477). Some blocks automatically
7033 split slides (imgs, tables, `column` divs). We assume that any
7034 speaker notes immediately following these are connected to these
7035 elements, and keep them with the related blocks, splitting after them.
7036 + Remove `docProps/thumbnail.jpeg` in data dir (Jesse Rosenthal, #4588).
7037 It contained a nonfree ICC color calibration profile and is not needed
7038 for production of a powerpoint document.
7040 * Markdown writer:
7042 + Include a blank line at the end of the row in a single-row multiline
7043 table, to prevent it from being interpreted as a simple table (#4578).
7045 * CommonMark writer:
7047 + Correctly ignore LaTeX raw blocks when `raw_tex` is not
7048 enabled (#4527, quasicomputational).
7050 * EPUB writer:
7052 + Add `epub:type="footnotes"` to notes section in EPUB3 (#4489).
7054 * LaTeX writer:
7056 + In beamer, don't use format specifier for default ordered lists
7057 (#4556). This gives better results for styles that put ordered list
7058 markers in boxes or circles.
7059 + Update `\lstinline` delimiters (#4369, Tim Parenti).
7061 * Ms writer:
7063 + Use `\f[R]` rather than `\f[]` to reset font (#4552).
7064 + Use `\f[BI]` and `\f[CB]` in headers, instead of `\f[I]` and `\f[C]`,
7065 since the header font is automatically bold (#4552).
7066 + Use `\f[CB]` rather than `\f[BC]` for monospace bold (#4552).
7067 + Create pdf anchor for a Div with an identifier (#4515).
7068 + Escape `/` character in anchor ids (#4515).
7069 + Improve escaping for anchor ids: we now use _uNNN_ instead of uNNN
7070 to avoid ambiguity.
7072 * Man writer:
7074 + Don't escape U+2019 as `'` (#4550).
7076 * Text.Pandoc.Options:
7078 + Removed `JsMath`, `LaTeXMathML`, and `GladTeX` constructors from
7079 `Text.Pandoc.Options.HTMLMathMethod` [API change].
7081 * Text.Pandoc.Class:
7083 + `writeMedia`: unescape URI-escaping in file path. This avoids
7084 writing things like `file%20one.png` to the file system.
7086 * Text.Pandoc.Parsing:
7088 + Fix `romanNumeral` parser (#4480). We previously accepted 'DDC'
7089 as 1100.
7090 + `uri`: don't treat `*` characters at end as part of URI (#4561).
7092 * Text.Pandoc.MIME:
7094 + Use the alias `application/eps` for EPS (#2067).
7095 This will ensure that we retain the eps extension after reading the
7096 image into a mediabag and writing it again.
7098 * Text.Pandoc.PDF:
7100 + Use `withTempDir` in `html2pdf`.
7101 + With `xelatex`, don't compress images til the last run (#4484).
7102 This saves time for image-heavy documents.
7103 + Don't try to convert EPS files (#2067). `pdflatex` converts them
7104 itself, and JuicyPixels can't do it.
7105 + For `pdflatex`, use a temp directory in the working directory.
7106 Otherwise we can have problems with the EPS conversion pdflatex
7107 tries to do, which can't operate on a file above the working
7108 directory without `--shell-escape`.
7110 * Changes to tests to accommodate changes in pandoc-types.
7111 In <https://github.com/jgm/pandoc-types/pull/36> we changed
7112 the table builder to pad cells. This commit changes tests
7113 (and two readers) to accord with this behavior.
7115 * Set default extensions for `beamer` same as `latex`.
7117 * LaTeX template:
7119 + Add `beameroption` variable (#4359, Étienne Bersac).
7120 + Use `pgfpages` package; this is needed for notes on second
7121 screen in beamer (Étienne Bersac).
7122 + Add `background-image` variable (#4601, John Muccigrosso).
7124 * reveal.js template: Add `background-image` variable (#4600,
7125 John Muccigrosso).
7127 * ms template: Fix date. Previously `.ND` was used, but this only
7128 works if you have a title page, which we don't. Thanks to @teoric.
7130 * Removed pragmas for unused extensions (#4506, Anabra).
7132 * Fix bash completion for `--print-default-data-file` (#4549).
7133 Previously this looked in the filesystem, even if pandoc
7134 was compiled with `embed_data_files` (and sometimes it looked
7135 in a nonexistent build directory). Now the bash completion
7136 script just includes a hard-coded list of data file names.
7138 * MANUAL:
7140 + Clarify template vs metadata variables (#4501, Mauro Bieg).
7141 + Fix raw content example (#4479, Mauro Bieg).
7142 + Specify that you use html for raw output in epub.
7143 + Add examples for raw docx blocks (#4472, Tristan Stenner).
7144 The documentation states that the target format name should match
7145 the output format, which isn't the case for `docx`/`openxml` and
7146 some others.
7147 + Don't say that `empty_paragraphs` affects markdown output (#4540).
7148 + Consolidate input/output format documentation (#4577, Mauro Bieg).
7150 * New README template. Take in/out formats from manual.
7152 * Fix example in lua-filters docs (#4459, HeirOfNorton).
7154 * Use the `-threaded` GHC flag when building benchmarks (#4587,
7155 Francesco Occhipinti).
7157 * Bump temporary upper bound to 1.4.
7159 * Use pandoc-citeproc 0.14.3.1.
7161 * Use texmath-0.10.1.2 (fixes escapes in math in ms, #4597).
7163 * Removed old lib directory. This was used for something long ago,
7164 but plays no role now.
7166 * Removed unneeded data file `LaTeXMathML.js`.
7168 * Create 64- and 32-bit versions of Windows binary packages.
7170## pandoc 2.1.3 (2018-03-18)
7172 * Docx reader (Jesse Rosenthal):
7174 + Add tests for nested smart tags.
7175 + Parse nested smart tags.
7176 + Make unwrapSDT into a general `unwrap` function that can unwrap both
7177 nested SDT tags and smartTags. This makes the SmartTags constructor in
7178 the Docx type unnecessary, so we remove it (#4446).
7179 + Remove unused `docxWarnings` (Alexander Krotov).
7181 * RST reader: Allow unicode bullet characters (#4454).
7183 * Haddock reader: Better table handling, using haddock-library's
7184 new table support, if compiled against a version that
7185 includes it. Note that tables with col/rowspans will not
7186 translate well into Pandoc.
7188 * Muse reader (Alexander Krotov):
7190 + Various internal improvements.
7191 + Require closing tag to have the same indentation as opening.
7192 + Do not reparse blocks inside unclosed block tag (#4425).
7193 + Parse `<class>` tag (supported by Emacs Muse).
7194 + Do not produce empty Str element for unindented verse lines.
7196 * LaTeX reader:
7198 + Add support to parse unit string of `\SI` command (closes #4296,
7199 Marc Schreiber).
7201 * Haddock writer: In the writer, we now render tables always as
7202 grid tables, since Haddock supports these.
7204 * DokuWiki writer: rewrite backSlashLineBreaks (#4445, Mauro Bieg).
7206 * Docx writer: Fixed formatting of `DefaultStyle` ordered lists in
7207 docx writer. We want decimal for the top level, not lower roman.
7209 * RST writer:
7211 + Strip whitespace at beginning and ending of inline containers
7212 (#4327, Francesco Occhipinti).
7213 + Filter out empty inline containers (#4434). There is nothing in
7214 RST that corresponds to e.g. `Emph []`, so we just ignore elements
7215 like this (Francesco Occhipinti).
7217 * Muse writer (Alexander Krotov):
7219 + Support spans with anchors.
7220 + Replace smallcaps with emphasis before normalization.
7221 + Output smallcaps as emphasis.
7222 + Expand Cite before list normalization.
7223 + Write empty inline lists as `<verbatim></verbatim>`.
7224 + Remove empty Str from the beginning of inline lists during normalization.
7225 + Escape "-" to avoid creating bullet lists.
7226 + Fix math expansion for more than one expression per paragraph.
7227 + Expand math before inline list normalization.
7229 * Dokuwiki writer: fix LineBreaks in Tables (#4313, Mauro Bieg).
7231 * Ms writer:
7233 + Asciify pdf anchors, since unicode anchors don't work (#4436).
7234 Internal links should be converted automatically, so this shouldn't
7235 affect users directly.
7236 + Don't escape hyphens as `\-`; that's for a minus sign (#4467).
7238 * Beamer writer: put hyperlink after `\begin{frame}` and not in the title
7239 (#4307). If it's in the title, then we get a titlebar on slides with
7240 the `plain` attribute, when the id is non-null. This fixes a regression
7241 in 2.0.
7243 * EPUB writer: Remove notes from TOC in nav.xhtml (#4453, Mauro Bieg).
7245 * JATS writer: Remove extraneous, significant whitespace (#4335,
7246 Nokome Bentley).
7248 * html2pdf: inject base tag with current working directory (#4413, Mauro
7249 Bieg). This helps ensure that linked resources are included.
7251 * Add Semigroup instances for everything for which we defined a
7252 Monoid instance previously (API change):
7254 + Text.Pandoc.Class.FileTree.
7255 + Text.Pandoc.Translations.Translations.
7256 + Text.Pandoc.Extensions.Extensions.
7257 + Text.Pandoc.Readers.Odt.StyleReader.Styles.
7258 + Text.Pandoc.Pretty.Doc.
7259 + Text.Pandoc.MediaBag.MediaBag.
7261 * Add custom Prelude to give clean code for Monoid and Semigroup
7262 that works with ghc 7.10-8.4. The custom Prelude (`prelude/Prelude`)
7263 is used for ghc versions < 8.4. `NoImplicitPrelude` is used
7264 in all source files, and Prelude is explicitly imported
7265 (this is necessary for ghci to work properly with the custom prelude).
7267 * Text.Pandoc.Writers.Shared (Francesco Occhipinti):
7269 + Export `stripLeadingTrailingSpace`.
7270 + Don't wrap lines in grid tables when `--wrap=none` (#4320).
7271 + `gridTable`: Don't wrap lines in tables when `--wrap=none`. Instead,
7272 expand cells, even if it results in cells that don't respect relative
7273 widths or surpass page column width. This change affects RST,
7274 Markdown, and Haddock writers.
7276 * Raise error if someone tries to print docx, odt, etc. template (#4441).
7278 * LaTeX template: Provide `bidi` package's option using
7279 `\PassOptionsToPackage` (#4357, Václav Haisman). This avoid a
7280 clash when `polyglossia` loads it first and then it is loaded again
7281 for XeLaTeX.
7283 * ConTeXt template: Added `pdfa` variable to generate PDF/A (#4294, Henri
7284 Menke). Instructions on how to install the ICC profiles on ConTeXt
7285 standalone can be found in the wiki:
7286 <http://wiki.contextgarden.net/PDFX#ICC_profiles>.
7287 If the ICC profiles are not available the log will contain error
7288 messages.
7290 * Use latest pandoc-types, skylighting
7292 * Use latest pandoc-citeproc in binary package.
7294 * Bump upper bound for time, criterion, haddock-library, exceptions,
7295 http-types, aeson, haddock-library.
7297 * Bump upper bound tasty-quickcheck 0.10 (#4429, Felix Yan).
7299 * pandoc.cabal: fix up other-extensions and language fields.
7300 Language is now consistently `Haskell2010`, and other-extensions
7301 is consistently `NoImplicitPrelude`. Everything else to be specified
7302 in the module header as needed.
7304 * Removed `old-locale` flag and Text.Pandoc.Compat.Time.
7305 This is no longer necessary since we no longer support ghc 7.8.
7307 * Make `weigh-pandoc` into a benchmark program.
7308 Remove `weigh-pandoc` flag. `weigh-pandoc` is now built (and run)
7309 automatically when you build (and run) benchmarks.
7311 * MANUAL: add instructions for background images reveal.js (#4325, John
7312 Muccigrosso).
7314 * appveyor: use VS 2013 environment instead of VS 2015 for Windows builds.
7316## pandoc 2.1.2 (2018-03-02)
7318 * Markdown reader:
7320 + Fix parsing bug with nested fenced divs (#4281). Previously we allowed
7321 "nonindent spaces" before the opening and closing `:::`, but this
7322 interfered with list parsing, so now we require the fences to be flush with
7323 the margin of the containing block.
7325 * Commonmark reader:
7327 + `raw_html` is now on by default. It can be disabled explicitly
7328 using `-f commonmark-raw_html`.
7330 * Org reader (Albert Krewinkel):
7332 + Move citation tests to separate module.
7333 + Allow changing emphasis syntax (#4378). The characters allowed before
7334 and after emphasis can be configured via `#+pandoc-emphasis-pre` and
7335 `#+pandoc-emphasis-post`, respectively. This allows to change which
7336 strings are recognized as emphasized text on a per-document or even
7337 per-paragraph basis. Example:
7339 #+pandoc-emphasis-pre: "-\t ('\"{"
7340 #+pandoc-emphasis-post: "-\t\n .,:!?;'\")}["
7342 * LaTeX reader:
7344 + Fixed comments inside citations (#4374).
7345 + Fix regression in package options including underscore (#4424).
7346 + Make `--trace` work.
7347 + Fixed parsing of `tabular*` environment (#4279).
7349 * RST reader:
7351 + Fix regression in parsing of headers with trailing space (#4280).
7353 * Muse reader (Alexander Krotov):
7355 + Enable `<literal>` tags even if amuse extension is enabled.
7356 Amusewiki disables <literal> tags for security reasons.
7357 If user wants similar behavior in pandoc, RawBlocks and RawInlines
7358 can be removed or replaced with filters.
7359 + Remove space prefix from `<literal>` tag contents.
7360 + Do not consume whitespace while looking for closing end tag.
7361 + Convert alphabetical list markers to decimal in round-trip test.
7362 Alphabetical lists are an addition of Text::Amuse.
7363 They are not present in Emacs Muse and can be ambiguous
7364 when list starts with "i.", "c." etc.
7365 + Allow `<quote>` and other tags to be indented.
7366 + Allow single colon in definition list term.
7367 + Fix parsing of verse in lists.
7368 + Improved parsing efficiency. Avoid `parseFromString`.
7369 Lists are parsed in linear instead of exponential time now.
7370 + Replace ParserState with MuseState.
7371 + Prioritize lists with roman numerals over alphabetical lists.
7372 This is to make sure "i." starts a roman numbered list,
7373 instead of a list with letter "i" (followed by "j", "k", ...").
7374 + Fix directive parsing.
7375 + Parse definition lists with multiple descriptions.
7376 + Parse next list item before parsing more item contents.
7377 + Fixed a bug: headers did not terminate lists.
7378 + Move indentation parsing from `definitionListItem` to `definitionList`.
7379 + Paragraph indentation does not indicate nested quote.
7380 Muse allows indentation to indicate quotation or alignment,
7381 but only on the top level, not within a <quote> or list.
7382 + Require that block tags are on separate lines.
7383 Text::Amuse already explicitly requires it anyway.
7384 + Fix matching of closing inline tags.
7385 + Various internal changes.
7386 + Fix parsing of nested definition lists.
7387 + Require only one space for nested definition list indentation.
7388 + Do not remove trailing whitespace from `<code>`.
7389 + Fix parsing of trailing whitespace. Newline after whitespace now
7390 results in softbreak instead of space.
7392 * Docx reader (Jesse Rosenthal, except where noted):
7394 + Handle nested sdt tags (#4415).
7395 + Don't look up dependant run styles if `+styles` is enabled.
7396 + Move pandoc inline styling inside custom-style span.
7397 + Read custom styles (#1843). This will read all paragraph and
7398 character classes as divs and spans, respectively. Dependent styles
7399 will still be resolved, but will be wrapped with appropriate style
7400 tags. It is controlled by the `+styles` extension (`-f docx+styles`).
7401 This can be used in conjunction with the `custom-style` feature in the
7402 docx writer for a pandoc-docx editing workflow. Users can convert from
7403 an input docx, reading the custom-styles, and then use that same input
7404 docx file as a reference-doc for producing an output docx file. Styles
7405 will be maintained across the conversion, even if pandoc doesn't
7406 understand them.
7407 + Small change to Fields hyperlink parser. Previously, unquoted string
7408 required a space at the end of the line (and consumed it). Now we
7409 either take a space (and don't consume it), or end of input.
7410 + Pick table width from the longest row or header (Francesco Occhipinti,
7411 #4360).
7413 * Muse writer (Alexander Krotov):
7415 + Change verse markup: `> ` instead of `<verse>` tag.
7416 + Remove empty strings during inline normalization.
7417 + Don't indent nested definition lists.
7418 + Use unicode quotes for quoted text.
7419 + Write image width specified in percent in Text::Amuse mode.
7420 + Don't wrap displayMath into `<verse>`.
7421 + Escape nonbreaking space (`~~`).
7422 + Join code with different attributes during normalization.
7423 + Indent lists inside Div.
7424 + Support definitions with multiple descriptions.
7426 * Powerpoint writer (Jesse Rosenthal):
7428 + Use table styles This will use the default table style in the
7429 reference-doc file. As a result they will be easier when using
7430 in a template, and match the color scheme.
7431 + Remove empty slides. Because of the way that slides were split, these
7432 could be accidentally produced by comments after images. When animations
7433 are added, there will be a way to add an empty slide with either
7434 incremental lists or pauses.
7435 + Implement syntax highlighting. Note that background colors can't
7436 be implemented in PowerPoint, so highlighting styles that require
7437 these will be incomplete.
7438 + New test framework for pptx. We now compare the output of the
7439 Powerpoint writer with files that we know to (a) not be corrupt,
7440 and (b) to show the desired output behavior (details below).
7441 + Add `notesMaster` to `presentation.xml` if necessary.
7442 + Ignore links and (end)notes in speaker notes.
7443 + Output speaker notes.
7444 + Read speaker note templates conditionally. If there are speaker
7445 notes in the presentation, we read in the notesMasters templates
7446 from the reference pptx file.
7447 + Fix deletion track changes (#4303, Jesse Rosenthal).
7449 * Markdown writer: properly escape @ to avoid capture as citation
7450 (#4366).
7452 * LaTeX writer:
7454 + Put hypertarget inside figure environment (#4388).
7455 This works around a problem with the endfloat package and
7456 makes pandoc's output compatible with it.
7457 + Fix image height with percentage (#4389). This previously caused
7458 the image to be resized to a percentage of textwidth, rather than
7459 textheight.
7461 * ConTeXt writer (Henri Menke):
7463 + New section syntax and support `--section-divs` (#2609).
7464 `\section[my-header]{My Header}` ->
7465 `\section[title={My Header},reference={my-header}]`.
7466 The ConTeXt writer now supports the `--section-divs` option to
7467 write sections in the fenced style, with `\startsection` and
7468 `\stopsection`.
7469 + xtables: correct wrong usage of caption (Henri Menke).
7471 * Docx writer:
7473 + Fix image resizing with multiple images (#3930, Andrew Pritchard).
7474 + Use new golden framework (Jesse Rosenthal).
7475 + Make more deterministic to facilitate testing (Jesse Rosenthal).
7476 - `getUniqueId` now calls to the state to get an incremented digit,
7477 instead of calling to P.uniqueHash.
7478 - we always start the PRNG in mkNumbering/mkAbstractNum with the same
7479 seed (1848), so our randoms should be the same each time.
7480 + Fix ids in comment writing (Jesse Rosenthal). Comments from
7481 `--track-changes=all` were producing corrupt docx, because the
7482 writer was trying to get id from the `(ID,_,_)` field of
7483 the attributes, and ignoring the "id" entry in the key-value pairs. We
7484 now check both.
7486 * Ms writer: Added papersize variable.
7488 * TEI writer:
7490 + Use `height` instead of `depth` for images (#4331).
7491 + Ensure that id prefix is always used.
7492 + Don't emit `role` attribute; that was a leftover from the
7493 Docbook writer.
7494 + Use 'xml:id', not 'id' attribute (#4371).
7496 * AsciiDoc writer:
7498 + Do not output implicit heading IDs (#4363, Alexander
7499 Krotov). Convert to `asciidoc-auto_identifiers` for old behaviour.
7501 * RST writer:
7503 + Remove `blockToRST'` moving its logic into `fixBlocks`
7504 (Francesco Occhipinti).
7505 + Insert comment between lists and quotes (#4248, Francesco Occchipinti).
7507 * RST template: remove definition of 'math' role as raw.
7508 This used to be needed prior to v 0.8 of docutils, but
7509 now math support is built-in.
7511 * Slides: Use divs to set incremental/non-incremental (#4381,
7512 Jesse Rosenthal). The old method (list inside blockquote) still
7513 works, but we are encouraging the use of divs with class
7514 `incremental` or `nonincremental`.
7516 * Text.Pandoc.ImageSize:
7518 + Make image size detection for PDFs more robust (#4322).
7519 + Determine image size for PDFs (#4322).
7520 + EMF Image size support (#4375, Andrew Pritchard).
7522 * Text.Pandoc.Extensions:
7524 + Add `Ext_styles` (Jesse Rosenthal, API change). This will be used in
7525 the docx reader (defaulting to off) to read pargraph and character
7526 styles not understood by pandoc (as divs and spans, respectively).
7527 + Made `Ext_raw_html` default for `commonmark` format.
7529 * Text.Pandoc.Parsing:
7531 + Export `manyUntil` (Alexander Krotov, API change).
7532 + Export improved `sepBy1` (Alexander Krotov).
7533 + Export list marker parsers: `upperRoman`, `lowerRoman`,
7534 `decimal`, `lowerAlpha`, `upperAlpha` (Alexander Krotov, API change).
7536 * Tests/Lua: fix tests on windows (Albert Krewinkel).
7538 * Lua: register script name in global variable (#4393). The name of the Lua
7539 script which is executed is made available in the global Lua variable
7540 `PANDOC_SCRIPT_FILE`, both for Lua filters and custom writers.
7542 * Tests: Abstract powerpoint tests out to OOXML tests (Jesse Rosenthal).
7543 There is very little pptx-specific in these tests, so we abstract out
7544 the basic testing function so it can be used for docx as well. This
7545 should allow us to catch some errors in the docx writer that slipped
7546 by the roundtrip testing.
7548 * Lua filters: store constructors in registry (Albert Krewinkel). Lua
7549 functions used to construct AST element values are stored in the Lua
7550 registry for quicker access. Getting a value from the registry is much
7551 faster than getting a global value (partly to idiosyncrasies of hslua);
7552 this change results in a considerable performance boost.
7554 * Documentation:
7556 + `doc/org.md` Add draft of Org-mode documentation (Albert Krewinkel).
7557 + `doc/lua-filters.md`: document global vars set for filters
7558 (Albert Krewinkel).
7559 + INSTALL.md: mention Stack version. (#4343, Adam Brandizzi).
7560 + MANUAL: add documentation on custom styles (Jesse Rosenthal).
7561 + MANUAL.txt: Document incremental and nonincremental divs (Jesse
7562 Rosenthal). Blockquoted lists are still described, but fenced divs are
7563 presented in preference.
7564 + MANUAL.txt: document header and footer variables (newmana).
7565 + MANUAL.txt: self-contained implies standalone (#4304, Daniel Lublin).
7566 + CONTRIBUTING.md: label was renamed. (#4310, Alexander Brandizzi).
7568 * Require tagsoup 0.14.3 (#4282), fixing HTML tokenization bug.
7570 * Use latest texmath.
7572 * Use latest pandoc-citeproc.
7574 * Allow exceptions 0.9.
7576 * Require aeson-pretty 0.8.5 (#4394).
7578 * Bump blaze-markup, blaze-html lower bounds to 0.8, 0.9 (#4334).
7580 * Update tagsoup to 0.14.6 (Alexander Krotov, #4282).
7582 * Removed ghc-prof-options. As of cabal 1.24, sensible defaults are used.
7584 * Update default.nix to current nixpkgs-unstable for hslua-0.9.5 (#4348,
7585 jarlg).
7587## pandoc 2.1.1 (2018-01-18)
7589 * Markdown reader:
7591 + Don't coalesce adjacent raw LaTeX blocks if they are separated by a
7592 blank line. See lierdakil/pandoc-crossref#160.
7593 + Improved `inlinesInBalancedBrackets` (#4272, jgm/pandoc-citeproc#315).
7594 The change both improves performance and fixes a regression whereby
7595 normal citations inside inline notes and figure captions were not
7596 parsed correctly.
7598 * RST reader:
7600 + Better handling for headers with an anchor (#4240). Instead of creating a
7601 Div containing the header, we put the id directly on the header.
7602 This way header promotion will work properly.
7603 + Add aligned environment when needed in math (#4254). `rst2latex.py`
7604 uses an `align*` environment for math in `.. math::` blocks, so this
7605 math may contain line breaks. If it does, we put the math in an
7606 `aligned` environment to simulate `rst2latex.py`'s behavior.
7608 * HTML reader:
7610 + Fix col width parsing for percentages < 10% (#4262, n3fariox).
7612 * LaTeX reader:
7614 + Advance source position at end of stream.
7615 + Pass through macro defs in `rawLaTeXBlock` even if the `latex_macros`
7616 extension is set (#4246). This reverts to earlier behavior and is
7617 probably safer on the whole, since some macros only modify things in
7618 included packages, which pandoc's macro expansion can't modify.
7619 + Fixed pos calculation in tokenizing escaped space.
7620 + Allow macro definitions inside macros (#4253). Previously we went into
7621 an infinite loop with
7622 ```
7623 \newcommand{\noop}[1]{#1}
7624 \noop{\newcommand{\foo}[1]{#1}}
7625 \foo{hi}
7626 ```
7627 + Fix inconsistent column widths (#4238). This fixes a bug whereby column
7628 widths for the body were different from widths for the header in some
7629 tables.
7631 * Docx reader (Jesse Rosenthal):
7633 + Parse hyperlinks in `instrText` tags (#3389, #4266). This was a form of
7634 hyperlink found in older versions of word. The changes introduced for
7635 this, though, create a framework for parsing further fields in MS Word
7636 (see the spec, ECMA-376-1:2016, §17.16.5, for more on these fields).
7637 We introduce a new module, `Text.Pandoc.Readers.Docx.Fields` which
7638 contains a simple parsec parser. At the moment, only simple hyperlink
7639 fields are accepted, but that can be extended in the future.
7641 * Muse reader (Alexander Krotov):
7643 + Parse `~~` as non-breaking space in Text::Amuse mode.
7644 + Refactor list parsing.
7646 * Powerpoint writer (Jesse Rosenthal):
7648 + Change reference to `notesSlide` to `endNotesSlide`.
7649 + Move image sizing into `picProps`.
7650 + Improve table placement.
7651 + Make our own `_rels/.rels` file.
7652 + Import reference-doc images properly.
7653 + Move `Presentation.hs` out of `PandocMonad`.
7654 + Refactor into separate modules. T.P.W.Powerpoint.Presentation
7655 defines the Presentation datatype and goes Pandoc->Presentation;
7656 T.P.W.Pandoc.Output goes Presentation->Archive.
7657 Text.Pandoc.Writers.Powerpoint a thin wrapper around the two modules.
7658 + Avoid overlapping blocks in column output.
7659 + Position images correctly in two-column layout.
7660 + Make content shape retrieval environment-aware.
7661 + Improve image handling. We now determine image and caption placement
7662 by getting the dimensions of the content box in a given layout.
7663 This allows for images to be correctly sized and positioned in a
7664 different template. Note that images without captions and headers are
7665 no longer full-screened. We can't do this dependably in different
7666 layouts, because we don't know where the header is (it could be to
7667 the side of the content, for example).
7668 + Read presentation size from reference file. Our presentation size is
7669 now dependent on the reference/template file we use.
7670 + Handle (sub)headers above slidelevel correctly. Above the slidelevel,
7671 subheaders will be printed in bold and given a bit of extra space
7672 before them. Note that at the moment, no distinction is made between
7673 levels of headers above the slide header, though that can be changed.
7674 + Check for required files. Since we now import from reference/dist
7675 file by glob, we need to make sure that we're getting the files we
7676 need to make a non-corrupt Powerpoint. This performs that check.
7677 + Improve templating using `--reference-doc`. Templating should work
7678 much more reliably now.
7679 + Include Notes slide in TOC.
7680 + Set notes slide header to slide-level.
7681 + Add table of contents. This is triggered by the `--toc` flag. Note
7682 that in a long slide deck this risks overrunning the text box. The user
7683 can address this by setting `--toc-depth=1`.
7684 + Set notes slide number correctly.
7685 + Clean up adding metadata slide. We want to count the slide numbers
7686 correctly if it's in there.
7687 + Add anchor links. For anchor-type links (`[foo](#bar)`) we produce
7688 an anchor link. In powerpoint these are links to slides, so we keep
7689 track of a map relating anchors to the slides they occur on.
7690 + Make the slide number available to the blocks. For anchors,
7691 block-processing functions need to know what slide number
7692 they're in. We make the `envCurSlideId` available to blocks.
7693 + Move `curSlideId` to environment.
7694 + Allow setting `toc-title` in metadata.
7695 + Link notes to endnotes slide.
7697 * Markdown writer:
7699 + Fix cell width calculation (#4265). Previously we could get
7700 ever-lengthening cell widths when a table was run repeatedly through
7701 `pandoc -f markdown -t markdown`.
7703 * LaTeX writer:
7705 + Escape `&` in lstinline (Robert Schütz).
7707 * ConTeXt writer:
7709 + Use xtables instead of Tables (#4223, Henri Menke).
7710 Default to xtables for context output. Natural Tables are used
7711 if the new `ntb` extension is set.
7713 * HTML writer:
7715 + Fixed footnote backlinks with `--id-prefix` (#4235).
7717 * `Text.Pandoc.Extensions`: Added `Ext_ntb` constructor (API change,
7718 Henri Menke).
7720 * `Text.Pandoc.ImageSize`: add derived `Eq` instance to `Dimension`
7721 (Jesse Rosenthal, API change).
7723 * Lua filters (Albert Krewinkel):
7725 + Make `PANDOC_READER_OPTIONS` available.
7726 The options which were used to read the document are made available to
7727 Lua filters via the `PANDOC_READER_OPTIONS` global.
7728 + Add lua module `pandoc.utils.run_json_filter`, which runs a JSON filter
7729 on a Pandoc document.
7730 + Refactor filter-handling code into `Text.Pandoc.Filter.JSON`,
7731 `Text.Pandoc.Filter.Lua`, and `Text.Pandoc.Filter.Path`.
7732 + Improve error messages. Provide more context about the task
7733 which caused an error.
7735 * data/pandoc.lua (Albert Krewinkel):
7737 + Accept singleton inline as a list. Every constructor which accepts a
7738 list of inlines now also accepts a single inline element for
7739 convenience.
7740 + Accept single block as singleton list. Every constructor which accepts
7741 a list of blocks now also accepts a single block element for
7742 convenience. Furthermore, strings are accepted as shorthand for
7743 `{pandoc.Str "text"}` in constructors.
7744 + Add attr, listAttributes accessors. Elements with
7745 attributes got an additional `attr` accessor. Attributes were
7746 accessible only via the `identifier`, `classes`, and `attributes`,
7747 which was in conflict with the documentation, which indirectly states
7748 that such elements have the an `attr` property.
7749 + Drop `_VERSION`. Having a `_VERSION` became superfluous, as this
7750 module is closely tied to the pandoc version, which is available via
7751 `PANDOC_VERSION`.
7752 + Fix access to Attr components. Accessing an Attr value (e.g.,
7753 ` Attr().classes`) was broken; the more common case of accessing it via
7754 an Inline or Block element was unaffected by this.
7756 * Move `metaValueToInlines` to from Docx writer to
7757 `Text.Pandoc.Writers.Shared`, so it can be used by other writers
7758 (Jesse Rosenthal).
7760 * MANUAL.txt:
7762 + Clarify otherlangs in LaTeX (#4072).
7763 + Clarify `latex_macros` extension.
7764 + Recommend use of `raw_attribute` extension in header includes (#4253).
7766 * Allow latest QuickCheck, tasty, criterion.
7768 * Remove custom prelude and ghc 7.8 support.
7770 * Reduce compiler noise (exact paths for compiled modules).
7772## pandoc 2.1 (2018-01-07)
7774 * Allow filters and lua filters to be interspersed (#4196). Previously
7775 we ran all lua filters before JSON filters. Now we run filters in
7776 the order they are presented on the command line, whether lua or JSON.
7777 There are two incompatible API changes: The type of `applyFilters`
7778 has changed, and `applyLuaFilters` has been removed. `Filter` is
7779 also now exported.
7781 * Use latest skylighting and omit the `missingIncludes` check, fixing
7782 a major performance regression in earlier releases of the 2.x series
7783 (#4226). Behavior change: If you use a custom syntax definition that
7784 refers to a syntax you haven't loaded, pandoc will now complain when
7785 it is highlighting the text, rather than doing a check at the start.
7786 This change dramatically speeds up invocations of pandoc on short
7787 inputs.
7789 * Text.Pandoc.Class: make `FileTree` opaque (don't export
7790 `FileTree` constructor). This forces users to interact with it using
7791 `insertInFileTree` and `getFileInfo`, which normalize file names.
7793 * Markdown reader:
7795 + Rewrite `inlinesInBalancedBrackets`. The rewrite is much more
7796 direct, avoiding `parseFromString`. And it performs significantly
7797 better; unfortunately, parsing time still increases exponentially
7798 (see #1735).
7799 + Avoid parsing raw tex unless `\` + letter seen. This seems to
7800 help with the performance problem, #4216.
7802 * LaTeX reader: Simplified a check for raw tex command.
7804 * Muse reader (Alexander Krotov):
7806 + Enable round trip test (#4107).
7807 + Automatically translate `#cover` into `#cover-image`.
7808 Amusewiki uses #cover directive to specify cover image.
7810 * Docx reader (Jesse Rosenthal):
7812 + Allow for insertion/deletion of paragraphs (#3927).
7813 If the paragraph has a deleted or inserted paragraph break (depending
7814 on the track-changes setting) we hold onto it until the next
7815 paragraph. This takes care of accept and reject. For this we introduce
7816 a new state which holds the ils from the previous para if necessary.
7817 For `--track-changes=all`, we add an empty span with class
7818 `paragraph-insertion`/`paragraph-deletion` at the end of the paragraph
7819 prior to the break to be inserted or deleted.
7820 + Remove unused anchors (#3679). Docx produces a lot of anchors with
7821 nothing pointing to them---we now remove these to produce cleaner
7822 output. Note that this has to occur at the end of the process
7823 because it has to follow link/anchor rewriting.
7824 + Read multiple children of `w:sdtContents`.
7825 + Combine adjacent anchors. There isn't any reason to have numerous
7826 anchors in the same place, since we can't maintain docx's
7827 non-nesting overlapping. So we reduce to a single anchor.
7828 + Improved tests.
7830 * Muse writer (Alexander Krotov): don't escape URIs from AST
7832 * Docx writer:
7834 + Removed redundant subtitle in title (Sebastian Talmon).
7835 + `firstRow` table definition compatibility for Word 2016 (Sebastian
7836 Talmon). Word 2016 seems to use a default value of "1" for table
7837 headers, if there is no firstRow definition (although a default
7838 value of 0 is documented), so all tables get the first Row formatted
7839 as header. Setting the parameter to 0 if the table has no header
7840 row fixes this for Word 2016
7841 + Fix custom styles with spaces in the name (#3290).
7843 * Powerpoint writer (Jesse Rosenthal):
7845 + Ignore Notes div for parity with other slide outputs.
7846 + Set default slidelevel correctly. We had previously defaulted to
7847 slideLevel 2. Now we use the correct behavior of defaulting to the
7848 highest level header followed by content. We change an expected test
7849 result to match this behavior.
7850 + Split blocks correctly for linked images.
7851 + Combine adjacent runs.
7852 + Make inline code inherit code size. Previously (a) the code size
7853 wasn't set when we force size, and (b) the properties was set from
7854 the default, instead of inheriting.
7855 + Simplify `replaceNamedChildren` function.
7856 + Allow linked images. The following markdown:
7857 `[![Image Title](image.jpg)](http://www.example.com)`
7858 will now produce a linked image in the resulting PowerPoint file.
7859 + Fix error with empty table cell. We require an empty `<a:p>` tag,
7860 even if the cell contains no paragraphs---otherwise PowerPoint
7861 complains of corruption.
7862 + Implement two-column slides. This uses the columns/column div
7863 format described in the pandoc manual. At the moment, only two
7864 columns (half the screen each) are allowed. Custom widths are not
7865 supported.
7866 + Added more tests.
7868 * OpenDocument/ODT writers: improved rendering of formulas (#4170, oltolm).
7870 * Lua filters (Albert Krewinkel):
7872 + `data/pandoc.lua`: drop 'pandoc-api-version' from Pandoc objects
7873 + The current pandoc-types version is made available to Lua programs in
7874 the global `PANDOC_API_VERSION`. It contains the version as a list of
7875 numbers.
7876 + The pandoc version available as a global `PANDOC_VERSION` (a list
7877 of numbers).
7878 + `data/pandoc.lua`: make `Attr` an `AstElement`.
7879 + `data/pandoc.lua`: make all types subtypes of `AstElement`.
7880 `Pandoc`, `Meta`, and `Citation` were just plain functions and did
7881 not set a metatable on the returned value, which made it difficult
7882 to amend objects of these types with new behavior. They are now
7883 subtypes of AstElement, meaning that all their objects can gain
7884 new features when a method is added to the behavior object
7885 (e.g., `pandoc.Pandoc.behavior`).
7886 + `data/pandoc.lua`: split type and behavior tables. Clearly distinguish
7887 between a type and the behavioral properties of an instance of that
7888 type. The behavior of a type (and all its subtypes) can now be
7889 amended by adding methods to that types `behavior` object, without
7890 exposing the type objects internals. E.g.:
7891 ```lua
7892 pandoc.Inline.behavior.frob = function () print'42' end
7893 local str = pandoc.Str'hello'
7894 str.frob() -- outputs '42'
7895 ```
7896 + `data/pandoc.lua`: fix Element inheritance. Extending all elements
7897 of a given type (e.g., all inline elements) was difficult, as the
7898 table used to lookup unknown methods would be reset every time a
7899 new element of that type was created, preventing recursive property
7900 lookup. This is was changed in that all methods and attributes of
7901 supertypes are now available to their subtypes.
7902 + `data/pandoc.lua`: fix attribute names of Citation (#4222). The
7903 fields were named like the Haskell fields, not like the documented,
7904 shorter version. The names are changed to match the documentation
7905 and Citations are given a shared metatable to enable simple
7906 extensibility.
7907 + `data/pandoc.lua`: drop function `pandoc.global_filter`.
7908 + Bump `hslua` version to 0.9.5. This version fixes a bug that made it
7909 difficult to handle failures while getting lists or a Map from Lua.
7910 A bug in pandoc, which made it necessary to always pass a tag when
7911 using MetaList or MetaBlock, is fixed as a result. Using the pandoc
7912 module's constructor functions for these values is now optional
7913 (if still recommended).
7914 + Stop exporting `pushPandocModule` (API change). The introduction
7915 of `runPandocLua` renders direct use of this function obsolete.
7916 + Update generation of module docs for lua filters.
7917 + `Lua.Module.Utils`: make stringify work on `MetaValues` (John
7918 MacFarlane). I'm sure this was intended in the first place,
7919 but currently only `Meta` is supported.
7921 * Improve benchmarks.
7923 + Set the default extensions properly.
7924 + Improve benchmark argument parsing. You can now say
7925 `make bench BENCHARGS="markdown latex reader"` and both the
7926 markdown and latex readers will be benchmarked.
7928 * MANUAL.txt simplify and add more structure (Mauro Bieg).
7930 * Generate README.md from template and MANUAL.txt.
7931 `make README.md` will generate the README.md after changes
7932 to MANUAL.txt have been made.
7934 * Update copyright notices to include 2018 (Albert Krewinkel).
7936## pandoc 2.0.6 (2017-12-28)
7938 * Added `jats` as an input format.
7940 + Add Text.Pandoc.Readers.JATS, exporting `readJATS` (API
7941 change) (Hamish Mackenzie).
7942 + Improved citation handling in JATS reader. JATS citations
7943 are now converted to pandoc citations, and JATS ref-lists
7944 are converted into a `references` field in metadata, suitable
7945 for use with pandoc-citeproc. Thus a JATS article with embedded
7946 bibliographic information can be processed with pandoc and
7947 pandoc-citeproc to produce a formatted bibliography.
7949 * Allow `--list-extensions` to take an optional FORMAT argument.
7950 This lists the extensions set by default for the selected FORMAT.
7951 The extensions are now alphabetized, and the `+` or `-`
7952 indicating the default setting comes before, rather than after,
7953 the extension.
7955 * Markdown reader:
7957 + Preserve original whitespace between blocks.
7958 + Recognize `\placeformula` as context.
7959 + Be pickier about table captions. A caption starts with a `:` which
7960 can't be followed by punctuation. Otherwise we can falsely interpret
7961 the start of a fenced div, or even a table header line like
7962 `:--:|:--:`, as a caption.
7963 + Always use four space rule for example lists. It would be awkward
7964 to indent example list contents to the first non-space character after
7965 the label, since example list labels are often long. Thanks to
7966 Bernhard Fisseni for the suggestion.
7967 + Improve raw tex parsing. Note that the Markdown reader is also
7968 affected by the `latex_macros` extension changes described below
7969 under the LaTeX reader.
7971 * LaTeX reader:
7973 + `latex_macros` extension changes (#4179). Don't pass through macro
7974 definitions themselves when `latex_macros` is set. The macros
7975 have already been applied. If `latex_macros` is enabled, then
7976 `rawLaTeXBlock` in Text.Pandoc.Readers.LaTeX will succeed in parsing
7977 a macro definition, and will update pandoc's internal macro map
7978 accordingly, but the empty string will be returned.
7979 + Export `tokenize`, `untokenize` (API change).
7980 + Use `applyMacros` in `rawLaTeXBlock`, `rawLaTeXInline`.
7981 + Refactored `inlineCommand`.
7982 + Fix bug in tokenizer. Material following `^^` was
7983 dropped if it wasn't a character escape. This only affected
7984 invalid LaTeX, so we didn't see it in the wild, but it appeared
7985 in a QuickCheck test failure.
7986 + Fix regression in LateX tokenization (#4159). This mainly affects the
7987 Markdown reader when parsing raw LaTeX with escaped spaces.
7988 + Add tests of LaTeX tokenizer.
7989 + Support `\foreignlanguage` from babel.
7990 + Be more tolerant of `&` character (#4208). This allows us to parse
7991 unknown tabular environments as raw LaTeX.
7993 * Muse reader (Alexander Krotov):
7995 + Parse anchors immediately after headings as IDs.
7996 + Require that note references does not start with 0.
7997 + Parse empty comments correctly.
7999 * Org reader (Albert Krewinkel):
8001 + Fix asterisks-related parsing error (#4180).
8002 + Support minlevel option for includes (#4154). The level of headers
8003 in included files can be shifted to a higher level by specifying a
8004 minimum header level via the `:minlevel` parameter. E.g.
8005 `#+include: "tour.org" :minlevel 1` will shift the headers in
8006 tour.org such that the topmost headers become level 1 headers.
8007 + Break-up org reader test file into multiple modules.
8009 * OPML reader:
8011 + Enable raw HTML and other extensions by default for notes
8012 (#4164). This fixes a regression in 2.0. Note that extensions can
8013 now be individually disabled, e.g. `-f opml-smart-raw_html`.
8015 * RST reader:
8017 + Allow empty list items (#4193).
8018 + More accurate parsing of references (#4156). Previously we erroneously
8019 included the enclosing backticks in a reference ID (#4156). This
8020 change also disables interpretation of syntax inside references, as
8021 in docutils. So, there is no emphasis in `` `my *link*`_ ``.
8023 * Docx reader:
8025 + Continue lists after interruption (#4025, Jesse Rosenthal).
8026 Docx expects that lists will continue where they left off after an
8027 interruption and introduces a new id if a list is starting again. So
8028 we keep track of the state of lists and use them to define a "start"
8029 attribute, if necessary.
8030 + Add tests for structured document tags unwrapping (Jesse Rosenthal).
8031 + Preprocess Document body to unwrap `w:sdt` elements (Jesse Rosenthal,
8032 #4190).
8034 * Plain writer:
8036 + Don't linkify table of contents.
8038 * RST writer:
8040 + Fix anchors for headers (#4188). We were missing an `_`.
8042 * PowerPoint writer (Jesse Rosenthal):
8044 + Treat lists inside BlockQuotes as lists. We don't yet produce
8045 incremental lists in PowerPoint, but we should at least treat lists
8046 inside BlockQuotes as lists, for compatibility with other slide formats.
8047 + Add ability to force size. This replaces the more specific
8048 `blockQuote runProp`, which only affected the size of blockquotes. We
8049 can use this for notes, etc.
8050 + Implement notes. This currently prints all notes on a final slide.
8051 Note that at the moment, there is a danger of text overflowing the
8052 note slide, since there is no logic for adding further slides.
8053 + Implement basic definition list functionality to PowerPoint writer.
8054 + Don't look for default template file for Powerpoint (#4181).
8055 + Add pptx to isTextFormat list. This is used to check standalone
8056 and not writing to the terminal.
8057 + Obey slide level option (Jesse Rosenthal).
8058 + Introduce tests.
8060 * Docx writer:
8062 + Ensure that `distArchive` is the one that comes with pandoc
8063 (#4182). Previously a `reference.docx` in `~/.pandoc` (or the user data
8064 dir) would be used instead, and this could cause problems because a
8065 user-modified docx sometimes lacks vital sections that we count
8066 on the `distArchive` to supply.
8068 * Org writer:
8070 + Do not wrap "-" to avoid accidental bullet lists (Alexander Krotov).
8071 + Don't allow fn refs to wrap to beginning of line (#4171, with help from
8072 Alexander Krotov). Otherwise they can be interpreted as footnote
8073 definitions.
8075 * Muse writer (Alexander Krotov):
8077 + Don't wrap note references to the next line (#4172).
8079 * HTML writer:
8081 + Use br elements in line blocks instead of relying on CSS
8082 (#4162). HTML-based templates have had the custom CSS for
8083 `div.line-block` removed. Those maintaining custom templates will want
8084 to remove this too. We still enclose line blocks in a div with class
8085 `line-block`.
8087 * LaTeX writer:
8089 + Use `\renewcommand` for `\textlatin` with babel (#4161).
8090 This avoids a clash with a deprecated `\textlatin` command defined
8091 in Babel.
8092 + Allow fragile=singleslide attribute in beamer slides (#4169).
8093 + Use `\endhead` after `\toprule` in headerless tables (#4207).
8095 * FB2 writer:
8097 + Add cover image specified by `cover-image` meta (Alexander Krotov,
8098 #4195).
8100 * JATS writer (Hamish Mackenzie):
8102 + Support writing `<fig>` and `<table-wrap>` elements
8103 with `<title>` and `<caption>` inside them by using Divs with class set
8104 to one of `fig`, `table-wrap` or `caption` (Hamish Mackenzie). The
8105 title is included as a Heading so the constraint on where Heading can
8106 occur is also relaxed.
8107 + Leave out empty alt attributes on links.
8108 + Deduplicate image mime type code.
8109 + Make `<p>` optional in `<td>` and `<th>` (#4178).
8110 + Self closing tags for empty xref (#4187).
8111 + Improve support for code language.
8113 * Custom writer:
8115 + Use init file to setup Lua interpreter (Albert Krewinkel).
8116 The same init file (`data/init`) that is used to setup the Lua
8117 interpreter for Lua filters is also used to setup the interpreter of
8118 custom writers.lua.
8119 + Define instances for newtype wrapper (Albert Krewinkel). The custom
8120 writer used its own `ToLuaStack` instance definitions, which made
8121 it difficult to share code with Lua filters, as this could result
8122 in conflicting instances. A `Stringify` wrapper is introduced to
8123 avoid this problem.
8124 + Added tests for custom writer.
8125 + Fixed definition lists and tables in `data/sample.lua`.
8127 * Fixed regression: when target is PDF, writer extensions were being
8128 ignored. So, for example, `pandoc -t latex-smart -o file.pdf`
8129 did not work properly.
8131 * Lua modules (Albert Krewinkel):
8133 + Add `pandoc.utils` module, to hold utility functions.
8134 + Create a Haskell module Text.Pandoc.Lua.Module.Pandoc to
8135 define the `pandoc` lua module.
8136 + Make a Haskell module for each Lua module. Move definitions for the
8137 `pandoc.mediabag` modules to a separate Haskell module.
8138 + Move `sha1` from the main `pandoc` module to `pandoc.utils`.
8139 + Add function `pandoc.utils.hierarchicalize` (convert list of
8140 Pandoc blocks into (hierarchical) list of Elements).
8141 + Add function `pandoc.utils.normalize_date` (parses a date and
8142 converts it (if possible) to "YYYY-MM-DD" format).
8143 + Add function `pandoc.utils.to_roman_numeral` (allows conversion
8144 of numbers below 4000 into roman numerals).
8145 + Add function `pandoc.utils.stringify` (converts any AST element
8146 to a string with formatting removed).
8147 + `data/init.lua`: load `pandoc.utils` by default
8148 + Turn pipe, read into full Haskell functions. The `pipe` and `read`
8149 utility functions are converted from hybrid lua/haskell functions
8150 into full Haskell functions. This avoids the need for intermediate
8151 `_pipe`/`_read` helper functions, which have dropped.
8152 + pandoc.lua: re-add missing MetaMap function. This was a bug
8153 introduced in version 2.0.4.
8155 * Text.Pandoc.Class: Add `insertInFileTree` [API change]. This gives
8156 a pure way to insert an ersatz file into a `FileTree`. In addition, we
8157 normalize paths both on insertion and on lookup.
8159 * Text.Pandoc.Shared: export `blocksToInlines'` (API change, Maura Bieg).
8161 * Text.Pandoc.MIME: Add opus to MIME type table as audio/ogg (#4198).
8163 * Text.Pandoc.Extensions: Alphabetical order constructors for
8164 `Extension`. This makes them appear in order in `--list-extensions`.
8166 * Allow lenient decoding of latex error logs, which are not always
8167 properly UTF8-encoded (#4200).
8169 * Update latex template to work with recent versions of beamer.
8170 The old template produced numbered sections with some recent
8171 versions of beamer. Thanks to Thomas Hodgson.
8173 * Updated reference.docx (#4175). Instead of just "Hello, world", the
8174 document now contains exemplars of most of the styles that have an
8175 effect on pandoc documents. This makes it easier to see the effect
8176 of style changes.
8178 * Removed `default.theme` data file (#4096). It is no longer needed now
8179 that we have `--print-highlight-style`.
8181 * Added `stack.lts9.yaml` for building with lts 9 and ghc 8.0.2.
8182 We still need this for the alpine static linux build, since
8183 we don't have ghc 8.2.2 for that yet.
8185 * Removed `stack.pkg.yaml`. We only really need `stack.yaml`; we
8186 can put flag settings for pandoc-citeproc there.
8188 * Makefile: Add 'trypandoc' and 'pandoc-templates' targets to
8189 make releases easier.
8191 * MANUAL.txt:
8193 + Add note on what formats have `+smart` by default.
8194 + Use native syntax for custom-style (#4174, Mauro Bieg).
8195 + Introduce dedicated Extensions section, since some extensions
8196 affect formats other than markdown (Mauro Bieg, #4204).
8197 + Clarify default html output for `--section-divs` (Richard Edwards).
8199 * filters.md: say that Text.Pandoc.JSON comes form pandoc-types.
8200 Closes jgm/pandoc-website#16.
8202 * epub.md: Delete removed `-S` option from command (#4151, Georger Araújo).
8204## pandoc 2.0.5 (2017-12-12)
8206 * Fix a bug in 2.0.4, whereby pandoc could not read the theme files
8207 generated with `--print-highlight-style` (#4133). Improve JSON
8208 serialization of styles.
8210 * Fix CSS issues involving line numbers (#4128).
8211 Highlighted code blocks are now enclosed in a div with class `sourceCode`.
8212 Highlighting CSS no longer sets a generic color for pre and code; we only
8213 set these for class `sourceCode`.
8215 * `--pdf-engine-opt`: fix bug where option order was reversed (#4137).
8217 * Add PowerPoint (pptx) writer (Jesse Rosenthal).
8218 It works following the standard Pandoc conventions for making other
8219 sorts of slides. Caveats:
8221 + Syntax highlighting is not yet implemented. (This is difficult
8222 because there are no character classes in Powerpoint.)
8223 + Footnotes and Definition lists are not yet implemented. (Notes will
8224 usually take the form of a final slide.
8225 + Image placement and auto-resizing has a few glitches.
8226 + Reference powerpoint files don't work dependably from the command
8227 line. This will be implemented, but at the moment users are advised
8228 to change themes from within Powerpoint.
8230 * Create shared Text.Pandoc.Writers.OOXML module (Jesse Rosenthal).
8231 This is for functions used by both Powerpoint and Docx writers.
8233 * Add default pptx data for Powerpoint writer (Jesse Rosenthal).
8235 * Add `empty_paragraphs` extension.
8237 + Deprecate `--strip-empty-paragraphs` option. Instead we now
8238 use an `empty_paragraphs` extension that can be enabled on
8239 the reader or writer. By default, disabled.
8240 + Add `Ext_empty_paragraphs` constructor to `Extension`.
8241 + Revert "Docx reader: don't strip out empty paragraphs."
8242 This reverts commit d6c58eb836f033a48955796de4d9ffb3b30e297b.
8243 + Implement `empty_paragraphs` extension in docx reader and writer,
8244 opendocument writer, html reader and writer.
8245 + Add tests for `empty_paragraphs` extension.
8247 * Markdown reader:
8249 + Don't parse native div as table caption (#4119).
8250 + Improved computation of column widths in pipe tables.
8251 Pipe tables with lines longer than the text width (as set
8252 by `--columns`) are now scaled to text width, with the relative
8253 widths of columns determined by the ratios between the
8254 header lines. Previously we computed column widths using
8255 the ratio of header line lengths to column width, so that
8256 tables with narrow header lines were extremely thin, which
8257 was very rarely the desired result.
8259 * LaTeX reader: fix `\` before newline (#4134). This should be a space,
8260 as long as it's not followed by a blank line. This has been fixed at the
8261 tokenizer level.
8263 * Muse reader (Alexander Krotov):
8265 + Add test for `#disable-tables` directive in Emacs mode.
8266 + Don't allow emphasis to be preceded by letter.
8267 + Add underline support in Emacs Muse mode..
8268 + Support multiline directives in Amusewiki mode
8270 * Man writer: omit internal links (#4136). That is, just print the link
8271 text without the URL.
8273 * Markdown reader: accept processing instructions as raw HTML (#4125).
8275 * Lua filters (Albert Krewinkel):
8277 + Use script to initialize the interpreter. The file `init.lua` is
8278 used to initialize the Lua interpreter which is used in Lua filters.
8279 This gives users the option to require libraries which they want to
8280 use in all of their filters, and to extend default modules.
8281 + Fix package loading for Lua 5.1. The list of package searchers is
8282 named `package.loaders` in Lua 5.1 and LuaJIT, and `package.searchers`
8283 in Lua 5.2 and later.
8284 + Refactor lua module handling. The integration with Lua's package/module
8285 system is improved: A pandoc-specific package searcher is prepended to
8286 the searchers in `package.searchers`. The modules `pandoc` and
8287 `pandoc.mediabag` can now be loaded via `require`.
8288 + Bump lower bound of hslua. The release hslua 0.9.3 contains a new
8289 function which makes using Haskell functions as package loaders much
8290 easier.
8292 * reveal.js template: add title-slide identifier to title slide (#4120).
8293 This allows it to be styled more easily.
8295 * LaTeX template: Added support for `pagestyle` variable (#4135,
8296 Thomas Hodgson)
8298 * Add `-threaded` to ghc-options for executable (#4130, fixes a build
8299 error on linux).
8302## pandoc 2.0.4 (2017-12-03)
8304 * Add `--print-highlight-style` option. This generates a JSON version
8305 of a highlighting style, which can be saved as a `.theme` file, modified,
8306 and used with `--highlight-style` (#4106, #4096).
8308 * Add `--strip-empty-paragraphs` option. This works for any input format.
8309 It is primarily intended for use with docx and odt documents where
8310 empty paragraphs have been used for inter-paragraph spaces.
8312 * Support `--webtex` for `gfm` output.
8314 * Recognize `.muse` file extension.
8316 * Support beamer `\alert` in LaTeX reader. Closes #4091.
8318 * Docx reader: don't strip out empty paragraphs (#2252).
8319 Users who have a conversion pipeline from docx may want to consider adding
8320 `--strip-empty-paragraphs` to the command line.
8322 * Org reader (Albert Krewinkel): Allow empty list items (#4090).
8324 * Muse reader (Alexander Krotov):
8326 + Parse markup in definition list terms.
8327 + Allow definition to end with EOF.
8328 + Make code blocks round trip.
8329 + Drop common space prefix from list items.
8330 + Add partial round trip test.
8331 + Don't interpret XML entities.
8332 + Remove `nested`.
8333 + Parse `~~` as non-breaking space in Emacs mode.
8334 + Correctly remove indentation from notes. Exactly one space is
8335 required and considered to be part of the marker.
8336 + Allow list items to be empty.
8337 + Add ordered list test.
8338 + Add more multiline definition tests.
8339 + Don't allow blockquotes within lists.
8340 + Fix reading of multiline definitions.
8341 + Add inline `<literal>` support.
8342 + Concatenate inlines of the same type
8344 * Docx writer: allow empty paragraphs (#2252).
8346 * CommonMark/gfm writer:
8348 + Use raw html for native divs/spans (#4113). This allows a pandoc
8349 markdown native div or span to be rendered in gfm using raw html tags.
8350 + Implement `raw_html` and `raw_tex` extensions. Note that `raw_html`
8351 is enabled by default for `gfm`, while `raw_tex` is disabled by default.
8353 * Muse writer (Alexander Krotov):
8355 + Test that inline math conversion result is normalized.
8356 Without normalization this test produced
8357 `<em>a</em><em>b</em><em>c</em>`.
8358 + Improve inline list normalization and move to writer.
8359 + Escape hash symbol.
8360 + Escape `----` to avoid accidental horizontal rules.
8361 + Escape only `</code>` inside code tag.
8362 + Additional `<verbatim>` is not needed as `<code>` is verbatim already.
8364 * LaTeX writer:
8366 + Allow specifying just width or height for image size.
8367 Previously both needed to be specified (unless the image was
8368 being resized to be smaller than its original size).
8369 If height but not width is specified, we now set width to
8370 textwidth. If width but not height is specified, we now set
8371 height to textheight. Since we have `keepaspectratio`, this
8372 yields the desired result.
8373 + Escape `~` and `_` in code with `--listings` (#4111).
8375 * HTML writer: export `tagWithAttributes`. This is a helper allowing
8376 other writers to create single HTML tags.
8378 * Let papersizes `a0`, `a1`, `a2`, ... be case-insensitive by
8379 converting the case as needed in LaTeX and ConTeXt writers.
8381 * Change `fixDisplayMath` from `Text.Pandoc.Writers.Shared`
8382 so that it no longer produces empty `Para`'s as an artifact.
8384 * `Text.Pandoc.Shared.blocksToInlines`: rewrote using builder.
8385 This gives us automatic normalization, so we don't get
8386 for example two consecutive Spaces.
8388 * Include default CSS for 'underline' class in HTML-based templates.
8390 * revealjs template: add `tex2jax` configuration for the
8391 math plugin. With the next release of reveal.js, this will
8392 fix the problem of `$`s outside of math contexts being
8393 interpreted as math delimiters (#4027).
8395 * `pandoc.lua` module for use in lua filters (Albert Krewinkel):
8397 + Add basic lua List module (#4099, #4081). The List module is
8398 automatically loaded, but not assigned to a global variable. It can be
8399 included in filters by calling `List = require 'List'`. Lists of blocks,
8400 lists of inlines, and lists of classes are now given `List` as a metatable,
8401 making working with them more convenient. E.g., it is now possible to
8402 concatenate lists of inlines using Lua's concatenation operator `..`
8403 (requires at least one of the operants to have `List` as a metatable):
8405 function Emph (emph)
8406 local s = {pandoc.Space(), pandoc.Str 'emphasized'}
8407 return pandoc.Span(emph.content .. s)
8408 end
8410 The `List` metatable is assigned to the tables which get passed to
8411 the constructors `MetaBlocks`, `MetaInline`, and `MetaList`. This
8412 enables the use of the resulting objects as lists.
8413 + `Lua/StackInstances`: push Pandoc and Meta via constructor.
8414 Pandoc and Meta elements are now pushed by calling the respective
8415 constructor functions of the pandoc Lua module. This makes serialization
8416 consistent with the way blocks and inlines are pushed to lua and allows
8417 to use List methods with the `blocks` value.
8418 + Add documentation for pandoc.List in `lua-filters.md`.
8420 * Use latest tagsoup. This fixes a bug in parsing HTML tags with
8421 `&` (but not a valid entity) following them (#4094, #4088).
8423 * Use skylighting 0.4.4.1, fixing the color of unmarked code text
8424 when `numberLines` is used (#4103).
8426 * Make `normalizeDate` more forgiving (Mauro Bieg, #4101), not
8427 requiring a leading 0 on single-digit days.
8429 * Fix `--help` output for `--highlight-style` to include `FILE` (Mauro
8430 Bieg, #4095).
8432 * Clearer deprecation warning for `--latexmathml, --asciimathml, -m`.
8433 Previously we only mentioned `--latexmathml`, even if `-m` was
8434 used.
8436 * Changelog: fix description of lua filters in 2.0 release
8437 (Albert Krewinkel). Lua filters were initially run *after* conventional
8438 (JSON) filters. However, this was changed later to make it easier to deal
8439 with files in the mediabag. The changelog is updated to describe that
8440 feature of the 2.0 release correctly.
8442 * Change Generic JSON instances to TemplateHaskell (Jasper Van der Jeugt,
8443 #4085). This reduces compile time and memory usage significantly.
8445 * `lua-filters.md`: Added tikz filter example.
8447 * Create alternative zip file for macOS binaries.
8449 * Create alternative zip file for Windows binaries.
8451 * Update INSTALL.md since we now provide zips for binaries.
8453 * Relax `http-types` dependency (Justus Sagemüller, #4084).
8455 * Add `epub.md`, `getting-started.md` to docs. These used to live in
8456 the website repo.
8458 * Add `packages` target to Makefile.
8460 * Bump bounds for binary, http-types, tasty-hunit
8462## pandoc 2.0.3 (2017-11-20)
8464 * Lua filters: preload text module (Albert Krewinkel, #4077).
8465 The `text` module is preloaded in lua. The module contains some UTF-8
8466 aware string functions, implemented in Haskell. The module is loaded on
8467 request only, e.g.:
8469 text = require 'text'
8470 function Str (s)
8471 s.text = text.upper(s.text)
8472 return s
8473 end
8475 * Allow table-like access to attributes in lua filters (Albert Krewinkel,
8476 #4071). Attribute lists are represented as associative lists in Lua. Pure
8477 associative lists are awkward to work with. A metatable is attached to
8478 attribute lists, allowing to access and use the associative list as if
8479 the attributes were stored in as normal key-value pair in table.
8480 Note that this changes the way `pairs` works on attribute lists. Instead
8481 of producing integer keys and two-element tables, the resulting iterator
8482 function now returns the key and value of those pairs. Use `ipairs` to
8483 get the old behavior. Warning: the new iteration mechanism only works if
8484 pandoc has been compiled with Lua 5.2 or later (current default: 5.3).
8486 * Text.Pandoc.Parsing.uri: allow `&` and `=` as word characters (#4068).
8487 This fixes a bug where pandoc would stop parsing a URI with an
8488 empty attribute: for example, `&a=&b=` wolud stop at `a`.
8489 (The uri parser tries to guess which punctuation characters
8490 are part of the URI and which might be punctuation after it.)
8492 * Introduce `HasSyntaxExtensions` typeclass (Alexander Krotov, #4074).
8494 + Added new `HasSyntaxExtensions` typeclass for `ReaderOptions` and
8495 `WriterOptions`.
8496 + Reimplemented `isEnabled` function from `Options.hs` to accept both
8497 `ReaderOptions` and `WriterOptions`.
8498 + Replaced `enabled` from `CommonMark.hs` with new `isEnabled`.
8500 * Add `amuse` extension (Alexander Krotov) to enable Amuse wiki
8501 behavior for `muse`. New `Ext_amuse` constructor for
8502 `Extension`. Note: this is switched on by default; for
8503 Emacs behavior, use `muse-amuse`.
8505 * Muse reader (Alexander Krotov):
8507 + Count only one space as part of list item marker.
8508 + Produce SoftBreaks on newlines. Now wrapping can be preserved
8509 with `--wrap=preserve`.
8510 + Add Text::Amuse footnote extensions. Footnote end is indicated by
8511 indentation, so footnotes can be placed anywhere in the text,
8512 not just at the end of it.
8513 + Accept Emacs Muse definition lists when `-amuse`.
8514 Emacs Muse does not require indentation.
8516 * HTML reader:
8518 + Ensure we don't produce level 0 headers (#4076), even for chapter
8519 sections in epubs. This causes problems because writers aren't set
8520 up to expect these.
8521 + Allow spaces after `\(` and before `\)` with `tex_math_single_backslash`.
8522 Previously `\( \frac{1}{a} < \frac{1}{b} \)` was not parsed as math in
8523 `markdown` or `html` `+tex_math_single_backslash`.
8525 * MANUAL: clarify that math extensions work with HTML.
8526 Clarify that `tex_math_dollars` and `tex_math_single_backslash`
8527 will work with HTML as well as Markdown.
8529 * Creole reader: Fix performance issue for longer lists (Sascha Wilde,
8530 #4067).
8532 * RST reader: better support for 'container' directive (#4066).
8533 Create a div, incorporate name attribute and classes.
8535 * LaTeX reader:
8537 + Support column specs like `*{2}{r}` (#4056). This is equivalent to
8538 `rr`. We now expand it like a macro.
8539 + Allow optional args for parbox (#4056).
8540 + Allow optional arguments on `\footnote` (#4062).
8542 * EPUB writer: Fixed path for cover image (#4069). It was previously
8543 `media/media/imagename`, and should have been `media/imagename`.
8545 * Markdown writer: fix bug with doubled footnotes in grid tables
8546 (#4061).
8548 * LaTeX template: include natbib/biblatex after polyglossia (#4073).
8549 Otherwise we seem to get an error; biblatex wants polyglossia
8550 language to be defined.
8552 * Added examples to lua filters documentation.
8555## pandoc 2.0.2 (2017-11-12)
8557 * Deprecated ancient HTML math methods: `--latexmathml`, `--gladtex`,
8558 `--mimetex`, `--jsmath`.
8560 * Fixed URIs in `data/jats.csl`. They were being rendered twice,
8561 leading to invalid XML in default JATS output with pandoc-citeproc.
8563 * `lua-filters.md`: use real-world man page filter as example.
8565 * Add lua filter functions `walk_inline` and `walk_block`
8566 in the pandoc module, to apply filters inside particular
8567 inline and block elements.
8569 * Refactored some code from `Text.Pandoc.Lua.PandocModule`
8570 into new internal module `Text.Pandoc.Lua.Filter`.
8572 * Markdown reader:
8574 + Allow fenced code blocks to be indented 1-3 spaces (#4011).
8575 This brings our handling of them into alignment with CommonMark's.
8576 + Fix YAML metadata with "chomp" (`|-`). Previously if a
8577 YAML block under `|-` contained a blank line, pandoc would
8578 not parse it as metadata.
8580 * Removed `etc.` from abbreviations file. Often `etc.` ends a
8581 sentence, and we want the period to be treated as a
8582 sentence-ending period.
8584 * Fix regression with `--metadata` (#4054). Values specified with
8585 `--metadata` should replace a metadata value set in the document
8586 itself, rather than creating a list including a new value.
8588 * EPUB writer:
8590 + Fix EPUB OCF structure. #3720 had been improperly implemented.
8591 + Fix modified paths for raw HTML tags (src, poster, etc.)
8592 (#4050, #4055). This had not been updated for the new EPUB
8593 container layout, with a separate text/ subdirectory.
8594 + Fix image paths with empty `--epub-subdirectory`.
8596 * Miscellaneous code cleanup (Alexander Krotov).
8598 * Use pandoc-types 1.17.3, which adds `Walkable` instances
8599 for `[Block] Block` and `[Inline] Inline`.
8601 * Remove obsolete `stack.full.yaml` (#4052).
8603 * Change to using pandoc-citeproc 0.12.1 in binary packages.
8605 * Consolidate math output method documentation (#4049, Mauro Bieg).
8607 * `MANUAL.txt`: fix header level of "Extension: emoji" (Albert Krewinkel).
8609 * Use lua filter to generate man page from `MANUAL.txt`, replacing old
8610 Haskell filters. This is easier and faster.
8612 * Improved `INSTALL.md`.
8614 * Update commands to extract deb archive on Linux (#4043, Salim B).
8617## pandoc 2.0.1.1 (2017-11-04)
8619 * Improved fix to #3989 (parsing of HTML tags containing
8620 `>` in an attribute or comment). The previous fix (in 2.0.1) only
8621 worked in certain cases.
8623 * FB2 writer (Alexander Krotov):
8625 + Add `unrecognised` genre to `<title-info>`
8626 (Alexander Krotov). XML schema requires at least one genre.
8627 + Remove `<annotation>` from `<body>`.
8629 * CommonMark writer: fix strikethrough for `gfm` (#4038).
8631 * Use texmath 0.10, which adds support for a wider range of
8632 symbols and fixes default column alignments in MathML
8633 and OMML.
8635 * Highlighting fixes, using skylighting 0.4.3.2:
8637 + Fix invalid CSS.
8638 + Support `lineAnchors` (or `line-anchors`) in HTML code blocks.
8639 + Ensure that code lines don't get duplicate identifiers (#4031).
8640 The line identifiers are built using the code block's identifier
8641 as a prefix. If the code block has null identifier, we use
8642 `cb1`, `cb2`, etc.
8644 * Added a few abbreviations to `data/abbreviations`,
8645 and sorted the list (#3984, Wandmalfarbe).
8647 * Improved support for columns in HTML writer (#4028).
8649 + Remove `width` attribute from the `div`.
8650 + Remove space between `<div class="column">` elements,
8651 since this prevents columns whose widths sum to 100%
8652 (the space takes up space).
8653 + Move as much as possible of the CSS to the template.
8654 + Ensure that all the HTML-based templates (including epub)
8655 contain the CSS for columns.
8656 + Columns default to 50% width unless they are given a width
8657 attribute. So if you want two equal-width columns, you
8658 can use a div with class `column` and no `width` attribute.
8660 * SelfContained: use `base64` for css links with media attribute (#4026).
8661 This fixes `--self-contained` with S5.
8663 * Improve `pandoc-template-mode.el` (Vaclav Haisman).
8665 * INSTALL.md: MacOS instructions needed xar -f (adam234).
8667 * MANUAL.txt:
8669 + Clarify that --setext-headers doesn't affect gfm output (#4035).
8670 + Clarify what is needed to open and close a div in `fenced_divs`
8671 (#4039, Tristano Ajmone).
8672 + Removed reference to `default.beamer` in docs (#4024).
8673 Also added mention of other templates affecting PDF output
8674 with different settings.
8677## pandoc 2.0.1 (2017-10-31)
8679 * Fixed regression in parsing of HTML comments in markdown and other
8680 non-HTML formats (`Text.Pandoc.Readers.HTML.htmlTag`) (#4019).
8681 The parser stopped at the first `>` character, even if it wasn't
8682 the end of the comment.
8684 * Creole reader (Sascha Wilde):
8686 + Fix some minor typos and formatting.
8687 + Add additional test on nowiki-block after para.
8688 + Fix lists with trailing white space.
8690 * LaTeX reader: handle `%` comment right after command.
8691 For example, `\emph%`.
8693 * Markdown reader: make sure fenced div closers work in lists.
8694 Previously the following failed:
8696 ::: {.class}
8697 1. one
8698 2. two
8699 :::
8701 and you needed a blank line before the closing `:::`.
8703 * Make `fenced_divs` affect the Markdown writer. If `fenced_divs` is
8704 enabled, Divs will be rendered as fenced divs.
8706 * LaTeX/Beamer writer: support "blocks" inside columns and other Divs
8707 (#4016).
8709 * HTML Writer: consistently use dashed class-names (Mauro Bieg, #3556).
8710 Note: this change may require some changes in CSS rules.
8711 `footnoteRef` has become `footnote-ref`, `titleslide` has
8712 become `title-slide`, and `footnoteBack` has become `footnote-back`.
8714 * JATS writer: Properly pass through author metadata (#4020).
8716 * FB2 writer (Alexander Krotov):
8718 + Write blocks outside of `<p>` in definitions.
8719 + Make bullet lists consistent with ordered lists, repeating
8720 the marker for the outer list rather than indenting sublists,
8721 since indentation does not work in readers.
8722 + Add new style FB2 tests.
8724 * `Text.Pandoc.ImageSize`: Add `Millimeter` constructor to `Dimension`
8725 (#4012) [API change]. Now sizes given in 'mm' are no longer converted
8726 to 'cm'.
8728 * Revise documentation of small caps syntax (Andrew Dunning, #4013).
8730 * Fix broken reference links in manual (Andrew Dunning, #4014)
8732 * Fixed example of slide columns structure in changelog (#4015).
8733 Also documented this feature in MANUAL.txt.
8736## pandoc 2.0.0.1 (2017-10-30)
8738 * EPUB writer:
8740 + Fixed filepaths for nonstandard epub-subdirectory values.
8741 + Ensure that epub2 is recognized as a non-text format,
8742 so that a template is used.
8743 + Don't include "prefix" attribute for ibooks for epub2.
8744 It doesn't validate.
8745 + Fix stylesheet paths; previously we had an incorrect
8746 stylesheet path for the cover page and nav page.
8748 * LaTeX reader:
8750 + Insert space when needed in macro expansion (#4007).
8751 Sometimes we need to insert a space after a control sequence
8752 to prevent it merging with a following letter.
8753 + Allow unbraced arguments for macros (#4007).
8754 + Allow body of macro definition to be unbraced (#4007).
8756 * Linux package build: ensure that pandoc-citeproc is statically linked.
8758 * trypandoc: add native, ms.
8761## pandoc 2.0 (2017-10-29)
8763### New features
8765 * New output format `ms` (groff ms). Complete support, including
8766 tables, math, syntax highlighting, and PDF bookmarks. The writer uses
8767 texmath's new eqn writer to convert math to eqn format, so a ms file
8768 produced with this writer should be processed with `groff -ms -e` if
8769 it contains math.
8771 * New output format `jats` (Journal Article Tag Suite). This is an XML
8772 format used in archiving and publishing articles. Note that a
8773 URI-encoded CSL stylesheet (`data/jats.csl`) is added automatically
8774 unless a stylesheet is specified using `--css`.
8776 * New output format `gfm` (GitHub-flavored CommonMark) (#3841).
8777 This uses bindings to GitHub's fork of cmark, so it should parse
8778 gfm exactly as GitHub does (excepting certain postprocessing
8779 steps, involving notifications, emojis, etc.). `markdown_github`
8780 has been deprecated in favor of `gfm`.
8782 * New output format `muse` (Emacs Muse) (Alexander Krotov, #3489).
8784 * New input format `gfm` (GitHub-flavored CommonMark) (#3841).
8785 This uses bindings to GitHub's fork of cmark. `markdown_github`
8786 has been deprecated in favor of `gfm`.
8788 * New input format `muse` (Emacs Muse) reader (Alexander Krotov, #3620).
8790 * New input format `tikiwiki` (TikiWiki markup) (rlpowell, #3800).
8792 * New input format `vimwiki` (Vimwiki markup) (Yuchen Pei, #3705).
8793 Note that there is a new data file, `data/vimwiki.css`, which can
8794 be used to display the HTML produced by this reader and
8795 pandoc's HTML writer in the style of vimwiki's own HTML
8796 export.
8798 * New input format `creole` (Creole 1.0) (#3994, Sascha Wilde).
8800 * New syntax for Divs, with `fenced_divs` extension enabled by
8801 default (#168). This gives an attractive, plain-text way to create
8802 containers for block-level content.
8804 * Added new syntax for including raw content in any output format,
8805 enabled by the `raw_attribute` extension (which is on by default
8806 for `markdown` and `multimarkdown`). The syntax is the same as
8807 for fenced code blocks or code inlines, only with `{=FORMAT}` for
8808 attributes, where `FORMAT` is the name of the output format
8809 (e.g., `ms`, `html`).
8811 * Implement multicolumn support for slide formats (#1710).
8812 The structure expected is:
8814 :::::::::::::: {.columns}
8815 ::: {.column width="40%"}
8816 contents...
8817 :::
8818 ::: {.column width="60%"}
8819 contents...
8820 :::
8821 ::::::::::::::
8823 Support has been added for beamer and all HTML slide formats.
8825 * Allows line comments in templates, beginning with `$--` (#3806).
8826 (Requires doctemplates 0.2.1.)
8828 * Add `--eol=crlf|lf|native` flag and writer option to control line endings
8829 (Stefan Dresselhaus, #3663, #2097).
8831 * Add `--log` option to save log messages in JSON format to a file (#3392).
8833 * Add `--request-header` option, to set request headers when pandoc
8834 makes HTTP requests to fetch external resources. For example:
8835 `--request-header User-Agent:blah`.
8837 * Added lua filters (Albert Krewinkel, #3514). The new `--lua-filter`
8838 option works like `--filter` but takes pathnames of special lua filters
8839 and uses the lua interpreter baked into pandoc, so that no external
8840 interpreter is needed. Note that lua filters are all applied after
8841 regular filters, regardless of their position on the command line.
8842 For documentation of lua filters, see `doc/lua-filters.md`.
8844 * Set `PANDOC_READER_OPTIONS` in environment where filters are run.
8845 This contains a JSON representation of `ReaderOptions`, so filters
8846 can access it.
8848 * Support creation of pdf via groff `ms` and pdfroff.
8849 `pandoc -t ms -o output.pdf input.txt`.
8851 * Support for PDF generation via HTML and `weasyprint` or `prince`
8852 (Mauro Bieg, #3909). `pandoc -t html5 -o output.pdf --pdf-engine=prince`.
8854 * Added `--epub-subdirectory` option (#3720). This specifies the
8855 subdirectory in the OCF container that holds the EPUB specific content.
8856 We now put all EPUB related content in an `EPUB/` subdirectory by default
8857 (later this will be configurable).
8859 ```
8860 mimetype
8861 META-INF/
8862 com.apple.ibooks.display-options.xml
8863 container.xml
8864 EPUB/ <<--configurable-->>
8865 fonts/ <<--static-->>
8866 font.otf
8867 media/ <<--static-->>
8868 cover.jpg
8869 fig1.jpg
8870 styles/ <<--static-->>
8871 stylesheet.css
8872 content.opf
8873 toc.ncx
8874 text/ <<--static-->>
8875 ch001.xhtml
8876 ```
8878 * Added `--resource-path=SEARCHPATH` command line option (#852).
8879 SEARCHPATH is separated by the usual character, depending on OS
8880 (: on unix, ; on windows). Default resource path is just working
8881 directory. However, the working directory must be explicitly
8882 specified if the `--resource-path` option is used.
8884 * Added --abbreviations=FILE option for custom abbreviations file
8885 (#256). Dfault abbreviations file (`data/abbreviations`) contains
8886 a list of strings that will be recognized by pandoc's
8887 Markdown parser as abbreviations. (A nonbreaking space will
8888 be inserted after the period, preventing a sentence space in
8889 formats like LaTeX.) Users can override the default by putting a file
8890 abbreviations in their user data directory (`~/.pandoc` on *nix).
8892 * Allow a theme file as argument to `--highlight-style`.
8893 Also include a sample, `default.theme`, in `data/`.
8895 * Allow `--syntax-definition` option for dynamic loading of syntax
8896 highlighting definitions (#3334).
8898 * Lists in `markdown` by default now use the CommonMark variable
8899 nesting rules (#3511). The indentation required for a block-level
8900 item to be included in a list item is no longer fixed, but is
8901 determined by the first line of the list item. To be included in
8902 the list item, a block must be indented to the level of the first
8903 non-space content after the list marker. Exception: if are 5 or more
8904 spaces after the list marker, then the content is interpreted as an
8905 indented code block, and continuation paragraphs must be indented
8906 two spaces beyond the end of the list marker. See the CommonMark
8907 spec for more details and examples.
8909 Documents that adhere to the four-space rule should, in most cases,
8910 be parsed the same way by the new rules. Here are some examples
8911 of texts that will be parsed differently:
8913 - a
8914 - b
8916 will be parsed as a list item with a sublist; under the four-space
8917 rule, it would be a list with two items.
8919 - a
8921 code
8923 Here we have an indented code block under the list item, even though it
8924 is only indented six spaces from the margin, because it is four spaces
8925 past the point where a continuation paragraph could begin. With the
8926 four-space rule, this would be a regular paragraph rather than a code
8927 block.
8929 - a
8931 code
8933 Here the code block will start with two spaces, whereas under
8934 the four-space rule, it would start with `code`. With the four-space
8935 rule, indented code under a list item always must be indented eight
8936 spaces from the margin, while the new rules require only that it
8937 be indented four spaces from the beginning of the first non-space
8938 text after the list marker (here, `a`).
8940 This change was motivated by a slew of bug reports from people
8941 who expected lists to work differently (#3125, #2367, #2575, #2210,
8942 #1990, #1137, #744, #172, #137, #128) and by the growing prevalance
8943 of CommonMark (now used by GitHub, for example). Those who
8944 prefer the old behavior can use `-f markdown+four_space_rule`.
8946 * Added `four_space_rule` extension. This triggers the old pandoc
8947 parsing rule for content nested under list items (the "four space
8948 rule").
8950 * Added `spaced_reference_links` extension (#2602). It allows whitespace
8951 between the two parts of a reference link: e.g.
8953 [a] [b]
8955 [b]: url
8957 This was previously enabled by default; now it is forbidden by default.
8959 * Add `space_in_atx_header` extension (#3512). This is enabled by default
8960 in pandoc and GitHub markdown but not the other flavors.
8961 This requirse a space between the opening #'s and the header
8962 text in ATX headers (as CommonMark does but many other implementations
8963 do not). This is desirable to avoid falsely capturing things ilke
8965 #hashtag
8967 or
8969 #5
8971 * Add `sourcefile` and `outputfile` template variables (Roland Hieber,
8972 #3431).
8974 * Allow ibooks-specific metadata in epubs (#2693). You can now have
8975 the following fields in your YAML metadata, and it will be treated
8976 appropriately in the generated EPUB:
8978 ```
8979 ibooks:
8980 version: 1.3.4
8981 specified-fonts: false
8982 ipad-orientation-lock: portrait-only
8983 iphone-orientation-lock: landscape-only
8984 binding: true
8985 scroll-axis: vertical
8986 ```
8989### Behavior changes
8991 * Reader functions no longer presuppose that CRs have been
8992 stripped from the input. (They strip CRs themselves, before
8993 parsing, to simplify the parsers.)
8995 * Added support for translations (localization) (#3559).
8996 Currently this only affects the LaTeX reader, for things
8997 like `\figurename`. Translation data files for 46 languages
8998 can be found in `data/translations`.
9000 * Make `--ascii` work with DocBook output too.
9002 * Rename `--latex-engine` to `--pdf-engine`,
9003 and `--latex-engine-opt` to `--pdf-engine-opt`.
9005 * Removed `--parse-raw` and `readerParseRaw`. These were confusing.
9006 Now we rely on the `+raw_tex` or `+raw_html` extension with latex or html
9007 input. Thus, instead of `--parse-raw -f latex` we use `-f latex+raw_tex`,
9008 and instead of `--parse-raw -f html` we use `-f html+raw_html`.
9010 * With `--filter` R filters are now recognized, even if they are
9011 not executable (#3940, #3941, Andrie de Vries).
9013 * Support SVG in PDF output, converting with `rsvg2pdf` (#1793).
9015 * Make epub an alias for epub3, not epub2.
9017 * Removed `--epub-stylesheet`; use `--css` instead (#3472, #847).
9018 Multiple stylesheets may be used. Stylesheets will be taken both from
9019 `--css` and from the `stylesheet` metadata field (which can contain
9020 either a file path or a list of them).
9022 * `--mathml` and MathML in HTMLMathMethod no longer take an argument.
9023 The argument was for a bridge JavaScript that used to be necessary
9024 in 2004. We have removed the script already.
9026 * `--katex` improvements. The latest version is used, and the
9027 autoload script is loaded by default.
9029 * Change MathJax CDN default since old one is shutting down (#3544).
9030 Note: The new URL requires a version number, which we'll have
9031 to update manually in subsequent pandoc releases in order to
9032 take advantage of mathjax improvements.
9034 * `--self-contained`: don't incorporate elements with `data-external="1"`
9035 (#2656). You can leave an external link as it is by adding the attribute
9036 data-external="1" to the element. Pandoc will then not try to
9037 incorporate its content when `--self-contained` is used. This is
9038 similar to a feature already supported by the EPUB writer.
9040 * Allow `--extract-media` to work with non-binary input formats
9041 (#1583, #2289). If `--extract-media` is supplied with a non-binary
9042 input format, pandoc will attempt to extract the contents of all
9043 linked images, whether in local files, data: uris, or external uris.
9044 They will be named based on the sha1 hash of the contents.
9046 * Make `papersize: a4` work regardless of the case of `a4`.
9047 It is converted to `a4` in LaTeX and `A4` in ConTeXt.
9049 * Make `east_asian_line_breaks` affect all readers/writers (#3703).
9051 * Underlined elements are now treated consistently by readers
9052 (#2270, hftf); they are always put in a Span with class `underline`.
9053 This allows the user to treat them differently from other emphasis,
9054 using a filter. Docx, Org, Textile, Txt2Tags, and HTML readers
9055 have been changed.
9057 * Improved behavior of `auto_identifiers` when there are explicit ids
9058 (#1745). Previously only autogenerated ids were added to the list
9059 of header identifiers in state, so explicit ids weren't taken
9060 into account when generating unique identifiers. Duplicated
9061 identifiers could result. This simple fix ensures that explicitly given
9062 identifiers are also taken into account.
9064 * Use `table-of-contents` for contents of toc, make `toc` a boolean
9065 (#2872). Changed markdown, rtf, and HTML-based templates accordingly.
9066 This allows you to set `toc: true` in the metadata; this
9067 previously produced strange results in some output formats.
9068 For backwards compatibility, `toc` is still set to the
9069 toc contents. But it is recommended that you update templates
9070 to use `table-of-contents` for the toc contents and `toc`
9071 for a boolean flag.
9073 * Change behavior with binary format output to stdout.
9074 Previously, for binary formats, output to stdout was disabled
9075 unless we could detect that the output was being piped (and not
9076 sent to the terminal). Unfortunately, such detection is not
9077 possible on Windows, leaving windows users no way to pipe binary
9078 output. So we have changed the behavior in the following way:
9080 + Output to stdout is allowed when it can be determined that
9081 the output is being piped (on non-Windows platforms).
9082 + If the `-o` option is not used, binary output is never sent
9083 to stdout by default; instead, an error is raised.
9084 + If `-o -` is used, binary output is sent to stdout, regardless
9085 of whether it is being piped. This works on Windows too.
9087 * Better error behavior: uses of `error` have been replaced by
9088 raising of `PandocError`, which can be trapped and handled by the
9089 calling program.
9091 * Removed `hard_line_breaks` extension from `markdown_github` (#3594).
9092 GitHub has two Markdown modes, one for long-form documents like READMEs
9093 and one for short things like issue comments. In issue comments, a line
9094 break is treated as a hard line break. In README, wikis, etc., it is
9095 treated as a space as in regular Markdown. Since pandoc is more likely to
9096 be used to convert long-form documents from GitHub Markdown,
9097 `-hard_line_breaks` is a better default.
9099 * Include `backtick_code_blocks` extension in `mardkown_mmd` (#3637).
9101 * Escape `MetaString` values (as added with `-M/--metadata` flag) (#3792).
9102 Previously they would be transmitted to the template without any
9103 escaping. Note that `--M title='*foo*'` yields a different result from
9105 ---
9106 title: *foo*
9107 ---
9109 In the latter case, we have emphasis; in the former case, just
9110 a string with literal asterisks (which will be escaped
9111 in formats, like Markdown, that require it).
9113 * Allow `em`, `cm`, `in` for image height/width in HTML, LaTeX (#3450).
9115 * HTML writer: Insert `data-` in front of unsupported attributes. Thus,
9116 a span with attribute `foo` gets written to HTML5 with `data-foo`, so
9117 it is valid HTML5. HTML4 is not affected. This will allow us to use
9118 custom attributes in pandoc without producing invalid HTML. (With help
9119 from Wandmalfarbe, #3817.)
9121 * Plain writer: improved super/subscript rendering. We now
9122 handle more non-digit characters for which there are
9123 sub/superscripted unicode characters. When unicode
9124 sub/superscripted characters are not available, we use
9125 `_(..)` or `^(..)` (#3518).
9127 * Docbook, JATS, TEI writers: print INFO message when omitting interior
9128 header (#3750). This only applies to section headers inside list items,
9129 e.g., which were otherwise silently omitted.
9131 * Change to `--reference-links` in Markdown writer (#3701). With
9132 `--reference-location` of `section` or `block`, pandoc will now repeat
9133 references that have been used in earlier sections. The Markdown
9134 reader has also been modified, so that *exactly* repeated references
9135 do not generate a warning, only references with the same label but
9136 different targets. The idea is that, with references after every block,
9137 one might want to repeat references sometimes.
9139 * ODT/OpenDocument writer:
9141 + Support `lang` attribute (#1667).
9142 + Added support for `--toc` (#2836). Thanks to @anayrat.
9144 * Docx writer:
9146 + `lang` meta, see #1667 (Mauro Bieg, #3515).
9147 + Change `FigureWithCaption` to `CaptionedFigure` (iandol, #3658).
9148 + Use `Table` rather than `Table Normal` for table style (#3275).
9149 `Table Normal` is the default table style and can't be modified.
9150 + Pass through comments (#2994). We assume that comments are defined as
9151 parsed by the docx reader:
9153 I want <span class="comment-start" id="0" author="Jesse Rosenthal"
9154 date="2016-05-09T16:13:00Z">I left a comment.</span>some text to
9155 have a comment <span class="comment-end" id="0"></span>on it.
9157 We assume also that the id attributes are unique and properly
9158 matched between comment-start and comment-end.
9159 + Bookmark improvements. Bookmark start/end now surrounds content rather
9160 than preceding it. Bookmarks generated for Div with id
9161 (jgm/pandoc-citeproc#205).
9162 + Add `keywords` metadata to docx document properties (Ian).
9164 * RST writer: support unknown interpreted text roles by
9165 parsing them as `Span` with `role` attributes (#3407). This
9166 way they can be manipulated in the AST.
9168 * HTML writer:
9170 + Line block: Use class instead of style attribute (#1623). We now
9171 issue `<div class="line-block">` and include a default definition
9172 for `line-block` in the default templates, instead of hard-coding a
9173 `style` on the div.
9174 + Add class `footnoteBack` to footnote back references (Timm Albers).
9175 This allows for easier CSS styling.
9176 + Render SmallCaps as span with smallcaps class (#1592), rather than
9177 using a style attribute directly. This gives the user more flexibility
9178 in styling small caps in CSS.
9179 + With reveal.js we use `data-src` instead of `src` for images for
9180 lazy loading.
9181 + Special-case `.stretch` class for images in reveal.js (#1291).
9182 Now in reveal.js, an image with class `stretch` in a paragraph
9183 by itself will stretch to fill the whole screen, with no
9184 caption or figure environment.
9186 * Added warnings for non-rendered blocks to writers.
9188 * Writers now raise an error on template failure.
9190 * When creating a PDF via LaTeX, warn if the font is missing some
9191 characters (#3742).
9193 * Remove initial check for PDF-creating program (#3819).
9194 Instead, just try running it and raise the exception if it
9195 isn't found at that point. This improves things for users of Cygwin
9196 on Windows, where the executable won't be found by `findExecutable`
9197 unless `.exe` is added. The same exception is raised as before, but
9198 at a later point.
9200 * Readers issue warning for duplicate header identifiers (#1745).
9201 Autogenerated header identifiers are given suffixes so as not to clash
9202 with previously used header identifiers. But they may still coincide with
9203 an explicit identifier that is given for a header later in the document,
9204 or with an identifier on a div, span, link, or image. We now issue
9205 a warning in this case, so users can supply an explicit identifier.
9207 * CommonMark reader now supports `emoji`, `hard_line_breaks`, `smart`,
9208 and `raw_html` extensions.
9210 * Markdown reader:
9212 + Don't allow backslash + newline to affect block structure (#3730).
9213 Note that as a result of this change, the following, which formerly
9214 produced a header with two lines separated by a line break, will
9215 now produce a header followed by a paragraph:
9217 # Hi\
9218 there
9220 This may affect some existing documents that relied on
9221 this undocumented and unintended behavior. This change makes pandoc
9222 more consistent with other Markdown implementations, and with itself
9223 (since the two-space version of a line break doesn't work inside ATX
9224 headers, and neither version works inside Setext headers).
9227 * Org reader (Albert Krewinkel, unless noted):
9229 + Support `table.el` tables (#3314).
9230 + Support macros (#3401).
9231 + Support the `#+INCLUDE:` file inclusion mechanism (#3510).
9232 Recognized include types are `example`, `export`, `src`, and
9233 normal org file inclusion. Advanced features like line numbers
9234 and level selection are not implemented yet.
9235 + Interpret more meta value as inlines. The values of the following
9236 meta variables are now interpreted using org-markup instead of
9237 treating them as pure strings: `keywords` (comma-separated list of
9238 inlines), `subtitle` (inline values), `nocite` (inline values, can
9239 be repeated).
9240 + Support `\n` export option (#3940). This turns all newlines in the
9241 text into hard linebreaks.
9243 * RST reader:
9245 + Improved admonition support (#223). We no longer add an
9246 `admonition` class, we just use the class for the type of admonition,
9247 `note` for example. We put the word corresponding to the label in
9248 a paragraph inside a `Div` at the beginning of the admonition with
9249 class `admonition-title`. This is about as close as we can get to
9250 RST's own output.
9251 + Initial support of `.. table` directive. This allows adding captions
9252 to tables.
9253 + Support `.. line-block` directive. This is deprecated but may still
9254 be in older documents.
9255 + Support scale and align attributes of images (#2662).
9256 + Implemented implicit internal header links (#3475).
9257 + Support RST-style citations (#853). The citations appear at the end
9258 of the document as a definition list in a special div with id
9259 `citations`. Citations link to the definitions.
9260 + Recurse into bodies of unknown directives (#3432).
9261 In most cases it's better to preserve the content than
9262 to emit it. This isn't guaranteed to have good results;
9263 it will fail spectacularly for unknown raw or verbatim directives.
9264 + Handle chained link definitions (#262). For example,
9266 .. _hello:
9267 .. _goodbye: example.com
9269 Here both `hello` and `goodbye` should link to `example.com`.
9270 + Support anchors (#262). E.g.
9272 `hello`
9274 .. _hello:
9276 paragraph
9278 This is supported by putting "paragraph" in a `Div` with id `hello`.
9279 + Support `:widths:` attribute for table directive.
9280 + Implement csv-table directive (#3533). Most attributes are supported,
9281 including `:file:` and `:url:`.
9282 + Support unknown interpreted text roles by parsing them as Span
9283 with "role" attributes (#3407). This way they can be manipulated in
9284 the AST.
9286 * HTML reader: parse a span with class `smallcaps` as `SmallCaps`.
9288 * LaTeX reader:
9290 + Implemented `\graphicspath` (#736).
9291 + Properly handle column prefixes/suffixes. For example, in
9292 `\begin{tabular}{>{$}l<{$}>{$}l<{$} >{$}l<{$}}`
9293 each cell will be interpreted as if it has a `$`
9294 before its content and a `$` after (math mode).
9295 + Handle komascript `\dedication` (#1845). It now adds a
9296 `dedication` field to metadata. It is up to the user to supply
9297 a template that uses this variable.
9298 + Support all `\textXX` commands, where XX = `rm`, `tt`, `up`, `md`,
9299 `sf`, `bf` (#3488). Spans with a class are used when there is
9300 nothing better.
9301 + Expand `\newenvironment` macros (#987).
9302 + Add support for LaTeX subfiles package (Marc Schreiber, #3530).
9303 + Better support for subfigure package (#3577).
9304 A figure with two subfigures turns into two pandoc
9305 figures; the subcaptions are used and the main caption
9306 ignored, unless there are no subcaptions.
9307 + Add support for `\vdots` (Marc Schreiber, #3607).
9308 + Add basic support for hyphenat package (Marc Schreiber, #3603).
9309 + Add basic `\textcolor` support (Marc Schreiber).
9310 + Add support for `tabularx` environment (Marc Schreiber, #3632).
9311 + Better handling of comments inside math environments (#3113).
9312 This solves a problem with commented out `\end{eqnarray}` inside
9313 an eqnarray (among other things).
9314 + Parse tikzpicture as raw verbatim environment if `raw_tex` extension
9315 is selected (#3692). Otherwise skip with a warning. This is better
9316 than trying to parse it as text!
9317 + Add `\colorbox` support (Marc Schreiber).
9318 + Set identifiers on Spans used for `\label`.
9319 + Have `\setmainlanguage` set `lang` in metadata.
9320 + Support etoolbox's `\ifstrequal`.
9321 + Support `plainbreak`, `fancybreak` et al from the memoir class
9322 (bucklereed, #3833).
9323 + Support `\let`. Also, fix regular macros so they're expanded at the
9324 point of use, and NOT also the point of definition. `\let` macros,
9325 by contrast, are expanded at the point of definition. Added an
9326 `ExpansionPoint` field to `Macro` to track this difference.
9327 + Support simple `\def` macros. Note that we still don't support
9328 macros with fancy parameter delimiters, like `\def\foo#1..#2{...}`.
9329 + Support `\chaptername`, `\partname`, `\abstractname`, etc. (#3559,
9330 obsoletes #3560).
9331 + Put content of `\ref`, `\label`, `\eqref` commands into `Span` with
9332 attributes, so they can be handled in filters (Marc Schreiber, #3639)
9333 + Add Support for `glossaries` and `acronym` package (Marc Schreiber,
9334 #3589). Acronyms are not resolved by the reader, but acronym and
9335 glossary information is put into attributes on Spans so that they
9336 can be processed in filters.
9337 + Use `Link` instead of `Span` for `\ref`. This makes more sense
9338 semantically and avoids unnecessary `Span [Link]` nestings when
9339 references are resolved.
9340 + Rudimentary support for `\hyperlink`.
9341 + Support `\textquoteleft|right`, `\textquotedblleft|right` (#3849).
9342 + Support `\lq`, `\rq`.
9343 + Implement `\newtoggle`, `\iftoggle`, `\toggletrue|false` from etoolbox
9344 (#3853).
9345 + Support `\RN` and `\Rn`, from biblatex (bucklereed, #3854).
9346 + Improved support for `\hyperlink`, `\hypertarget` (#2549).
9347 + Support `\k` ogonek accent.
9348 + Improve handling of accents. Handle ogonek, and fall back correctly
9349 with forms like `\"{}`.
9350 + Better support for ogonek accents.
9351 + Support for `\faCheck` and `\faClose` (Marc Schreiber, #3727).
9352 + Support for `xspace` (Marc Schreiber, #3797).
9353 + Support `\setmainlanguage` or `\setdefaultlanguage` (polyglossia)
9354 and `\figurename`.
9355 + Better handling of `\part` in LaTeX (#1905). Now we parse chapters as
9356 level 0 headers, and parts as level -1 headers. After parsing, we
9357 check for the lowest header level, and if it's less than 1 we bump
9358 everything up so that 1 is the lowest header level. So `\part` will
9359 always produce a header; no command-line options are needed.
9360 + Add block version of `\textcolor` (Marc Schreiber).
9361 + `\textcolor` works as inline and block command (Marc Schreiber).
9362 + `\textcolor` will be parse as span at the beginning of a paragraph
9363 (Marc Schreiber).
9364 + Read polyglossia/babel `\text(LANG){...}` (bucklereed)
9365 + Improved handling of include files in LaTeX reader (#3971).
9366 Previously `\include` wouldn't work if the included file
9367 contained, e.g., a begin without a matching end.
9368 + Support `\expandafter` (#3983).
9369 + Handle `\DeclareRobustCommand` (#3983). Currently it's just treated
9370 as a synonym for `\newcommand`.
9371 + Handle `\lettrine` (Mauro Bieg).
9373 * Math improvements due to updates in texmath:
9375 + Improved handling of accents and upper/lower delimiters.
9376 + Support for output in GNU eqn format (used with *roff).
9377 + Allow `\boldsymbol` + a token without braces, and similarly
9378 with other styling commands.
9379 + Improve parsing of `\mathop` to allow multi-character operator names.
9380 + Add thin space after math operators when "faking it with
9381 unicode."
9383 * `walk` is now used instead of `bottomUp` in the `ToJSONFilter`
9384 instance for `a -> [a]` (pandoc-types). Note that behavior
9385 will be slightly different, since `bottomUp`'s treatment of
9386 a function `[a] -> [a]` is to apply it to each sublist of a
9387 list, while walk applies it only to maximal sublists.
9388 Usually the latter behavior is what is wanted, and the
9389 former can be simulated when needed. But there may be
9390 existing filters that need to be rewritten in light of the
9391 new behavior. Performance should be improved.
9393 * There are some changes to syntax highlighting due to revisions
9394 in the `skylighting` library:
9396 + Support for `powershell` has been added, and many syntax
9397 definitions have been updated.
9398 + Background colors have been added to the `kate` style.
9399 + The way highlighted code blocks are formatted in HTML has
9400 been changed (David Baynard), in ways that may require
9401 changes in hard-coded CSS affecting highlighting.
9402 (If you haven't included hard-coded highlighting CSS in
9403 your template, you needn't change anything.)
9406### API changes
9408 * New module `Text.Pandoc.Class` (Jesse Rosenthal, John MacFarlane).
9409 This contains definitions of the `PandocMonad` typeclass, the
9410 `PandocIO` and `PandocPure` monads, and associated functions.
9412 * Changed types of all writers and readers.
9414 + We now use `Text` instead of `String` in the interface (#3731).
9415 (We have not yet changed the internals of most readers to work
9416 with `Text`, but making this change in the API now opens up a
9417 path to doing that.)
9418 + The result is now of form `m a` with constraint `PandocMonad m`.
9419 Readers and writers can be combined to form monadic values which
9420 can be run using either `runIO` or `runPure`. If `runIO` is used,
9421 then both readers and writers will be able to do IO when needed
9422 (for include files, for example); if `runPure` is used,
9423 then the functions are pure and will not touch IO.
9424 + Where previously you used
9425 `writeRST def (readMarkdown def "[foo](url)")`, now you
9426 would use
9427 `runPure $ readMarkdown def (pack "[foo](url)") >>= writeRST def`.
9429 * New module `Text.Pandoc.Readers` (Albert Krewinkel). This
9430 contains reader helper functions formerly defined in the
9431 top-level `Text.Pandoc` module.
9433 + Changed `StringReader` -> `TextReader`.
9434 + `getReader` now returns a pair of a reader and
9435 `Extensions`, instead of building the extensions into the
9436 reader (#3659). The calling code must explicitly set
9437 `readerExtensions` using the `Extensions` returned. The
9438 point of the change is to make it possible for the calling
9439 code to determine what extensions are being used.
9441 * New module `Text.Pandoc.Writers` (Albert Krewinkel).
9442 This contains writer helper functions formerly defined in the
9443 top-level `Text.Pandoc` module.
9445 + Changed `StringWriter` -> `TextWriter`.
9446 + `getWriter` now returns a pair of a reader and
9447 `Extensions`, instead of building the extensions into the
9448 reader (#3659). The calling code must explicitly set
9449 `readerExtensions` using the `Extensions` returned. The
9450 point of the change is to make it possible for the calling
9451 code to determine what extensions are being used.
9453 * New module `Text.Pandoc.Lua`, exporting `runLuaFilter` (Albert Krewinkel,
9454 #3514).
9456 * New module `Text.Pandoc.App`. This abstracts out the functionality
9457 of the command line program (`convertWithOpts`), so it can be reproduced
9458 e.g. in a desktop or web application. Instead of exiting, we throw errors
9459 (#3548), which are caught (leading to exit) in pandoc.hs, but allow other
9460 users of `Text.Pandoc.App` to recover. `pandoc.hs` is now a 2-liner.
9461 The module also exports some utility functions for parsing options
9462 and running filters.
9464 * New module `Text.Pandoc.Logging` (exported module) (#3392).
9465 This now contains the `Verbosity` definition previously in
9466 `Text.Pandoc.Options`, as well as a new `LogMessage` datatype that will
9467 eventually be used instead of raw strings for warnings. This will enable
9468 us, among other things, to provide machine-readable warnings if desired.
9469 Include ToJSON instance and showLogMessage. This gives us the possibility
9470 of both machine-readable and human-readable output for log messages.
9472 * New module `Text.Pandoc.BCP47`, with `getLang`, `Lang(..)`, `parseBCP47`.
9474 * New module `Text.Pandoc.Translations`, exporting `Term`,
9475 `Translations`, `readTranslations`.
9477 * New module `Text.Pandoc.Readers.LaTeX.Types', exporting `Macro`, `Tok`,
9478 `TokType`, `Line`, `Column`.
9480 * `Text.Pandoc.Error`: added many new constructors for `PandocError`.
9482 * Expose some previously private modules (#3260). These are often
9483 helpful to people writing their own reader or writer modules:
9485 + `Text.Pandoc.Writers.Shared`
9486 + `Text.Pandoc.Parsing`
9487 + `Text.Pandoc.Asciify`
9488 + `Text.Pandoc.Emoji`
9489 + `Text.Pandoc.ImageSize`
9490 + `Text.Pandoc.Highlighting`
9492 * New module `Text.Pandoc.Extensions` (Albert Krewinkel):
9493 Extension parsing and processing functions were defined in the top-level
9494 `Text.Pandoc` module. These functions are moved to the Extensions
9495 submodule as to enable reuse in other submodules.
9497 * Add `Ext_raw_attribute` constructor for `Extension`.
9499 * Add `Ext_fenced_divs` constructor for `Extension'.
9501 * Add `Ext_four_space_rule` constructor in `Extension`.
9503 * Add `Ext_gfm_auto_identifiers` constructor for `Extension`.
9505 * Add `Monoid` instance for `Extensions`.
9507 * Add `Text.Pandoc.Writers.Ms`, exporting `writeMs`.
9509 * Add `Text.Pandoc.Writers.JATS`, exporting `writeJATS`.
9511 * Add `Text.Pandoc.Writers.Muse`, exporting `writeMuse`.
9513 * Add `Text.Pandoc.Readers.Muse`, exporting `readMuse`.
9515 * Add `Text.Pandoc.Readers.TikiWiki`, exporting `readTikiWiki`.
9517 * Add `Text.Pandoc.Readers.Vimwiki`, exporting `readVimwiki`.
9519 * Add `Text.Pandoc.Readers.Creole`, exporting `readCreole`.
9521 * Export `setVerbosity` from `Text.Pandoc`.
9523 * `Text.Pandoc.Pretty`: Add `Eq` instance for `Doc`.
9525 * `Text.Pandoc.XML`: `toEntities`: changed type to `Text -> Text`.
9527 * `Text.Pandoc.UTF8`:
9529 + Export `fromText`, `fromTextLazy`, `toText`, `toTextLazy`.
9530 Define `toString`, `toStringLazy` in terms of them.
9531 + Add new functions parameterized on `Newline`: `writeFileWith`,
9532 `putStrWith`, `putStrLnWith`, `hPutStrWith`, `hPutStrLnWith`.
9534 * `Text.Pandoc.MediaBag`: removed `extractMediaBag`.
9536 * `Text.Pandoc.Highlighting`:
9538 + `highlighting` now returns an Either rather than Maybe.
9539 This allows us to display error information returned by the skylighting
9540 library. Display a warning if the highlighting library throws an error.
9541 + Add parameter for `SyntaxMap` to `highlight`.
9543 * `Text.Pandoc.Writers.Math`:
9545 + Export `defaultMathJaxURL`, `defaultKaTeXURL`. This will ensure that
9546 we only need to update these in one place.
9548 * `Text.Pandoc.SelfContained`:
9550 + Removed `WriterOptions` parameter from `makeSelfContained`.
9551 + Put `makeSelfContained` in PandocMonad instead of IO. This removes
9552 the need to pass MediaBag around and improves exceptions. It also
9553 opens up the possibility of using makeSelfContained purely.
9554 + Export `makeDataURI`.
9556 * `Text.Pandoc.ImageSize`:
9558 + Export `lengthToDim`, new function `scaleDimension`.
9559 + Export `inEm` from ImageSize (#3450).
9560 + Change `showFl` and `show` instance for `Dimension` so
9561 extra decimal places are omitted.
9562 + Added `Em` as a constructor of `Dimension`.
9563 + Add `WriterOptions` parameter to `imageSize` signature (Mauro Bieg).
9565 * `Text.Pandoc.Templates`:
9567 + Change type of `renderTemplate'`. Now it runs in `PandocMonad`
9568 and raises a proper `PandocTemplateError` if there are problems, rather
9569 than failing with uncatchable `error`.
9570 + Change signature of `getDefaultTemplate`. Now it runs in any instance
9571 of `PandocMonad`, and returns a `String` rather than an `Either` value.
9572 And it no longer takes a `datadir` parameter, since this can be
9573 retrieved from `CommonState`.
9575 * `Text.Pandoc.Options`:
9577 + Added `writerEpubSubdirectory` to `WriterOptions` (#3720).
9578 The EPUB writer now takes its EPUB subdirectory from this option.
9579 + In `WriterOptions`, rename `writerLaTeXEngine` to `writerPdfEngine`
9580 and `writerLaTeXArgs` to `writerPdfArgs` (Mauro Bieg, #3909).
9581 + Add `writerSyntaxMap` to `WriterOptions`.
9582 + Removed `writerEpubStylesheet` from `WriterOptions`.
9583 + Remove `writerUserDataDir` from `WriterOptions`. It is now carried
9584 in `CommonState` in `PandocMonad` instances. (And thus it can be used
9585 by readers too.)
9586 + Changed `writerEpubMetadata` to a `Maybe String`.
9587 + Removed `readerApplyMacros` from `ReaderOptions`. Now we just check
9588 the `latex_macros` reader extension.
9589 + FromJSON/ToJSON instances for `ReaderOptions`.
9590 + In `HTMLMathMethod`, the `KaTeX` contsructor now takes only
9591 one string (for the KaTeX base URL), rather than two.
9592 + Removed `writerSourceURL` from `WriterOptions`. We now use
9593 `stSourceURL` in `CommonState`, which is set by `setInputFiles`.
9595 * `Text.Pandoc.Shared`:
9597 + `tabFilter` now takes a `Text`, not `String`.
9598 + `openURL`: Changed type from an Either. Now it will just raise
9599 an exception to be trapped later.
9600 + Remove `normalizeSpaces` (#1530).
9601 + Remove `warn`. (Use `report` from `Text.Pandoc.Class` instead.)
9602 + Export a new function `crFilter`.
9603 + Add `eastAsianLineBreakFilter` (previously in Markdown reader).
9604 + Provide custom `isURI` that rejects unknown schemes.
9605 (Albert Krewinkel, #2713). We also export the set of known
9606 `schemes`. The new function replaces the function of the same name
9607 from `Network.URI`, as the latter did not check whether a scheme is
9608 well-known. All official IANA schemes (as of 2017-05-22) are
9609 included in the set of known schemes. The four non-official schemes
9610 `doi`, `isbn`, `javascript`, and `pmid` are kept.
9611 + Remove `err`.
9612 + Remove `readDataFile`, `readDefaultDataFile`, `getReferenceDocx`,
9613 `getReferenceODT`. These now live in `Text.Pandoc.Class`,
9614 where they are defined in terms of `PandocMonad`
9615 primitives and have different signatures.
9616 + Remove `openURL`. Use `openURL` from `Text.Pandoc.Class` instead.
9617 + Add `underlineSpan`.
9619 * `Text.Pandoc.Readers.HTML`: export new `NamedTag` class.
9621 * `Text.Pandoc.Readers.Markdown`: remove `readDocxWithWarnings`.
9622 With the new API one can simply use `getLog` after running
9623 the reader.
9625 * `Text.Pandoc.Readers.LaTeX`: Changed types for `rawLaTeXInline`
9626 and `rawLaTeXBlock`. (Both now return a `String`, and they are
9627 polymorphic in state.)
9630### Bug fixes and under-the-hood improvements
9632 * TEI writer: Added identifiers on `<div>` elements.
9634 * DokuWiki reader: Better handling for code block in list item (#3824).
9636 * Custom writer: Remove old preprocesesor conditionals (Albert Krewinkel).
9638 * ZimWiki writer: Removed internal formatting from note and table cells,
9639 because ZimWiki does not support it (Alex Ivkin, #3446).
9641 * MediaWiki writer:
9643 + Updated list of syntax highlighting languages (#3461).
9644 Now `r` gets you `<source>` rather than `<code>` (among others).
9645 + Add display attribute on `<math>` tags (#3452). This allows display
9646 math to be rendered properly.
9647 + Remove newline before `</ref>` (#2652).
9648 + Don't softbreak lines inside list items (#3531).
9650 * Org writer:
9652 + Reduce to two spaces after bullets (#3417, Albert Krewinkel).
9653 + Add unit tests (Alexander Krotov).
9654 + Stop using raw HTML to wrap divs (Albert Krewinkel, #3771).
9655 + Do not strip `#` from Org anchor links (Alexander Krotov).
9657 * CommonMark writer:
9659 + Avoid excess blank lines at end of output.
9660 + Prefer pipe tables to HTML tables even if it means losing relative
9661 column width information (#3734).
9662 + Support table, strikethrough extensions, when enabled (as with gfm).
9663 Note that we bypass the commonmark writer from cmark and construct our
9664 own pipe tables, with better results.
9665 + Properly support `--wrap=none`.
9666 + Use smallcaps class for `SmallCaps` (#1592).
9667 + Omit "fig:" prefix in image titles. This is used internally to
9668 indicate internal figures.
9670 * RST writer:
9672 + Properly handle table captions.
9673 + Don't wrap lines in in definition list terms. Wrapping is not allowed.
9674 + Implemented `+/-smart` and improved escaping with `+smart`.
9675 + Add empty comments when needed to avoid including a blockquote
9676 in the indented content of a preceding block (#3675).
9677 + Improve grid table output, fix bug with empty rows (#3516).
9678 Uses the new `gridTable` in Writers.Shared, which is here
9679 improved to better handle 0-width cells.
9680 + Remove space at beginning/end of RST code span (#3496). Otherwise
9681 we get invalid RST. There seems to be no way to escape the space.
9682 + Add header anchors when header has non-standard id (#3937).
9683 + Correctly handle inline code containing backticks, using a `:literal:`
9684 role (#3974).
9685 + Don't backslash-escape word-internal punctuation (#3978).
9687 * Markdown writer:
9689 + Don't include variables in metadata blocks. Previously variables set
9690 on the command line were included in e.g. YAML metadata, contrary to
9691 documentation and intentions.
9692 + Improved escaping with `+smart`.
9693 + Fixed grid tables embedded in grid tables (#2834).
9694 + Use span with class 'smallcaps' for SmallCaps, instead of a style
9695 attribute as before (#1592).
9696 + Escape initial `%` in a paragraph if the `pandoc_title_blocks`
9697 extension is enabled (#3454). Otherwise in a document starting with
9698 a literal `%` the first line is wrongly interpreted as a title.
9699 + Fixed false ordered lists in YAML metadata (#3492, #1685). Now we
9700 properly escape things that would otherwise start ordered lists,
9701 such as
9703 ---
9704 title: 1. inline
9705 ...
9706 + Better handling of tables with empty columns (#3337). We now
9707 calculate the number of columns based on the longest row (or the
9708 length of aligns or widths).
9709 + Escape unordered list markers at beginning of paragraph (#3497), to
9710 avoid false interpretation as a list.
9711 + Escape `|` appropriately.
9712 + Ensure space before list at top level (#3487).
9713 + Avoid spurious blanklines at end of document after tables and list,
9714 for example.
9715 + Fixed bugs in simple/multiline list output (#3384).
9716 Previously we got overlong lists with `--wrap=none`. This is fixed.
9717 Previously a multiline list could become a simple list (and would
9718 always become one with `--wrap=none`).
9719 + Don't emit a simple table if `simple_tables` disabled (#3529).
9720 + Case-insensitive reference links (David A Roberts, #3616).
9721 Ensure that we do not generate reference links whose labels differ only
9722 by case. Also allow implicit reference links when the link
9723 text and label are identical up to case.
9724 + Put space before reference link definitions (Mauro Bieg, #3630).
9725 + Better escaping for links (David A. Roberts, #3619). Previously the
9726 Markdown writer would sometimes create links where there were none
9727 in the source. This is now avoided by selectively escaping bracket
9728 characters when they occur in a place where a link might be created.
9729 + Added missing `\n` (David A. Roberts, #3647).
9730 + Fixed duplicated reference links with `--reference-links`
9731 and `--reference-location=section` (#3674). Also ensure that there
9732 are no empty link references `[]`.
9733 + Avoid inline surround-marking with empty content (#3715).
9734 E.g. we don't want `<strong></strong>` to become `****`.
9735 Similarly for emphasis, super/subscript, strikeout.
9736 + Don't allow soft break in header (#3736).
9737 + Make sure `plain`, `markdown_github`, etc. work for raw.
9738 Previously only `markdown` worked. Note: currently a raw block labeled
9739 `markdown_github` will be printed for any `markdown` format.
9740 + Ensure that `+` and `-` are escaped properly so they don't cause
9741 spurious lists (#3773). Previously they were only
9742 if succeeded by a space, not if they were at end of line.
9743 + Use pipe tables if `raw_html` disabled and `pipe_tables` enabled,
9744 even if the table has relative width information (#3734).
9745 + Markdown writer: don't crash on `Str ""`.
9746 + Make `Span` with null attribute transparent. That is, we don't use
9747 brackets or `<span>` tags to mark spans when there are no attributes;
9748 we simply output the contents.
9749 + Escape pipe characters when `pipe_tables` enabled (#3887).
9750 + Better escaping of `<` and `>`. If `all_symbols_escapable` is set,
9751 we backslash escape these. Otherwise we use entities as before.
9752 + When writing plain, don't use `&nbsp;` to separate list and indented
9753 code. There's no need for it in this context, since this isn't to be
9754 interpreted using Markdown rules.
9755 + Preserve classes in JS obfuscated links (Timm Albers, #2989).
9756 HTML links containing classes originally now preserve them when using
9757 javascript email obfuscation.
9758 + Render `SmallCaps` as a native span when `native_spans` are enabled.
9759 + Always write attributes with `bracketed_spans` (d-dorazio).
9761 * Man writer:
9763 + Fix handling of nested font commands (#3568). Previously pandoc emitted
9764 incorrect markup for bold + italic, for example, or bold + code.
9765 + Avoid error for definition lists with no definitions (#3832).
9767 * DocBook writer:
9769 + Fix internal links with `writerIdentifierPrefix opt`
9770 (#3397, Mauro Bieg).
9772 * Docx writer:
9774 + Don't include bookmarks on headers unless non-null id (#3476).
9775 + Support 9 levels of headers (#1642).
9776 + Allow 9 list levels (#3519).
9777 + Don't take `distArchive` from datadir (#3322). The docx writer takes
9778 components from the distribution's version of `reference.docx` when it
9779 can't find them in a user's custom `reference.docx`. Previously, we
9780 allowed a `reference.docx` in the data directory (e.g. `~/.pandoc`)
9781 to be used as the distribution's reference.docx. This led to a
9782 bizarre situation where pandoc would produce a good docx using
9783 `--template ~/.pandoc/ref.docx`, but if `ref.docx` were moved to
9784 `~/.pandoc/reference.docx`, it would then produce a corrupted docx.
9785 + Fixed handling of soft hyphen (0173) (#3691).
9786 + Better handling of keywords (#3719).
9787 + Cleaner code for handling dir and style attributes for `Div`.
9788 + Use `Set` for dynamic styles to avoid duplicates.
9789 + Removed redundant element from data/docx/word/numbering.xml.
9790 The elements we need are generated when the document is
9791 compiled; this didn't do anything.
9792 + Activate `evenAndOddHeaders` from reference docx (#3901,
9793 Augustín Martín Barbero).
9795 * ODT/OpenDocument writer:
9797 + Calculate aspect ratio for percentage-sized images (Mauro Bieg, #3239).
9798 + Use more widely available bullet characters (#1400). The old
9799 characters weren't available in some font sets. These seem to work
9800 well on Windows and Linux versions of LibreOffice.
9801 + Wider labels for lists (#2421). This avoids overly narrow labels for
9802 ordered lists with `()` delimiters. However, arguably it creates
9803 overly wide labels for bullets. Also, lists now start flush with
9804 the margin, rather than indented.
9805 + Fixed dropped elements in some ordered lists (#2434).
9807 * FB2 writer:
9809 + Don't render `RawBlock` as code.
9810 + Don't fail with an error on interior headers (e.g. in list) (#3750).
9811 Instead, omit them with an INFO message.
9812 + Add support for "lang" metadata (Alexander Krotov, #3625).
9813 + Format `LineBlock` as poem (Alexander Krotov). Previously writer
9814 produced one paragraph with `<empty-line/>` elements, which are not
9815 allowed inside `<p>` according to FB2 schema.
9816 + Replace `concatMap` with `cMap` (Alexander Krotov).
9817 + Write FB2 lists without nesting blocks inside `<p>` (Alexander
9818 Krotov, #4004)
9820 * HTML writer:
9822 + Make sure `html4`, `html5` formats work for raw blocks/inlines.
9823 + Render raw inline environments when `--mathjax` used (#3816).
9824 We previously did this only with raw blocks, on the assumption
9825 that math environments would always be raw blocks. This has changed
9826 since we now parse them as inline environments.
9827 + Ensure we don't get two style attributes for width and height.
9828 + Report when not rendering raw inline/block.
9829 + Issue warning if no title specified and template used (#3473).
9830 + Info message if `lang` is unspecified (#3486).
9831 + Removed unused parameter in `dimensionsToAttributeList`.
9832 + Avoid two class attributes when adding `uri` class (#3716).
9833 + Fix internal links with `writerIdentifierPrefix opt` (#3397, Mauro
9834 Bieg).
9835 + Use revealjs's math plugin for mathjax (#3743). This is a thin
9836 wrapper around mathjax that makes math look better on revealjs.
9837 + Slidy: use h1 for all slides, even if they were originally
9838 level 2 headers (#3566). Otherwise the built-in table of contents
9839 in Slidy breaks.
9841 * LaTeX writer:
9843 + Don't render LaTeX images with data: URIs (#3636). Note that
9844 `--extract-media` can be used when the input contains data: URIs.
9845 + Make highlighted code blocks work in footnotes (Timm Albers).
9846 + Don't use figure inside table cell (#3836).
9847 + Use proper code for list enumerators (#3891). This should fix problems
9848 with lists that don't use arabic numerals.
9849 + Always add hypertarget when there's a non-empty identifier (#2719).
9850 Previously the hypertargets were only added when there was actually
9851 a link to that identifier.
9852 + Use `%` after hypertarget before code block.
9853 + Add `\leavevmode` before hypertarget at start of paragraph (#2704,
9854 fixes formatting problems in beamer citations).
9855 + Don't use `lstinline` in `\item[..]` (#645). If you do, the contents
9856 of item disappear or are misplaced. Use `\texttt` instead.
9857 + Fix problem with escaping in `lstinline` (#1629). Previously the
9858 LaTeX writer created invalid LaTeX when `--listings` was specified and
9859 a code span occurred inside emphasis or another construction.
9860 + Fix error with line breaks after empty content (#2874). LaTeX
9861 requires something before a line break, so we insert a `~` if no
9862 printable content has yet been emitted.
9863 + Use BCP47 parser.
9864 + Fixed detection of otherlangs (#3770). We weren't recursing into
9865 inline contexts.
9866 + Handle language in inline code with `--listings` (#3422).
9867 + Write euro symbol directly in LaTeX (Andrew Dunning, #3801).
9868 The textcomp package allows pdfLaTeX to parse `€` directly, making the
9869 `\euro` command unneeded.
9870 + Fixed footnotes in table captions (#2378). Note that if the table has
9871 a first page header and a continuation page header, the notes will
9872 appear only on the first occurrence of the header.
9873 + In `writeBeamer` output, allow hyperlinks to frames (#3220).
9874 Previously you could link to a header above or below slide level but
9875 not *to* slide level. This commit changes that. Hypertargets are
9876 inserted inside frame titles; technically the reference is to just
9877 after the title, but in normal use (where slides are viewed full
9878 screen in a slide show), this does not matter.
9879 + Remove `\strut` at beginning of table cells (#3436). This fixes a
9880 problem with alignment of lists in table cells. The `\strut` at the
9881 end seems to be enough to avoid the too-close spacing that motivated
9882 addition of the strut in #1573.
9883 + Add partial siunitx Support (Marc Schreiber, #3588).
9885 * ConTeXt writer:
9887 + Refactored to use BCP47 module.
9888 + Remove unnecessary `$` (Alexander Krotov, #3482).
9889 + Use header identifiers for chapters (#3968).
9891 * EPUB writer:
9893 + `title_page.xhtml` is now put in `text/`.
9894 + Don't strip formatting in TOC (#1611).
9896 * Textile reader:
9898 + Fix bug for certain links in table cells (#3667).
9899 + Allow 'pre' code in list item (#3916).
9901 * HTML reader:
9903 + Added warnings for ignored material (#3392).
9904 + Better sanity checks to avoid parsing unintended things as
9905 raw HTML in the Markdown reader (#3257).
9906 + Revise treatment of `li` with `id` attribute (#3596). Previously we
9907 always added an empty div before the list item, but this created
9908 problems with spacing in tight lists. Now we do this: If the list
9909 item contents begin with a `Plain` block, we modify the `Plain`
9910 block by adding a `Span` around its contents. Otherwise, we add a
9911 `Div` around the contents of the list item (instead of adding an
9912 empty `Div` to the beginning, as before).
9913 + Add `details` tag to list of block tags (#3694).
9914 + Removed `button` from block tag list (#3717). It is already in the
9915 `eitherBlockOrInlineTag` list, and should be both places.
9916 + Use `Set`s instead of lists for block tag lookup.
9917 + Rewrote to use `Text` throughout. Effect on memory usage is modest
9918 (< 10%).
9919 + Use the lang value of `<html>` to set the lang meta value (bucklereed,
9920 #3765).
9921 + Ensure that paragraphs are closed properly when the parent block
9922 element closes, even without `</p>` (#3794).
9923 + Parse `<figure>` and `<figcaption>` (Mauro Bieg, #3813).
9924 + Parse `<main>` like `<div role=main>` (bucklereed, #3791).
9925 `<main>` closes `<p>` and behaves like a block element generally
9926 + Support column alignments (#1881). These can be set either
9927 with a `width` attribute or with `text-width` in a `style` attribute.
9928 + Modified state type to be an instance of `HasLogMessages`, so
9929 `registerHeader` can issue warnings.
9930 + `</td>` or `</th>` should close any open block tag (#3991).
9931 + `<td>` should close an open `<th>` or `<td>`.
9932 + `htmlTag` improvements (#3989). We previously failed on cases
9933 where an attribute contained a `>` character. This patch fixes the
9934 bug, which especially affects raw HTML in Markdown.
9936 * Txt2Tags reader:
9938 + Newline is not indentation (Alexander Krotov).
9940 * MediaWiki reader:
9942 + Allow extra hyphens after `|-` in tables (#2649).
9943 + Allow blank line after table start (#2649).
9944 + Fixed more table issues (#2649).
9945 + Ensure that list starts begin at left margin (#2606). Including when
9946 they're in tables or other list items.
9947 + Make smart double quotes depend on `smart` extension (#3585).
9948 + Don't do curly quotes inside `<tt>` contexts (#3585). Even if `+smart`.
9949 + Modified state type to be an instance of `HasLogMessages`, so
9950 `registerHeader` can issue warnings.
9952 * TWiki reader (Alexander Krotov):
9954 + Remove unnecessary `$` (#3597).
9955 + Simplify `linkText` (#3605).
9957 * EPUB reader:
9959 + Minor refactoring, avoiding explicit MediaBag handling.
9960 This all works behind the scenes in CommonState plumbing.
9962 * Docx reader:
9964 + Don't drop smartTag contents (#2242).
9965 + Handle local namespace declarations (#3365). Previously we didn't
9966 recognize math, for example, when the xmlns declaration occurred on
9967 the element and not the root.
9968 + More efficient trimSps (#1530). Replacing `trimLineBreaks`. This
9969 does the work of `normalizeSpaces` as well, so we avoid the need for
9970 that function here.
9971 + Avoid 0-level headers (Jesse Rosenthal, #3830). We used to parse
9972 paragraphs styled with "HeadingN" as "nth-level header." But if a
9973 document has a custom style named "Heading0", this will produce a
9974 0-level header, which shouldn't exist. We only parse this style
9975 if N>0. Otherwise we treat it as a normal style name, and
9976 follow its dependencies, if any.
9977 + Add tests for avoiding zero-level header (Jesse Rosenthal).
9979 * ODT reader:
9981 + Replaced `collectRights` with Rights from `Data.Either`.
9982 + Remove dead code (Albert Krewinkel).
9984 * Org reader (Albert Krewinkel, unless noted).
9986 + Don't allow tables inside list items (John MacFarlane, #3499).
9987 + Disallow tables on list marker lines (#3499).
9988 + Convert markup at beginning of footnotes (John MacFarlane, #3576).
9989 + Allow emphasized text to be followed by `[` (#3577).
9990 + Handle line numbering switch for src blocks.
9991 The line-numbering switch that can be given to source blocks (`-n` with
9992 an start number as an optional parameter) is parsed and translated to a
9993 class/key-value combination used by highlighting and other readers and
9994 writers.
9995 + Stop adding rundoc prefix to src params. Source block parameter names
9996 are no longer prefixed with `rundoc`. This was intended to simplify
9997 working with the rundoc project, a babel runner. However, the rundoc
9998 project is unmaintained, and adding those markers is not the reader's
9999 job anyway. The original language that is specified for a source
10000 element is now retained as the `data-org-language` attribute and only
10001 added if it differs from the translated language.
10002 + Allow multi-word arguments to src block params (#3477). The reader now
10003 correctly parses src block parameter list even if parameter arguments
10004 contain multiple words.
10005 + Avoid creating `nullMeta` by applying `setMeta` directly
10006 (Alexander Krotov).
10007 + Replace `sequence . map` with `mapM`.
10008 + Fix smart parsing behavior. Parsing of smart quotes and special
10009 characters can either be enabled via the `smart` language extension or
10010 the `'` and `-` export options. Smart parsing is active if either the
10011 extension or export option is enabled. Only smart parsing of special
10012 characters (like ellipses and en and em dashes) is enabled by default,
10013 while smart quotes are disabled. Previously, all smart parsing was
10014 disabled unless the language extension was enabled.
10015 + Subject full doc tree to headline transformations (Albert Krewinkel,
10016 #3695). Emacs parses org documents into a tree structure, which is
10017 then post-processed during exporting. The reader is changed to do the
10018 same, turning the document into a single tree of headlines starting
10019 at level 0.
10020 + Fix cite parsing behaviour (Herwig Stuetz). Until now, `org-ref`
10021 cite keys included special characters also at the end. This caused
10022 problems when citations occur right before colons or at the end of
10023 a sentence. With this change, all non alphanumeric characters at
10024 the end of a cite key are ignored. This also adds `,` to the list
10025 of special characters that are legal in cite keys to better mirror
10026 the behaviour of org-export.
10027 + Fix module names in haddock comments. Copy-pasting had lead to
10028 haddock module descriptions containing the wrong module names.
10029 + Recognize babel result blocks with attributes (#3706). Babel
10030 result blocks can have block attributes like captions and names.
10031 Result blocks with attributes were not recognized and were parsed
10032 as normal blocks without attributes.
10033 + Include tags in headlines. The Emacs default is to include tags in the
10034 headline when exporting. Instead of just empty spans, which contain the
10035 tag name as attribute, tags are rendered as small caps and wrapped in
10036 those spans. Non-breaking spaces serve as separators for multiple tags.
10037 + Respect export option for tags (#3713). Tags are appended to
10038 headlines by default, but will be omitted when the `tags` export option
10039 is set to nil.
10040 + Use `tag-name` attribute instead of `data-tag-name`.
10041 + Use `org-language` attribute rather than `data-org-language`.
10042 + Modified state type to be an instance of `HasLogMessages`, so
10043 `registerHeader` can issue warnings.
10044 + End footnotes after two blank lines. Footnotes can not only be
10045 terminated by the start of a new footnote or a header, but also by two
10046 consecutive blank lines.
10047 + Update emphasis border chars (#3933). The org reader was updated to
10048 match current org-mode behavior: the set of characters which are
10049 acceptable to occur as the first or last character in an org emphasis
10050 have been changed and now allows all non-whitespace chars at the
10051 inner border of emphasized text (see `org-emphasis-regexp-components`).
10053 * RST reader:
10055 + Fixed small bug in list parsing (#3432). Previously the parser didn't
10056 handle properly this case:
10058 * - a
10059 - b
10060 * - c
10061 - d
10062 + Handle multiline cells in simple tables (#1166).
10063 + Parse list table directive (Keiichiro Shikano, #3432).
10064 + Make use of `anyLineNewline` (Alexander Krotov, #3686).
10065 + Use `anyLineNewline` in `rawListItem` (Alexander Krotov, #3702).
10066 + Reorganize block parsers for ~20% faster parsing.
10067 + Fixed `..include::` directive (#3880).
10068 + Handle blank lines correctly in line blocks (Alexander Krotov, #3881).
10069 Previously pandoc would sometimes combine two line blocks separated
10070 by blanks, and ignore trailing blank lines within the line block.
10071 + Fix indirect hyperlink targets (#512).
10073 * Markdown reader:
10075 + Allow attributes in reference links to start on next line (#3674).
10076 + Parse YAML metadata in a context that sees footnotes defined in
10077 the body of the document (#1279).
10078 + When splitting pipe table cells, skip tex math (#3481).
10079 You might have a `|` character inside math. (Or for that matter
10080 something that the parser might mistake for raw HTML.)
10081 + Treat span with class `smallcaps` as SmallCaps.
10082 This allows users to specify small caps in Markdown this way:
10083 `[my text]{.smallcaps}` (#1592).
10084 + Fixed internal header links (#2397).
10085 This patch also adds `shortcut_reference_links` to the list
10086 of mmd extensions.
10087 + Treat certain environments as inline
10088 when they occur without space surrounding them (#3309, #2171).
10089 E.g. equation, math. This avoids incorrect vertical space
10090 around equations.
10091 + Optimized `nonindentSpaces`. Makes the benchmark go from 40 to 36 ms.
10092 + Allow latex macro definitions indented 1-3 spaces.
10093 Previously they only worked if nonindented.
10094 + Improved parsing of indented raw HTML blocks (#1841).
10095 Previously we inadvertently interpreted indented HTML as
10096 code blocks. This was a regression. We now seek to determine the
10097 indentation level of the contents of an HTML block, and (optionally)
10098 skip that much indentation. As a side effect, indentation may be
10099 stripped off of raw HTML blocks, if `markdown_in_html_blocks` is
10100 used. This is better than having things interpreted as indented
10101 code blocks.
10102 + Fixed smart quotes after emphasis (#2228). E.g. in `*foo*'s 'foo'`.
10103 + Warn for notes defined but not used (#1718).
10104 + Use `anyLineNewline` (Alexander Krotov).
10105 + Interpret YAML metadata as Inlines when possible (#3755). If
10106 the metadata field is all on one line, we try to interpret it as
10107 Inlines, and only try parsing as Blocks if that fails. If it
10108 extends over one line (including possibly the `|` or `>` character
10109 signaling an indented block), then we parse as Blocks. This was
10110 motivated by some German users finding that `date: '22. Juin 2017'`
10111 got parsed as an ordered list.
10112 + Fixed spurious parsing as citation as reference def (#3840).
10113 We now disallow reference keys starting with `@` if the
10114 `citations` extension is enabled.
10115 + Parse `-@roe` as suppress-author citation (pandoc-citeproc#237).
10116 Previously only `[-@roe]` (with brackets) was recognized as
10117 suppress-author, and `-@roe` was treated the same as `@roe`.
10118 + Fixed parsing of fenced code after list when there is no intervening
10119 blank line (#3733).
10120 + Allow raw latex commands starting with `\start` (#3558). Previously
10121 these weren't allowed because they were interpreted as starting
10122 ConTeXt environments, even without a corresponding `\stop`...
10123 + Added `inlines`, `inlines1`.
10124 + Require nonempty alt text for `implicit_figures` (#2844).
10125 A figure with an empty caption doesn't make sense.
10126 + Removed texmath macro material; now all this is handled
10127 in the LaTeX reader functions.
10128 + Fixed bug with indented code following raw LaTeX (#3947).
10130 * LaTeX reader:
10132 + Rewrote LaTeX reader with proper tokenization (#1390,
10133 #2118, #3236, #3779, #934, #982). This rewrite is primarily
10134 motivated by the need to get macros working properly. A side benefit
10135 is that the reader is significantly faster. We now tokenize the
10136 input text, then parse the token stream. Macros modify the token
10137 stream, so they should now be effective in any context, including
10138 math. Thus, we no longer need the clunky macro processing
10139 capacities of texmath.
10140 + Parse `\,` to `\8198` (six-per-em space) (Henri Werth).
10141 + Allow `\newcommand\foo{blah}` without braces.
10142 + Support `\lstinputlisting` (#2116).
10143 + Issue warnings when skipping unknown latex commands (#3392).
10144 + Include contents of `\parbox`.
10145 + Allow `\hspace` and `\vspace` to count as raw block or inline.
10146 Previously we would refuse to parse anything as raw inline if
10147 it was in the `blockCommands` list. Now we allow exceptions
10148 if they're listed under ignoreInlines in inlineCommands.
10149 This should make it easier e.g. to include an `\hspace`
10150 between two side-by-side raw LaTeX tables.
10151 + Don't drop contents of `\hypertarget`.
10152 + Handle spaces before `\cite` arguments.
10153 + Allow newpage, clearpage, pagebreak in inline contexts as well as
10154 block contexts (#3494).
10155 + Treat `{{xxx}}` the same as `{xxx}` (#2115).
10156 + Use `pMacroDefinition` in macro (for more direct parsing).
10157 Note that this means that `macro` will now parse one
10158 macro at a time, rather than parsing a whole group together.
10159 + Fixed failures on `\ref{}`, `\label{}` with `+raw_tex`. Now these
10160 commands are parsed as raw if `+raw_tex`; otherwise, their argument
10161 is parsed as a bracketed string.
10162 + Don't crash on empty `enumerate` environment (#3707).
10163 + Handle escaped `&` inside table cell (#3708).
10164 + Handle block structure inside table cells (#3709). `minipage` is no
10165 longer required.
10166 + Handle some width specifiers on table columns (#3709). Currently
10167 we only handle the form `0.9\linewidth`. Anything else would have
10168 to be converted to a percentage, using some kind arbitrary assumptions
10169 about line widths.
10170 + Make sure `\write18` is parsed as raw LaTeX. The change is in the
10171 LaTeX reader's treatment of raw commands, but it also affects the
10172 Markdown reader.
10173 + Fixed regression with starred environment names (#3803).
10174 + Handle optional args in raw `\titleformat` (#3804).
10175 + Improved heuristic for raw block/inline. An unknown command at the
10176 beginning of the line that could be either block or inline is
10177 treated as block if we have a sequence of block commands followed by
10178 a newline or a `\startXXX` command (which might start a raw ConTeXt
10179 environment).
10180 + Don't remove macro definitions from the output, even if
10181 `Ext_latex_macros` is set, so that macros will be applied.
10182 Since they're only applied to math in Markdown, removing the macros
10183 can have bad effects. Even for math macros, keeping them should be
10184 harmless.
10185 + Removed `macro`. It is no longer necessary, since the
10186 `rawLaTeXBlock` parser will parse macro definitions. This also avoids
10187 the need for a separate `latexMacro` parser in the Markdown reader.
10188 + Use `label` instead of `data-label` for label in caption (#3639).
10189 + Fixed space after `\figurename` etc.
10190 + Resolve references to section numbers.
10191 + Fix `\let\a=0` case, with single character token.
10192 + Allow `@` as a letter in control sequences. `@` is commonly used
10193 in macros using `\makeatletter`. Ideally we'd make the tokenizer
10194 sensitive to `\makeatletter` and `\makeatother`, but until then this
10195 seems a good change.
10196 + Track header numbers and correlate with labels.
10197 + Allow `]` inside group in option brackets (#3857).
10198 + lstinline with braces can be used (verb cannot be used with braces)
10199 (Marc Schreiber, #3535).
10200 + Fix keyval function: pandoc did not parse options in braces correctly
10201 (Marc Schreiber, #3642).
10202 + When parsing raw LaTeX commands, include trailing space (#1773).
10203 Otherwise things like `\noindent foo` break and turn into
10204 `\noindentfoo`. Affects `-f latex+raw_tex` and `-f markdown` (and other
10205 formats that allow `raw_tex`).
10206 + Don't treat "..." as Quoted (#3958). This caused quotes to be omitted in
10207 `\texttt` contexts.
10208 + Add tests for existing `\includegraphics` behaviour (Ben Firshman).
10209 + Allow space before `=` in bracketd options (Ben Firshman).
10210 + Be more forgiving in parsing command options. This was needed, for
10211 example, to make some minted options work.
10212 + Strip off quotes in `\include` filenames.
10214 * Added `Text.Pandoc.CSV`, simple (unexported) CSV parser.
10216 * `Text.Pandoc.PDF`:
10218 + Got `--resource-path` working with PDF output (#852).
10219 + Fetch images when generating PDF via context (#3380).
10220 To do this, we create the temp directory as a subdirectory
10221 of the working directory. Since context mk IV by default looks
10222 for images in the parent directory, this works.
10223 + Use `report` instead of `warn`, make it sensitive to verbosity settings.
10224 + Use `fillMediaBag` and `extractMedia` to extract media to temp dir.
10225 This reduces code duplication.
10226 + `html2pdf`: use stdin instead of intermediate HTML file
10227 + Removed useless `TEXINPUTS` stuff for `context2pdf`. mkiv context
10228 doesn't use `TEXINPUTS`.
10230 * `Text.Pandoc.Pretty`:
10232 + Simplified definition of `realLength`.
10233 + Don't error for blocks of size < 1. Instead, resize to 1 (see #1785).
10235 * `Text.Pandoc.MIME`:
10237 + Use `application/javascript` (not `application/x-javascript`).
10238 + Added `emf` to mimeTypes with type `application/x-msmetafile` (#1713).
10240 * `Text.Pandoc.ImageSize`:
10242 + Improve SVG image size code (Marc Schreiber, #3580).
10243 + Make `imageSize` recognize basic SVG dimensions (Mauro Bieg, #3462).
10245 * Use `Control.Monad.State.Strict` throughout. This gives 20-30% speedup
10246 and reduction of memory usage in most of the writers.
10248 * Use `foldrWithKey` instead of deprecated `foldWithKey`.
10250 * `Text.Pandoc.SelfContained`:
10252 + Fixed problem with embedded fonts (#3629).
10253 + Refactored getData from `getDataURI` in `SelfContained`.
10254 + Don't use data URIs for script or style (#3423). Instead, just use
10255 script or style tags with the content inside. The old method with
10256 data URIs prevents certain optimizations outside pandoc. Exception:
10257 data URIs are still used when a script contains `</script>` or a
10258 style contains `</`.
10259 + SelfContained: Handle URL inside material retrieved from a URL
10260 (#3629). This can happen e.g. with an @import of a google web font.
10261 (What is imported is some CSS which contains an url reference
10262 to the font itself.) Also, allow unescaped pipe (|) in URL.
10263 + Load resources from `data-src` (needed for lazy loading in
10264 reveal.js slide shows).
10265 + Handle `data-background-image` attribute on section (#3979).
10267 * `Text.Pandoc.Parsing`:
10269 + Added `indentWith` (Alexander Krotov, #3687).
10270 + Added `stateCitations` to `ParserState`.
10271 + Removed `stateChapters` from `ParserState`.
10272 + In `ParserState`, make `stateNotes'` a Map, add `stateNoteRefs`.
10273 + Added `gobbleSpaces` and `gobbleAtMostSpaces`.
10274 + Adjusted type of `insertIncludedFile` so it can be used with token
10275 parser.
10276 + Replace old texmath macro stuff from Parsing. Use Macro from
10277 Text.Pandoc.Readers.LaTeX.Types instead.
10278 + Export `insertIncludedFile`.
10279 + Added `HasLogMessages`, `logMessage`, `reportLogMessages` (#3447).
10280 + Replace partial with total function (Albert Krewinkel).
10281 + Introduce `HasIncludeFiles` type class (Albert Krewinkel). The
10282 `insertIncludeFile` function is generalized to work with all parser
10283 states which are instances of that class.
10284 + Add `insertIncludedFilesF` which returns F blocks (Albert Krewinkel).
10285 The `insertIncludeFiles` function was generalized and renamed
10286 to `insertIncludedFiles'`; the specialized versions are based on that.
10287 + `many1Till`: Check for the end condition before parsing (Herwig
10288 Stuetz). By not checking for the end condition before the first
10289 parse, the parser was applied too often, consuming too much of the
10290 input. This only affects `many1Till p end` where `p` matches on a
10291 prefix of `end`.
10292 + Provide `parseFromString` (#3690). This is a version of
10293 `parseFromString` specialied to ParserState, which resets
10294 `stateLastStrPos` at the end. This is almost always what we want.
10295 This fixes a bug where `_hi_` wasn't treated as emphasis in the
10296 following, because pandoc got confused about the position of the
10297 last word: `- [o] _hi_`.
10298 + Added `takeP`, `takeWhileP` for efficient parsing of `[Char]`.
10299 + Fix `blanklines` documentation (Alexander Krotov, #3843).
10300 + Give less misleading line information with `parseWithString`.
10301 Previously positions would be reported past the end of the chunk.
10302 We now reset the source position within the chunk and report
10303 positions "in chunk."
10304 + Add `anyLineNewline` (Alexander Krotov).
10305 + Provide shared F monad functions for Markdown and Org readers
10306 (Albert Krewinkel). The `F` monads used for delayed evaluation
10307 of certain values in the Markdown and Org readers are based on a
10308 shared data type capturing the common pattern of both `F` types.
10309 + Add `returnF` (Alexander Krotov).
10310 + Avoid parsing `Notes:**` as a bare URI (#3570). This avoids parsing
10311 bare URIs that start with a scheme + colon + `*`, `_`, or `]`.
10312 + Added `readerAbbreviations` to `ParserState`. Markdown reader
10313 now consults this to determine what is an abbreviation.
10314 + Combine grid table parsers (Albert Krewinkel, #3638). The grid table
10315 parsers for markdown and rst was combined into one single
10316 parser `gridTable`, slightly changing parsing behavior of both
10317 parsers: (1) The markdown parser now compactifies block content
10318 cell-wise: pure text blocks in cells are now treated as paragraphs
10319 only if the cell contains multiple paragraphs, and as plain blocks
10320 otherwise. Before, this was true only for single-column tables. (2)
10321 The rst parser now accepts newlines and multiple blocks in header
10322 cells.
10323 + Generalize tableWith, gridTableWith (Albert Krewinkel).
10324 The parsing functions `tableWith` and `gridTableWith` are generalized
10325 to work with more parsers. The parser state only has to be an
10326 instance of the `HasOptions` class instead of requiring a concrete
10327 type. Block parsers are required to return blocks wrapped into a
10328 monad, as this makes it possible to use parsers returning results
10329 wrapped in `Future`s.
10331 * `Text.Pandoc.Shared`:
10333 + Simplify `toRomanNumeral` using guards (Alexander Krotov, #3445)
10334 + `stringify`: handle Quoted better (#3958). Previously we were losing
10335 the quotation marks in Quoted elements.
10337 * `Text.Pandoc.Writers.Shared`:
10339 + Export `metaToJSON'`, `addVariablesToJSON` (#3439).
10340 This allows us to add the variables AFTER using the metadata
10341 to generate a YAML header (in the Markdown writer).
10342 + Added `unsmartify` (previously in RST writer).
10343 Undo literal double curly quotes. Previously we left these.
10344 + Generalize type of `metaToJSON` so it can take a Text. Previously a
10345 String was needed as argument; now any ToJSON instance will do.
10346 + Added `gridTable` (previously in Markdown writer).
10347 + `gridTable`: Refactored to use widths in chars.
10348 + `gridTable`: remove unnecessary extra space in cells.
10349 + Fixed `addVariablesToJSON`. It was previously not allowing multiple
10350 values to become lists.
10351 + Pipe tables: impose minimum cell size (see #3526).
10354### Default template changes
10356 * HTML templates (including EPUB and HTML slide show templates):
10358 + Make default.html5 polyglot markup conformant (John Luke Bentley,
10359 #3473). Polyglot markup is HTML5 that is also valid XHTML. See
10360 <https://www.w3.org/TR/html-polyglot>. With this change, pandoc's
10361 html5 writer creates HTML that is both valid HTML5 and valid XHTML.
10362 + Regularized CSS in html/epub/html slide templates (#3485).
10363 All templates now include `code{white-space: pre-wrap}`
10364 and CSS for `q` if `--html-q-tags` is used. Previously some templates
10365 had `pre` and others `pre-wrap`; the `q` styles were only sometimes
10366 included.
10367 + CSS for `.smallcaps`, (Mauro Bieg, #1592)
10368 + `default.revealjs`: make `history` default to true.
10369 + `default.revealjs`: use lazy loading (#2283).
10370 + `default.revealjs`: add `mathjax` variable and some conditional code
10371 to use the MathJaX plugin.
10372 + `default.slidy` uses `https` instead of `http` (ickc, #3848).
10373 + `default.dzslides`: Load Google Font using HTTPS by default
10374 (Yoan Blanc).
10376 * DocBook5 template: Use `lang` and `subtitle` variables (Jens Getreu,
10377 #3855).
10379 * LaTeX/Beamer template:
10381 + Combine LaTeX/Beamer templates (Andrew Dunning, #3878).
10382 `default.beamer` has been removed; beamer now uses the
10383 `default.latex` template. Beamer-specific parts are conditional
10384 on the `beamer` variable set by the writer. Note that
10385 `pandoc -D beamer` will return this (combined) template.
10386 + Use `xcolor` for `colorlinks` option (Andrew Dunning, #3877).
10387 Beamer loads `xcolor` rather than `color`, and thus the
10388 `dvipsnames` option doesn't take effect. This also provides a wider
10389 range of colour selections with the `svgnames` option.
10390 + Use starred versions of `xcolor` names (Andrew Dunning).
10391 Prevents changes to documents defined using the `dvipsnames` list (e.g.
10392 `Blue` gives a different result with svgnames enabled).
10393 + Load `polyglossia` after header-includes (#3898). It needs to be
10394 loaded as late as possible.
10395 + Use `unicode-math` (Vaclav Haisman). Use `mathspec` with only
10396 XeLaTeX on request.
10397 + Don't load `fontspec` before `unicode-math` (over there).
10398 The `unicode-math` package loads `fontspec` so explicit loading of
10399 `fontspec` before `unicode-math` is not necessary.
10400 + Use `unicode-math` by default in default.latex template. mathspec will
10401 be used in xelatex if the `mathspec` variable is set; otherwise
10402 unicode-math will be used (Václav Haisman).
10403 + Use `dvipsnames` options when `colorlinks` specified (otherwise
10404 we get an error for `maroon`) (Thomas Hodgson).
10405 + Added beamer `titlegraphic` and `logo` variables (Thomas Hodgson).
10406 + Fix typo in fix for notes in tables (#2378, zeeMonkeez).
10407 + Fix `hyperref` options clash (Andrew Dunning, #3847) Avoids an options
10408 clash when loading a package (e.g. `tufte-latex`) that uses
10409 `hyperref` settings different from those in the template.
10410 + Add `natbiboptions` variable (#3768).
10411 + Fix links inside captions in LaTeX output with links-as-notes
10412 (Václav Haisman, #3651). Declare our redefined `\href` robust.
10413 + Load `parskip` before `hyperref` (Václav Haisman, #3654).
10414 + Allow setting Japanese fonts when using LuaLaTeX (Václav Haisman,
10415 #3873). by using the `luatexja-fontspec` and `luatexja-preset`
10416 packages. Use existing `CJKmainfont` and `CJKoptions` template
10417 variables. Add `luatexjafontspecoptions` for `luatexja-fontspec`
10418 and `luatexjapresetoptions` for `luatexja-preset`.
10419 + Added `aspectratio` variable to beamer template (Václav Haisman,
10420 #3723).
10421 + Modified template.latex to fix XeLaTex being used with tables
10422 (lwolfsonkin, #3661). Reordered `lang` variable handling to
10423 immediately before `bidi`.
10425 * ConTeXt template: Improved font handling: `simplefonts` is now
10426 obsolete in ConTeXt (Pablo Rodríguez).
10429### Documentation improvements
10431 * MANUAL.txt:
10433 + Add URL for Prince HTML > PDF engine (Ian, #3919).
10434 + Document that content above slide-level will be omitted in
10435 slide shows. See #3460, #2265.
10436 + Explain `--webtex` SVG url (Mauro Bieg, #3471)
10437 + Small clarification in YAML metadata section.
10438 + Document that html4 is technically XHTML 1.0 transitional.
10439 + Remove refs to highlighting-kate (#3672).
10440 + Document ibooks specific epub metadata.
10441 + Clarify that mathml is used for ODT math.
10442 + Mention limitations of Literate Haskell Support (#3410,
10443 Joachim Breitner).
10444 + Add documentation of limitations of grid tables (Stephen
10445 McDowell, #3864).
10446 + Clarify that meta-json contains transformed values (Jakob Voß,
10447 #3491) Make clear that template variable `meta-json` does not
10448 contain plain text values or JSON output format but field values
10449 transformed to the selected output format.
10451 * COPYRIGHT:
10453 + Clarify that templates are dual-licensed.
10454 + Clarify that pandoc-types is BSD3 licensed.
10455 + List new files not written by jgm (Albert Krewinkel).
10456 + Update dates in copyright notices (Albert Krewinkel). This follows
10457 the suggestions given by the FSF for GPL licensed software.
10458 <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
10460 * INSTALL.md:
10462 + Improved instructions for tests with patterns.
10463 + Put RPM-based distros on separate point (Mauro Bieg, #3449)
10465 * CONTRIBUTING.md:
10467 + Fixed typos (Wandmalfarbe, #3479).
10468 + Add "ask on pandoc-discuss" (Mauro Bieg).
10470 * Add lua filter documentation in `doc/lua-filters.md`. Note that the
10471 end of this document is autogenerated from `data/pandoc.lua`
10472 using `make doc/lua-filters.md`, which uses `tools/ldoc.ltp`
10473 (Albert Krewinkel).
10475 * Add `doc/filters.md`. This is the old scripting tutorial from
10476 the website.
10478 * Add `doc/using-the-pandoc-api.md` (#3289). This gives an introduction
10479 to using pandoc as a Haskell library.
10482### Build infrastructure improvements
10484 * Removed `data/templates` submodule. Templates are now a subtree
10485 in `data/templates`. This removes the need to do `git submodule
10486 update`.
10488 * Renamed `tests` -> `test`.
10490 * Remove `https` flag. Always build with HTTPS support.
10492 * Use `file-embed` instead of `hsb2hs` to embed data files when
10493 `embed_data_files` flag is set. `file-embed` gives us better dependency
10494 tracking: if a data file changes, ghc/stack/cabal know to recompile
10495 the Data module. This also removes `hsb2hs` as a build dependency.
10497 * Add `custom-setup` stanza to pandoc, lowercase field names.
10499 * Add `static` Cabal flag.
10501 * Name change OSX -> MacOS. Add a -MacOS suffix to mac package rather
10502 than -OSX. Changed local names from osx to macos.
10504 * make_macos_package.sh - Use strip to reduce executable size.
10506 * Revised binary linux package. Now a completely static executable
10507 is created, using Docker and alpine. We create both a deb and a
10508 tarball. The old `deb` directory has been replaced with a `linux`
10509 directory. Running `make` in the `linux` directory should
10510 perform the build, putting the binary packages in `artifacts/`.
10512 * `linux/control.in`: add `Replaces:`, so existing pandoc-citeproc and
10513 pandoc-data packages will be uninstalled; this package provides
10514 both (#3822). Add latex packages as 'suggested', update
10515 description.
10517 * Remove cpphs build requirement -- it is no longer needed.
10519 * Replaced `{deb,macos,windows}/stack.yaml` with `stack.pkg.yaml`.
10521 * Name change OSX -> macOS (ickc, #3869).
10523 * Fix casing of Linux, UNIX, and Windows (ickc).
10525 * `.travis.yml`: create a source dist and do cabal build and test there.
10526 That way we catch errors due to files missing from the data
10527 section of pandoc.cabal.
10529 * Makefile:
10531 + Split `make haddock` from `make full`.
10532 + Add BRANCH variable for winpkg.
10533 + Add `lint` target.
10534 + Improve `make full`. Disable optimizations.
10535 Build everything, inc. trypandoc and benchmarks. Use parallel build.
10536 + Allow `make test` to take `TESTARGS`.
10538 * Added new command tests (`Tests.Command`), using small text files
10539 in `test/command/`. Any files added in this directory will be treated
10540 as shell tests (see smart.md for an example). This makes it very easy
10541 to add regression tests etc.
10543 * Test fixes so we can find data files. In old tests & command tests,
10544 we now set the environment variable `pandoc_datadir`. In lua tests,
10545 we set the datadir explicitly.
10547 * Refactored `compareOutput` in docx writer test.
10549 * Consolidated some common functions in `Tests.Helper`.
10551 * Small change to unbalanced bracket test to speed up test suite.
10553 * Speed up Native writer quickcheck tests.
10555 * Use tasty for tests rather than test-framework.
10557 * Add simple Emacs mode to help with Pandoc templates editing.
10558 (Václav Haisman, #3889). `tools/pandoc-template-mode.el`
10561## pandoc 1.19.2.4 (2017-09-10)
10563 * Add dependencies on texmath and skylighting to the executable.
10564 This is needed for dependency version numbers to be available,
10565 with Cabal > 2.
10567## pandoc 1.19.2.3 (2017-09-09)
10569 * Add CPP to Setup.hs so it works with Cabal >= 2 and < 2.
10571## pandoc 1.19.2.2 (2017-09-08)
10573 * Fix build with GHC 8.2.1 (#3876, Peter Simons). Setup.hs does not
10574 compile with Cabal 2.x, so we require an earlier version via
10575 setup-depends. The following packages need newer versions with
10576 GHC 8.2.1 and had their constraints relaxed accordingly:
10577 executable-path, process, syb, and time.
10579## pandoc 1.19.2.1 (2017-01-31)
10581 * Require skylighting >= 0.1.1.4.
10582 * Adjust test output for skylighting version.
10583 * Relax upper bounds on blaze-html and blaze-markup.
10585## pandoc 1.19.2 (2017-01-29)
10587 * Use skylighting library instead of highlighting-kate for syntax
10588 highlighting. Skylighting is faster and more accurate (#3363).
10589 Later we'll be able to add features like warning messages, dynamic
10590 loading of xml syntax definitions, and dynamic loading of themes.
10592 * Added a new highlight style, `breezeDark`.
10594 * Text.Pandoc.Highlighting: Update list of `listings` languages (#3374).
10595 This allows more languages to be used when using the `--listings`
10596 option.
10598 * OpenDocument writer:
10600 + Small refactoring. Removed separate 'parent' parameter in paraStyle.
10601 + Don't profilerate text styles unnecessarily (#3371).
10602 This change makes the writer create only as many temporary
10603 text styles as are absolutely necessary. It also consolidates
10604 adjacent nodes with the same style.
10606 * Org reader (Albert Krewinkel):
10608 + Allow short hand for single-line raw blocks (Albert Krewinkel,
10609 #3366). Single-line raw blocks can be given via `#+FORMAT: raw line`,
10610 where `FORMAT` must be one of `latex`, `beamer`, `html`, or `texinfo`.
10611 + Accept org-ref citations followed by commas (Albert Krewinkel).
10612 Bugfix for an issue which, whenever the citation was immediately
10613 followed by a comma, prevented correct parsing of org-ref citations.
10614 + Ensure emphasis markup can be nested. Nested emphasis markup (e.g.
10615 `/*strong and emphasized*/`) was interpreted incorrectly in that the
10616 inner markup was not recognized.
10617 + Remove pipe char irking the haddock coverage tool (Albert Krewinkel).
10619 * Docx reader: Empty header should be list of lists (Jesse Rosenthal).
10620 In the past, the docx reader wrote an empty header as an empty list. It
10621 should have the same width as a row (and be filled with empty cells).
10623 * MediaWiki reader:
10625 + Improved handling of display math (#3362). Sometimes display math is
10626 indented with more than one colon. Previously we handled these cases
10627 badly, generating definition lists and missing the math.
10628 + Fix quotation mark parsing (#3336, tgkokk). Change MediaWiki reader's
10629 behavior when the smart option is parsed to match other readers'
10630 behavior.
10632 * Markdown reader:
10634 + Fixed `-f markdown_github-hard_line_breaks+escaped_line_breaks`
10635 (#3341). Previously this did not properly enable escaped line breaks.
10636 + Disallow space between inline code and attributes (#3326, #3323,
10637 Mauro Bieg).
10639 * DocBook5 writer: make id attribute xml:id, fixes #3329 (#3330, Mauro Bieg).
10641 * Added some test cases for ODT reader (#3306, #3308, Hubert Plociniczak).
10643 * LaTeX writer: allow tables with empty cells to count as "plain."
10644 This addresses a problem of too-wide tables when empty cells
10645 are used. Thanks to Joost Kremers for reporting the issue.
10647 * Org writer: prefix footnote numbers with `fn:` (Albert Krewinkel).
10648 Unprefixed numbers where used by older org-mode versions, but are no
10649 longer supported.
10651 * HTML writer: don't process pars with empty RawInline, (#1040, #3327,
10652 Mauro Bieg).
10654 * Markdown writer: Fix display math with `--webtex` (#3298).
10656 * Fix sample.lua so it properly handles raw blocks/inlines (#3358,
10657 bumper314).
10659 * Templates:
10661 + default.latex: Moved geometry after hyperref (Václav Haisman).
10662 Otherwise PDF sizes can be wrong in some circumstances.
10663 + Copied a few changes from default.latex to default.beamer
10664 (Wandmalfarbe).
10665 + default.latex, default.beamer: Changed position of `\VerbatimNotes`
10666 and `fancyvrb`. This fixes hyperlinks on footnotes in documents
10667 that contain verbatim in notes (#3361). (Note: the beamer template
10668 was updated to match the LaTeX template, but at this point verbatim
10669 in notes seems not to work in beamer.)
10670 + default.latex: Allow passing `microtypeoptions` to microtype
10671 (Václav Haisman).
10672 + default.latex: Add hyphen option to url package.
10673 + default.docbook5: Fix namespace declarations (Mauro Bieg).
10675 * Moved `make_osx_package.sh` to `osx/` directory.
10677 * Travis continuous integration:
10679 + Fix false positives with dist build.
10680 + Speed improvements (Kolen Cheung, #3304, #3357).
10682 * MANUAL.txt:
10684 + Clarify that blank space is needed around footnotes (#3352).
10685 + Fixed typo (#3351, Alexey Rogechev).
10686 + Note that `--wrap=auto` does not work in HTML output.
10687 + Default `--columns` width is 72, not 80.
10688 + Fixed broken links (#3316, Kolen Cheung).
10689 + Document usage of `@*` in nocite section (#3333, John Muccigrosso).
10691 * INSTALL.md:
10693 + Indent code so it's properly formatted (#3335, Bheesham Persaud).
10694 + Added instructions for extracting binary from OSX, Windows packages.
10696 * CONTRIBUTING.md: Describe labels currently used in issue tracker
10697 (Albert Krewinkel). The labels have changed over time, the list of
10698 labels is updated to reflect the current set of labels used in the
10699 issue tracker.
10701 * Rearrange and extend badges in README (Albert Krewinkel, #3354)
10703 * Bumped version bounds for dependencies.
10706## pandoc 1.19.1 (2016-12-10)
10708 * Set `PANDOC_VERSION` environment variable for filters (#2640).
10709 This allows filters to check the pandoc version that produced
10710 the JSON they are receiving.
10712 * Docx reader: Ensure one-row tables don't have header (#3285,
10713 Jesse Rosenthal). Tables in MS Word are set by default to have
10714 special first-row formatting, which pandoc uses to determine whether
10715 or not they have a header. This means that one-row tables will, by
10716 default, have only a header -- which we imagine is not what people
10717 want. This change ensures that a one-row table is not understood to
10718 be a header only. Note that this means that it is impossible to
10719 produce a header-only table from docx, even though it is legal
10720 pandoc. But we believe that in nearly all cases, it will be an
10721 accidental (and unwelcome) result
10723 * HTML reader:
10725 + Fixed some bad regressions in HTML table parser (#3280).
10726 This regression leads to the introduction of empty rows
10727 in some circumstances.
10728 + Understand `style=width:` as well as `width` in `col` (#3286).
10730 * RST reader:
10732 + Print warnings when keys, substitition, notes not found.
10733 Previously the parsers failed and we got raw text. Now we get a
10734 link with an empty URL, or empty inlines in the case of a note or
10735 substitution.
10737 + Fix hyperlink aliases (#3283).
10739 * Man writer: Ensure that periods are escaped at beginning of line
10740 (#3270).
10742 * LaTeX writer: Fix unnumbered headers when used with `--top-level`
10743 (#3272, Albert Krewinkel). Fix interaction of top-level
10744 divisions `part` or `chapter` with unnumbered headers when
10745 emitting LaTeX. Headers are ensured to be written using
10746 stared commands (like `\subsection*{}`).
10748 * LaTeX template: use comma not semicolon to separate keywords for
10749 `pdfkeywords`. Thanks to Wandmalfarbe.
10751 * Markdown writer: Fixed incorrect word wrapping (#3277).
10752 Previously pandoc would sometimes wrap lines too early due to
10753 this bug.
10755 * Text.Pandoc.Pretty: Added `afterBreak` [API change]. This makes it
10756 possible to insert escape codes for content that needs escaping at the
10757 beginning of a line.
10759 * Removed old MathMLInHTML.js from 2004, which should no longer
10760 be needed for MathML with modern browsers.
10762 * Fixed tests with dynamic linking (#2709).
10764 * Makefile: Use stack instead of cabal for targets. This is just
10765 a convenience for developers.
10767 * Fixed bash completion of filenames with space (#2749).
10769 * MANUAL: improved documentation on how to create a custom
10770 `reference.docx`.
10772 * Fix minor spelling typos in the manual (#3273, Anthony Geoghegan)
10774## pandoc 1.19 (2016-12-01)
10776 * Changed resolution of filter paths.
10778 + We now first treat the argument of `--filter` as a full (absolute
10779 or relative) path, looking for a program there. If it's found, we
10780 run it.
10781 + If not, and if it is a simple program name or a relative path, we
10782 try resolving it relative to `$DATADIR/filters`.
10783 + If this fails, then we treat it as a program name and look in the
10784 user's PATH.
10785 + Removed a hardcoded '/' that may have caused problems with
10786 Windows paths.
10788 Previously if you did `--filter foo` and you had `foo` in your path and
10789 also an executable `foo` in your working directory, the one in the path
10790 would be used. Now the one in the working directory is used.
10792 In addition, when you do `--filter foo/bar.hs`, pandoc will now find a
10793 filter `$DATADIR/filters/foo/bar.hs` -- assuming there isn't a
10794 `foo/bar.hs` relative to the working directory.
10796 * Allow `file://` URIs as arguments (#3196). Also improved default reader
10797 format detection. Previously with a URI ending in .md or .markdown,
10798 pandoc would assume HTML input. Now it treats these as markdown.
10800 * Allow to overwrite top-level division type heuristics (#3258,
10801 Albert Krewinkel). Pandoc uses heuristics to determine the most
10802 reasonable top-level division type when emitting LaTeX or
10803 Docbook markup. It is now possible to overwrite this implicitly set
10804 top-level division via the `top-level-division` command line parameter.
10806 * Text.Pandoc.Options \[API changes\]:
10808 + Removed `writerStandalone` field in `WriterOptions`, made
10809 `writerTemplate` a `Maybe` value. Previously setting
10810 `writerStandalone = True` did nothing unless a template was provided
10811 in writerTemplate. Now a fragment will be generated if
10812 `writerTemplate` is `Nothing`; otherwise, the specified template
10813 will be used and standalone output generated.
10814 + `Division` has been renamed `TopLevelDivision` (#3197). The
10815 `Section`, `Chapter`, and `Part` constructors were renamed to
10816 `TopLevelSection`, `TopLevelChapter`, and
10817 `TopLevelPart`, respectively. An additional `TopLevelDefault`
10818 constructor was added, which is now also the new default value of
10819 the `writerTopLevelDivision` field in `WriterOptions`.
10821 * Improved error if they give wrong arg to `--top-level-division`.
10823 * Use new module from texmath to lookup MS font codepoints in Docx reader.
10824 Removed unexported module Text.Pandoc.Readers.Docx.Fonts. Its code now
10825 lives in texmath (0.9).
10827 * DocBook reader: Fixed xref lookup (#3243). It previously only worked
10828 when the qnames lacked the docbook namespace URI.
10830 * HTML reader:
10832 + Improved table parsing (#3027). We now check explicitly for non-1
10833 rowspan or colspan attributes, and fail when we encounter them.
10834 Previously we checked that each row had the same number of cells,
10835 but that could be true even with rowspans/colspans. And there are
10836 cases where it isn't true in tables that we can handle fine -- e.g.
10837 when a tr element is empty. So now we just pad rows with empty cells
10838 when needed.
10839 + Treat `<math>` as MathML by default unless something else is
10840 explicitly specified in xmlns. Provided it parses as MathML,
10841 of course. Also fixed default which should be to inline math if no
10842 display attribute is used.
10843 + Only treat "a" element as link if it has href (#3226). Otherwise
10844 treat as span.
10846 * Docx reader (Jesse Rosenthal):
10848 + Add a placeholder value for CHART. We wrap `[CHART]` in a
10849 `<span class="chart">`. Note that it maps to inlines because, in
10850 docx, anything in a drawing tag can be part of a larger paragraph.
10851 + Be more specific in parsing images We not only want `w:drawing`,
10852 because that could also include charts. Now we specify
10853 `w:drawing/pic:pic`. This shouldn't change behavior at all, but it's
10854 a first step toward allowing other sorts of drawing data as well.
10855 + Abstract out function to avoid code repetition.
10856 + Update tests for img title and alt (#3204).
10857 + Handle Alt text and titles in images. We use the "description" field
10858 as alt text and the "title" field as title. These can be accessed
10859 through the "Format Picture" dialog in Word.
10860 + Docx reader utils: handle empty namespace in `elemName`. Previously,
10861 if given an empty namespace `(elemName ns "" "foo")` `elemName`
10862 would output a QName with a `Just ""` namespace. This is never what
10863 we want. Now we output a `Nothing`. If someone *does* want a
10864 `Just ""` in the namespace, they can enter the QName
10865 value explicitly.
10867 * ODT reader/writer:
10869 + Inline code when text has a special style (Hubert Plociniczak). When
10870 a piece of text has a text `Source_Text` then we assume that this is
10871 a piece of the document that represents a code that needs to
10872 be inlined. Adapted the writer to also reflect that change.
10873 Previously it was just writing a 'preformatted' text using a
10874 non-distinguishable font style. Code blocks are still not recognized
10875 by the ODT reader. That's a separate issue.
10876 + Infer table's caption from the paragraph (#3224,
10877 Hubert Plociniczak). ODT's reader always put empty captions for the
10878 parsed tables. This commit
10880 1. checks paragraphs that follow the table definition
10881 2. treats specially a paragraph with a style named 'Table'
10882 3. does some postprocessing of the paragraphs that combines tables
10883 followed immediately by captions
10885 The ODT writer used the `TableCaption` style for the caption
10886 paragraph. This commit follows the OpenOffice approach which allows
10887 for appending captions to table but uses a built-in style named
10888 `Table` instead of `TableCaption`. Users of a custom `reference.odt`
10889 should change the style's name from `TableCaption` to `Table`.
10891 * ODT reader: Infer tables' header props from rows (#3199,
10892 Hubert Plociniczak). ODT reader simply provided an empty header list
10893 which meant that the contents of the whole table, even if not empty, was
10894 simply ignored. While we still do not infer headers we at least have to
10895 provide default properties of columns.
10897 * Markdown reader:
10899 + Allow reference link labels starting with `@...` if `citations`
10900 extension disabled (#3209). Example: in
10902 \[link text\]\[@a\]
10904 `link text` isn't hyperlinked because `[@a]` is parsed as
10905 a citation. Previously this happened whether or not the `citations`
10906 extension was enabled. Now it happens only if the `citations`
10907 extension is enabled.
10908 + Allow alignments to be specified in Markdown grid tables. For
10909 example,
10911 +-------+---------------+--------------------+
10912 | Right | Left | Centered |
10913 +=========:+:=================+:=============:+
10914 | Bananas | $1.34 | built-in wrapper |
10915 +-------+---------------+--------------------+
10917 + Allow Small Caps elements to be created using bracketed spans (as
10918 they already can be using HTML-syntax spans) (#3191, Kolen Cheung).
10920 * LaTeX reader:
10922 + Don't treat `\vspace` and `\hspace` as block commands (#3256).
10923 Fixed an error which came up, for example, with `\vspace` inside
10924 a caption. (Captions expect inlines.)
10925 + Improved table handling. We can now parse all of the tables emitted
10926 by pandoc in our tests. The only thing we don't get yet are
10927 alignments and column widths in more complex tables. See #2669.
10928 + Limited support for minipage.
10929 + Allow for `[]`s inside LaTeX optional args. Fixes cases like:
10930 + Handle BVerbatim from fancyvrb (#3203).
10931 + Handle hungarumlaut (#3201).
10932 + Allow beamer-style `<...>` options in raw LaTeX (also in Markdown)
10933 (#3184). This allows use of things like `\only<2,3>{my content}` in
10934 Markdown that is going to be converted to beamer.
10936 * Use pre-wrap for code in dzslides template (Nicolas Porcel). Otherwise
10937 overly long code will appear on every slide.
10939 * Org reader (Albert Krewinkel):
10941 + Respect column width settings (#3246). Table column properties can
10942 optionally specify a column's width with which it is displayed in
10943 the buffer. Some exporters, notably the ODT exporter in org-mode
10944 v9.0, use these values to calculate relative column widths. The org
10945 reader now implements the same behavior. Note that the org-mode
10946 LaTeX and HTML exporters in Emacs don't support this feature yet,
10947 which should be kept in mind by users who use the column
10948 widths parameters.
10949 + Allow HTML attribs on non-figure images (#3222). Images which are
10950 the only element in a paragraph can still be given HTML attributes,
10951 even if the image does not have a caption and is hence not a figure.
10952 The following will add set the `width` attribute of the image to
10953 `50%`:
10955 +ATTR\_HTML: :width 50%
10956 =======================
10958 \[\[file:image.jpg\]\]
10960 + Support `ATTR_HTML` for special blocks (#3182). Special
10961 blocks (i.e. blocks with unrecognized names) can be prefixed with an
10962 `ATTR_HTML` block attribute. The attributes defined in that
10963 meta-directive are added to the `Div` which is used to represent the
10964 special block.
10965 + Support the `todo` export option. The `todo` export option allows to
10966 toggle the inclusion of TODO keywords in the output. Setting this to
10967 `nil` causes TODO keywords to be dropped from headlines. The default
10968 is to include the keywords.
10969 + Add support for todo-markers. Headlines can have optional
10970 todo-markers which can be controlled via the `#+TODO`, `#+SEQ_TODO`,
10971 or `#+TYP_TODO` meta directive. Multiple such directives can be
10972 given, each adding a new set of recognized todo-markers. If no
10973 custom todo-markers are defined, the default `TODO` and `DONE`
10974 markers are used. Todo-markers are conceptually separate from
10975 headline text and are hence excluded when autogenerating
10976 headline IDs. The markers are rendered as spans and labelled with
10977 two classes: One class is the markers name, the other signals the
10978 todo-state of the marker (either `todo` or `done`).
10980 * LaTeX writer:
10982 + Use `\autocites*` when "suppress-author" citation used.
10983 + Ensure that simple tables have simple cells (#2666). If cells
10984 contain more than a single Plain or Para, then we need to set
10985 nonzero widths and put contents into minipages.
10986 + Remove invalid inlines in sections (#3218, Hubert Plociniczak).
10988 * Markdown writer:
10990 + Fix calculation of column widths for aligned multiline tables
10991 (#1911, Björn Peemöller). This also fixes excessive CPU and memory
10992 usage for tables when `--columns` is set in such a way that cells
10993 must be very tiny. Now cells are guaranteed to be big enough so that
10994 single words don't need to line break, even if this pushes the line
10995 length above the column width.
10996 + Use bracketed form for native spans when `bracketed_spans`
10997 enabled (#3229).
10998 + Fixed inconsistent spacing issue (#3232). Previously a tight bullet
10999 sublist got rendered with a blank line after, while a tight ordered
11000 sublist did not. Now we don't get the blank line in either case.
11001 + Fix escaping of spaces in super/subscript (#3225). Previously two
11002 backslashes were inserted, which gave a literal backslash.
11003 + Adjust widths in Markdown grid tables so that they match
11004 on round-trip.
11006 * Docx writer:
11008 + Give full detail when there are errors converting tex math.
11009 + Handle title text in images (Jesse Rosenthal). We already handled
11010 alt text. This just puts the image "title" into the docx
11011 "title" attr.
11012 + Fixed XML markup for empty cells (#3238). Previously the Compact
11013 style wasn't being applied properly to empty cells.
11015 * HTML writer:
11017 + Updated `renderHtml` import from blaze-html.
11019 * Text.Pandoc.Pretty:
11021 + Fixed some bugs that caused blank lines in tables (#3251). The bugs
11022 caused spurious blank lines in grid tables when we had things like
11023 `blankline $$ blankline`.
11024 + Add exported function `minOffet` \[API change\] (Björn Peemöller).
11025 + Added error message for illegal call to `block` (Björn Peemöller).
11027 * Text.Pandoc.Shared:
11029 + Put `warn` in MonadIO.
11030 + `fetchItem`: Better handling of protocol-relative URL (#2635). If
11031 URL starts with `//` and there is no "base URL" (as there would be
11032 if a URL were used on the command line), then default to http:.
11034 * Export Text.Pandoc.getDefaultExtensions \[API change\] (#3178).
11036 * In --version, trap error in `getAppUserDataDirectory` (#3241). This
11037 fixes a crash with `pandoc --version` on unusual systems with no real
11038 user (e.g. SQL Server 2016).
11040 * Added weigh-pandoc for memory usage diagnostics (#3169).
11042 * Use correct mime types for woff and woff2 (#3228).
11044 * Remove make\_travis\_yml.hs (#3235, Kolen Cheung).
11046 * changelog: Moved an item that was misplaced in the 1.17.2 section to the
11047 1.18 section where it belongs.
11049 * CONTRIBUTING.md: minor change in wording and punctuation (#3252,
11050 Kolen Cheung).
11052 * Further revisions to manual for `--version` changes (#3244).
11056## pandoc 1.18 (2016-10-26)
11058 * Added `--list-input-formats`, `--list-output-formats`,
11059 `--list-extensions`, `--list-highlight-languages`, and
11060 `--list-highlight-styles` (#3173). Removed list of highlighting
11061 languages from `--version` output. Removed list of input and output
11062 formats from default `--help` output.
11064 * Added `--reference-location=block|section|document` option
11065 (Jesse Rosenthal). This determines whether Markdown link references
11066 and footnotes are placed at the end of the document, the end of the
11067 section, or the end of the top-level block.
11069 * Added `--top-level-division=section|chapter|part` (Albert Krewinkel).
11070 This determines what a level-1 header corresponds to in LaTeX,
11071 ConTeXt, DocBook, and TEI output. The default is `section`.
11072 The `--chapters` option has been deprecated in favor of
11073 `--top-level-division=chapter`.
11075 * Added `LineBlock` constructor for `Block` (Albert Krewinkel). This
11076 is now used in parsing RST and Markdown line blocks, DocBook
11077 `linegroup`/`line` combinations, and Org-mode `VERSE` blocks.
11078 Previously `Para` blocks with hard linebreaks were used. `LineBlock`s
11079 are handled specially in the following output formats: AsciiDoc
11080 (as `[verse]` blocks), ConTeXt (`\startlines`/`\endlines`),
11081 HTML (`div` with a style), Markdown (line blocks if `line_blocks`
11082 is enabled), Org-mode (`VERSE` blocks), RST (line blocks). In
11083 other output formats, a paragraph with hard linebreaks is emitted.
11085 * Allow binary formats to be written to stdout (but not to tty) (#2677).
11086 Only works on posix, since we use the unix library to check whether
11087 output is to tty. On Windows, pandoc works as before and always requires
11088 an output file parameter for binary formats.
11090 * Changed JSON output format (Jesse Rosenthal). Previously we used
11091 generically generated JSON, but this was subject to change depending
11092 on the version of aeson pandoc was compiled with. To ensure stability,
11093 we switched to using manually written ToJSON and FromJSON
11094 instances, and encoding the API version. **Note:** pandoc filter
11095 libraries will need to be revised to handle the format change.
11096 Here is a summary of the essential changes:
11098 + The toplevel JSON format is now `{"pandoc-api-version" :
11099 [MAJ, MIN, REV], "meta" : META, "blocks": BLOCKS}`
11100 instead of `[{"unMeta": META}, [BLOCKS]]`.
11101 Decoding fails if the major and minor version numbers don't
11102 match.
11103 + Leaf nodes no longer have an empty array for their "c" value.
11104 Thus, for example, a `Space` is encoded as `{"t":"Space"}`
11105 rather than `{"t":"Space","c":[]}` as before.
11107 * Removed `tests/Tests/Arbitrary.hs` and added a `Text.Pandoc.Arbitrary`
11108 module to pandoc-types (Jesse Rosenthal). This makes it easier
11109 to use QuickCheck with pandoc types outside of pandoc itself.
11111 * Add `bracketed_spans` Markdown extension, enabled by default
11112 in pandoc `markdown`. This allows you to create a native span
11113 using this syntax: `[Here is my span]{#id .class key="val"}`.
11115 * Added `angle_brackets_escapable` Markdown extension (#2846).
11116 This is needed because github flavored Markdown has a slightly
11117 different set of escapable symbols than original Markdown;
11118 it includes angle brackets.
11120 * Export `Text.Pandoc.Error` in `Text.Pandoc` [API change].
11122 * Print highlighting-kate version in `--version`.
11124 * `Text.Pandoc.Options`:
11126 + `Extension` has new constructors `Ext_brackted_spans` and
11127 `Ext_angle_brackets_escapable` [API change].
11128 + Added `ReferenceLocation` type [API change] (Jesse Rosenthal).
11129 + Added `writerReferenceLocation` field to `WriterOptions` (Jesse
11130 Rosenthal).
11132 * `--filter`: we now check `$DATADIR/filters` for filters before
11133 looking in the path (#3127, Jesse Rosenthal, thanks to Jakob
11134 Voß for the idea). Filters placed in this directory need not
11135 be executable; if the extension is `.hs`, `.php`, `.pl`, `.js`,
11136 or `.rb`, pandoc will run the right interpreter.
11138 * For `--webtex`, replace deprecated Google Chart API by CodeCogs as
11139 default (Kolen Cheung).
11141 * Removed `raw_tex` extension from `markdown_mmd` defaults (Kolen Cheung).
11143 * Execute .js filters with node (Jakob Voß).
11145 * Textile reader:
11147 + Support `bc..` extended code blocks (#3037). Also, remove trailing
11148 newline in code blocks (consistently with Markdown reader).
11149 + Improve table parsing. We now handle cell and row attributes, mostly
11150 by skipping them. However, alignments are now handled properly.
11151 Since in pandoc alignment is per-column, not per-cell, we
11152 try to devine column alignments from cell alignments.
11153 Table captions are also now parsed, and textile indicators
11154 for thead and tfoot no longer cause parse failure. (However,
11155 a row designated as tfoot will just be a regular row in pandoc.)
11156 + Improve definition list parsing. We now allow multiple terms
11157 (which we concatenate with linebreaks). An exponential parsing
11158 bug (#3020) is also fixed.
11159 + Disallow empty URL in explicit link (#3036).
11161 * RST reader:
11163 + Use Div instead of BlockQuote for admonitions (#3031).
11164 The Div has class `admonition` and (if relevant) one of the
11165 following: `attention`, `caution`, `danger`, `error`, `hint`,
11166 `important`, `note`, `tip`, `warning`. **Note:** This will change
11167 the rendering of some RST documents! The word ("Warning", "Attention",
11168 etc.) is no longer added; that must be done with CSS or a filter.
11169 + A Div is now used for `sidebar` as well.
11170 + Skip whitespace before note (Jesse Rosenthal, #3163). RST requires a
11171 space before a footnote marker. We discard those spaces so that footnotes
11172 will be adjacent to the text that comes before it. This is in line with
11173 what rst2latex does.
11174 + Allow empty lines when parsing line blocks (Albert Krewinkel).
11176 * Markdown reader:
11178 + Allow empty lines when parsing line blocks (Albert Krewinkel).
11179 + Allow attributes on autolinks (#3183, Daniele D'Orazio).
11181 * LaTeX reader:
11183 + More robust parsing of unknown environments (#3026).
11184 We no longer fail on things like `^` inside options for tikz.
11185 + Be more forgiving of non-standard characters, e.g. `^` outside of math.
11186 Some custom environments give these a meaning, so we should try not to
11187 fall over when we encounter them.
11188 + Drop duplicate `*` in bibtexKeyChars (Albert Krewinkel)
11190 * MediaWiki reader:
11192 + Fix for unquoted attribute values in mediawiki tables (#3053).
11193 Previously an unquoted attribute value in a table row
11194 could cause parsing problems.
11195 + Improved treatment of verbatim constructions (#3055).
11196 Previously these yielded strings of alternating Code and Space
11197 elements; we now incorporate the spaces into the Code. Emphasis
11198 etc. is still possible inside these.
11199 + Properly interpret XML tags in pre environments (#3042). They are meant
11200 to be interpreted as literal text.
11202 * EPUB reader: don't add root path to data: URIs (#3150).
11203 Thanks to @lep for the bug report and patch.
11205 * Org reader (Albert Krewinkel):
11207 + Preserve indentation of verse lines (#3064). Leading spaces in verse
11208 lines are converted to non-breaking spaces, so indentation is preserved.
11209 + Ensure image sources are proper links. Image sources as those in plain
11210 images, image links, or figures, must be proper URIs or relative file
11211 paths to be recognized as images. This restriction is now enforced
11212 for all image sources. This also fixes the reader's usage of uncleaned
11213 image sources, leading to `file:` prefixes not being deleted from
11214 figure images. Thanks to @bsag for noticing this bug.
11215 + Trim verse lines properly (Albert Krewinkel).
11216 + Extract meta parsing code to module. Parsing of meta-data is well
11217 separable from other block parsing tasks. Moving into new module to
11218 get small files and clearly arranged code.
11219 + Read markup only for special meta keys. Most meta-keys should be read
11220 as normal string values, only a few are interpreted as marked-up text.
11221 + Allow multiple, comma-separated authors. Multiple authors can be
11222 specified in the `#+AUTHOR` meta line if they are given as a
11223 comma-separated list.
11224 + Give precedence to later meta lines. The last meta-line of any given
11225 type is the significant line. Previously the value of the first line
11226 was kept, even if more lines of the same type were encountered.
11227 + Read LaTeX_header as header-includes. LaTeX-specific header commands
11228 can be defined in `#+LaTeX_header` lines. They are parsed as
11229 format-specific inlines to ensure that they will only show up in LaTeX
11230 output.
11231 + Set documentclass meta from LaTeX_class.
11232 + Set classoption meta from LaTeX_class_options.
11233 + Read HTML_head as header-includes. HTML-specific head content can be
11234 defined in `#+HTML_head` lines. They are parsed as format-specific
11235 inlines to ensure that they will only show up in HTML output.
11236 + Respect `author` export option. The `author` option controls whether
11237 the author should be included in the final markup. Setting
11238 `#+OPTIONS: author:nil` will drop the author from the final meta-data
11239 output.
11240 + Respect `email` export option. The `email` option controls whether the
11241 email meta-field should be included in the final markup. Setting
11242 `#+OPTIONS: email:nil` will drop the email field from the final
11243 meta-data output.
11244 + Respect `creator` export option. The `creator` option controls whether
11245 the creator meta-field should be included in the final markup. Setting
11246 `#+OPTIONS: creator:nil` will drop the creator field from the final
11247 meta-data output. Org-mode recognizes the special value `comment` for
11248 this field, causing the creator to be included in a comment. This is
11249 difficult to translate to Pandoc internals and is hence interpreted the
11250 same as other truish values (i.e. the meta field is kept if it's
11251 present).
11252 + Respect unnumbered header property (#3095). Sections the `unnumbered`
11253 property should, as the name implies, be excluded from the automatic
11254 numbering of section provided by some output formats. The Pandoc
11255 convention for this is to add an "unnumbered" class to the header. The
11256 reader treats properties as key-value pairs per default, so a special
11257 case is added to translate the above property to a class instead.
11258 + Allow figure with empty caption (Albert Krewinkel, #3161).
11259 A `#+CAPTION` attribute before an image is enough to turn an image into
11260 a figure. This wasn't the case because the `parseFromString` function,
11261 which processes the caption value, would fail on empty values. Adding
11262 a newline character to the caption value fixes this.
11264 * Docx reader:
11266 + Use XML convenience functions (Jesse Rosenthal).
11267 The functions `isElem` and `elemName` (defined in Docx/Util.hs) make
11268 the code a lot cleaner than the original XML.Light functions, but they
11269 had been used inconsistently. This puts them in wherever applicable.
11270 + Handle anchor spans with content in headers. Previously, we would only
11271 be able to figure out internal links to a header in a docx if the
11272 anchor span was empty. We change that to read the inlines out of the
11273 first anchor span in a header.
11274 + Let headers use existing id. Previously we always generated an id for
11275 headers (since they wouldn't bring one from Docx). Now we let it use an
11276 existing one if possible. This should allow us to recurs through anchor
11277 spans.
11278 + Use all anchor spans for header ids. Previously we only used the first
11279 anchor span to affect header ids. This allows us to use all the anchor
11280 spans in a header, whether they're nested or not (#3088).
11281 + Test for nested anchor spans in header. This ensures that anchor spans
11282 in header with content (or with other anchor spans inside) will resolve
11283 to links to a header id properly.
11285 * ODT reader (Hubert Plociniczak)
11287 + Include list's starting value. Previously the starting value of
11288 the lists' items has been hardcoded to 1. In reality ODT's list
11289 style definition can provide a new starting value in one of its
11290 attributes.
11291 + Infer caption from the text following the image.
11292 Frame can contain other frames with the text boxes.
11293 + Add `fig:` to title for Image with a caption (as expected
11294 by pandoc's writers).
11295 + Basic support for images in ODT documents.
11296 + Don't duplicate text for anchors (#3143). When creating an anchor
11297 element we were adding its representation as well as the original
11298 content, leading to text duplication.
11300 * DocBook writer:
11302 + Include an anchor element when a div or span has an id (#3102).
11303 Note that DocBook does not have a class attribute, but at least this
11304 provides an anchor for internal links.
11306 * LaTeX writer:
11308 + Don't use * for unnumbered paragraph, subparagraph. The starred
11309 variants don't exist. This helps with part of #3058...it gets rid of
11310 the spurious `*`s. But we still have numbers on the 4th and 5th level
11311 headers.
11312 + Properly escape backticks in verbatim (#3121, Jesse Rosenthal).
11313 Otherwise they can cause unintended ligatures like `` ?` ``.
11314 + Handle NARRAOW NO-BREAK SPACE into LaTeX (Vaclav Zeman) as `\,`.
11315 + Don't include `[htbp]` placement for figures (#3103, Václav Haisman).
11316 This allows figure placement defaults to be changed by the user
11317 in the template.
11319 * TEI writer: remove heuristic to detect book template (Albert Krewinkel).
11320 TEI doesn't have `<book>` elements but only generic `<divN>` division
11321 elements. Checking the template for a trailing `</book>` is nonsensical.
11323 * MediaWiki writer: transform filename with underscores in images (#3052).
11324 `foo bar.jpg` becomes `foo_bar.jpg`. This was already done
11325 for internal links, but it also needs to happen for images.
11327 * ICML writer: replace partial function (!!) in table handling (#3175,
11328 Mauro Bieg).
11330 * Man writer: allow section numbers that are not a single digit (#3089).
11332 * AsciiDoc writer: avoid unnecessary use of "unconstrained" emphasis
11333 (#3068). In AsciiDoc, you must use a special form of emphasis
11334 (double `__`) for intraword emphasis. Pandoc was previously using
11335 this more than necessary.
11337 * EPUB writer: use stringify instead of plain writer for metadata
11338 (#3066). This means that underscores won't be used for emphasis,
11339 or CAPS for bold. The metadata fields will just have unadorned
11340 text.
11342 * Docx Writer:
11344 + Implement user-defined styles (Jesse Rosenthal). Divs and Spans
11345 with a `custom-style` key in the attributes will apply the corresponding
11346 key to the contained blocks or inlines.
11347 + Add ReaderT env to the docx writer (Jesse Rosenthal).
11348 + Clean up and streamline RTL behavior (Jesse Rosenthal, #3140).
11349 You can set `dir: rtl` in YAML metadata, or use `-M dir=rtl`
11350 on the command line. For finer-grained control, you can set
11351 the `dir` attribute in Div or Span elements.
11353 * Org writer (Albert Krewinkel):
11355 + Remove blank line after figure caption. Org-mode only treats an image
11356 as a figure if it is directly preceded by a caption.
11357 + Ensure blank line after figure. An Org-mode figure should be surrounded
11358 by blank lines. The figure would be recognized regardless, but images
11359 in the following line would unintentionally be treated as figures as
11360 well.
11361 + Ensure link targets are paths or URLs. Org-mode treats links as
11362 document internal searches unless the link target looks like a URL or
11363 file path, either relative or absolute. This change ensures that this
11364 is always the case.
11365 + Translate language identifiers. Pandoc and Org-mode use different
11366 programming language identifiers. An additional translation between
11367 those identifiers is added to avoid unexpected behavior. This fixes a
11368 problem where language specific source code would sometimes be output
11369 as example code.
11370 + Drop space before footnote markers (Albert Krewinkel, #3162).
11371 The writer no longer adds an extra space before footnote markers.
11373 * Markdown writer:
11375 + Don't emit HTML for tables unless `raw_html` extension is set (#3154).
11376 Emit `[TABLE]` if no suitable table formats are enabled and raw HTML
11377 is disabled.
11378 + Check for the `raw_html` extension before emitting a raw HTML block.
11379 + Abstract out note/ref function (Jesse Rosenthal).
11380 + Add ReaderT monad for environment variables (Jesse Rosenthal).
11382 * HTML, EPUB, slidy, revealjs templates: Use `<p>` instead of `<h1>` for
11383 subtitle, author, date (#3119). Note that, as a result of this change,
11384 authors may need to update CSS.
11386 * revealjs template: Added `notes-server` option
11387 (jgm/pandoc-templates#212, Yoan Blanc).
11389 * Beamer template:
11391 + Restore whitespace between paragraphs. This was
11392 a regression in the last release (jgm/pandoc-templates#207).
11393 + Added `themeoptions` variable (Carsten Gips).
11394 + Added `beamerarticle` variable. This causes the `beamerarticle`
11395 package to be loaded in beamer, to produce an article from beamer
11396 slides. (Carsten Gips)
11397 + Added support for `fontfamilies` structured variable
11398 (Artem Klevtsov).
11399 + Added hypersetup options (Jake Zimmerman).
11401 * LaTeX template:
11403 + Added dummy definition for `\institute`.
11404 This isn't a standard command, and we want to avoid a crash when
11405 `institute` is used with the default template.
11406 + Define default figure placement (Václav Haisman), since pandoc
11407 no longer includes `[htbp]` for figures. Users with custom templates
11408 will want to add this. See #3103.
11409 + Use footnote package to fix notes in tables (jgm/pandoc-templates#208,
11410 Václav Haisman).
11412 * Moved template compiling/rendering code to a separate library.
11413 `doctemplates`. This allows the pandoc templating system to be
11414 used independently.
11416 * Text.Pandoc.Error: Fix out of index error in `handleError`
11417 (Matthew Pickering). The fix is to not try to show the exact line when
11418 it would cause an out-of-bounds error as a result of included files.
11420 * Text.Pandoc.Shared: Add `linesToBlock` function (Albert Krewinkel).
11422 * Text.Pandoc.Parsing.emailAddress: tighten up parsing of email
11423 addresses. Technically `**@user` is a valid email address, but if we
11424 allow things like this, we get bad results in markdown flavors
11425 that autolink raw email addresses (see #2940). So we exclude a few
11426 valid email addresses in order to avoid these more common bad cases.
11428 * Text.Pandoc.PDF: Don't crash with nonexistent image (#3100). Instead,
11429 emit the alt text, emphasized. This accords with what the ODT writer
11430 currently does. The user will still get a warning about a nonexistent
11431 image.
11433 * Fix example in API documentation (#3176, Thomas Weißschuh).
11435 * Tell where to get tarball in INSTALL (#3062).
11437 * Rename README to MANUAL.txt and add GitHub-friendly README.md
11438 (Albert Krewinkel, Kolen Cheung).
11440 * Replace COPYING with Markdown version COPYING.md from GNU (Kolen Cheung).
11442 * MANUAL.txt:
11444 + Put note on structured vars in separate paragraph (#2148, Albert
11445 Krewinkel). Make it clearer that structured author variables require a
11446 custom template
11447 + Note that `--katex` works best with `html5` (#3077).
11448 + Fix the LaTeX and EPUB links in manual (Morton Fox).
11449 + Document `biblio-title` variable.
11451 * Improve spacing of footnotes in `--help` output (Waldir Pimenta).
11453 * Update KaTeX to v0.6.0 (Kolen Cheung).
11455 * Allow latest dependencies.
11457 * Use texmath 0.8.6.6 (#3040).
11459 * Allow http-client 0.4.30, which is the version in stackage lts.
11460 Previously we required 0.5.
11461 Remove CPP conditionals for earlier versions.
11463 * Remove support for GHC < 7.8 (Jesse Rosenthal).
11465 + Remove Compat.Monoid.
11466 + Remove an inline monad compatibility macro.
11467 + Remove Text.Pandoc.Compat.Except.
11468 + Remove directory compat.
11469 + Change constraint on mtl.
11470 + Remove unnecessary CPP condition in UTF8.
11471 + Bump base lower bound to 4.7.
11472 + Remove 7.6 build from .travis.yaml.
11473 + Bump supported ghc version in CONTRIBUTING.md.
11474 + Add note about GHC version support to INSTALL.
11475 + Remove GHC 7.6 from list of tested versions (Albert Krewinkel).
11476 + Remove TagSoup compat.
11477 + Add EOL note to time compat module. Because time 1.4 is a boot library
11478 for GHC 7.8, we will support the compatibility module as long as we
11479 support 7.8. But we should be clear about when we will no longer need
11480 it.
11481 + Remove blaze-html CPP conditional.
11482 + Remove unnecessary CPP in custom Prelude.
11484## pandoc 1.17.2 (2016-07-17)
11486 * Added Zim Wiki writer, template and tests. `zimwiki` is now
11487 a valid output format. (Alex Ivkin)
11489 * Changed email-obfuscation default to no obfuscation (#2988).
11490 + `writerEmailObfuscation` in `defaultWriterOptions` is now
11491 `NoObfuscation`.
11492 + the default for the command-line `--email-obfuscation` option is
11493 now `none`.
11495 * Docbook writer: Declare xlink namespace in Docbook5 output (Ivo Clarysse).
11497 * Org writer:
11499 + Support arbitrary raw inlines (Albert Krewinkel).
11500 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
11501 parlance) to be included as `@@format:raw foreign format text@@`.
11502 + Improve Div handling (Albert Krewinkel). Div blocks handling is
11503 changed to make the output look more like idiomatic org mode:
11504 - Div-wrapped content is output as-is if the div's attribute is the
11505 null attribute.
11506 - Div containers with an id but neither classes nor key-value pairs
11507 are unwrapped and the id is added as an anchor.
11508 - Divs with classes associated with greater block elements are
11509 wrapped in a `#+BEGIN`...`#+END` block.
11510 - The old behavior for Divs with more complex attributes is kept.
11512 * HTML writer: Better support for raw LaTeX environments (#2758).
11513 Previously we just passed all raw TeX through when MathJax
11514 was used for HTML math. This passed through too much.
11515 With this patch, only raw LaTeX environments that MathJax
11516 can handle get passed through.
11517 This patch also causes raw LaTeX environments to be treated
11518 as math, when possible, with MathML and WebTeX output.
11520 * Markdown writer: use raw HTML for simple, pipe tables with linebreaks
11521 (#2993). Markdown line breaks involve a newline, and simple and pipe
11522 tables can't contain one.
11524 * Make --webtex work with the Markdown writer (#1177).
11525 This is a convenient option for people using
11526 websites whose Markdown flavors don't provide for math.
11528 * Docx writer:
11530 + Set paragraph to FirstPara after display math (Jesse Rosenthal).
11531 We treat display math like block quotes, and apply FirstParagraph style
11532 to paragraphs that follow them. These can be styled as the user
11533 wishes. (But, when the user is using indentation, this allows for
11534 paragraphs to continue after display math without indentation.)
11535 + Use actual creation time as doc prop (Jesse Rosenthal).
11536 Previously, we had used the user-supplied date, if available, for Word's
11537 document creation metadata. This could lead to weird results, as in
11538 cases where the user post-dates a document (so the modification might be
11539 prior to the creation). Here we use the actual computer time to set the
11540 document creation.
11542 * LaTeX writer:
11544 + Don't URI-escape image source (#2825). Usually this is a local file,
11545 and replacing spaces with `%20` ruins things.
11546 + Allow 'standout' as a beamer frame option (#3007).
11547 `## Slide title {.standout}`.
11549 * RST reader: Fixed links with no explicit link text. The link
11550 `` `<foo>`_ `` should have `foo` as both its link text and its URL.
11551 See RST spec at <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases>
11552 Closes Debian #828167 -- reported by Christian Heller.
11554 * Textile reader:
11556 + Fixed attributes (#2984). Attributes can't be followed by
11557 a space. So, `_(class)emph_` but `_(noclass) emph_`.
11558 + Fixed exponential parsing bug (#3020).
11559 + Fix overly aggressive interpretation as images (#2998).
11560 Spaces are not allowed in the image URL in textile.
11562 * LaTeX reader:
11564 + Fix `\cite` so it is a NormalCitation not AuthorInText.
11565 + Strip off double quotes around image source if present (#2825).
11566 Avoids interpreting these as part of the literal filename.
11568 * Org reader:
11570 + Add semicolon to list of special chars (Albert Krewinkel)
11571 Semicolons are used as special characters in citations syntax. This
11572 ensures the correct parsing of Pandoc-style citations: `[prefix; @key;
11573 suffix]`. Previously, parsing would have failed unless there was a space
11574 or other special character as the last <prefix> character.
11575 + Add support for "Berkeley-style" cites (Albert Krewinkel, #1978).
11576 A specification for an official Org-mode citation syntax was drafted by
11577 Richard Lawrence and enhanced with the help of others on the orgmode
11578 mailing list. Basic support for this citation style is added to the
11579 reader.
11580 + Support arbitrary raw inlines (Albert Krewinkel).
11581 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
11582 parlance) to be included as `@@format:raw foreign format text@@`.
11583 + Remove partial functions (Albert Krewinkel, #2991).
11584 Partial functions like `head` lead to avoidable errors and should be
11585 avoided. They are replaced with total functions.
11586 + Support figure labels (Albert Krewinkel, #2496, #2999).
11587 Figure labels given as `#+LABEL: thelabel` are used as the ID of the
11588 respective image. This allows e.g. the LaTeX to add proper `\label`
11589 markup.
11590 + Improve tag and properties type safety (Albert Krewinkel).
11591 Specific newtype definitions are used to replace stringly typing of tags
11592 and properties. Type safety is increased while readability is improved.
11593 + Parse as headlines, convert to blocks (Albert Krewinkel).
11594 Emacs org-mode is based on outline-mode, which treats documents as trees
11595 with headlines are nodes. The reader is refactored to parse into a
11596 similar tree structure. This simplifies transformations acting on
11597 document (sub-)trees.
11598 * Refactor comment tree handling (Albert Krewinkel).
11599 Comment trees were handled after parsing, as pattern matching on lists
11600 is easier than matching on sequences. The new method of reading
11601 documents as trees allows for more elegant subtree removal.
11602 * Support archived trees export options (Albert Krewinkel).
11603 Handling of archived trees can be modified using the `arch` option.
11604 Archived trees are either dropped, exported completely, or collapsed to
11605 include just the header when the `arch` option is nil, non-nil, or
11606 `headline`, respectively.
11607 * Put export setting parser into module (Albert Krewinkel).
11608 Export option parsing is distinct enough from general block parsing to
11609 justify putting it into a separate module.
11610 * Support headline levels export setting (Albert Krewinkel).
11611 The depths of headlines can be modified using the `H` option. Deeper
11612 headlines will be converted to lists.
11613 * Replace ugly code with view pattern (Albert Krewinkel).
11614 Some less-than-smart code required a pragma switching of overlapping
11615 pattern warnings in order to compile seamlessly. Using view patterns
11616 makes the code easier to read and also doesn't require overlapping
11617 pattern checks to be disabled.
11618 * Fix parsing of verbatim inlines (Albert Krewinkel, #3016).
11619 Org rules for allowed characters before or after markup chars were not
11620 checked for verbatim text. This resultet in wrong parsing outcomes of
11621 if the verbatim text contained e.g. space enclosed markup characters as
11622 part of the text (`=is_substr = True=`). Forcing the parser to update
11623 the positions of allowed/forbidden markup border characters fixes this.
11625 * LaTeX template: fix for obscure hyperref/xelatex issue.
11626 Here's a minimal case:
11628 \documentclass[]{article}
11629 \usepackage{hyperref}
11630 \begin{document}
11631 \section{\%á}
11632 \end{document}
11634 Without this change, this fails on the second invocation of xelatex.
11635 This affects inputs this like `# %á` with pdf output via xelatex.
11637 * trypandoc: call results 'html' instead of 'result'.
11638 This is for better compatibility with babelmark2.
11640 * Document MultiMarkdown as input/output format (Albert Krewinkel, #2973).
11641 MultiMarkdown was only mentioned as a supported Markdown dialect but not
11642 as a possible input or output format. A brief mention is added
11643 everywhere the other supported markdown dialects are mentioned.
11645 * Document Org mode as a format containing raw HTML (Albert Krewinkel)
11646 Raw HTML is kept when the output format is Emacs Org mode.
11648 * Implement `RawInline` and `RawBlock` in sample lua custom writer (#2985).
11650 * Text.Pandoc.Shared:
11652 + Introduce blocksToInlines function (Jesse Rosenthal).
11653 This is a lossy function for converting `[Block] -> [Inline]`. Its main
11654 use, at the moment, is for docx comments, which can contain arbitrary
11655 blocks (except for footnotes), but which will be converted to spans.
11656 This is, at the moment, pretty useless for everything but the basic
11657 `Para` and `Plain` comments. It can be improved, but the docx reader
11658 should probably emit a warning if the comment contains more than this.
11659 + Add BlockQuote to blocksToInlines (Jesse Rosenthal).
11660 + Add further formats for `normalizeDate` (Jesse Rosenthal).
11661 We want to avoid illegal dates -- in particular years with greater than
11662 four digits. We attempt to parse series of digits first as `%Y%m%d`, then
11663 `%Y%m`, and finally `%Y`.
11664 + `normalizeDate` should reject illegal years (Jesse Rosenthal).
11665 We only allow years between 1601 and 9999, inclusive. The ISO 8601
11666 actually says that years are supposed to start with 1583, but MS Word
11667 only allows 1601-9999. This should stop corrupted word files if the date
11668 is out of that range, or is parsed incorrectly.
11669 + Improve year sanity check in normalizeDate (Jesse Rosenthal).
11670 Previously we parsed a list of dates, took the first one, and then
11671 tested its year range. That meant that if the first one failed, we
11672 returned nothing, regardless of what the others did. Now we test for
11673 sanity before running `msum` over the list of Maybe values. Anything
11674 failing the test will be Nothing, so will not be a candidate.
11676 * Docx reader:
11678 + Add simple comment functionality. (Jesse Rosenthal).
11679 This adds simple track-changes comment parsing to the docx reader. It is
11680 turned on with `--track-changes=all`. All comments are converted to
11681 inlines, which can list some information. In the future a warning will be
11682 added for comments with formatting that seems like it will be excessively
11683 denatured. Note that comments can extend across blocks. For that reason
11684 there are two spans: `comment-start` and `comment-end`. `comment-start`
11685 will contain the comment. `comment-end` will always be empty. The two
11686 will be associated by a numeric id.
11687 + Enable warnings in top-level reader (Jesse Rosenthal).
11688 Previously we had only allowed for warnings in the parser. Now we allow
11689 for them in the `Docx.hs` as well. The warnings are simply concatenated.
11690 + Add warning for advanced comment formatting. (Jesse Rosenthal).
11691 We can't guarantee we'll convert every comment correctly, though we'll
11692 do the best we can. This warns if the comment includes something other
11693 than Para or Plain.
11694 + Add tests for warnings. (Jesse Rosenthal).
11695 + Add tests for comments (Jesse Rosenthal).
11696 We test for comments, using all track-changes options. Note that we
11697 should only output comments if `--track-changes=all`. We also test for
11698 emitting warnings if there is complicated formatting.
11700 * README: update to include track-changes comments. (Jesse Rosenthal)
11702 * Improved Windows installer - don't ignore properties set on command-line.
11703 See #2708. Needs testing to see if this resolves the issue.
11704 Thanks to @nkalvi.
11706 * Process markdown extensions on command line in L->R order (#2995).
11707 Previously they were processed, very unintuitively, in R->L
11708 order, so that `markdown-tex_math_dollars+tex_math_dollars`
11709 had `tex_math_dollars` disabled.
11711 * Added `secnumdepth` variable to LaTeX template (#2920).
11713 * Include table of contents in README.html in Windows package.
11715 * Writers: treat SoftBreak as space for stripping (Jesse Rosenthal)
11716 In Writers.Shared, we strip leading and trailing spaces for display
11717 math. Since SoftBreak's are treated as spaces, we should strip those
11718 too.
11720 * beamer, latex templates: pass biblatexoptions directly in package load.
11721 This allows runtime optinos to be used. Fixes jgm/pandoc-citeproc#201
11723 * CPP workaround for deprecation of `parseUrl` in http-client.
11725 * Removed some redundant class constraints.
11727 * make_oxs_package.sh - use OSX env variable.
11729 * Added `winpkg` target to Makefile. This downloads the windows package
11730 from appveyor and signs it using the key.
11732 * Document Org mode as a format containing raw TeX (Albert Krewinkel).
11733 Raw TeX is kept verbatim when the output format is Emacs Org mode.
11735 * Support math with haddock-library >= 1.4.
11737 * Removed `-rtsopts` from library stanza. It has no effect, and Hackage
11738 wouldn't accept the package.
11740 * Update library dependency versions.
11742## pandoc 1.17.1 (2016-06-04)
11744 * New output format: `docbook5` (Ivo Clarysse).
11746 * `Text.Pandoc.Options`: Add `writerDocBook5` to `WriterOptions`
11747 (API change).
11749 * Org writer:
11751 + Add :PROPERTIES: drawer support (Albert Krewinkel, #1962).
11752 This allows header attributes to be added to org documents in the form
11753 of `:PROPERTIES:` drawers. All available attributes are stored as
11754 key/value pairs. This reflects the way the org reader handles
11755 `:PROPERTIES:` blocks.
11756 + Add drawer capability (Carlos Sosa). For the implementation of the
11757 Drawer element in the Org Writer, we make use of a generic Block
11758 container with attributes. The presence of a `drawer` class defines
11759 that the `Div` constructor is a drawer. The first class defines the
11760 drawer name to use. The key-value list in the attributes defines
11761 the keys to add inside the Drawer. Lastly, the list of Block elements
11762 contains miscellaneous blocks elements to add inside of the Drawer.
11763 + Use `CUSTOM_ID` in properties (Albert Krewinkel). The `ID` property is
11764 reserved for internal use by Org-mode and should not be used.
11765 The `CUSTOM_ID` property is to be used instead, it is converted to the
11766 `ID` property for certain export format.
11768 * LaTeX writer:
11770 + Ignore `--incremental` unless output format is beamer (#2843).
11771 + Fix polyglossia to babel env mapping (Mauro Bieg, #2728).
11772 Allow for optional argument in square brackets.
11773 + Recognize `la-x-classic` as Classical Latin (Andrew Dunning).
11774 This allows one to access the hyphenation patterns in CTAN's
11775 hyph-utf8.
11776 + Add missing languages from hyph-utf8 (Andrew Dunning).
11777 + Improve use of `\strut` with `\minipage` inside tables
11778 (Jose Luis Duran). This improves spacing in multiline
11779 tables.
11780 + Use `{}` around options containing special chars (#2892).
11781 + Avoid lazy `foldl`.
11782 + Don't escape underscore in labels (#2921). Previously they were
11783 escaped as `ux5f`.
11784 + brazilian -> brazil for polyglossia (#2953).
11786 * HTML writer: Ensure mathjax link is added when math appears in footnote
11787 (#2881). Previously if a document only had math in a footnote, the
11788 MathJax link would not be added.
11790 * EPUB writer: set `navpage` variable on nav page.
11791 This allows templates to treat it differently.
11793 * DocBook writer:
11795 + Use docbook5 if `writerDocbook5` is set (Ivo Clarysse).
11796 + Properly handle `ulink`/`link` (Ivo Clarysse).
11798 * EPUB reader:
11800 + Unescape URIs in spine (#2924).
11801 + EPUB reader: normalise link id (Mauro Bieg).
11803 * Docx Reader:
11805 + Parse `moveTo` and `moveFrom` (Jesse Rosenthal).
11806 `moveTo` and `moveFrom` are track-changes tags that are used when a
11807 block of text is moved in the document. We now recognize these tags and
11808 treat them the same as `insert` and `delete`, respectively. So,
11809 `--track-changes=accept` will show the moved version, while
11810 `--track-changes=reject` will show the original version.
11811 + Tests for track-changes moving (Jesse Rosenthal).
11813 * ODT, EPUB, Docx readers: throw `PandocError` on unzip failure
11814 (Jesse Rosenthal) Previously, `readDocx`, `readEPUB`, and `readOdt`
11815 would error out if zip-archive failed. We change the archive extraction
11816 step from `toArchive` to `toArchiveOrFail`, which returns an Either value.
11818 * Markdown, HTML readers: be more forgiving about unescaped `&` in
11819 HTML (#2410). We are now more forgiving about parsing invalid HTML with
11820 unescaped `&` as raw HTML. (Previously any unescaped `&`
11821 would cause pandoc not to recognize the string as raw HTML.)
11823 * Markdown reader:
11825 + Fix pandoc title blocks with lines ending in 2 spaces (#2799).
11826 + Added `-s` to markdown-reader-more test.
11828 * HTML reader: fixed bug in `pClose`. This caused exponential parsing
11829 behavior in documnets with unclosed tags in `dl`, `dd`, `dt`.
11831 * MediaWiki reader: Allow spaces before `!` in MediaWiki table header
11832 (roblabla).
11834 * RST reader: Support `:class:` option for code block in RST reader
11835 (Sidharth Kapur).
11837 * Org reader (all Albert Krewinkel, except where noted otherwise):
11839 + Stop padding short table rows.
11840 Emacs Org-mode doesn't add any padding to table rows. The first
11841 row (header or first body row) is used to determine the column count,
11842 no other magic is performed.
11843 + Refactor rows-to-table conversion. This refactors
11844 the codes conversing a list table lines to an org table ADT.
11845 The old code was simplified and is now slightly less ugly.
11846 + Fix handling of empty table cells, rows (Albert Krewinkel, #2616).
11847 This fixes Org mode parsing of some corner cases regarding empty cells
11848 and rows. Empty cells weren't parsed correctly, e.g. `|||` should be
11849 two empty cells, but would be parsed as a single cell containing a pipe
11850 character. Empty rows where parsed as alignment rows and dropped from
11851 the output.
11852 + Fix spacing after LaTeX-style symbols.
11853 The org-reader was dropping space after unescaped LaTeX-style symbol
11854 commands: `\ForAll \Auml` resulted in `∀Ä` but should give `∀ Ä`
11855 instead. This seems to be because the LaTeX-reader treats the
11856 command-terminating space as part of the command. Dropping the trailing
11857 space from the symbol-command fixes this issue.
11858 + Print empty table rows. Empty table rows should not
11859 be dropped from the output, so row-height is always set to be at least 1.
11860 + Move parser state into separate module.
11861 The org reader code has become large and confusing. Extracting smaller
11862 parts into submodules should help to clean things up.
11863 + Add support for sub/superscript export options.
11864 Org-mode allows to specify export settings via `#+OPTIONS` lines.
11865 Disabling simple sub- and superscripts is one of these export options,
11866 this options is now supported.
11867 + Support special strings export option Parsing of special strings
11868 (like `...` as ellipsis or `--` as en dash) can be toggled using the `-`
11869 option.
11870 + Support emphasized text export option. Parsing of emphasized text can
11871 be toggled using the `*` option. This influences parsing of text marked
11872 as emphasized, strong, strikeout, and underline. Parsing of inline math,
11873 code, and verbatim text is not affected by this option.
11874 + Support smart quotes export option. Reading of smart quotes can be
11875 toggled using the `'` option.
11876 + Parse but ignore export options. All known export options are parsed
11877 but ignored.
11878 + Refactor block attribute handling. A parser state attribute was used
11879 to keep track of block attributes defined in meta-lines. Global state
11880 is undesirable, so block attributes are no longer saved as part of the
11881 parser state. Old functions and the respective part of the parser state
11882 are removed.
11883 + Use custom `anyLine`. Additional state changes need to be made after
11884 a newline is parsed, otherwise markup may not be recognized correctly.
11885 This fixes a bug where markup after certain block-types would not be
11886 recognized.
11887 + Add support for `ATTR_HTML` attributes (#1906).
11888 Arbitrary key-value pairs can be added to some block types using a
11889 `#+ATTR_HTML` line before the block. Emacs Org-mode only includes these
11890 when exporting to HTML, but since we cannot make this distinction here,
11891 the attributes are always added. The functionality is now supported
11892 for figures.
11893 + Add `:PROPERTIES:` drawer support (#1877).
11894 Headers can have optional `:PROPERTIES:` drawers associated with them.
11895 These drawers contain key/value pairs like the header's `id`. The
11896 reader adds all listed pairs to the header's attributes; `id` and
11897 `class` attributes are handled specially to match the way `Attr` are
11898 defined. This also changes behavior of how drawers of unknown type
11899 are handled. Instead of including all unknown drawers, those are not
11900 read/exported, thereby matching current Emacs behavior.
11901 + Use `CUSTOM_ID` in properties. See above on Org writer changes.
11902 + Respect drawer export setting. The `d` export option can be used
11903 to control which drawers are exported and which are discarded.
11904 Basic support for this option is added here.
11905 + Ignore leading space in org code blocks (Emanuel Evans, #2862).
11906 Also fix up tab handling for leading whitespace in code blocks.
11907 + Support new syntax for export blocks. Org-mode version 9
11908 uses a new syntax for export blocks. Instead of `#+BEGIN_<FORMAT>`,
11909 where `<FORMAT>` is the format of the block's content, the new
11910 format uses `#+BEGIN_export <FORMAT>` instead. Both types are
11911 supported.
11912 + Refactor `BEGIN...END` block parsing.
11913 + Fix handling of whitespace in blocks, allowing content to be indented
11914 less then the block header.
11915 + Support org-ref style citations. The *org-ref* package is an
11916 org-mode extension commonly used to manage citations in org
11917 documents. Basic support for the `cite:citeKey` and
11918 `[[cite:citeKey][prefix text::suffix text]]` syntax is added.
11919 + Split code into separate modules, making for cleaner code and
11920 better decoupling.
11922 * Added `docbook5` template.
11924 * `--mathjax` improvements:
11926 + Use new CommonHTML output for MathJax (updated default MathJax URL,
11927 #2858).
11928 + Change default mathjax setup to use `TeX-AMS_CHTML` configuration.
11929 This is designed for cases where the input is always TeX and maximal
11930 conformity with TeX is desired. It seems to be smaller and load faster
11931 than what we used before. See #2858.
11932 + Load the full MathJax config to maximize loading speed (KolenCheung).
11934 * Bumped upper version bounds to allow use of latest packages
11935 and compilation with ghc 8.
11937 * Require texmath 0.8.6.2. Closes several texmath-related bugs (#2775,
11938 #2310, #2310, #2824). This fixes behavior of roots, e.g.
11939 `\sqrt[3]{x}`, and issues with sub/superscript positioning
11940 and matrix column alignment in docx.
11942 * README:
11944 + Clarified documentation of `implicit_header_references` (#2904).
11945 + Improved documentation of `--columns` option.
11947 * Added appveyor setup, with artefacts (Jan Schulz).
11949 * stack.yaml versions: Use proper flags used for texmath, pandoc-citeproc.
11951 * LaTeX template: support for custom font families (vladipus).
11952 Needed for correct polyglossia operation with Cyrillic fonts and perhaps
11953 can find some other usages. Example usage in YAML metadata:
11955 fontfamilies:
11956 - name: \cyrillicfont
11957 font: Liberation Serif
11958 - name: \cyrillicfonttt
11959 options: Scale=MatchLowercase
11960 font: Liberation
11962 * Create unsigned msi as build artifact in appveyor build.
11964 * On travis, test with ghc 8.0.1; drop testing for ghc 7.4.1.
11968## pandoc 1.17.0.3 (2016-03-24)
11970 * LaTeX writer: Fixed position of label in figures (#2813).
11971 Previously the label wasn't in the right place, and `\ref`
11972 wouldn't work properly.
11973 * Added .tei test files to pandoc.cabal so they'll be included
11974 in tarball (#2811).
11975 * Updated copyright dates.
11977## pandoc 1.17.0.2 (2016-03-23)
11979 * Fixed serious regression in `htmlInBalanced`, which caused
11980 newlines to be omitted in some raw HTML blocks in Markdown
11981 (#2804).
11983## pandoc 1.17.0.1 (2016-03-21)
11985 * File scope is no longer used when there are no input files (i.e.,
11986 when input comes from stdin). Previously file scope was triggered
11987 when the `json` reader was specified and input came from `stdin`,
11988 and this caused no output to be produced. (Fix due to Jesse Rosenthal;
11989 thanks to Fedor Sheremetyev for calling the bug to our attention.)
11990 * Improved documentation of templates (#2797).
11992## pandoc 1.17 (2016-03-20)
11994 * Added `--file-scope` option (Jesse Rosenthal).
11995 By default pandoc operates on multiple files by first concatenating
11996 them (around extra line breaks) and then processing the joined file. So
11997 it only parses a multi-file document at the document scope. This has the
11998 benefit that footnotes and links can be in different files, but for
11999 some purposes it is useful to parse the individual files first
12000 and then combine their outputs (e.g. when the files use footnotes
12001 or links with the same labels). The `--file-scope` option causes
12002 pandoc to parse the files first, and then combine the parsed output,
12003 instead of combining before parsing. `--file-scope` is selected
12004 automatically for binary input files (which cannot be concatenated)
12005 and for pandoc json.
12007 * Add TEI Writer (Chris Forster) and `tei` output format.
12009 * Added a general `ByteStringReader` with warnings, used by the docx
12010 reader (API change, Jesse Rosenthal).
12012 * Add `readDocxWithWarnings` (API change, Jesse Rosenthal).
12014 * Changed type of `Shared.uniqueIdent` argument from
12015 `[String]` to `Set String`. This avoids performance problems in documents
12016 with many identically named headers (API change, #2671).
12018 * Removed `tex_math_single_backslash` from `markdown_github` options
12019 (#2707).
12021 * Make language extensions as well as full language names
12022 trigger syntax highlighting. For example, `py` will now work as
12023 well as `python` (jgm/highlighting-kate#83).
12025 * Added `institute` variable to latex, beamer templates (Fraser
12026 Tweedale, Josef Svenningsson).
12028 * Docx reader (Jesse Rosenthal):
12030 + Handle alternate content. Some word functions (especially graphics)
12031 give various choices for content so there can be backwards compatibility.
12032 + Don't turn numbered headers into lists.
12033 + Docx Reader: Add state to the parser, for warnings
12034 + Update feature checklist in source code.
12035 + Get rid of `Modifiable` typeclass.
12036 + Add tests for adjacent hyperlinks.
12037 + Add a "Link" modifier to `Reducible`. We want to make sure that
12038 links have their spaces removed, and are appropriately smushed
12039 together (#2689).
12041 * HTML reader:
12043 + Fixed behavior of base tag (#2777).
12044 If the base path does not end with slash, the last component
12045 will be replaced. E.g. base = `http://example.com/foo`
12046 combines with `bar.html` to give `http://example.com/bar.html`.
12047 If the href begins with a slash, the whole path of the base
12048 is replaced. E.g. base = `http://example.com/foo/` combines
12049 with `/bar.html` to give `http://example.com/bar.html`.
12050 + Rewrote `htmlInBalanced`. This version avoids an exponential
12051 performance problem with `<script>` tags, and it should be faster
12052 in general (#2730).
12053 + Properly handle an empty cell in a simple table (#2718).
12054 + Handle multiple `<meta>` tags with same name. Put them in a list
12055 in the metadata so they are all preserved, rather than (as before)
12056 throwing out all but one..
12058 * Markdown reader:
12060 + Improved pipe table parsing (#2765).
12061 + Allow `+` separators in pipe table cells. We already allowed
12062 them in the header, but not in the body rows, for some reason.
12063 This gives compatibility with org-mode tables.
12064 + Don't cross line boundary parsing pipe table row.
12065 Previously an Emph element could be parsed across the newline
12066 at the end of the pipe table row.
12067 + Use `htmlInBalanced` for `rawVerbatimBlock`, for better
12068 performance (#2730).
12069 + Fixed bug with smart quotes around tex math.
12071 * LaTeX reader:
12073 + Handle interior `$` characters in math (#2743). For example,
12074 `$$\hbox{$i$}$$`.
12075 + `inlineCommand` now gobbles an empty `{}` after any command (#2687).
12076 This gives better results when people write e.g. `\TeX{}` in Markdown.
12077 + Properly handle LaTeX "math" environment as inline math (#2171).
12079 * Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.
12080 Closes #2674.
12082 * Org reader (Albert Krewinkel):
12084 + Prefix even empty figure names with "fig:" (#2643). The
12085 convention used by pandoc for figures is to mark them by prefixing
12086 the name with `fig:`. The org reader failed to do this if a figure
12087 had no name.
12088 + Refactor link-target processing (#2684).
12090 * ConTeXt writer: Fix whitespace at line beginning in line blocks (#2744).
12091 Thanks to @c-foster.
12093 * HTML writer: Don't include alignment attribute for default table columns.
12094 Previously these were given "left" alignment. Better to leave off
12095 alignment attributes altogether (#2694).
12097 * Markdown writer: Use hyphens for YAML metadata block bottom line, for
12098 better compatibility with other Markdown flavors (Henrik Tramberend).
12100 * LaTeX writer:
12102 + Use image identifier to create a label and hypertarget for
12103 figures (Mauro Bieg).
12104 + Avoid double toprule in headerless table with caption (#2742).
12105 + Clean up options parser (Jesse Rosenthal).
12106 + Treat `memoir` template with `article` option as article, instead
12107 of treating all `memoir` templates as books.
12108 + Allow more flexible table alignment (Henrik Tramberend, #2665).
12109 New default is not to include `[c]` option (which is the default
12110 anyway if no positioning is specified). Now LaTeX emplates can
12111 control the overall table alignment in a document by setting the
12112 longtable length variables `LTleft` and `LTright`. For example,
12113 `\setlength\LTleft\parindent\setlength\LTright\fill`
12114 will create left-aligned tables that respect paragraph indentation.
12116 * Docx writer: Handle image alt text (#2754, Mauro Bieg).
12118 * Org writer - pass through RawInline with format "org".
12120 * DokuWiki writer: use `$$` for display math.
12122 * Custom writer: Pass attributes parameter to CaptionedImage (#2697).
12124 * Make protocol-relative URIs work again (#2737).
12126 * make_osx_package.sh: Use env variable for developer id certs.
12128 * Raise `tagsoup` lower bound to 0.13.7 to fix entity-related
12129 problems (#2734).
12131 * Allow `zip-archive` 0.3.
12133 * Allow `aeson` 0.11.
12135## pandoc 1.16.0.2 (2016-01-12)
12137 * Depend on deepseq rather than deepseq-generics (fpco/stackage#1096).
12139 * Fixed regression in latex smart quote parsing (#2645).
12140 In cases where a match was not found for a quote, everything
12141 from the open quote to the end of the paragraph was being dropped.
12143## pandoc 1.16.0.1 (2016-01-10)
12145 * Fixed regression with `--latex-engine` (#2618). In 1.16
12146 `--latex-engine` raises an error if a full path is given.
12148 * Org reader: Fix function dropping subtrees tagged `:noexport`
12149 (Albert Krewinkel, #2628):
12151 * Markdown reader: renormalize table column widths if they exceed 100%
12152 (#2626).
12154 * Textile reader: don't allow block HTML tags in inline contexts.
12155 The reader previously did allow this, following redcloth,
12156 which happily parses
12158 Html blocks can be <div>inlined</div> as well.
12162 <p>Html blocks can be <div>inlined</div> as well.</p>
12164 This is invalid HTML. The above sample now produces;
12166 <p>Html blocks can be</p>
12167 <div>
12168 <p>inlined</p>
12169 </div>
12170 <p>as well.</p>
12172 * Improved default template lookup for custom lua scripts (#2625).
12173 Previously, if you tried to do `pandoc -s -t /path/to/lua/script.lua`,
12174 pandoc would look for the template in
12175 `~/.pandoc/templates/default./path/to/lua/script.lua`.
12176 With this change it will look in the more reasonable
12177 `~/.pandoc/templates/default.script.lua`. This makes it possible to
12178 store default templates for custom writers.
12180 * RST, Markdown writers: Fixed rendering of grid tables with blank rows
12181 (#2615).
12183 * LaTeX writer: restore old treatment of Span (#2624). A Span is
12184 now rendered with surrounding `{}`, as it was before 1.16.
12186 * Entity handling fixes: improved handling of entities like
12187 `&lang;` that require a trailing semicolon. Allow uppercase
12188 `x` in numerical hexadecimal character references, working
12189 around a tagsoup bug.
12191 * `stack.yaml` - use lts-4.0, but with older aeson to avoid excessive
12192 memory use on compile. With aeson 0.10 we were getting an out of
12193 memory error on a 2GB Ubuntu 64-bit VM.
12195 * Improved deb package creation script. Made `DPKGVER` work.
12196 Renamed `COMMIT` to `TREE`. You should now be able to do
12197 `TREE=1.16.0.1 DPKGVER=2 make deb`.
12200## pandoc 1.16 (2016-01-02)
12202 * Added `Attr` field to `Link` and `Image` (Mauro Bieg, #261, API change).
12204 + Added syntax for link and image attributes to pandoc's Markdown.
12205 + Updated readers and writers to use link and image attributes
12206 when appropriate.
12207 + Support image attributes in Docx, Textile, RST readers.
12209 * Renamed link attribute extensions. The old `link_attributes` is
12210 now `mmd_link_attributes`, and `link_attributes` now enables the
12211 new pandoc-style link and image attributes (API change).
12212 Note: this change could break some existing workflows.
12214 * Implemented `SoftBreak` and new `--wrap` option (#1701, API change).
12215 Added threefold wrapping option.
12217 + Command line option: deprecated `--no-wrap`, added
12218 `--wrap=[auto|none|preserve]`
12219 + Added `WrapOption`, exported from `Text.Pandoc.Options`
12220 + Changed type of `writerWrapText` in `WriterOptions` from
12221 `Bool` to `WrapOption`.
12222 + Modified `Text.Pandoc.Shared` functions to allow `SoftBreak`.
12223 + Supported `SoftBreak` in readers and writers.
12225 * Text.Pandoc.Options: Added `writerDpi` to `WriterOptions` (API
12226 change, Mauro Bieg).
12228 * Added `--dpi` command-line option (Mauro Bieg).
12230 * Rationalized behavior of `--no-tex-ligatures` and `--smart` (#2541).
12231 This change makes `--no-tex-ligatures` affect the LaTeX reader
12232 as well as the LaTeX and ConTeXt writers. If it is used,
12233 the LaTeX reader will parse characters `` ` ``, `'`, and `-`
12234 literally, rather than parsing ligatures for quotation marks
12235 and dashes. And the LaTeX writer will print unicode quotation
12236 mark and dash characters literally, rather than converting
12237 them to the standard ASCII ligatures. Note that `--smart` has
12238 no effect on the LaTeX reader. `--smart` is still the default
12239 for all input formats when LaTeX or ConTeXt is the output format,
12240 *unless* `--no-tex-ligatures` is used.
12242 Some examples to illustrate the logic:
12244 ```
12245 % echo "'hi'" | pandoc -t latex
12246 `hi'
12247 % echo "'hi'" | pandoc -t latex --no-tex-ligatures
12248 'hi'
12249 % echo "'hi'" | pandoc -t latex --no-tex-ligatures --smart
12250 ‘hi’
12251 % echo "'hi'" | pandoc -f latex --no-tex-ligatures
12252 <p>'hi'</p>
12253 % echo "'hi'" | pandoc -f latex
12254 <p>’hi’</p>
12255 ```
12257 * Removed deprecated options `--offline` and `--html5`.
12259 * Fixed language code for Czech (`cs` not `cz`) (#2597).
12261 * Implemented `east_asian_line_breaks` extension (#2586).
12262 In `Text.Pandoc.Options`, added `Ext_east_asian_line_breaks` constructor
12263 to `Extension` (API change). This extension is like
12264 `ignore_line_breaks`, but smarter -- it only ignores line breaks
12265 between two East Asian wide characters. This makes it better suited
12266 for writing with a mix of East Asian and non-East Asian scripts.
12268 * Added support for PDF creation via `wkhtmltopdf`.
12269 To use this: `pandoc -t html5 -o result.pdf` (and add `--mathjax`
12270 if you have math.) Margins can be set using the variables
12271 `margin-top`, `margin-bottom`, `margin-left`, `margin-right`.
12272 Other styling can be done through CSS.
12274 * Fixed cite key parsing regression (jgm/pandoc-citeproc#201).
12275 We were capturing final colons as in `[@foo: bar]`; the citation id
12276 was being parsed as `@foo:`.
12278 * ICML writer:
12280 + Fixed image syntax for local files (#2589).
12281 + Changed type of `writeICML` (Mauro Bieg).
12282 API change: It is now `WriterOptions -> Pandoc -> IO String`.
12283 Also handle new image attributes.
12284 + Intersperse line breaks instead of appending them to
12285 every `ParagraphStyleRange` (Mauro Bieg, #2501).
12286 + Add `Cite` style to citations (Mauro Bieg).
12287 + Added figure handling (#2590, Mauro Bieg).
12288 + Better handling of math. Instead of just printing the raw tex,
12289 we now try to fake it with unicode characters.
12291 * HTML writer: Include `example` class for example lists (#2524).
12293 * ODT/OpenDocument writer: improved image attributes (Mauro Bieg).
12295 + Support for percentage widths/heights
12296 + Use `Attr` instead of title to get dimensions from ODT walker
12297 to `writeOpenDocument`.
12299 * AsciiDoc writer:
12301 + Support anchors in spans and divs with id elements
12302 (jgm/pandoc-citeproc#143).
12303 + Fixed code blocks (#1861).
12305 * Haddock writer: omit formatting inside links, which isn't supported
12306 by Haddock (#2515).
12308 * MediaWiki writer: Fixed spacing issues in table cells.
12310 + Start cell on new line unless it's a single Para or Plain
12311 (#2606).
12312 + For single Para or Plain, insert a space after the `|` to
12313 avoid problems when the text begins with a character like
12314 `-` (#2604).
12316 * Beamer writer: mark frame as fragile when it contains verbatim (#1613).
12318 * LaTeX writer:
12320 + Add support for GAP highlighting using listings (Raniere Silva).
12321 + Consider `header-includes` content as well as templates
12322 when determining whether to use csquotes (Andreas Lööw).
12323 + Create defaults for geometry using `margin-left` etc.
12324 If `geometry` has no value, but `margin-left`, `margin-right`,
12325 `margin-top`, and/or `-margin-bottom` are given, a default value
12326 for `geometry` is created from these. Note that these variables
12327 already affect PDF production via HTML5 with `wkhtmltopdf`.
12329 * ConTeXt writer: set default layout based on `margin-left`, etc.
12330 This sets up `\setuplayout` based on the variables `margin-left`,
12331 `margin-right`, `margin-bottom`, and `margin-top`, if no layout
12332 is given.
12334 * Docx writer: better handling of PDF images. Previously we tried
12335 to get the image size from the image even if an explicit size was
12336 specified. Since we still can't get image size for PDFs, this made
12337 it impossible to use PDF images in docx. Now we don't try to get
12338 the image size when a size is already explicitly specified.
12340 * Markdown writer: use raw HTML for link/image attributes when
12341 the `link_attributes` extension is unset and `raw_html` is set (#2554).
12343 * MediaWiki reader: interpret markup inside `<tt>`, `<code>` (#2607).
12345 * LaTeX reader:
12347 + Improved smart quote parsing (#2555). This fixes redering of
12348 unmatched quotes.
12349 + Use curly quotes for unmatched ` (#2555).
12350 + Allow blank space between braced arguments of commands (#2592).
12352 * Markdown reader:
12354 + Improved pipe table relative widths. Previously pipe table
12355 columns got relative widths (based on the header underscore lines)
12356 when the source of one of the rows was greater in width than the
12357 column width. This gave bad results in some cases where much of
12358 the width of the row was due to nonprinting material (e.g. link
12359 URLs). Now pandoc only looks at printable width (the width of a
12360 plain string version of the source), which should give better results.
12361 Thanks to John Muccigrosso for bringing up the issue.
12362 + Fixed parsing bug with macros. Previously macro definitions in
12363 indented code blocks were being parsed as macro definitions, not code.
12365 * Textile reader: skip over attribute in image source (#2515).
12366 We don't have a place yet for styles or sizes on images, but
12367 we can skip the attributes rather than incorrectly taking them
12368 to be part of the filename.
12370 * Docx reader: Handle dummy list items (Jesse Rosenthal).
12371 These come up when people create a list item and then delete the
12372 bullet. It doesn't refer to any real list item, and we used to ignore
12373 it.
12375 * CommonMark reader/writer rewritten to use latest `cmark`.
12377 * Fixed Emoji character definitions (#2523). There were many bugs in the
12378 definitions.
12380 * `Text.Pandoc.CSS`:
12382 + Added `pickStylesToKVs` function to extract multiple properties at
12383 once (API change, Mauro Bieg).
12384 + Parse CSS that doesn't contain the optional semicolon (Mauro Bieg).
12386 * `trypandoc`: sort drop-down lists.
12388 * Beamer template:
12390 + Made `\euro` conditional on presence of character.
12391 for xelatex and lualatex, as it is for pdflatex (Andrew Dunning).
12392 + Moved `header-includes` before setting of title (Thomas Hodgson),
12393 to match the LaTeX template (jgm/pandoc-templates#168).
12394 + Added `section-titles` variable (defaults to true)
12395 to enable/suppress section title pages in beamer
12396 slide shows (Thomas Hodgson).
12397 + Moved beamer themes after fonts, so that themes can
12398 change fonts. (Previously the fonts set were being
12399 clobbered by lmodern.sty.) (Thomas Hodgson).
12401 * Beamer/LaTeX template changes (Thomas Hodgson):
12402 + Added `thanks` variable
12403 + Use `parskip.sty` when `indent` isn't set (fall back to using
12404 `setlength` as before if `parskip.sty` isn't available).
12405 + Use `biblio-style` with biblatex.
12406 + Added `biblatexoptions` variable.
12408 * LaTeX template changes:
12410 + Added `paper` after `$papersize$` variable in latex template.
12411 Thus you can say `papersize: a4` and the latex will contain
12412 `a4paper`. This change may break some existing workflows; if
12413 you currently specify `a4paper`, you'll get `a4paperpaper` which
12414 is meaningless. However, the change seems worth it, as it will
12415 make the `papersize` variable work uniformly across ConTeXt, LaTeX,
12416 and html->pdf via wkhtmltopdf.
12417 + Only pass options to color package if `colorlinks` is set
12418 (Andrew Dunning).
12419 + Make definition of `\euro` conditional in xelatex/lualatex,
12420 as it is already for pdflatex (Andrew Dunning).
12421 + Removed setting of `subject` in PDF metadata.
12422 This used to be set to the subtitle, but really the subtitle
12423 need not give the subject. Also, `subtitle` can contain formatting,
12424 so we'd need, at least, a plain text version for this.
12425 + Moved `header-includes` before setting of `\title`, `\author`,
12426 etc. This allows these macros to be redefined.
12427 + Use `\subtitle` command for `subtitle`, instead of tacking it
12428 on to the title as before. We give a no-op fallback definition if it
12429 is not defined. This change should produce much better results
12430 in classes that support `\subtitle`. With the default article
12431 class, which does not define `\subtitle`, subtitles will no
12432 longer be printed unless the user defines `\subtitle` and
12433 redefines `\maketitle`.
12434 + Moved redefinitions of `\paragraph` and `\subparagraph` to
12435 before header-includes.
12437 * Context template:
12439 + Use `simplefonts` for font loading (Paolo Rodríguez). This is
12440 needed for things to work on ConTeXt stable from TeXLive 2015.
12441 + Revert use of `\setuphead` in title block (Andrew Dunning,
12442 Rik Kabel).
12444 * Update LaTeX/ConTeXt link colour usage (Andrew Dunning).
12446 * Fixed man template so disabling hyphenation actually works.
12447 The command needs to come after .TH.
12449 * Added 'navigation' variable to beamer template (#2543).
12450 Valid values are `empty` (the default), `horizontal`, `vertical`,
12451 and `frame`. Note that this changes the default behavior from
12452 `horizontal` to `empty`. Closes #2543.
12454 * Added `toc` to HTML slide format templates (Andrew Dunning),
12455 so that `--toc` creates a contents slide.
12457 * Added `stack.full.yaml` to build `pandoc-citeproc` as well.
12459 * Allow pipe tables with no body rows (#2556).
12460 Previously this raised a runtime error.
12462 * Shared: Improved `fetchItem` so that `C:/Blah/Blah.jpg` isn't treated
12463 as URL. The Haskell URI parsing routines will accept "C:" as a
12464 scheme, so we rule that out manually. This helps with
12465 `--self-contained` and absolute Windows paths.
12467 * Define a `meta-json` variable for all writers (#2019). This contains
12468 a JSON version of all the metadata, in the format selected for the
12469 writer. So, for example, to get just the YAML metadata, you can run
12470 pandoc with the following custom template: `$meta-json$`. The intent
12471 is to make it easier for static site generators and other tools to get
12472 at the metadata.
12474 * Document limitations of --self-contained (#2553).
12476 * Improved Citations section of README (#2551). Added information
12477 about `link-citations` and a link to the pandoc-citeproc man page.
12479 * `ImageSize`: use `safeRead` instead of `readMaybe`, which isn't
12480 in base < 4.6.
12482 * Allow .adoc file extension for AsciiDoc (Andrew Dunning).
12484 * Improved implicit pandoc-citeproc inclusion.
12485 The filter pandoc-citeproc is automatically used when
12486 `--bibliography` is specified on the command line, unless
12487 `--natbib` or `--biblatex` is used. However, previously this
12488 only worked if `--bibliography` was spelled out in full, and not
12489 if `--biblio` was used.
12491 * reveal.js: Interpret pauses correctly for all headers (#2530).
12492 Previously, when using headers below the slide level, pauses are left
12493 uninterpreted into pauses. In my opinion, unexpected behavior but
12494 intentional looking at the code.
12496 * Remove redundant `center` variable for reveal.js (Andrew Dunning).
12498 * Parsing: Add `extractIdClass`, modified type of `KeyTable` (Mauro
12499 Bieg, API change).
12501 * ImageSize: Added functions for converting between image dimensions
12502 (Mauro Bieg).
12504 * Use lts-3.18 in stack.yaml. This avoids Windows build
12505 issues with the HTTP library.
12507 * Bump version bounds for dependencies.
12509## pandoc 1.15.2.1 (2015-11-16)
12511 * Added two missing test files, and `stack.yaml`, to
12512 `extra-source-files` so they're included in the source tarball.
12514 * reveal.js template: Fixed parallaxBackground options.
12515 `parallaxBackgroundHorizontal` and `parallaxBackgroundVertical`
12516 need integer values, not strings. (Vaughn Iverson)
12518## pandoc 1.15.2 (2015-11-15)
12520 * `pandoc my.md -t context -o my.pdf` will now create a PDF using
12521 ConTeXt rather than LaTeX (#2463).
12523 * Fixed omitted `url(...)` in CSS data-uri with `--self-contained` (#2489).
12525 * Added `emoji` Markdown extension, enabled by default in `markdown_github`
12526 (#2523). Added `Ext_emoji` to `Extension` in `Text.Pandoc.Options`
12527 (API change).
12529 * `Text.Pandoc.Readers.HTML.parseTags`: Fixed over-eager raw HTML inline
12530 parsing (#2469). Tightened up the inline HTML parser so it disallows
12531 TagWarnings.
12533 * Derive `Generic` instances for the types in `Text.Pandoc.Options`.
12535 * Org reader:
12537 + Fix paragraph/list interaction (Albert Krewinkel, #2464).
12538 Paragraphs can be followed by lists, even if there is no blank line
12539 between the two blocks. However, this should only be true if the
12540 paragraph is not within a list, were the preceding block should be
12541 parsed as a plain instead of paragraph (to allow for compact lists).
12542 Thanks to @rgaiacs for bringing this up.
12543 + Allow toggling header args (Albert Krewinkel, #2269).
12544 Org-mode allows to skip the argument of a code block header argument if
12545 it's toggling a value. Argument-less headers are now recognized,
12546 avoiding weird parsing errors.
12547 + Fix markup parsing in headers (Albert Krewinkel, #2504).
12548 Markup as the very first item in a header wasn't recognized. This was
12549 caused by an incorrect parser state: positions at which inline markup
12550 can start need to be marked explicitly by changing the parser state.
12551 This wasn't done for headers. The proper function to update the state
12552 is now called at the beginning of the header parser, fixing this issue.
12553 + Fix emphasis rules for smart parsing (Albert Krewinkel, #2513).
12554 Smart quotes, ellipses, and dashes should behave like normal quotes,
12555 single dashes, and dots with respect to text markup parsing.
12556 + Require whitespace around definition list markers (#2518).
12557 This rule was not checked before, resulting in bugs with footnotes
12558 and some link types.
12560 * Markdown reader:
12562 + Pipe tables with long lines now get relative cell widths (#2471).
12563 If a pipe table contains a line longer than the column width (as set by
12564 `--columns` or 80 by default), relative widths are computed based on the
12565 widths of the separator lines relative to the column width. This should
12566 solve persistent problems with long pipe tables in LaTeX/PDF output, and
12567 give more flexibility for determining relative column widths in other
12568 formats, too. For narrower pipe tables, column widths of 0 are used,
12569 telling pandoc not to specify widths explicitly in output formats that
12570 permit this.
12571 + Improved parser for `mmd_title_block`. We now allow blank metadata
12572 fields. These were explicitly disallowed before.
12573 + Citation keys can now contain `://`, so URLs and DOIs can be used
12574 as citation keys (jgm/pandoc-citeproc#166).
12576 * Beamer template: fix incompatibility of section slides with natbib.
12577 Natbib (and presumably biblatex) bibliography commands create
12578 their own section. Since these are in frame environments,
12579 we have an incompatibility with the `\AtBeginSection` macro
12580 which creates a special frame when a new section occurs.
12581 (We can't have a frame inside another frame.) This change disables
12582 `\AtBeginSection` inside bibliography slides. Thinks to Yihui Xie for
12583 bringing the problem to my attention. This supersedes #145. See
12584 discussion there.
12586 * Textile reader: don't do smart punctuation unless explicitly asked
12587 (#2480). Note that although smart punctuation is part of the textile
12588 spec, it's not always wanted when converting from textile
12589 to, say, Markdown. So it seems better to make this an option.
12591 * LaTeX reader: Handle `comment` environment (Arata Mizuki).
12592 The `comment` environment is handled in a similar way to the
12593 `verbatim` environment, except that its content is discarded.
12595 * Docx reader: Follow relationships correctly in foot/endnotes (#2258,
12596 Jesse Rosenthal). This fixes a problem with links in notes.
12598 * LaTeX and ConTeXt writers: support `lang` attribute on divs and spans
12599 (mb21). For LaTeX, also collect `lang` and `dir` attributes on spans and
12600 divs to set the `lang`, `otherlangs` and `dir` variables if they aren’t set
12601 already. See #895.
12603 * LaTeX writer:
12605 + Use proper command for `\textarabic` (mb21).
12606 + Added `de-CH-1901`, fixed `el-polyton` in `toPloyglossia` (Nick Bart).
12607 + Use `\hypertarget` and `\hyperlink` for links. This works correctly
12608 to link to Div or Span elements. We now don't bother defining `\label`
12609 for Div or Span elements. Closes jgm/pandoc-citeproc#174.
12610 + Avoid footnotes in list of figures (#1506).
12611 + Properly handle footnotes in captions (#1506).
12612 + Add `\protect` to `\hyperlink` (#2490). Thanks to Hadrien Mary.
12613 + Set `colorlinks` if `linkcolor`, `urlcolor`, `citecolor`, or
12614 `toccolor` is set (#2508).
12616 * Textile writer: support start number in ordered lists (#2465).
12618 * OpenDocument writer: Allow customization of opendocument
12619 automatic styles. Automatic styles can now be inserted in the
12620 template, which now provides the enclosing `<office:automatic-styles>`
12621 tags (#2520).
12623 * Docx writer: insert space between footnote reference and note (#2527).
12624 This matches Word's default behavior.
12626 * EPUB writer: don't download linked media when `data-external` attribute
12627 set (#2473). By default pandoc downloads all linked media and includes it
12628 in the EPUB container. This can be disabled by setting `data-external` on
12629 the tags linking to media that should not be downloaded. Example:
12631 <audio controls="1">
12632 <source src="http://www.sixbarsjail.it/tmp/bach_toccata.mp3"
12633 type="audio/mpeg"></source>
12634 </audio>
12636 * HTML writer: use width on whole table if col widths sum to < 100%.
12637 Otherwise some browsers display the table with the columns
12638 separated far apart.
12640 * AsciiDoc template: Fix `author` and `date`; add `keywords`,
12641 `abstract` (Andrew Dunning).
12643 * HTML-based templates (Andrew Dunning):
12645 + Use en dash instead of hyphen between title prefix and title.
12646 + Add `keywords` to metadata.
12647 + Add `lang`, `dir`, `quotes` where missing.
12648 + Always make author and date display conditional.
12649 + Updated dzslides template from source.
12651 * Man template: make "generated by" comment conditional.
12653 * LaTeX, Beamer templates:
12655 + Add `babel-otherlangs` for language divs/spans; `babel-newcommands`,
12656 filled by commands that make babel understand the polyglossia-style
12657 language directives (mb21, #137).
12658 + Improved formatting of conditionals; `$for$` is always provided to allow
12659 multiple options (Andrew Dunning, #141).
12660 + Use `Ligatures=TeX` rather than `Mapping=tex-text` with `fontspec`
12661 to improve support for LuaTeX (Andrew Dunning, #135).
12662 + Revise `hyperref` usage (Andrew Dunning, #139, #141):
12663 - use same options for all LaTeX engines;
12664 - add `subtitle` and `keywords` to PDF metadata;
12665 - do not override `hyperref` link coloring without user input, effectively making
12666 the `hidelinks` option the default (removed as a separate variable);
12667 - link colors can be enabled (using a slightly darker version of the old
12668 defaults) using a new `colorlinks` variable, automatically used by
12669 the LaTeX writer when custom colors are specified;
12670 - `pdfborder={0 0 0}` is automatically set by `hyperref` with
12671 `colorlinks`, and is only applied if `colorlinks` is disabled.
12673 * ConTeXt template (Andrew Dunning):
12675 + New variables for controlling styles: `linkstyle`, `linkcolor`,
12676 `linkcontrastcolor`, `layout`, `pagenumbering`, `whitespace`, `indenting`,
12677 `interlinespace`, `headertext`, `footertext`, `mainfont`, `sansfont`,
12678 `monofont`, `mathfont`, `fontsize`.
12679 + Default template no longer supports MkII.
12680 + Improve writing of title block (suppressing numbering of first page).
12681 + Add `title` `subtitle`, `author`, `date`, `keywords` to PDF metadata.
12682 + Support `subtitle`, `abstract`.
12683 + Support list of figures (`lof`), list of tables (`lot`).
12684 + Disable link styling by default.
12685 + Define styles for all section types.
12686 + Enable microtype.
12687 + Improved formatting of conditionals.
12689 * Beamer template: added code to prevent slide breaks inside paragraphs
12690 (#2422, thanks to Nick Bart). This will matter, in practice, only when
12691 `allowframebreaks` is used. It is especially helpful for bibliography
12692 slides.
12694 * OpenDocument template: Add `<office:automatic-styles>` tag around
12695 automatic styles. The writer now longer provides this (see #2520).
12697 * Restored Text.Pandoc.Compat.Monoid.
12699 * Do not export (<>) from custom Prelude. The Prelude now matches
12700 base 4.8 Prelude's API.
12702 * Don't use custom prelude with ghc 7.10. Use the custom prelude
12703 only for earlier versions. This change makes `stack ghci` and
12704 `cabal repl` work (#2503), at least with ghc 7.10.
12706 * Changed § to % in operators from Odt.Arrows.Utils (#2457).
12707 This prevents problems building haddocks with "C" locale.
12709 * Change default for old-locale flag to False.
12711 * Use stack in deb, osx, and Windows package generators.
12713 * Added Vagrantfile for building deb in vm.
12714 This should help in automating binary package creation. 'make package'
12715 will make the package. 'make package COMMIT=blah' will make the package
12716 from commit blah.
12718 * README:
12720 + Consistent capitalization for pandoc and Markdown.
12721 + Fixed `auto_identifiers` examples (Benoit Schweblin).
12722 + Improved documentation of template variables (Andrew Dunning).
12724## pandoc 1.15.1 (2015-10-15)
12726 * `pandocVersion` is now defined in `Text.Pandoc.Shared`
12727 and reexported from `Text.Pandoc` (Alex Vong). This allows
12728 writers to access it. (Alex Vong) (API change)
12730 * For `markdown_mmd`, add: `implicit_figures`, `superscripts`,
12731 `subscripts` (#2401).
12733 * Added `odt` as input format (MarLinn). Added new module
12734 `Text.Pandoc.Reader.ODT` (API change). Fully implemented features:
12735 Paragraphs, Headers, Basic styling, Unordered lists, Ordered lists,
12736 External Links, Internal Links, Footnotes, Endnotes, Blockquotes.
12737 Partly implemented features: Citations, Tables.
12739 * Markdown Reader:
12741 + Add basic tests for each header style (Ophir Lifshitz).
12742 + Add implicit header ref tests for headers with spaces (Ophir Lifshitz).
12743 + Skip spaces in headers (Ophir Lifshitz).
12744 + Handle 'id' and 'class' in parsing key/value attributes (#2396).
12745 `# Header {id="myid" class="foo bar"}`
12746 is now equivalent to `# Header {#myid .foo .bar}`.
12747 + Use '=' instead of '#' for atx-style headers in markdown+lhs.
12748 (Kristof Bastiaensen)
12749 + Pipe tables: allow indented columns. Previously the left-hand column
12750 could not start with 4 or more spaces indent. This was inconvenient
12751 for right-aligned left columns. Note that the first (header column)
12752 must still have 3 or fewer spaces indentation, or the table will be
12753 treated as an indented code block.
12754 + Fix regression: allow HTML comments containing `--`.
12755 Technically this isn't allowed in an HTML comment, but
12756 we've always allowed it, and so do most other implementations.
12757 It is handy if e.g. you want to put command line arguments
12758 in HTML comments.
12760 * LaTeX reader:
12762 + Don't eat excess whitespace after macros with only optional
12763 arguments (#2446).
12764 + Support longtable (#2411).
12765 + Implement `\Cite` (#2335).
12766 + Support abstract environment. The abstract populates an
12767 `abstract` metadata field.
12768 + Properly handle booktabs lines. Lines aren't part of the
12769 pandoc table model, so we just ignore them (#2307).
12771 * HTML reader:
12773 + Handle type attribute on ol, e.g. `<ol type="i">` (#2313).
12774 + Updated for new automatic header attributes.
12775 + Add auto identifiers if not present on headers. This makes
12776 TOC linking work properly.
12777 + Detect `font-variant` with `pickStyleAttrProps` (Ophir Lifshitz).
12778 + Test `<ol>` type, class, and inline list-style(-type) CSS
12779 (Ophir Lifshitz).
12780 + Better handling of "section" elements (#2438). Previously
12781 `<section>` tags were just parsed as raw HTML blocks. With
12782 this change, section elements are parsed as Div elements with
12783 the class "section".
12785 * MediaWiki reader: handle unquoted table attributes (#2355).
12787 * DocBook reader:
12789 + Added proper support for DocBook `xref` elements (Frerich Raabe).
12790 Added `dbContent` field to reader state, so we can lookup
12791 cross refs.
12792 + Handle `informalexample` (#2319).
12794 * Docx Reader:
12796 + Create special punctuation test (Ophir Lifshitz).
12797 + Parse soft, no-break hyphen elements (Ophir Lifshitz).
12798 + Updated headers test (Ophir Lifshitz). Replaced `styles.xml`
12799 in `headers.docx` with pandoc's current `styles.xml`, which
12800 contains styles for Heading 1 through 6. Added Heading 4
12801 through 7 to the test document. Note that Heading 7 is not
12802 parsed as a Heading because there is no Heading 7 style.
12804 * RST reader: better handling of indirect roles.
12805 Previously the parser failed on this kind of case
12807 .. role:: indirect(code)
12809 .. role:: py(indirect)
12810 :language: python
12812 :py:`hi`
12814 Now it correctly recognizes `:py:` as a code role.
12816 * Org reader:
12818 + Add auto identifiers if not present on headers
12819 (#2354, Juliusz Gonera).
12820 + Allow verse blocks to contain empty lines (#2402,
12821 Albert Krewinkel).
12823 * EPUB reader: stop mangling external URLs (#2284).
12825 * RST writer:
12827 + Don't insert `\ ` when complex expression in matched pairs.
12828 E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
12829 + Ensure that `\ ` is inserted when needed before Cite and Span
12830 elements that begin with a "complex" element (jgm/pandoc-citeproc#157).
12831 + Normalize headers only in "standalone" mode (#2394).
12833 * Haddock writer: escape `*` and `^` (G. Bataille).
12835 * Markdown writer:
12837 + In TOC, add links to headers (#829).
12838 + Use unicode super/subscripts for digits in plain output
12839 (when the `superscripts` and `subscripts` extensions are
12840 not enabled).
12842 * Docx writer:
12844 + Moved invalid character stripping to `formattedString`.
12845 This avoids an inefficient generic traversal (#2356).
12846 + Use user data directory for `reference.docx` archive.
12847 This allows the test suite to work without installing pandoc first.
12848 It also brings the docx writer in line with the odt writer.
12849 + Tests: docx writer tests now use `../data` for data directory.
12850 This allows tests to be run without installing first.
12851 + Tests: Use real jpg (not empty) for docx tests to avoid warning.
12853 * LaTeX writer:
12855 + Fixed detection of 'chapters' from template.
12856 If a documentclass isn't specified in metadata, but the
12857 template has a hardwired bookish documentclass, act as if
12858 `--chapters` was used. This was the default in earlier
12859 versions, but it has been broken for a little while.
12860 + Correctly recognize book documentclass in metadata (#2395).
12861 + Set language-related variables automatically, depending
12862 on the value of the `lang` field, which is now always
12863 assumed to be in BCP47 format (mb21, #1614, #2437).
12864 + Add `\protect` to `\hyperdef` in inline context. This way we
12865 don't get an error when this is used as a moveable argument (#2136).
12866 + Support all frame attributes in Beamer.
12867 + Percent-encode more special characters in URLs (#1640, #2377).
12868 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
12870 * HTML writer:
12872 + Update KaTeX JS and CSS versions (Emily Eisenberg).
12873 + For dzslides, add `role="note"` for speaker notes (#1693).
12874 + Percent-encode more special characters in URLs (#1640, #2377).
12875 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
12876 + Render Div with class `section` as `<section>` in HTML5.
12878 * EPUB writer:
12880 + In TOC, replace literal `<br/>` with space (#2105).
12881 + With `--webtex`, include image file rather than `data:` URI (#2363).
12883 * Native writer: format Div properly, with blocks separated.
12885 * Support bidirectional text output with XeLaTeX, ConTeXt and HTML
12886 (#2191, mb21).
12888 * Reference Docx:
12890 + Add missing Header 6 style (steel blue) (Ophir Lifshitz).
12891 + Correct `outlineLvl` for Header styles (Ophir Lifshitz).
12893 * Templates
12895 + Beamer: Add `innertheme`, `outertheme` variables
12896 (Guilhem Bonnefille, #121). Add space after colon in figure caption.
12897 Integrate recent font and language updates from LaTeX template;
12898 allow use of `mainfont` variable for changing the slide text
12899 in XeTeX and LuaTeX (Andrew Dunning, #131).
12900 + LaTeX: Add `mainfontoptions`, `sansfontoptions`,
12901 `monofontoptions`, `mathfontoptions`, `fontfamilyoptions`
12902 (Andrew Dunning, #122). Support handling of bidirectional
12903 text (mb21, #120). Improve reliability of superscripts/subscripts
12904 under XeTeX and prevent letters and numbers from appearing on a
12905 different baseline by removing use of the `realscripts` package
12906 (via `xltxtra`). To restore use of OpenType characters for these
12907 features under XeTeX or LuaTeX, add `\usepackage{realscripts}` to
12908 `header-includes` (Andrew Dunning, #130). Remove redundant
12909 reference to `xunicode` (Andrew Dunning, #130). Add `fontenc`,
12910 `indent`, `subparagraph` variables (Andrew Dunning).
12911 Allow use of `hidelinks` variable for `hyperref` package (Hugo Roy,
12912 #113). Prevent package clash with `tufte-latex` and other classes that
12913 include `hyperref` or `color` (Xavier Olive, #115).
12914 + ConTeXt: Support handling of bidirectional text (mb21, #120).
12915 + LaTeX and ConTeXt: Use more specific language variables.
12916 Instead of directly using `lang`, we now use `babel-lang` and
12917 `polyglossia-lang` and `context-lang`. These variables are set by
12918 the writers to the necessary values, based on the `lang` variable
12919 (which now always takes a value in BCP47 format). (mb21, #114, #129).
12920 + HTML: Support handling of bidirectional text (mb21, #120).
12921 Move HTML5 shiv after CSS and fix URL (Andrew Dunning).
12922 Add dir attribute in html5 (Andrew Dunning).
12923 + reveal.js: Add `controls`, `progress` variables (Grégoire Pineau, #127).
12924 Add `width`, `height` variables (Anrew Dunning). Update template
12925 from 3.1 source (Andrew Dunning). All configuration options are now
12926 available as variables, but are only be included if set (reveal.js
12927 uses defaults otherwise).
12928 + man: Added comment stating that the page is autogenerated by pandoc,
12929 giving version. Added `adjusting` and `hyphenate` variables
12930 (Alex Vong, #123).
12932 * epub.css: added selectors for nested emphasis (Pablo Rodriguez).
12934 * MediaBag: ensure that `/` is always used as path separator.
12936 * `sample.lua`: define `CaptionedImage`, add newline at end (#2393).
12938 * Added `--bash-completion` option. This generates a bash completion
12939 script. To use: `eval "$(pandoc --bash-completion)"`.
12941 * Text.Pandoc.Error: Define Typeable and Exception instances
12942 for PandocError (#2386).
12944 * Text.Pandoc.Parsing: `toKey`: strip off outer brackets.
12945 This makes keys with extra space at the beginning and end
12946 work: e.g.
12948 [foo]: bar
12950 [ foo ]
12952 will now be a link to bar (it wasn't before).
12954 * Text.Pandoc: disable `auto_identifiers` for epub.
12955 The epub writer inserts its own auto identifiers;
12956 this is more complex due to splitting into "chapter" files.
12958 * Renamed Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time.
12959 It now reexports Data.Time.
12961 * Use custom Prelude to avoid compiler warnings.
12963 + The (non-exported) prelude is in prelude/Prelude.hs.
12964 + It exports Monoid and Applicative, like base 4.8 prelude,
12965 but works with older base versions.
12966 + It exports (<>) for mappend.
12967 + It hides 'catch' on older base versions.
12969 * Added a `stack.ymal` and stack install instructions to INSTALL.
12971 * Clarified what is "out of scope" in README and CONTRIBUTING.md.
12973 * Added note to CONTRIBUTING.md about ghc versions and travis.
12975 * Clarify docs on block quotes. The space after `>` is optional (#2346).
12977 * Removed obsolete reference to default.csl (#2372).
12979 * List all styles in manual for `--reference-docx` (Chris Black)
12981 * Don't capitalize header links in man page.
12983 * Added section on repl to CONTRIBUTING.md.
12985 * README: Added space after backslash in image example (#2329).
12987 * Document details of citation locator terms (Nick Bart).
12989 * Fixed some internal links in README (#2309).
12991 * Improve CSL documentation, variables documentations,
12992 links, and cross-references in README. (Andrew Dunning)
12994 * Fix build failure with `--flags=-https` (Sergei Trofimovich).
12996 * Use `newManager` instead of `withManager` in recent `http-client`.
12997 This avoids a deprecation warning.
12999 * Allow building with latest versions of http-types,
13000 HUnit, criterion, syb, aeson.
13002 * Updated benchmark program for new criterion API.
13004 * Setup.hs: rewrite so as not to use process, directory, filepath.
13005 Using anything outside base is dangerous, since older
13006 versions of ghc may link against two different versions.
13008 * Added appveyor (Windows continuous integration) builds.
13010 * New `.travis.yml`. Autgenerated using `make_travis_yml.hs`.
13011 This script has been modified in a few ways, e.g. to add `GHCOPTS`.
13012 `make .travis.yml` regenerates it based on the tested-with
13013 field of the cabal file.
13015## pandoc 1.15.0.6 (2015-07-15)
13017 * `--self-contained`: Fixed overaggressive CSS minimization
13018 (#2301, 2286). Previously `--self-contained` wiped out all
13019 spaces in CSS, including semantically significant spaces.
13020 This was a regression from 1.14.x.
13022 * Markdown reader: don't allow bare URI links or autolinks in link
13023 label (#2300). Added test cases.
13025 * `Text.Pandoc.Parsing`, `uri`: Improved bare autolink detection (#2299).
13026 Previously we disallowed `-` at the end of an autolink,
13027 and disallowed the combination `=-`. This commit liberalizes the
13028 rules for allowing punctuation in a bare URI, and adds test cases.
13029 One potential drawback is that you can no longer put a bare
13030 URI in em dashes like this:
13031 `this uri---http://example.com---is an example.`
13032 But in this respect we now match github's treatment of bare URIs.
13034 * HTML writer: support speaker notes in dzslides.
13035 With this change `<div class="notes">` and also `<div class="notes"
13036 role="note">` will be output if `-t dzslides` is used. So we can
13037 have speaker notes in dzslides too. Thanks to maybegeek.
13039 * Updated dzslides template.
13041 * Improved documentation of options to print system default files (#2298).
13042 `--print-default-data-file` and `--print-default-template`.
13044 * DokuWiki writer: use `$..$` for Math instead of `<math>..</math>`
13045 (Tiziano Müller). MathJax seems currently to be the only maintained
13046 math rendering extension for DokuWiki.
13048 * `Text.Pandoc.Shared`: Changed `hierarchicalize` so it treats references
13049 div as top-level header (#2294). This fixes a bug with `--section-divs`,
13050 where the final references section added by pandoc-citeproc, enclosed in
13051 its own div, got nested in the div for the section previous to it.
13053 * Allow vector 0.11.
13055 * Require cmark > 0.4.
13057## pandoc 1.15.0.5 (2015-07-10)
13059 * HTML writer: Fixed email javascript obfuscation with `mailto:`
13060 URLs (#2280). This fixes a potential security issue. Because
13061 single quotes weren't being escaped in the link portion, a
13062 specially crafted email address could allow javascript code injection.
13064 * RST reader: allow inline formatting in definition list field
13065 names (Lars-Dominik Braun).
13067 * PDF: Make sure `--latex-engine-opt` goes before the filename
13068 on the command line. LaTeX needs the argument to come after
13069 the options (#1779).
13071 * CommonMark writer: fixed tags used for super/subscript.
13073 * ConTeXt template: activate hanging indent for definition lists
13074 (mb21).
13076 * Make cabal require `hsb2hs` >= 0.3.1 if `embed_data_files` specified.
13077 This is done by adding `hookedPrograms` in `Setup.hs`, which allows us
13078 to include `hsb2hs` in Build-Tools in cabal.
13080 * Improved Windows installer (thanks to nkalvi).
13082 + When per-machine installation is chosen, the system path
13083 is updated instead of the user's.
13084 + An appropriate default is used for per-machine installation
13085 directory.
13086 + Admin privileges are no longer required for a per-user install
13088 * Travis: unpack sdist for build to catch packaging bugs.
13090 * Improved documentation on where user templates go (#2272).
13092## pandoc 1.15.0.4 (2015-07-03)
13094 * Added pandoc.1 man page to the repository. It is no longer
13095 built as part of the cabal build process. (This proved too
13096 fragile.) pandoc.1 can be regenerated (`make man/pandoc.1`)
13097 when `README` is changed.
13099 * Copying of the man page now respects `--destdir` (#2262).
13101 * Improved error messages for filters. User is now informed if
13102 the filter requires an interpreter that isn't found in the path,
13103 or if the filter returns an error status.
13105## pandoc 1.15.0.3 (2015-07-02)
13107 * Ensure target directory is created when installing man page.
13109## pandoc 1.15.0.2 (2015-07-02)
13111 * Added files needed for building man page to Extra-Source-Files.
13113## pandoc 1.15.0.1 (2015-07-01)
13115 * Man page is now built and installed as part of the cabal build
13116 process. Removed Makefile target for man page.
13118## pandoc 1.15 (2015-07-01)
13120 * Man page changes:
13122 + Removed `--man1`, `--man5` options (breaking change).
13123 + Removed `Text.Pandoc.ManPages` module (breaking API change).
13124 + Makefile target for `man/man1/pandoc.1`. This uses pandoc to
13125 create the man page from README using a custom template and filters.
13126 + Added `man/` directory with template and filters needed to build
13127 man page.
13128 + We no longer have two man pages: `pandoc.1` and `pandoc_markdown.5`.
13129 Now there is just pandoc.1, which has all the content from README.
13130 This change was needed because of the extensive cross-references
13131 between parts of the README.
13132 + Removed old `data/pandoc.1.template` and
13133 `data/pandoc_markdown.5.template`.
13135 * OpenDocument writer: Do not add a carriage return after a hard
13136 line break (Michael Chladek).
13138 * ConTeXt writer:
13140 + use `\goto` for internal links.
13141 + Added a `%` at end for `\reference` to avoid spurious space.
13143 * Ignore sandbox on 'make quick'
13145## pandoc 1.14.1 (2015-06-30)
13147 * Added `--man1` and `--man5` options to pandoc, allowing
13148 pandoc to generate its own man pages. Man pages are no longer
13149 automatically generated in the build process (the process for
13150 this was too complex and prone to failure, #2190). The
13151 `make-pandoc-man-pages` executable has been removed. The
13152 `man/` directory has been removed, and man page templates
13153 have been moved to `data/`. NOTE TO PACKAGERS: You will no
13154 longer find pandoc's man pages in `man/`, but you can
13155 generate them using `pandoc --man1 > pandoc.1` and `pandoc
13156 --man5 > pandoc_markdown.5`.
13158 * Added new unexported module: `Text.Pandoc.ManPages`.
13160 * `README` now acts like a data file (even though it isn't in
13161 `data/`). So, for example, `pandoc --print-default-data-file README`
13162 will produce the README.) This change was required for the `--man1`
13163 and `--man5` options, since the man pages are produced from the
13164 README, but it may be useful for other purposes as well.
13166 * Allow `reference.docx` and `reference.odt` to be used with
13167 `--print-default-data-file` and to shadow defaults if placed in
13168 the user data directory. Note that as of 1.14, we no longer
13169 include these files as data files; instead, we include their
13170 components. This change causes pandoc to behave as if it has
13171 these data files; they are constructed on demand when needed
13172 using `getDefaultReferenceDocx` and `getDefaultReferenceODT`.
13174 * Fixed regression in CSS parsing with `--self-contained` (#2224).
13175 Pandoc 1.14.0.x used css-text to parse the CSS, but its parser
13176 silently drops big sections of CSS. This commit replaces the
13177 use of css-text with a small but principled CSS preprocessor,
13178 which removes whitespace and comments and replaces `url()` with
13179 base 64 data when possible.
13181 * Use `https://` instead of `//` for MathJax and KaTeX CDN URLs (#1920).
13182 This will allow math to work when pages are being viewed locally.
13184 * `Text.Pandoc.Options`: Export `plainExtensions`.
13185 These are the extensions used in `plain` output.
13187 * LaTeX reader: Don't parse `_` and `^` as sub/superscript outside of
13188 math mode; treat them as regular inline text. Normally these will
13189 cause an error in LaTeX, but there are contexts (e.g. `alltt`
13190 environments) where they are allowed.
13192 * HTML reader: allow `<body>` to close `<head>`.
13194 * DocBook reader: support `mediaobject`s and `figures` (#2184, mb21).
13196 * RST reader: Fix reference names with special characters
13197 (Lars-Dominik Braun).
13199 * Textile writer: escape `+` and `-` as entities (#2225).
13201 * DokuWiki writer: Use proper `<code>` tags for code blocks (#2213).
13203 * Plain writer: don't use symbols for super/subscript (#2237).
13204 Simplified code by using `plainExtensions`.
13206 * InDesign writer: Properly escape URLs containing more than one
13207 colon character (gohai).
13209 * Docx writer: Make sure we use dist version of `reference.docx`
13210 (and not the user's version) for certain settings. Taking some
13211 settings values from a user-supplied reference.docx can lead to
13212 corruption. This fixes a regression from the last release (#2249).
13214 * `Text.Pandoc.Shared`: exports `getDefaultReferenceDocx` and
13215 `getDefaultReferenceODT` (API change). These functions have been
13216 removed from the Docx and ODT writers.
13218 * LaTeX template (Xavier Olive):
13219 + Added `CJKmainfont` and `CJKoptions` variables.
13220 + Allow dvipsnames (e.g. `MidnightBlue`) for colors (Xavier Olive).
13222 * Epub templates: use `author.role`, not `author.type`.
13224 * Bump cmark version to >= 0.3.4.
13226 * Improved Windows installer (#2205, thanks to nkalvi).
13227 Users can now select a per-user or systemwide install, and can set
13228 the installation path. At the end of installation, the install location
13229 is given. The install location is also now given in the list of
13230 installed programs in Control Panel. Cleaner WiX syntax is used for
13231 setting the path.
13233 * Added `download_stats` target to Makefile.
13235## pandoc 1.14.0.4 (2015-06-02)
13237 * Added missing commonmark template.
13239 * Improved try pandoc (moved button, show raw command).
13241## pandoc 1.14.0.3 (2015-06-01)
13243 * Allow compilation with syb 0.5.*.
13245 * Custom writer: fixed some compiler warnings for ghc < 7.10.
13247## pandoc 1.14.0.2 (2015-05-31)
13249 * Allow building with hslua 0.4.
13251## pandoc 1.14.0.1 (2015-05-28)
13253 * Fixed problem with building of `reference.docx` and `reference.odt`
13254 when the `embed_data_files` flag is used. Instead of having a phase
13255 of the build where `reference.docx` and `reference.odt` are created
13256 from their constituent data files, we now construct these archives
13257 from their constituents when a `docx` or `odt` is built. The
13258 constituent files have been moved from `extra-source-files` to
13259 `data-files`, and `reference.docx` and `reference.odt` have been
13260 removed. Users can create their own `reference.docx` or
13261 `reference.odt` by using pandoc to create a simple `docx` or `odt`.
13262 `make-reference-files.hs` has been removed, simplifying the build
13263 process (#2187)
13265 * Don't include generated man pages in extra-source-files (#2189).
13267 * Bumped upper bound for aeson.
13269 * ConTeXt writer: create internal link anchors for Div elements with
13270 identifiers. (This is needed for linked citations to work.)
13272## pandoc 1.14 (2015-05-27)
13274### New features
13276 * Added `commonmark` as input and output format.
13278 * Added `--verbose` flag for debugging output in PDF production (#1840,
13279 #1653).
13281 * Allow wildcards in `--epub-embed-font` arguments (#1939).
13283 * Added `--latex-engine-opt` option (#969, #1779, Sumit Sahrawat).
13285 * Added `shortcut_reference_links` extension (Konstantin Zudov, #1977).
13286 This is enabled by default for those markdown flavors that
13287 support reading shortcut reference links, namely: `markdown`,
13288 `markdown_strict`, `markdown_github`, `markdown_php`.
13289 If the extension is enabled, the reader parses shortcut reference
13290 links like `[foo]`, and the writer creates such links unless doing
13291 so would cause problems. Users of markdown flavors that support
13292 shortcut reference links should not notice a difference in reading
13293 markdown, but the markdown pandoc produces may differ.
13294 If shortcut links are not desired, the extension can be disabled
13295 in the normal way.
13297### Behavior changes
13299 * `--toc` is now supported for `docx` output (#458, Nikolay Yakimov).
13300 A "dirty" TOC is created at the beginning of document.
13301 It can be regenerated after the document has been opened.
13303 * An implicit `--filter pandoc-citeproc` is now triggered only when the
13304 `--bibliography` option is used, and not when the `bibliography`
13305 field in metadata is specified (#1849).
13307 * Markdown reader:
13309 + Reference links with `implicit_header_references` are no longer
13310 case-sensitive (#1606).
13311 + Definition lists no longer require indentation for first line (#2087).
13312 Previously the body of the definition (after the `:` or `~` marker)
13313 needed to be in column 4. This commit relaxes that requirement,
13314 to better match the behavior of PHP Markdown Extra. So, now
13315 this is a valid definition list:
13317 foo
13318 : bar
13319 + Resolve a potentially ambiguity with table captions:
13321 foo
13323 : bar
13325 -----
13326 table
13327 -----
13329 Is "bar" a definition, or the caption for the table? We'll count
13330 it as a caption for the table.
13331 + Disallow headerless pipe tables (#1996), to conform to GFM and PHP
13332 Markdown Extra. Note: If you have been using headerless pipe tables,
13333 this change may cause existing tables to break.
13334 + Allow pipe tables with header but no body (#2017).
13335 + Allow a digit as first character of a citation key (Matthias Troffaes).
13336 See https://github.com/jgm/pandoc-citeproc/issues/97
13338 * LaTeX reader:
13340 + Don't limit includes to `.tex` extension (#1882).
13341 If the extension is not `.tex`, it must be given explicitly in
13342 the `\input` or `\include`.
13344 * Docx reader:
13346 + Allow numbering in the style file. This allows inherited styles
13347 with numbering (lists) (Jesse Rosenthal).
13349 * Org reader:
13351 + Support smart punctuation (Craig Bosma).
13352 + Drop trees with a :noexport: tag (Albert Krewinkel). Trees having a
13353 `:noexport:` tag set are not exported. This mirrors org-mode.
13354 + Put header tags into empty spans (Albert Krewinkel, #2160).
13355 Org mode allows headers to be tagged: `* Headline :TAG1:TAG2`.
13356 Instead of being interpreted as part of the headline, the tags are now
13357 put into the attributes of empty spans. Spans without textual content
13358 won't be visible by default, but they are detectable by filters. They
13359 can also be styled using CSS when written as HTML.
13360 + Generalize code block result parsing (Albert Krewinkel).
13361 Previously, only code blocks were recognized as result blocks;
13362 now, any kind of block can be the result.
13364 * Append newline to the LineBreak in Dokuwiki, HTML, EPUB,
13365 LaTeX, MediaWiki, OpenDocument, Texinfo writers (#1924, Tim Lin).
13367 * HTML writer:
13369 + Add "inline" or "display" class to math spans (#1914).
13370 This allows inline and display math to be styled differently.
13371 + Include raw latex blocks if `--mathjax` specified (#1938).
13372 + Require highlighting-kate >= 0.5.14 (#1903).
13373 This ensures that all code blocks will be wrapped in a `div`
13374 with class `sourceCode`. Also, the default highlighting CSS
13375 now adds `div.sourceCode { x-overflow: auto; }`, which means
13376 that code blocks (even with line numbers) will acquire a scroll
13377 bar on screens too small to display them (e.g. mobile phones).
13378 See also jgm/highlighting-kate#65.
13380 * LaTeX writer:
13382 + Use a declaration for tight lists (Jose Luis Duran, Joseph
13383 Harriott). Previously, pandoc hard-coded some commands to make
13384 tight lists in LaTeX. Now we use a custom command instead,
13385 allowing the styling to be changed in a macro in the header.
13386 (Note: existing templates may need to be modified to include
13387 the definition of this macro. See the current template.)
13388 + Beamer output: if the header introducing a slide has the
13389 class `fragile`, add the `[fragile]` option to the slide (#2119).
13391 * MediaWiki writer:
13393 + Use `File:` instead of the deprecated `Image:` for images and
13394 other media files (Greg Rundlett).
13396 * DocBook writer:
13398 + Render a `Div (id,_,_) [Para _]` element as a `para` element
13399 with an `id` attribute. This makes links to citations work in
13400 DocBook with pandoc-citeproc.
13402 * RST writer:
13404 + Normalize headings to sequential levels (Nikolay Yakimov).
13405 This is pretty much required by docutils.
13406 + Treat headings in block quotes, etc as rubrics (Nikolay Yakimov).
13407 + Better handling of raw latex inline (#1961). We use
13408 `` :raw-latex:`...` `` and add a definition for this role to
13409 the template.
13411 * EPUB writer:
13413 + Remove `linear=no` from cover `itemref` (#1609).
13414 + Don't use `sup` element for epub footnotes (#1995).
13415 Instead, just use an a element with class `footnoteRef`.
13416 This allows more styling options, and provides better results
13417 in some readers (e.g. iBooks, where anything inside the a
13418 tag breaks popup footnotes).
13419 + Take TOC title from `toc-title` metadata field.
13421 * Docx writer:
13423 + Implemented `FirstParagraph` style (Jesse Rosenthal).
13424 Following the ODT writer, we add the `FirstParagraph` style to the
13425 first text paragraph following an image, blockquote, table, heading,
13426 or beginning of document. This allows it to be styled differently.
13427 The default is for it to be the same as `Normal`.
13428 + Added `BodyText` style (Jesse Rosenthal).
13429 We apply a `BodyText` style to all unstyled paragraphs. This is,
13430 essentially, the same as `Normal`, except that since not everything
13431 inherits from `BodyText` (the metadata won't, for example, or
13432 the headers or footnote numbers), we can change the text in the body
13433 without having to make exceptions for everything. If we do want to
13434 change *everything*, we can still do it through `Normal`.
13435 + Altered `Blockquote` style slightly (Jesse Rosenthal).
13436 Since `BlockQuote` derives from `BodyText`, we just want to specify
13437 by default that it won't indent, regardless of what `BodyText` does.
13438 Note that this will not produce any visible difference in the default
13439 configuration.
13440 + Take TOC title from `toc-title` metadata field (Nikolay Yakimov).
13441 + Added a style to figure images (Nikolay Yakimov).
13442 Figures with empty captions use style `Figure`.
13443 Figures with nonempty captions use style `Figure with Caption`, which
13444 is based on `Figure`, and additionally has `keepNext` set.
13446 * ODT writer:
13448 + Added figure captions (Nikolay Yakimov). The following styles are
13449 used for figures:
13450 `Figure` -- for figure with empty caption),
13451 `FigureWithCaption` (based on `Figure`) -- for figure with caption,
13452 `FigureCaption` (based on `Caption`) -- for figure captions.
13453 Also, `TableCaption` (based on `Caption`) is used for table captions.
13455### API changes
13457 * New `Text.Pandoc.Error` module with `PandocError` type
13458 (Matthew Pickering).
13460 * All readers now return `Either PandocError Pandoc` instead of `Pandoc`
13461 (Matthew Pickering). This allows better handling of errors.
13463 * Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
13465 * Added `Text.Pandoc.Readers.CommonMark`, exporting `readCommonMark`.
13467 * Derive `Data` and `Typeable` instances for `MediaBag`, `Extension`,
13468 `ReaderOptions`, `EPUBVersion`, `CiteMethod`, `ObfuscationMethod`,
13469 `HTMLSlideVariant`, `TrackChanges`, `WriterOptions` (Shabbaz
13470 Youssefi).
13472 * New `Ext_shortcut_reference_links` constructor for `Extension`
13473 (Konstantin Zudov).
13475### Bug fixes
13477 * Markdown reader:
13479 + Allow smart `'` after inline math (#1909, Nikolay Yakimov).
13480 + Check for tex macros after indented code (#1973).
13481 + Rewrote `charsInBalancedBrackets` for efficiency.
13482 + Make sure a closing `</div>` doesn't get included in a
13483 definition list item (#2127).
13484 + Don't parse bracketed text as citation if it might be a link,
13485 image, or footnote (Nikolay Yakimov).
13486 + Require space after key in mmd title block (#2026, Nikolay
13487 Yakimov). Require space after key-value delimiter colon in mmd title
13488 block.
13489 + Require nonempty value in mmd title block (Nikolay Yakimov).
13490 + Disable all metadata block extensions when parsing
13491 metadata field values (#2026, Nikolay Yakimov). Otherwise we
13492 could get a mmd title block inside YAML metadata, for example.
13494 * HTML reader:
13496 + Improve self-closing tag detection in `htmlInBalanced` (#2146).
13497 + Handle tables with `<th>` in body rows (#1859, mb21).
13498 + Fixed `htmlTag` (#1820). If the tag parses as a comment, we check
13499 to see if the input starts with `<!--`. If not, it's bogus comment
13500 mode and we fail `htmlTag`.
13501 + Handle `base` tag; if it has an `href` value, this is added to
13502 all relative URLs in links and images.
13504 * DocBook reader:
13506 + Look inside "info" elements for section titles (#1931).
13508 * Docx reader:
13510 + Parse images in deprecated vml format (Jesse Rosenthal).
13511 + Allow sub/superscript verbatims (Jesse Rosenthal).
13512 Verbatim usually shuts off all other run styles, but we don't want it
13513 to shut off sub/superscript.
13515 * LaTeX reader:
13517 + Handle `tabular*` environment (#1850).
13518 Note that the table width is not actually parsed or taken into
13519 account, but pandoc no longer chokes on it.
13520 + Ignore options in `\lstinline` rather than raising error (#1997).
13521 + Add some test cases for simple tables (Mathias Schenner).
13522 + Handle valign argument in tables (Mathias Schenner) (currently
13523 we just ignore this).
13524 + Allow non-empty colsep in tables (Mathias Schenner).
13525 The `tabular` environment allows non-empty column separators
13526 with the "@{...}" syntax. Previously, pandoc would fail to
13527 parse tables if a non-empty colsep was present. With this
13528 commit, these separators are still ignored, but the table gets
13529 parsed. A test case is included.
13530 + Recognize `\newpage` as a block command.
13531 + Allow block content in `\title{}` (#2001).
13532 + Check for block-level newcommand aliases in blockCommand (Nikolay
13533 Yakimov).
13534 + Guard against paragraph starting with inline macro (Nikolay Yakimov).
13535 + Properly gobble spaces after `\\` (#2007).
13537 * Textile reader:
13539 + Handle newlines in table cells, and empty cells (#1919).
13541 * Org reader:
13543 + Allow image links with non-image targets (Hans-Peter Deifel).
13544 This matches behavior of Org-Mode for links like
13545 `[[http://example.com][https://www.haskell.org/static/img/logo.png]]`.
13547 * Docbook writer:
13549 + Don't print empty id attributes (thanks to Steve Horne).
13551 * HTML writer:
13553 + Fixed list-style-type for numbered example lists.
13554 Should be "decimal," not "example" (#1902).
13555 + Do not omit missing `alt` attribute on `img` tag (#1131,
13556 Konstantin Zudov).
13557 + Allow multiple colgroups in table (#2122).
13558 + In revealjs, ensure that lists in speaker notes don't add "fragment"
13559 classes, which can cause additional keypresses to be needed to
13560 advance a slide (#1394).
13562 * LaTeX writer:
13564 + Don't escape `$` in URL (#1913).
13565 + Don't use listings in headers (Matthew Pickering, #1963).
13566 + Recognize book documentclass if set in metadata (#1971).
13567 This sets `--chapters` implicitly if the documentclass in metadata
13568 is a book documentclass. Previously this was done only if a book
13569 documentclass was set in a variable.
13570 + Add a `\label` in `\hyperdef` for Div, Span (or links don't work).
13571 + Make `mainlang` work when `lang` is in metadata (#2174).
13573 * Texinfo writer:
13575 + Fix wrapping by using breakable spaces (Tim Lin).
13577 * RST writer:
13579 + Fixed toc depth in RST writer. Previously the depth was being
13580 rendered as a floating point number with a decimal point.
13582 * Markdown writer:
13584 + Improved escaping (#2086). `<` should not be escaped as `\<`, for
13585 compatibility with original Markdown. We now escape `<` and `>`
13586 with entities. Also, we now backslash-escape square brackets.
13587 + Avoid introducing spurious list items through wrapping (#1946).
13588 + Don't emit span tags if plain or raw HTML disabled.
13590 * MediaWiki writer:
13592 + Convert spaces to underscores in wikilink URL (#1982), like MediaWiki.
13594 * AsciiDoc writer:
13596 + Insert some needed blank lines (#1860).
13597 + Avoid wrapping after list marker (#1858).
13599 * EPUB writer:
13601 + Properly handle internal links to IDs in spans, divs (#1884).
13602 + Use plain writer for metadata dc: fields (#2121).
13603 This gives better results when we have, e.g. multiple paragraphs.
13604 Note that tags aren't allowed in these fields.
13605 + Properly handle image links without an extension (#1855).
13606 + Improved chapter splitting and internal link rewriting (#1887,
13607 #2162, #2163). This will ensure that internal links work and
13608 that the references section produced by pandoc-citeproc is
13609 in its own chapter.
13610 + Fixed handling of svg images (#2183).
13612 * ICML writer:
13614 + Better handling of raw blocks and inlines (#1951).
13615 Previously these were always escaped and printed verbatim.
13616 Now they are ignored unless the format is `icml`, in which
13617 case they are passed through unescaped.
13618 + Fixed image URIs in ICML output (gohai).
13620 * Custom writer:
13622 + Raise error if loadstring returns an error status.
13623 + Raise `PandocLuaException` instead of using 'error'.
13624 Eventually we'll change the return type so that no exception
13625 is involved, but at least this can be trapped.
13626 + Use UTF-8 aware bytestring conversion.
13627 + Set foreign encoding to UTF-8 (Nikolay Yakimov, #2101, #1634).
13628 Also factored out ByteString, since it's only used as an intermediate
13629 representation.
13631 * Docx writer:
13633 + Copy hyphenation settings from reference.docx (Nikolay Yakimov).
13634 + Filter out illegal XML characters (#1992, Matthew Pickering).
13635 + Added `noProof` to docx syntax highlighting `SourceCode` style.
13636 + Added footnotes id -1 and 0 (Jesse Rosenthal).
13637 Word uses, by default, footnotes with id -1 and 0 for separators. If a
13638 user modifies `reference.docx`, they will end up with a `settings.xml`
13639 file that references these footnotes, but no such footnotes in the
13640 document. This will produce a corruption error. Here we add these to the
13641 document and `settings.xml` file, so future modifications won't break
13642 the file.
13643 + Handle lists correctly inside table cells (Jesse Rosenthal).
13644 Previously we didn't transform lists inside table cells.
13645 + Set firstRow information in tables (Nikolay Yakimov).
13646 + Don't replace `SourceCode` style in `reference.docx` if it is defined
13647 there (Nikolay Yakimov, #1872). If `--no-highlight` specified, remove
13648 any `SourceCode` and `*Tok` styles in `reference.docx`.
13649 + Attempt to match international style names (#1607, Nikolay Yakimov).
13650 + Set these styles as custom (Nikolay Yakimov): `Author`, `Abstract`,
13651 `Compact`, `Image Caption`, `Table Caption`, `Definition Term`,
13652 `Definition`, `First Paragraph`.
13653 + Rename these styles to correspond with Word `Normal.dotm` (Nikolay
13654 Yakimov): `Block Quote -> Block Text`, `Link -> Hyperlink`,
13655 `Footnote Ref -> Footnote Reference`.
13656 + Added `Caption` style (Nikolay Yakimov).
13657 + Changed these styles' inheritance (Nikolay Yakimov):
13658 `Image Caption <- Caption`, `Table Caption <- Caption`.
13659 + Remove `SourceCode` style from `reference.docx` (#1872).
13660 This is added automatically by the docx writer.
13661 + Added toc heading style to `reference.docx` (Nikolay Yakimov).
13663 * `Text.Pandoc.PDF`
13665 + Don't suggest "Try xelatex" if xelatex already in use (mb21, #1832).
13666 + More comprehensible errors on image conversion (#2067).
13667 EPS can't be supported without shelling out to something like
13668 ImageMagick, but at least we can avoid mysterious error messages.
13670 * `Text.Pandoc.Shared`:
13672 + Make safeRead safe (#1801, Matthew Pickering).
13673 + Added `mapLeft`, `hush` (Matthew Pickering).
13675 * `Text.Pandoc.Pretty`:
13677 + Remove partial function (Matthew Pickering).
13679 * `Text.Pandoc.SelfContained`:
13681 + Add `;charset=utf-8` to script mime type if missing (#1842).
13682 + Improved building of data URIs (#1940). Now base64 is used except
13683 for `text/*` mime types.
13684 + `cssURLs` no longer tries to fetch fragment URLs (#2121).
13685 + Properly handle data URIs in css urls (#2129).
13686 Use a proper CSS parser (adds dependency on `text-css`).
13688 * `Text.Pandoc.UTF8`:
13690 + Better handling of bare CRs in input files (#2132).
13691 Previously we just stripped them out; now we convert
13692 other line ending styles to LF line endings.
13694 * `Text.Pandoc.ImageSize`:
13696 + Fixed some exif header parsing bugs (#1834).
13697 + Make imageSize return an Either, not a Maybe (#1834).
13698 Use `runGetOrFail` (with `binary >= 0.7`) to return `Left` on
13699 parse failure (rather than `error`).
13700 + Improved warnings when image size can't be determined.
13701 + Removed error landmines (Matthew Pickering).
13703 * Added woff2 to MIME types (Alfred Wechselberger).
13705 * pandoc: When a binary input format is used, warn that file
13706 arguments past the first one are being ignored (Matthew Pickering).
13708### Template changes
13710 * LaTeX template:
13712 + Degrade gracefully if `\paragraph` not defined.
13713 + Include `grffile` together with `graphicx` (#2074).
13714 This properly handles filenames containing spaces and dots.
13715 + Redefine `\paragraph`, `\subparagraph`... to behave more
13716 like section headers (#1658).
13717 + Import hyperref before polyglossia to avoid an error with xelatex,
13718 "please load package hyperref before bidi package" (Nick Bart).
13719 + Added `toccolor` variable to control link color in toc (Kaixhin).
13721 * LaTeX, Beamer templates:
13723 + Provide `\tightlist`, which is now used by the LaTeX writer.
13724 + Use polyglossia in beamer (#85).
13725 + Use `bibliography` instead of `biblio-files`
13726 (#1661). Also use `\addbibresource` instead of `\bibliography` for
13727 biblatex.
13728 + Added `setotherlanguages` in polyglossia. This uses an `otherlang`
13729 variable that is derived from a comma-separated list in `lang`;
13730 the last language is `mainlang` and the others are `otherlang`.
13732 * EPUB templates:
13734 + Use `div`, not `p`, for "rights" on title page.
13735 + Added header-includes, include-before, include-after (#1987).
13737 * OpenDocument template:
13739 + Use `text:p` instead of `text:h` for title.
13740 Using `text:h` causes problems with numbering. Closes #2059.
13741 Thanks to @nkalvi for diagnosing this.
13743 * reveal.js template:
13745 + Link to non-minified css, js. The minified versions no longer
13746 ship with the library.
13747 + Correctly include style CSS (#1949).
13748 + New configurable options options: `center`, `maxScale`, `slideNuber`
13749 (Dmitry Smirnov, pandoc-templates#89).
13750 + Moved custom CSS after theme. This allows custom CSS to modify
13751 themes, instead of being replaced by them.
13752 + Allow `center` to be set to false.
13754### Under the hood improvements
13756 * Removed pre-built `reference.docx` and `reference.odt` (Nikolay
13757 Yakimov). Instead the repository now includes the component text files,
13758 and the zipped binaries are built from these using a helper
13759 program, `make-reference-files`. This should make maintenance of
13760 these components easier going forward.
13762 * `Text.Pandoc.Parsing`:
13764 + Added new `<+?>` combinator (Nikolay Yakimov).
13765 + Added `stateHeaderKeys` to `ParserState`.
13767 * `make_deb.sh` fixes:
13769 + Detect architecture.
13770 + Add Installed-Size to debian package control file (#1900).
13771 + Use `fakeroot` to get permissions right.
13772 + Use `mkdir` and `cp` instead of `install`.
13773 + Set permissions of directories to 755.
13774 + Install in `/usr` rather than `/usr/local`.
13775 + Compress man pages.
13776 + Combine copyright files for `pandoc`, `pandoc-citeproc`.
13778 * Added `Text.Pandoc.Compat.Locale` and `old-locale` flag
13779 to assist with transition to `time` 1.5.
13781 * Updated CONTRIBUTING.md with information about issue tags (Matthew
13782 Pickering).
13784 * Updated travis installs to the new sudo-less syntax (Tim Lin).
13786 * Updated dependency version bounds.
13788 * EPUB tests: don't use `joinPath`, which varies across platforms.
13789 Instead, use a forward-slash to join paths, regardless of the
13790 platform. This matches the way `MediaBag` now works.
13792 * Clarify JSON input and output in usage message (Caleb McDaniel).
13794 * Improved INSTALL instructions.
13796 * Always build man pages. Removed make-pandoc-man-pages flag.
13798 * Makefile: removed man target, now that we generate man pages by default.
13800 * README:
13802 + Fixed typos (J. Lewis Muir).
13803 + Added documentation on backtick_code_blocks (#2135, Nikolay Yakimov).
13804 + Added note on in-field markup in biblio databases (Nick Bart).
13805 + Fixed misleading example of raw HTML block.
13806 + Various minor formatting and consistency fixes for the program
13807 options (Andreas Lööw).
13808 + Made definition lists for options all "loose" for consistency.
13809 + Added YAML biblio format to table, and note on `pandoc-citeproc`'s
13810 `--bib2json` and `--bib2yaml` options (Nick Bart).
13811 + Removed obsolete reference to `mods2yaml` (Nick Bart).
13812 + Added section on syntax highlighting.
13813 + Documented `toccolor` variable.
13815## pandoc 1.13.2.1 (2015-04-15)
13817 * Updated to build with ghc 7.10.1.
13819 * Bumped package upper bounds for filepath, blaze-html, blaze-markup.
13821## pandoc 1.13.2 (2014-12-20)
13823 * TWiki Reader: add new new twiki reader (API chaneg, Alexander Sulfrian).
13825 * Markdown reader:
13827 + Better handling of paragraph in div (#1591).
13828 Previously text that ended a div would be parsed as Plain
13829 unless there was a blank line before the closing div tag.
13830 + Don't treat a citation as a reference link label (#1763).
13831 + Fix autolinks with following punctuation (#1811).
13832 The price of this is that autolinked bare URIs can no longer
13833 contain `>` characters, but this is not a big issue.
13834 + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom).
13835 + Allow `startnum` to work without `fancy_lists`. Formerly
13836 `pandoc -f markdown-fancy_lists+startnum` did not work properly.
13838 * RST reader (all Daniel Bergey):
13840 + Parse quoted literal blocks (#65). RST quoted literal blocks are
13841 the same as indented literal blocks (which pandoc already supports)
13842 except that the quote character is preserved in each line.
13843 + Parse RST class directives. The class directive accepts one or more
13844 class names, and creates a Div value with those classes. If the
13845 directive has an indented body, the body is parsed as the children of
13846 the Div. If not, the first block following the directive is made a
13847 child of the Div. This differs from the behavior of rst2xml, which
13848 does not create a Div element. Instead, the specified classes are
13849 applied to each child of the directive. However, most Pandoc Block
13850 constructors to not take an Attr argument, so we can't duplicate this
13851 behavior.
13852 + Warn about skipped directives.
13853 + Literal role now produces Code. Code role should have "code" class.
13854 + Improved support for custom roles
13856 - Added `sourceCode` to classes for `:code:` role, and anything
13857 inheriting from it.
13858 - Add the name of the custom role to classes if the Inline
13859 constructor supports Attr.
13860 - If the custom role directive does not specify a parent role,
13861 inherit from the `:span:` role.
13863 This differs somewhat from the `rst2xml.py` behavior. If a custom
13864 role inherits from another custom role, Pandoc will attach both
13865 roles' names as classes. `rst2xml.py` will only use the class of
13866 the directly invoked role (though in the case of inheriting from a
13867 `:code:` role with a `:language:` defined, it will also provide the
13868 inherited language as a class).
13869 + Warn about ignored fields in role directives.
13871 * LaTeX reader:
13873 + Parse label after caption into a span instead of
13874 inserting an additional paragraph of bracketed text (#1747).
13875 + Parse math environments as inline when possible (#1821).
13876 + Better handling of `\noindent` and `\greektext` (#1783).
13877 + Handle `\texorpdfstring` more gracefully.
13878 + Handle `\cref` and `\sep` (Wikiwide).
13879 + Support `\smartcite` and `\Smartcite` from biblatex.
13881 * HTML reader:
13883 + Retain display type of MathML output (#1719, Matthew Pickering).
13884 + Recognise `<br>` tags inside `<pre>` blocks (#1620, Matthew Pickering).
13885 + Make `embed` tag either block or inline (#1756).
13887 * DocBook reader:
13889 + Handle `keycombo`, `keycap` (#1815).
13890 + Get string content in inner tags for literal elements (#1816).
13891 + Handle `menuchoice` elements better, with a `>` between (#1817).
13892 + Include `id` on section headers (#1818).
13893 + Document/test "type" as implemented (Brian O'Sullivan).
13894 + Add support for calloutlist and callout (Brian O'Sullivan).
13895 We treat a calloutlist as a bulleted list. This works well in practice.
13896 + Add support for `classname` (Bryan O'Sullivan).
13898 * Docx reader:
13900 + Fix window path for image lookup (Jesse Rosenthal).
13901 Don't use os-sensitive "combine", since we always want the paths in our
13902 zip-archive to use forward-slashes.
13903 + Single-item headers in ordered lists are headers (Jesse Rosenthal).
13904 When users number their headers, Word understands that as a single item
13905 enumerated list. We make the assumption that such a list is, in fact,
13906 a header.
13907 + Rewrite rewriteLink to work with new headers (Jesse Rosenthal).
13908 There could be new top-level headers after making lists, so we have to
13909 rewrite links after that.
13910 + Use polyglot header list (Jesse Rosenthal).
13911 We're just keeping a list of header formats that different languages
13912 use as their default styles. At the moment, we have English, German,
13913 Danish, and French. We can continue to add to this.
13914 This is simpler than parsing the styles file, and perhaps less
13915 error-prone, since there seems to be some variations, even within a
13916 language, of how a style file will define headers.
13917 + Remove header class properly in other langs (Jesse Rosenthal).
13918 When we encounter one of the polyglot header styles, we want to remove
13919 that from the par styles after we convert to a header. To do that, we
13920 have to keep track of the style name, and remove it appropriately.
13921 + Account for external link URLs with anchors. Previously, if a URL
13922 had an anchor, the reader would incorrectly identify it as an
13923 internal link and return only the anchor as URL. (Caleb McDaniel)
13924 + Fix for Issue #1692 (i18n styles) (Nikolay Yakimov).
13926 * Org reader:
13928 + Added state changing blanklines (Jesse Rosenthal).
13929 This allows us to emphasize at the beginning of a new paragraph (or, in
13930 general, after blank lines).
13931 + Fixed bug with bulleted lists:
13933 - a
13934 - b
13935 * c
13937 was being parsed as a list, even though an unindented `*`
13938 should make a heading. See
13939 <http://orgmode.org/manual/Plain-lists.html#fn-1>.
13940 + Org reader: absolute, relative paths in link (#1741, Albert
13941 Krewinkel). The org reader was too restrictive when parsing links;
13942 some relative links and links to files given as absolute paths
13943 were not recognized correctly.
13944 + Org reader: allow empty links (jgm/gitit#471, Albert Krewinkel).
13945 This is important for use in gitit, which uses empty links
13946 for wikilinks.
13947 + Respect indent when parsing Org bullet lists (#1650, Timothy
13948 Humphries). Fixes issue with top-level bullet list parsing.
13949 + Fix indent issue for definition lists (Timothy Humphries,
13950 see #1650, #1698, #1680).
13951 + Parse multi-inline terms correctly in definition list (#1649,
13952 Matthew Pickering).
13953 + Fix rules for emphasis recognition (Albert Krewinkel).
13954 Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
13955 strings. This is wrong, as `,` and `'` are forbidden border chars and
13956 may not occur on the inner border of emphasized text.
13957 + Drop COMMENT document trees (Albert Krewinkel).
13958 Document trees under a header starting with the word `COMMENT` are
13959 comment trees and should not be exported. Those trees are dropped
13960 silently (#1678).
13961 + Properly handle links to `file:target` (Albert Krewinkel).
13962 Org links like `[[file:target][title]]` were not handled correctly,
13963 parsing the link target verbatim. The org reader is changed such that
13964 the leading `file:` is dropped from the link target (see #756, #1812).
13965 + Parse LaTeX-style MathML entities (#1657, Albert Krewinkel).
13966 Org supports special symbols which can be included using LaTeX syntax,
13967 but are actually MathML entities. Examples for this are
13968 `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
13969 or `\copy` (the copyright sign ©)
13971 * EPUB reader:
13973 + URI handling improvements. Now we outsource most of the work to
13974 `fetchItem'`. Also, do not include queries in file extensions (#1671).
13976 * LaTeX writer:
13978 + Use `\texorpdfstring` for section captions when needed (Vaclav Zeman).
13979 + Handle consecutive linebreaks (#1733).
13980 + Protect graphics in headers (Jesse Rosenthal).
13981 Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed.
13982 + Put `~` before header in list item text (Jesse Rosenthal).
13983 Because of the built-in line skip, LaTeX can't handle a section header
13984 as the first element in a list item.
13985 + Avoid using reserved characters as `\lstinline` delimiters (#1595).
13986 + Better handling of display math in simple tables (#1754).
13987 We convert display math to inline math in simple tables,
13988 since LaTeX can't deal with display math in simple tables.
13989 + Escape spaces in code (#1694, Bjorn Buckwalter).
13991 * MediaWiki writer:
13993 + Fixed links with URL = text. Previously these were rendered as bare
13994 words, even if the URL was not an absolute URL (#1825).
13996 * ICML writer:
13998 + Don't force all citations into footnotes.
14000 * RTF writer:
14002 + Add blankline at end of output (#1732, Matthew Pickering).
14004 * RST writer:
14006 + Ensure blank line after figure.
14007 + Avoid excess whitespace after last list item (#1777).
14008 + Wrap line blocks with spaces before continuations (#1656).
14009 + Fixed double-rendering of footnotes in RST tables (#1769).
14011 * DokuWiki writer:
14013 + Better handling of block quotes. This change ensures that
14014 multiple paragraph blockquotes are rendered using native `>`
14015 rather than as HTML (#1738).
14016 + Fix external images (#1739). Preface relative links with ":",
14017 absolute URIs without. (Timothy Humphries)
14019 * HTML writer:
14021 + Use protocol-relative URL for mathjax.
14022 + Put newline btw img and caption paragraph.
14023 + MathML now outputted with tex annotation (#1635, Matthew Pickering).
14024 + Add support for KaTeX HTML math (#1626, Matthew Pickering).
14025 This adds `KaTeX` to `HTMLMathMethod` (API change).
14026 + Don't double render when `email-obfuscation=none` (#1625, Matthew
14027 Pickering).
14028 + Make header attributes work outside top level (#1711).
14029 Previously they only appeared on top level header elements.
14030 Now they work e.g. in blockquotes.
14032 * ODT writer:
14034 + Correctly handle images without extensions (#1729).
14035 + Strip querystring in ODT write (#1682, Todd Sifleet).
14037 * FB2 writer:
14039 + Add newline to output.
14041 * EPUB writer:
14043 + Don't add `sourceURL` to absolute URIs (#1669).
14044 + Don't use unsupported `opf:title-type` for epub2.
14045 + Include "landmarks" section in nav document for epub3 (#1757).
14046 + Removed playOrder from navpoint elements in ncx file (#1760).
14047 These aren't required, and they make manual modification of epubs
14048 difficult.
14049 + Extract title even from structured title.
14050 + Don't include nav node in spine unless `--toc` was requested.
14051 Previously we included it in the spine with `linear="no"`, leading
14052 to odd results in some readers (#1593).
14053 + Fixed absolute URI detection (#1672).
14054 + Correctly resolve relative URIs (#1671).
14055 + Use regular page template for `nav.xhtml`, including doctype (#1759).
14057 * Docx writer:
14059 + Put docx table captions above tables (#1641, Nikolay Yakimov).
14060 + Get the page width from the reference docx file, and use
14061 it to scale images that are too large to fit (Grégory Bataille).
14062 + Partial fix for #1607 (Nikolay Yakimov). International heading styles
14063 are inferred based on `<w:name val="heading #">` fallback, if there
14064 are no en-US "Heading#" styles
14065 + Look in user data dir for archive `reference.docx`.
14066 + Renumber header and footer relationships to avoid collisions (Jesse
14067 Rosenthal). We previously took the old relationship names of the
14068 headers and footer in secptr. That led to collisions. We now make
14069 a map of available names in the relationships file, and then rename
14070 in secptr.
14072 * ConTeXt writer:
14074 + Add function toLabel (Mark Szepieniec).
14075 This function can be used to sanitize reference labels so that
14076 they do not contain any of the illegal characters \#[]",{}%()|= .
14077 Currently only Links have their labels sanitized, because they
14078 are the only Elements that use passed labels.
14080 * `Text.Pandoc.Shared`:
14082 + Moved import of `toChunks` outside of CPP conditional (#1590).
14083 + Fix `inDirectory` to reset to the original directory in case
14084 an exception occurs (Freiric Barral).
14086 * Templates:
14088 + LaTeX template: load polyglossia before bibtex (jgm/pandoc-templates#70).
14089 Thanks to bluebirch.
14090 + LaTeX template: Added `\VerbatimFootnotes` if there is verbatim in notes
14091 (#1616).
14092 + LaTeX template: Add shorthands=off to babel options (#1648).
14093 + EPUB, EPUB3 templates: Added `id="cover"` to body of cover page.
14094 This aids styling, making it possible for example to set 0 margins
14095 on the title page (#1758).
14096 + EPUB, EPUB3 templates: Handle structured metadata on titlepage.
14097 Previously we just expected 'title', 'subtitle', 'author', 'date'.
14098 Now we still support those, but also support the format recommended
14099 for epub metadata in the pandoc README:
14101 ---
14102 title:
14103 - type: main
14104 text: My Book
14105 - type: subtitle
14106 text: An investigation of metadata
14107 creator:
14108 - role: author
14109 text: John Smith
14110 - role: editor
14111 text: Sarah Jones
14112 identifier:
14113 - scheme: DOI
14114 text: doi:10.234234.234/33
14115 publisher: My Press
14116 rights: (c) 2007 John Smith, CC BY-NC
14117 ...
14119 * `Text.Pandoc.Templates.getDefaultTemplate`:
14120 don't fail when called with "fb2" (#1660).
14122 * `Text.Pandoc.Parsing`:
14124 + Fixed `inlineMath` so it handles `\text{..}` containing `$`.
14125 For example: `$x = \text{the $n$th root of $y$}` (#1677).
14126 + Change `parseFromString` to fail if not all input is consumed.
14127 (Matthew Pickering)
14128 + Moved `addWarning` from Markdown reader to `Parsing`, so it can be
14129 used by more readers (API change, Daniel Bergey).
14131 * `Text.Pandoc.Pretty`:
14133 + Improve performance of `realLength` (Matthew Pickering).
14134 + Make CR + BLANKLINE = BLANKLINE. This fixes an extra blank line we
14135 were getting at the end of markdown fragments (as well as rst, org,
14136 etc.) (#1705).
14138 * `Text.Pandoc.MIME`:
14140 + Add mime type for WebVTT (Jason Ronallo).
14141 + Changed mime type for `otf` to `application/vnd.ms-opentype` (#1761).
14142 This is needed for epub3 validation.
14144 * `Text.Pandoc.MediaBag`:
14146 + Fix Windows specific path problems (#1597).
14148 * `Text.Pandoc.Shared`:
14150 + Make `collapseFilePath` OS-agnostic (Matthew Pickering).
14152 * Link the test suite using `-threaded`.
14153 This allows the test suite to be run using `+RTS -N`.
14155 * Added `network` dependency under `network-uri` flag in test section.
14157 * Give better error messages when someone tries to convert from
14158 pdf, doc, odt (#1683).
14160 * Added `track` to list of tags treated by `--self-contained` (#1664).
14163## pandoc 1.13.1 (2014-08-30)
14165 * Fixed `--self-contained` with Windows paths (#1558).
14166 Previously `C:\foo.js` was being wrongly interpreted as a URI.
14168 * HTML reader: improved handling of tags that can be block or inline.
14169 Previously a section like this would be enclosed in a paragraph,
14170 with RawInline for the video tags (since video is a tag that can
14171 be either block or inline):
14173 <video controls="controls">
14174 <source src="../videos/test.mp4" type="video/mp4" />
14175 <source src="../videos/test.webm" type="video/webm" />
14176 <p>
14177 The videos can not be played back on your system.<br/>
14178 Try viewing on Youtube (requires Internet connection):
14179 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
14180 Youtube</a>.
14181 </p>
14182 </video>
14184 This change will cause the video and source tags to be parsed
14185 as RawBlock instead, giving better output.
14186 The general change is this: when we're parsing a "plain" sequence
14187 of inlines, we don't parse anything that COULD be a block-level tag.
14189 * Docx reader:
14191 + Be sensitive to user styles. Note that "Hyperlink" is
14192 "blacklisted," as we don't want the default underline styling to be
14193 inherited by all links by default (Jesse Rosenthal).
14194 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
14195 This makes to docx reader's native output fit with the way the markdown
14196 reader understands its markdown output.
14198 * Txt2Tags reader:
14200 + Header is now parsed only if standalone flag is set (Matthew Pickering).
14201 + The header is now parsed as meta information. The first line is the
14202 `title`, the second is the `author` and third line is the `date`
14203 (Matthew Pickering).
14204 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
14205 + Fixed crash when reading from stdin.
14207 * Textile writer: Extended the range of cases where native textile
14208 tables will be used (as opposed to raw HTML): we now handle any
14209 alignment type, but only for simple tables with no captions.
14211 * EPUB writer: Don't use page-progression-direction in EPUB2, which
14212 doesn't support it. Also, if page-progression-direction not specified
14213 in metadata, don't include the attribute even in EPUB3; not including it
14214 is the same as including it with the value "default", as we did before.
14215 (#1550)
14217 * Org writer: Accept example lines with indentation at the beginning
14218 (Calvin Beck).
14220 * DokuWiki writer:
14222 + Refactor to use Reader monad (Matthew Pickering).
14223 + Avoid using raw HTML in table cells; instead, use `\\`
14224 instead of newlines (Jesse Rosenthal).
14225 + Properly handle HTML table cell alignments, and use spacing
14226 to make the tables look prettier (#1566).
14228 * Docx writer:
14230 + Bibliography entries get `Bibliography` style (#1559).
14231 + Implement change tracking (Jesse Rosenthal).
14233 * LaTeX writer:
14235 + Fixed a bug that caused a table caption to repeat across all pages
14236 (Jose Luis Duran).
14237 + Improved vertical spacing in tables and made it customizable using
14238 standard lengths set by booktab. See
14239 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
14240 (Jose Luis Duran).
14241 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
14242 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
14243 + Made horizontal rules more flexible (Jose Luis Duran).
14245 * Text.Pandoc.MIME:
14247 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
14248 Code cleanups (Artyom Kazak).
14250 * Templates:
14252 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
14253 thanks lemzwerg).
14255 * Improved OSX build procedure.
14257 * Added `network-uri` flag, to deal with split of `network-uri` from
14258 `network`.
14260 * Fix build dependencies for the `trypandoc` flag, so that they are
14261 ignored if `trypandoc` flag is set to False (Gabor Pali).
14263 * Updated README to remove outdated claim that `--self-contained`
14264 looks in the user data directory for missing files.
14266## pandoc 1.13.0.1 (2014-08-17)
14268 * Docx writer:
14270 + Fixed regression which bungled list numbering (#1544), causing
14271 all lists to appear as basic ordered lists.
14272 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
14273 Added a property to all table rows where the sum of column widths
14274 is specified in pct (fraction of 5000). This helps persuade Word
14275 to lay out the table with the widths we specify.
14277 * Fixed a bug in Windows 8 which caused pandoc not to find the
14278 `pandoc-citeproc` filter (#1542).
14280 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
14281 Most significantly, the reader now uses Builder, leading to some
14282 performance improvements.
14284 * HTML reader: Parse appropriately styled span as SmallCaps.
14286 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
14287 `superscript`, and `subscript` extensions, respectively, are
14288 deactivated (#1127).
14290 * Added `trypandoc` flag to build CGI executable used in the online
14291 demo.
14293 * Makefile: Added 'quick', 'osxpkg' targets.
14295 * Updated README in templates to indicate templates license.
14296 The templates are dual-licensed, BSD3 and GPL2+.
14298## pandoc 1.13 (15 August 2014)
14300### New features
14302 * Added `docx` as an input format (Jesse Rosenthal). The docx
14303 reader includes conversion of native Word equations to pandoc
14304 LaTeX `Math` elements. Metadata is taken from paragraphs at the
14305 beginning of the document with styles `Author`, `Title`, `Subtitle`,
14306 `Date`, and `Abstract`.
14308 * Added `epub` as an input format (Matthew Pickering). The epub
14309 reader includes conversion of MathML to pandoc LaTeX `Math`
14310 elements.
14312 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
14313 Txt2tags is a lightweight markup format described at
14314 <http://txt2tags.org/>.
14316 * Added `dokuwiki` as an output format (Clare Macrae).
14318 * Added `haddock` as an output format.
14320 * Added `--extract-media` option to extract media contained in a zip
14321 container (docx or epub) while adjusting image paths to point to the
14322 extracted images.
14324 * Added a new markdown extension, `compact_definition_lists`, that
14325 restores the syntax for definition lists of pandoc 1.12.x, allowing
14326 tight definition lists with no blank space between items, and
14327 disallowing lazy wrapping. (See below under behavior changes.)
14329 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
14331 * Added extensions `native_spans` and `native_divs` to activate
14332 parsing of material in HTML span or div tags as Pandoc Span
14333 inlines or Div blocks.
14335 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
14336 Textile, and MediaWiki readers. This is an option intended
14337 for debugging parsing problems; ordinary users should not need
14338 to use it.
14340### Behavior changes
14342 * Changed behavior of the `markdown_attribute` extension, to bring
14343 it in line with PHP markdown extra and multimarkdown. Setting
14344 `markdown="1"` on an outer tag affects all contained tags,
14345 recursively, until it is reversed with `markdown="0"` (#1378).
14347 * Revised markdown definition list syntax (#1429). Both the reader
14348 and writer are affected. This change brings pandoc's definition list
14349 syntax into alignment with that used in PHP markdown extra and
14350 multimarkdown (with the exception that pandoc is more flexible about
14351 the definition markers, allowing tildes as well as colons). Lazily
14352 wrapped definitions are now allowed. Blank space is required
14353 between list items. The space before a definition is used to determine
14354 whether it is a paragraph or a "plain" element. **WARNING: This change
14355 may break existing documents!** Either check your documents for
14356 definition lists without blank space between items, or use
14357 `markdown+compact_definition_lists` for the old behavior.
14359 * `.numberLines` now works in fenced code blocks even if no language
14360 is given (#1287, jgm/highlighting-kate#40).
14362 * Improvements to `--filter`:
14364 + Don't search PATH for a filter with an explicit path.
14365 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
14366 the system path, even if there was a `caps.py` in the working directory.
14367 + Respect shebang if filter is executable (#1389).
14368 + Don't print misleading error message.
14369 Previously pandoc would say that a filter was not found,
14370 even in a case where the filter had a syntax error.
14372 * HTML reader:
14374 + Parse `div` and `span` elements even without `--parse-raw`,
14375 provided `native_divs` and `native_spans` extensions are set.
14376 Motivation: these now generate native pandoc Div and Span
14377 elements, not raw HTML.
14378 + Parse EPUB-specific elements if the `epub_html_exts`
14379 extension is enabled. These include `switch`, `footnote`,
14380 `rearnote`, `noteref`.
14382 * Org reader:
14384 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
14385 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
14386 `\cite{Coffee}`), can be used without any further escaping (Albert
14387 Krewinkel).
14389 * Textile reader and writer:
14391 + The `raw_tex` extension is no longer set by default. You can
14392 enable it with `textile+raw_tex`.
14394 * DocBook reader:
14396 + Support `equation`, `informalequation`, `inlineequation` elements with
14397 `mml:math` content. This is converted into LaTeX and put into a Pandoc
14398 Math inline.
14400 * Revised `plain` output, largely following the style of Project
14401 Gutenberg:
14403 + Emphasis is rendered with `_underscores_`, strong emphasis
14404 with ALL CAPS.
14405 + Headings are rendered differently, with space to set them off,
14406 not with setext style underlines. Level 1 headers are ALL CAPS.
14407 + Math is rendered using unicode when possible, but without the
14408 distracting emphasis markers around variables.
14409 + Footnotes use a regular `[n]` style.
14411 * Markdown writer:
14413 + Horizontal rules are now a line across the whole page.
14414 + Prettier pipe tables. Columns are now aligned (#1323).
14415 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
14416 no longer emits any raw HTML, including span and div tags
14417 generated by Span and Div elements.
14418 + Use span with style for `SmallCaps` (#1360).
14420 * HTML writer:
14422 + Autolinks now have class `uri`, and email autolinks have class
14423 `email`, so they can be styled.
14425 * Docx writer:
14427 + Document formatting is carried over from `reference.docx`.
14428 This includes margins, page size, page orientation, header,
14429 and footer, including images in headers and footers.
14430 + Include abstract (if present) with `Abstract` style (#1451).
14431 + Include subtitle (if present) with `Subtitle` style, rather
14432 than tacking it on to the title (#1451).
14434 * Org writer:
14436 + Write empty span elements with an id attribute as org anchors.
14437 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
14439 * LaTeX writer:
14441 + Put table captions above tables, to match the conventional
14442 standard. (Previously they appeared below tables.)
14443 + Use `\(..\)` instead of `$..$` for inline math (#1464).
14444 + Use `\nolinkurl` in email autolinks. This allows them to be styled
14445 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
14446 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
14447 curly quotes in the PDF output (#1364).
14448 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
14449 do not appear before the overlays in which their markers appear
14450 (#1525).
14451 + Don't produce a `\label{..}` for a Div or Span element. Do produce
14452 a `\hyperdef{..}` (#1519).
14454 * EPUB writer:
14456 + If the metadata includes `page-progression-direction` (which can be
14457 `ltr` or `rtl`, the `page-progression-direction` attribute will
14458 be set in the EPUB spine (#1455).
14460 * Custom lua writers:
14462 + Custom writers now work with `--template`.
14463 + Removed HTML header scaffolding from `sample.lua`.
14464 + Made citation information available in lua writers.
14466 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
14467 adjacent `RawBlock`s when possible.
14469### API changes
14471 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
14473 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
14474 Pickering).
14476 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
14477 Pickering).
14479 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
14480 (Clare Macrae).
14482 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
14484 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
14485 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
14486 readers return a pair of a `Pandoc` document and a `MediaBag` with
14487 the media resources they contain. This can be extracted using
14488 `--extract-media`. Writers that incorporate media (PDF, Docx,
14489 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
14490 for resources in the `MediaBag` generated by the reader, in addition to
14491 the file system or web.
14493 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
14494 Renamed `readTeXMath'` to `texMathToInlines`.
14496 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
14497 `readers` now associates names of readers with `Reader`
14498 structures. This allows inclusion of readers, like the docx
14499 reader, that take binary rather than textual input.
14501 * `Text.Pandoc.Shared`:
14503 + Added `capitalize` (Artyom Kazak), and replaced uses of
14504 `map toUpper` (which give bad results for many languages).
14505 + Added `collapseFilePath`, which removes intermediate `.` and
14506 `..` from a path (Matthew Pickering).
14507 + Added `fetchItem'`, which works like `fetchItem` but searches
14508 a `MediaBag` before looking on the net or file system.
14509 + Added `withTempDir`.
14510 + Added `removeFormatting`.
14511 + Added `extractSpaces` (from HTML reader) and generalized its type
14512 so that it can be used by the docx reader (Matthew Pickering).
14513 + Added `ordNub`.
14514 + Added `normalizeInlines`, `normalizeBlocks`.
14515 + `normalize` is now `Pandoc -> Pandoc` instead of
14516 `Data a :: a -> a`. Some users may need to change their uses of
14517 `normalize` to the newly exported `normalizeInlines` or
14518 `normalizeBlocks`.
14520 * `Text.Pandoc.Options`:
14522 + Added `writerMediaBag` to `WriterOptions`.
14523 + Removed deprecated and no longer used `readerStrict` in
14524 `ReaderOptions`. This is handled by `readerExtensions` now.
14525 + Added `Ext_compact_definition_lists`.
14526 + Added `Ext_epub_html_exts`.
14527 + Added `Ext_native_divs` and `Ext_native_spans`.
14528 This allows users to turn off the default pandoc behavior of
14529 parsing contents of div and span tags in markdown and HTML
14530 as native pandoc Div blocks and Span inlines.
14532 * `Text.Pandoc.Parsing`:
14534 + Generalized `readWith` to `readWithM` (Matthew Pickering).
14535 + Export `runParserT` and `Stream` (Matthew Pickering).
14536 + Added `HasQuoteContext` type class (Matthew Pickering).
14537 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
14538 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
14539 `applyMacros` (Matthew Pickering).
14540 + Added custom `token` (Matthew Pickering).
14541 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
14542 track of the ending tag we're waiting for when we're parsing inside
14543 HTML block tags.
14544 + Added `stateMarkdownAttribute` to `ParserState`. This is used
14545 to keep track of whether the markdown attribute has been set in
14546 an enclosing tag.
14547 + Generalized type of `registerHeader`, using new type classes
14548 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
14549 Pickering). These allow certain common functions to be reused
14550 even in parsers that use custom state (instead of `ParserState`),
14551 such as the MediaWiki reader.
14552 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
14553 and generalized their types (Matthew Pickering).
14555 * `Text.Pandoc.Pretty`:
14557 + Added `nestle`.
14558 + Added `blanklines`, which guarantees a certain number of blank lines
14559 (and no more).
14561### Bug fixes
14563 * Markdown reader:
14565 + Fixed parsing of indented code in list items. Indented code
14566 at the beginning of a list item must be indented eight spaces
14567 from the margin (or edge of the container), or four spaces
14568 from the list marker, whichever is greater.
14569 + Fixed small bug in HTML parsing with `markdown_attribute`, which
14570 caused incorrect tag nesting for input like
14571 `<aside markdown="1">*hi*</aside>`.
14572 + Fixed regression with intraword underscores (#1121).
14573 + Improved parsing of inline links containing quote characters (#1534).
14574 + Slight rewrite of `enclosure`/`emphOrStrong` code.
14575 + Revamped raw HTML block parsing in markdown (#1330).
14576 We no longer include trailing spaces and newlines in the
14577 raw blocks. We look for closing tags for elements (but without
14578 backtracking). Each block-level tag is its own `RawBlock`;
14579 we no longer try to consolidate them (though `--normalize` will do so).
14580 + Combine consecutive latex environments. This helps when you have
14581 two minipages which can't have blank lines between them (#690, #1196).
14582 + Support smallcaps through span.
14583 `<span style="font-variant:small-caps;">foo</span>` will be
14584 parsed as a `SmallCaps` inline, and will work in all output
14585 formats that support small caps (#1360).
14586 + Prevent spurious line breaks after list items (#1137). When the
14587 `hard_line_breaks` option was specified, pandoc would formerly
14588 produce a spurious line break after a tight list item.
14589 + Fixed table parsing bug (#1333).
14590 + Handle `c++` and `objective-c` as language identifiers in
14591 github-style fenced blocks (#1318).
14592 + Inline math must have nonspace before final `$` (#1313).
14594 * LaTeX reader:
14596 + Handle comments at the end of tables. This resolves the issue
14597 illustrated in <http://stackoverflow.com/questions/24009489>.
14598 + Correctly handle table rows with too few cells. LaTeX seems to
14599 treat them as if they have empty cells at the end (#241).
14600 + Handle leading/trailing spaces in `\emph` better.
14601 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
14602 so that we don't get things like `* hi *` in markdown output.
14603 Also applies to `textbf` and some other constructions (#1146).
14604 + Don't assume preamble doesn't contain environments (#1338).
14605 + Allow (and discard) optional argument for `\caption` (James Aspnes).
14607 * HTML reader:
14609 + Fixed major parsing problem with HTML tables. Table cells were
14610 being combined into one cell (#1341).
14611 + Fixed performance issue with malformed HTML tables.
14612 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
14613 + Allow space between `<col>` and `</col>`.
14614 + Added `audio` and `source` in `eitherBlockOrInline`.
14615 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
14616 `blockTags` to `eitherBlockOrInline`.
14617 + `map` and `object` were mistakenly in both lists; they have been removed
14618 from `blockTags`.
14619 + Ignore `DOCTYPE` and `xml` declarations.
14621 * MediaWiki reader:
14623 + Don't parse backslash escapes inside `<source>` (#1445).
14624 + Tightened up template parsing.
14625 The opening `{{` must be followed by an alphanumeric or `:`.
14626 This prevents the exponential slowdown in #1033.
14627 + Support "Bild" for images.
14629 * DocBook reader:
14631 + Better handle elements inside code environments. Pandoc's document
14632 model does not allow structure inside code blocks, but at least this way
14633 we preserve the text (#1449).
14634 + Support `<?asciidoc-br?>` (#1236).
14636 * Textile reader:
14638 + Fixed list parsing. Lists can now start without an intervening
14639 blank line (#1513).
14640 + HTML block-level tags that do not start a line are parsed as
14641 inline HTML and do not interrupt paragraphs (as in RedCloth).
14643 * Org reader:
14645 + Make tildes create inline code (#1345). Also relabeled `code` and
14646 `verbatim` parsers to accord with the org-mode manual.
14647 + Respect `:exports` header argument in code blocks (Craig Bosma).
14648 + Fixed tight lists with sublists (#1437).
14650 * EPUB writer:
14652 + Avoid excess whitespace in `nav.xhtml`. This should improve
14653 TOC view in iBooks (#1392).
14654 + Fixed regression on cover image.
14655 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
14656 because the metadata id was not correct. Now we derive the id from the
14657 actual cover image filename, which we preserve rather than using
14658 "cover-image."
14659 + Keep newlines between block elements. This allows
14660 easier diff-ability (#1424).
14661 + Use `stringify` instead of custom `plainify`.
14662 + Use `renderTags'` for all tag rendering. This properly handles tags
14663 that should be self-closing. Previously `<hr/>` would appear in EPUB
14664 output as `<hr></hr>` (#1420).
14665 + Better handle HTML media tags.
14666 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
14667 can have only one dc:date, so only the first one is used.
14669 * LaTeX writer:
14671 + Correctly handle figures in notes. Notes can't contain figures in
14672 LaTeX, so we fake it to avoid an error (#1053).
14673 + Fixed strikeout + highlighted code (#1294).
14674 Previously strikeout highlighted code caused an error.
14676 * ConTeXt writer:
14678 + Improved detection of autolinks with URLs containing escapes.
14680 * RTF writer:
14682 + Improved image embedding: `fetchItem'` is now used to get the
14683 images, and calculated image sizes are indicated in the RTF.
14684 + Avoid extra paragraph tags in metadata (#1421).
14686 * HTML writer:
14688 + Deactivate "incremental" inside slide speaker notes (#1394).
14689 + Don't include empty items in the table of contents for
14690 slide shows. (These would result from creating a slide
14691 using a horizontal rule.)
14693 * MediaWiki writer:
14695 + Minor renaming of `st` prefixed names.
14697 * AsciiDoc writer:
14699 + Double up emphasis and strong emphasis markers in intraword
14700 contexts, as required by asciidoc (#1441).
14702 * Markdown writer:
14704 + Avoid wrapping that might start a list, blockquote, or header (#1013).
14705 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
14706 + Don't use braced attributes for fenced code (#1416).
14707 If `Ext_fenced_code_attributes` is not set, the first class
14708 attribute will be printed after the opening fence as a bare word.
14709 + Separate adjacent lists of the same kind with an HTML comment (#1458).
14711 * PDF writer:
14713 + Fixed treatment of data uris for images (#1062).
14715 * Docx writer:
14717 + Use Compact style for empty table cells (#1353).
14718 Otherwise we get overly tall lines when there are empty
14719 table cells and the other cells are compact.
14720 + Create overrides per-image for `media/` in reference docx.
14721 This should be somewhat more robust and cover more types of images.
14722 + Improved `entryFromArchive` to avoid an unneeded parse.
14723 + Section numbering carries over from reference.docx (#1305).
14724 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
14725 we assign numbers based on the list marker styles.
14727 * `Text.Pandoc.Options`:
14729 + Removed `Ext_fenced_code_attributes` from `markdown_github`
14730 extensions.
14732 * `Text.Pandoc.ImageSize`:
14734 + Use default instead of failing if image size not found
14735 in exif header (#1358).
14736 + ignore unknown exif header tag rather than crashing.
14737 Some images seem to have tag type of 256, which was causing
14738 a runtime error.
14740 * `Text.Pandoc.Shared`:
14742 + `fetchItem`: unescape URI encoding before reading local file (#1427).
14743 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
14744 doing mime lookup, to improve mime type guessing.
14745 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
14746 other things are treated as relative URIs if `sourceURL` is `Just _`,
14747 otherwise as file paths on the local file system.
14748 + `fetchItem` now properly handles links without a protocol (#1477).
14749 + `fetchItem` now escapes characters not allowed in URIs before trying
14750 to parse the URIs.
14751 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
14753 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
14754 needed to resolve relative URLs when we fetch resources (#750).
14756 * `Text.Pandoc.Parsing`
14758 + Simplified `dash` and `ellipsis` (#1419).
14759 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
14760 + Generalized functions to use `ParsecT` (Matthew Pickering).
14761 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
14762 Pickering).
14764### Template changes
14766 * Added haddock template.
14767 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
14768 be "advisory" in HTML5, but kindlegen seems to require them.
14769 * EPUB3: Put title page in section with `epub:type="titlepage"`.
14770 * LaTeX: Made `\subtitle` work properly (#1327).
14771 * LaTeX/Beamer: remove conditional around date (#1321).
14772 * LaTeX: Added `lot` and `lof` variables, which can be set to
14773 get `\listoftables` and `\listoffigures` (#1407). Note that
14774 these variables can be set at the command line with `-Vlot -Vlof`
14775 or in YAML metadata.
14777### Under the hood improvements
14779 * Rewrote normalize for efficiency (#1385).
14781 * Rewrote Haddock reader to use `haddock-library` (#1346).
14783 + This brings pandoc's rendering of haddock markup in line
14784 with the new haddock.
14785 + Fixed line breaks in `@` code blocks.
14786 + alex and happy are no longer build-depends.
14788 * Added `Text.Pandoc.Compat.Directory` to allow building against
14789 different versions of the `directory` library.
14791 + Added `Text.Pandoc.Compat.Except` to allow building against
14792 different versions of `mtl`.
14794 * Code cleanup in some writers, using Reader monad to avoid
14795 passing options parameter around (Matej Kollar).
14797 * Improved readability in `pandoc.hs`.
14799 * Miscellaneous code cleanups (Artyom Kazak).
14801 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
14802 Thompson).
14804 * Changed `http-conduit` flag to `https`. Depend on `http-client`
14805 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
14806 depends on `conduit` via `yaml`.)
14808 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
14809 This change to highlighting-kate means that PHP fragments no longer need
14810 to start with `<?php`. It also fixes a serious bug causing failures with
14811 ocaml and fsharp.
14813 * Require latest `texmath`. This fixes `\tilde{E}` and allows
14814 `\left` to be used with `]`, `)` etc. (#1319), among many other
14815 improvements.
14817 * Require latest `zip-archive`. This has fixes for unicode path names.
14819 * Added tests for plain writer.
14821 * `Text.Pandoc.Templates`:
14823 + Fail informatively on template syntax errors.
14824 With the move from parsec to attoparsec, we lost good error
14825 reporting. In fact, since we weren't testing for end of input,
14826 malformed templates would fail silently. Here we revert back to
14827 Parsec for better error messages.
14828 + Use `ordNub` (#1022).
14830 * Benchmarks:
14832 + Made benchmarks compile again (Artyom Kazak).
14833 + Fixed so that the failure of one benchmark does not prevent others
14834 from running (Artyom Kazak).
14835 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
14836 + Changed benchmark to use only the test suite, so that benchmarks
14837 run more quickly.
14839 * Windows build script:
14841 + Add `-windows` to file name.
14842 + Use one install command for pandoc, pandoc-citeproc.
14843 + Force install of pandoc-citeproc.
14845 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
14846 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
14847 will extract it into a folder named `SOMETHING.pkg`, which it
14848 will interpret as a defective package (#1308).
14850 * `README`:
14852 + Made headers for all extensions so they have IDs and can be
14853 linked to (Beni Cherniavsky-Paskin).
14854 + Fixed typos (Phillip Alday).
14855 + Fixed documentation of attributes (#1315).
14856 + Clarified documentation on small caps (#1360).
14857 + Better documentation for `fenced_code_attributes` extension
14858 (Caleb McDaniel).
14859 + Documented fact that you can put YAML metadata in a separate file
14860 (#1412).
14863## pandoc 1.12.4.2 (2014-05-14)
14865 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
14867 * Shared: `addMetaValue` now behaves slightly differently:
14868 if both the new and old values are lists, it concatenates their
14869 contents to form a new list.
14871 * LaTeX reader:
14873 + Set `bibliography` in metadata from `\bibliography` or
14874 `\addbibresource` command.
14875 + Don't error on `%foo` with no trailing newline.
14877 * Org reader:
14879 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
14880 + Fix parsing of blank lines within blocks (Albert Krewinkel).
14881 + Support pandoc citation extension (Albert Krewinkel). This can
14882 be turned off by specifying `org-citation` as the input format.
14884 * Markdown reader:
14886 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
14887 other readers (Albert Krewinkel).
14889 * `Text.Pandoc.Parsing`:
14891 + Added `citeKey` (see above).
14892 + Added `HasLastStrPosition` type class and `updateLastStrPos`
14893 and `notAfterString` functions.
14895 * Updated copyright notices (Albert Krewinkel).
14897 * Added default.icml to data files so it installs with the package.
14899 * OSX package:
14901 + The binary is now built with options to ensure that it can be
14902 used with OSX 10.6+.
14903 + Moved OSX package materials to osx directory.
14904 + Added OSX package uninstall script, included in the zip container
14905 (thanks to Daniel T. Staal).
14907## pandoc 1.12.4 (2014-05-07)
14909 * Made it possible to run filters that aren't executable
14910 (#1096). Pandoc first tries to find the executable (searching
14911 the path if path isn't given). If it fails, but the file
14912 exists and has a `.py`, `.pl`, `.rb`, `.hs`, or `.php`
14913 extension, pandoc runs the filter using the appropriate
14914 interpreter. This should make it easier to use filters on
14915 Windows, and make it more convenient for everyone.
14917 * Added Emacs org-mode reader (Albert Krewinkel).
14919 * Added InDesign ICML Writer (mb21).
14921 * MediaWiki reader:
14923 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
14924 + Fixed bug in certain nested lists (#1213). If a level 2 list was
14925 followed by a level 1 list, the first item of the level 1 list
14926 would be lost.
14927 + Handle table rows containing just an HTML comment (#1230).
14929 * LaTeX reader:
14931 + Give better location information on errors, pointing to line
14932 numbers within included files (#1274).
14933 + LaTeX reader: Better handling of `table` environment (#1204).
14934 Positioning options no longer rendered verbatim.
14935 + Better handling of figure and table with caption (#1204).
14936 + Handle `@{}` and `p{length}` in tabular. The length is not actually
14937 recorded, but at least we get a table (#1180).
14938 + Properly handle `\nocite`. It now adds a `nocite` metadata
14939 field. Citations there will appear in the bibliography but not
14940 in the text (unless you explicitly put a `$nocite$` variable
14941 in your template).
14943 * Markdown reader:
14945 + Ensure that whole numbers in YAML metadata are rendered without
14946 decimal points. (This became necessary with changes to aeson
14947 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
14948 + Fixed regression on line breaks in strict mode (#1203).
14949 + Small efficiency improvements.
14950 + Improved parsing of nested `div`s. Formerly a closing `div` tag
14951 would be missed if it came right after other block-level tags.
14952 + Avoid backtracking when closing `</div>` not found.
14953 + Fixed bug in reference link parsing in `markdown_mmd`.
14954 + Fixed a bug in list parsing (#1154). When reading a raw list
14955 item, we now strip off up to 4 spaces.
14956 + Fixed parsing of empty reference link definitions (#1186).
14957 + Made one-column pipe tables work (#1218).
14959 * Textile reader:
14961 + Better support for attributes. Instead of being ignored, attributes
14962 are now parsed and included in Span inlines. The output will be a bit
14963 different from stock textile: e.g. for `*(foo)hi*`, we'll get
14964 `<em><span class="foo">hi</span></em>` instead of
14965 `<em class="foo">hi</em>`. But at least the data is not lost.
14966 + Improved treatment of HTML spans (%) (#1115).
14967 + Improved link parsing. In particular we now pick up on attributes.
14968 Since pandoc links can't have attributes, we enclose the whole link in
14969 a span if there are attributes (#1008).
14970 + Implemented correct parsing rules for inline markup (#1175, Matthew
14971 Pickering).
14972 + Use Builder (Matthew Pickering).
14974 * DocBook reader:
14976 + Better treatment of `formalpara`. We now emit the title (if present)
14977 as a separate paragraph with boldface text (#1215).
14978 + Set metadata `author` not `authors`.
14979 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
14980 Matthew Pickering).
14981 + Converted current meta information parsing in DocBook to a more
14982 extensible version which is aware of the more recent meta
14983 representation (Matthew Pickering).
14985 * HTML reader:
14987 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
14988 (#1248).
14989 + Treat processing instructions & declarations as block. Previously
14990 these were treated as inline, and included in paragraph tags in HTML
14991 or DocBook output, which is generally not what is wanted (#1233).
14992 + Updated `closes` with rules from HTML5 spec.
14993 + Use Builder (Matthew Pickering, #1162).
14995 * RST reader:
14997 + Remove duplicate `http` in PEP links (Albert Krewinkel).
14998 + Make rst figures true figures (#1168, CasperVector)
14999 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
15000 rST parser now supports: all built-in rST roles, new role definition,
15001 role inheritance, though with some limitations.
15002 + Use `author` rather than `authors` in metadata.
15003 + Better handling of directives. We now correctly handle field
15004 lists that are indented more than three spaces. We treat an
15005 `aafig` directive as a code block with attributes, so it can be
15006 processed in a filter (#1212).
15008 * LaTeX writer:
15010 + Mark span contents with label if span has an ID (Albert Krewinkel).
15011 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
15012 + Handle line breaks in simple table cells (#1217).
15013 + Workaround for level 4-5 headers in quotes. These previously produced
15014 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
15015 This adds an `mbox{}` in these contexts to work around the problem.
15016 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
15017 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
15018 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
15019 ligature with LuaLaTeX but `\/` does.
15020 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
15022 * ConTeXt writer: Improved autolinks (#1270).
15024 * DocBook writer:
15026 + Improve handling of hard line breaks in Docbook writer
15027 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
15028 just for the newline character.
15029 + Don't let line breaks inside footnotes influence the enclosing
15030 paragraph (Neil Mayhew).
15031 + Distinguish tight and loose lists in DocBook output, using
15032 `spacing="compact"` (Neil Mayhew, #1250).
15034 * Docx writer: When needed files are not present in the user's
15035 `reference.docx`, fall back on the versions in the `reference.docx`
15036 in pandoc's data files. This fixes a bug that occurs when a
15037 `reference.docx` saved by LibreOffice is used. (#1185)
15039 * EPUB writer:
15041 + Include extension in epub ids. This fixes a problem with duplicate
15042 extensions for fonts and images with the same base name but different
15043 extensions (#1254).
15044 + Handle files linked in raw `img` tags (#1170).
15045 + Handle media in `audio` source tags (#1170).
15046 Note that we now use a `media` directory rather than `images`.
15047 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
15048 will both be incorporated into `content.opf` and the epub container.
15050 * HTML writer:
15052 + Add colgroup around col tags (#877). Also affects EPUB writer.
15053 + Fixed bug with unnumbered section headings. Unnumbered section
15054 headings (with class `unnumbered`) were getting numbers.
15055 + Improved detection of image links. Previously image links with
15056 queries were not recognized, causing `<embed>` to be used instead
15057 of `<img>`.
15059 * Man writer: Ensure that terms in definition lists aren't line wrapped
15060 (#1195).
15062 * Markdown writer:
15064 + Use proper escapes to avoid unwanted lists (#980). Previously we used
15065 0-width spaces, an ugly hack.
15066 + Use longer backtick fences if needed (#1206). If the content contains a
15067 backtick fence and there are attributes, make sure longer fences are
15068 used to delimit the code. Note: This works well in pandoc, but github
15069 markdown is more limited, and will interpret the first string of three
15070 or more backticks as ending the code block.
15072 * RST writer: Avoid stack overflow with certain tables (#1197).
15074 * RTF writer: Fixed table cells containing paragraphs.
15076 * Custom writer:
15078 + Correctly handle UTF-8 in custom lua scripts (#1189).
15079 + Fix bugs with lua scripts with mixed-case filenames and
15080 paths containing `+` or `-` (#1267). Note that `getWriter`
15081 in `Text.Pandoc` no longer returns a custom writer on input
15082 `foo.lua`.
15084 * AsciiDoc writer: Handle multiblock and empty table cells
15085 (#1245, #1246). Added tests.
15087 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
15089 * `Text.Pandoc.Shared`:
15091 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
15092 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
15093 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
15094 Jesse Rosenthal.
15095 + `openURL`: set proxy with value of http_proxy env variable (#1211).
15096 Note: proxies with non-root paths are not supported, due to
15097 limitations in `http-conduit`.
15099 * `Text.Pandoc.PDF`:
15101 + Ensure that temp directories deleted on Windows (#1192). The PDF is
15102 now read as a strict bytestring, ensuring that process ownership will
15103 be terminated, so the temp directory can be deleted.
15104 + Use `/` as path separators in a few places, even on Windows.
15105 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
15106 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
15107 + Changes to error reporting, to handle non-UTF8 error output.
15109 * `Text.Pandoc.Templates`:
15111 + Removed unneeded datatype context (Merijn Verstraaten).
15113 + YAML objects resolve to "true" in conditionals (#1133).
15114 Note: If `address` is a YAML object and you just have `$address$`
15115 in your template, the word `true` will appear, which may be
15116 unexpected. (Previously nothing would appear.)
15118 * `Text.Pandoc.SelfContained`: Handle `poster` attribute in `video`
15119 tags (#1188).
15121 * `Text.Pandoc.Parsing`:
15123 + Made `F` an instance of Applicative (#1138).
15124 + Added `stateCaption`.
15125 + Added `HasMacros`, simplified other typeclasses.
15126 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
15127 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
15128 + Changed the smart punctuation parser to return `Inlines`
15129 rather than `Inline` (Matthew Pickering).
15130 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
15131 from typeclasses of monads to typeclasses of states. This simplifies
15132 the instance definitions and provides more flexibility. Generalized
15133 type of `getOption` and added a default definition. Removed
15134 `askReaderOption`. Added `extractReaderOption`. Added
15135 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
15136 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
15137 `modifyHeaderMap`. Added `extractIdentifierList` and
15138 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
15139 for `getIdentifierList`, `putIdentifierList`, and
15140 `modifyIdentifierList`. The ultimate goal here is to allow different
15141 parsers to use their own, tailored parser states (instead of
15142 `ParserState`) while still using shared functions.
15144 * Template changes:
15146 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
15147 + LaTeX template: Add `linestretch` and `fontfamily` variables.
15148 + LaTeX template: Conditionalize author and date commands.
15149 + Beamer template: Consistent styles for figure and table captions
15150 (aaronwolen).
15151 + LaTeX and beamer template: Adjust widths correctly for oversized
15152 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
15153 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
15154 `upquote` only after `fontenc` (Yihui Xie).
15155 + Beamer template: Added caption package (#1200).
15156 + Beamer template: changes for better unicode handling (KarolS).
15157 + DocBook template: use `authorgroup` if there are authors.
15158 + revealjs template: Move `include-after` to end (certainlyakey).
15159 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
15161 * Bumped version bounds of dependencies.
15163 * Added a `--trace` command line option, for debugging backtracking
15164 bugs. So far this only works with the markdown reader.
15166 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
15168 * Updated travis script to test with multiple GHC versions.
15170 * Force failure of a Travis build if GHC produces warnings (Albert
15171 Krewinkel).
15173 * Add `.editorconfig` (Albert Krewinkel).
15174 See <http://editorconfig.org/> for details.
15176 * Give more useful error message if '-t pdf' is specified (#1155).
15178 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
15180 * Allow `html4` as a synonym of `html` as a reader (it already works
15181 as a writer).
15183 * README:
15185 + Added an explanation of how to use YAML metadata to
15186 force items to appear in the bibliography without citations in
15187 the text (like LaTeX `\nocite`).
15188 + Added note to `--bibtex/--natbib`: not for use in making PDF
15189 (#1194, thanks to nahoj).
15190 + Added explanatory notes about `--natbib` and `--biblatex`.
15191 + Added specification of legal syntax for citation keys.
15192 + Fixed variable defaults documentation (Albert Krewinkel).
15194 * Removed copyright statements for files that have been removed
15195 (Albert Krewinkel).
15197 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
15198 They aren't needed at runtime. We keep README and COPYRIGHT in data
15199 to ensure that they'll be available on all systems on which pandoc
15200 is installed.
15202 * Use cabal sandboxes in Windows build script.
15204## pandoc 1.12.3.3 (2014-02-03)
15206 * To changes to source; recompiled tarball with latest alex and
15207 happy, so they will work with GHC 7.8.
15209## pandoc 1.12.3.2 (2014-02-03)
15211 * Bumped version bounds for blaze-html, blaze-markup.
15213 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
15214 (#1124).
15216 * Fixed mediawiki ordered list parsing (#1122).
15218 * HTML reader: Fixed bug reading inline math with `$$` (#225).
15220 * Added support for LaTeX style literate Haskell code blocks in rST
15221 (Merijn Verstraaten).
15223## pandoc 1.12.3.1 (2014-01-14)
15225 * Relaxed version constraint on binary, allowing the use of binary 0.5.
15228## pandoc 1.12.3 (2014-01-10)
15230 * The `--bibliography` option now sets the `biblio-files` variable.
15231 So, if you're using `--natbib` or `--biblatex`, you can just use
15232 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
15234 * Don't run pandoc-citeproc filter if `--bibliography` is
15235 used together with `--natbib` or `--biblatex` (Florian Eitel).
15237 * Template changes:
15239 + Updated beamer template to include booktabs.
15240 + Added `abstract` variable to LaTeX template.
15241 + Put `header-includes` after `title` in LaTeX template (#908).
15242 + Allow use of `\includegraphics[size]` in beamer.
15243 This just required porting a macro definition from the default
15244 LaTeX template to the default beamer template.
15246 * `reference.docx`: Include `FootnoteText` style.
15247 Otherwise Word ignores the style, even when specified in the `pPr`.
15248 (#901)
15250 * `reference.odt`: Tidied `styles.xml`.
15252 * Relaxed version bounds for dependencies.
15254 * Added `withSocketsDo` around http conduit code in `openURL`,
15255 so it works on Windows (#1080).
15257 * Added `Cite` function to `sample.lua`.
15259 * Markdown reader:
15261 + Fixed regression in title blocks (#1089).
15262 If author field was empty, date was being ignored.
15263 + Allow backslash-newline hard line breaks in grid and
15264 multiline table cells.
15265 + Citation keys may now start with underscores, and may contain
15266 underscores adjacent to internal punctuation.
15268 * LaTeX reader:
15270 + Add support for `Verb` macro (jrnold) (#1090).
15271 + Support babel-style quoting: `` "`..."' ``.
15273 * Properly handle script blocks in strict mode. (That is,
15274 `markdown-markdown_in_html_blocks`.) Previously a spurious
15275 `<p>` tag was being added (#1093).
15277 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
15278 elements.
15280 * LaTeX writer:
15282 + Factored out function for table cell creation.
15283 + Better treatment of footnotes in tables.
15284 Notes now appear in the regular sequence, rather than in the
15285 table cell. (This was a regression in 1.10.)
15287 * HTML reader: Parse name/content pairs from meta tags as metadata.
15288 Closes #1106.
15290 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
15292 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
15294 * ODT writer: Use mathml for proper rendering of formulas.
15295 Note: LibreOffice's support for this seems a bit buggy. But
15296 it should be better than what we had before.
15298 * RST writer: Ensure no blank line after def in definition list (#992).
15300 * Markdown writer: Don't use tilde code blocks with braced attributes in
15301 `markdown_github` output. A consequence of this change is that the
15302 backtick form will be preferred in general if both are enabled. That
15303 is good, as it is much more widespread than the tilde form. (#1084)
15305 * Docx writer: Fixed problem with some modified reference docx files.
15306 Include `word/_rels/settings.xml.rels` if it exists, as well as other
15307 `rels` files besides the ones pandoc generates explicitly.
15309 * HTML writer:
15311 + With `--toc`, headers no longer link to themselves (#1081).
15312 + Omit footnotes from TOC entries. Otherwise we get doubled
15313 footnotes when headers have notes!
15315 * EPUB writer:
15317 + Avoid duplicate notes when headings contain notes.
15318 This arose because the headings are copied into the metadata
15319 "title" field, and the note gets rendered twice. We strip the
15320 note now before putting the heading in "title".
15321 + Strip out footnotes from toc entries.
15322 + Fixed bug with `--epub-stylesheet`. Now the contents of
15323 `writerEpubStylesheet` (set by `--epub-stylesheet`)
15324 should again work, and take precedence over a stylesheet specified
15325 in the metadata.
15327 * `Text.Pandoc.Pretty`: Added `nestle`. API change.
15329 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
15331 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
15332 with `//`.
15334 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
15335 we could only get size information for JFIF format, which led
15336 to squished images in Word documents. Closes #976.
15338 * Removed old `MarkdownTest_1.0.3` directory (#1104).
15341## pandoc 1.12.2.1 (2013-12-08)
15343 * Markdown reader: Fixed regression in list parser, involving
15344 continuation lines containing raw HTML (or even verbatim raw HTML).
15346## pandoc 1.12.2 (2013-12-07)
15348 * Metadata may now be included in YAML blocks in a markdown document.
15349 For example,
15351 ---
15352 title:
15353 - type: main
15354 text: My Book
15355 - type: subtitle
15356 text: An investigation of metadata
15357 creator:
15358 - role: author
15359 text: John Smith
15360 - role: editor
15361 text: Sarah Jones
15362 identifier:
15363 - scheme: DOI
15364 text: doi:10.234234.234/33
15365 publisher: My Press
15366 rights: (c) 2007 John Smith, CC BY-NC
15367 cover-image: img/mypic.jpg
15368 stylesheet: style.css
15369 ...
15371 Metadata may still be provided using `--epub-metadata`; it will
15372 be merged with the metadata in YAML blocks.
15374 * EPUB writer:
15376 + `meta` tags are now used instead of `opf` attributes for EPUB3.
15377 + Insert "svg" property as needed in opf (EPUB 3).
15378 + Simplify `imageTypeOf` using `getMimeType`.
15379 + Add properties attribute to `cover-image` item for EPUB 3.
15380 + Don't include node for `cover.xhtml` if no cover!
15381 + Ensure that same identifier is used throughout (#1044).
15382 If an identifier is given in metadata, we use that; otherwise
15383 we generate a random uuid.
15384 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
15385 Fixes an issue with Calibre putting the cover at the end of the book
15386 if the spine has `linear="no"`. Apparently this is best practice
15387 for other converters as well:
15388 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
15389 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
15390 + Allow partial dates: `YYYY`, `YYYY-MM`.
15392 * Markdown writer: Fix rendering of tight sublists (#1050).
15393 Previously a spurious blank line was included after a tight sublist.
15395 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
15396 This is reported to be necessary to avoid an error from recent
15397 versions of Libre Office when files contain more than one image
15398 Thanks to wmanley for reporting and diagnosing the problem.
15400 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
15401 Instead, let this be set in the template, using `\setupfloat`.
15402 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
15404 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
15406 * Fixed bug with markdown intraword emphasis. Closes #1066.
15408 * Docbook writer: Hierarchicalize block content in metadata.
15409 Previously headers just disappeared from block-level metadata
15410 when it was used in templates. Now we apply the 'hierarchicalize'
15411 transformation. Note that a block headed by a level-2 header will
15412 turn into a `<sect1>` element.
15414 * OpenDocument writer: Skip raw HTML (#1035).
15415 Previously it was erroneously included as verbatim text.
15417 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
15418 This allows better control of formatting, since the `<a>`
15419 tags have a distinguishing class (#1049).
15421 * Docx writer:
15423 + Use mime type info returned by fetchItem.
15424 + Fixed core metadata (#1046).
15425 Don't create empty date nodes if no date given.
15426 Don't create multiple `dc:creator` nodes; instead separate by
15427 semicolons.
15428 + Fix URL for core-properties in `_rels/.rels` (#1046).
15430 * Plain writer: don't print `<span>` tags.
15432 * LaTeX writer:
15434 + Fix definition lists with internal links in terms (#1032).
15435 This fix puts braces around a term that contains an internal
15436 link, to avoid problems with square brackets.
15437 + Properly escape pdftitle, pdfauthor (#1059).
15438 + Use booktabs package for tables (thanks to Jose Luis Duran).
15440 * Updated beamer template. Now references should work properly
15441 (in a slide) when `--biblatex` or `--natbib` is used.
15443 * LaTeX reader:
15445 + Parse contents of curly quotes or matched `"` as quotes.
15446 + Support `\textnormal` as span with class `nodecor`.
15447 This is needed for pandoc-citeproc.
15448 + Improved citation parsing. This fixes a run-time error that occurred
15449 with `\citet{}` (empty list of keys). It also ensures that empty keys
15450 don't get produced.
15452 * MediaWiki reader: Add automatic header identifiers.
15454 * HTML reader:
15456 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
15457 `--parse-raw`.
15458 + Recognize `svg` tags as block level content (thanks to MinRK).
15459 + Parse LaTeX math if appropriate options are set.
15461 * Markdown reader:
15463 + Yaml block must start immediately after `---`. If there's a blank
15464 line after `---`, we interpreted it as a horizontal rule.
15465 + Correctly handle empty bullet list items.
15466 + Stop parsing "list lines" when we hit a block tag.
15467 This fixes exponential slowdown in certain input, e.g.
15468 a series of lists followed by `</div>`.
15470 * Slides: Preserve `<div class="references">` in references slide.
15472 * `Text.Pandoc.Writer.Shared`:
15474 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
15475 attributes, leading to invalid HTML.
15476 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
15477 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
15478 encoded bytestring was returned. We now decode it so it's a proper
15479 image!
15481 * DocBook reader: Handle numerical attributes starting with decimal.
15482 Also use `safeRead` instead of `read`.
15484 * `Text.Pandoc.Parsing`:
15486 + Generalized type of `registerHeader`, using new type classes
15487 `HasReadeOptions`, `HasIdentifierList`, `HasHeaderMap`.
15488 These allow certain common functions to be reused
15489 even in parsers that use custom state (instead of `ParserState`),
15490 such as the MediaWiki reader.
15491 + Moved inlineMath, displayMath from Markdown reader to Parsing.
15492 Generalize their types and export them from Parsing. (API change.)
15494 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
15495 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
15496 in all the writers. Require `texmath >= 0.6.5.2`.
15498 * `Text.Pandoc.MIME`:
15500 + Add entry for `jfif`.
15501 + In looking up extensions, drop the encoding info.
15502 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
15504 * Templates: Changed how array variables are resolved. Previously if
15505 `foo` is an array (which might be because multiple values were set on
15506 the command line), `$foo$` would resolve to the concatenation of the
15507 elements of foo. This is rarely useful behavior. It has been changed
15508 so that the first value is rendered. Of course, you can still iterate
15509 over the values using `$for(foo)$`. This has the result that you can
15510 override earlier settings using `-V` by putting new values later on the
15511 command line, which is useful for many purposes.
15513 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
15515 * Allow "epub2" as synonym for "epub", "html4" for "html".
15517 * Don't look for slidy files in data files with `--self-contained`.
15519 * Allow `https:` command line arguments to be downloaded.
15521 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
15523## pandoc 1.12.1 (2013-10-20)
15525 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
15526 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
15527 "c": "foo"}`. This new format is easier to work with outside of Haskell.
15528 Incidentally, "t" stands for "tag", "c" for "contents".
15530 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
15531 when converting to markdown (#1027).
15533 * LaTeX reader:
15535 + Ensure that preamble doesn't contribute to the text of
15536 the document.
15537 + Fixed character escaping in `\url{}`. Previously `\~` wasn't handled
15538 properly, among others.
15539 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
15540 bibtex titles, since we need to know what was protected from
15541 titlecase conversions.
15543 * LaTeX writer:
15545 + Specially escape non-ascii characters in labels.
15546 Otherwise we can get compile errors and other bugs when
15547 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
15548 + Add link anchors for code blocks with identifiers (#1025).
15550 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
15551 It allows fragments identifiers.
15553 * Slide formats:
15555 + A Div element with class "notes" is treated as speaker
15556 notes. Currently beamer goes to `\note{}`, revealjs to
15557 `<aside class="notes">`, and the notes are simply suppressed in
15558 other formats (#925).
15559 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
15560 The old version caused a pause to be inserted before the first
15561 material on a slide. This has been fixed.
15562 + Removed data files for s5, slideous, slidy.
15563 Users of s5 and slideous will have to download the needed
15564 files, as has been documented for some time in the README.
15565 By default, slidy code will be sought on the web, as before.
15567 * HTML writer: Insert command to typeset mathjax only in slideous output
15568 (#966, #1012).
15570 * RST writer: Skip spaces after display math. Otherwise we get indentation
15571 problems, and part of the next paragraph may be rendered as part of the
15572 math.
15574 * OpenDocument writer: Fix formatting of strikeout code (#995),
15575 thanks to wilx. don't use `font-face-decls` variable.
15577 * Fixed test suite so it works with cabal sandboxes.
15579## pandoc 1.12.0.2 (2013-09-20)
15581 * Removed an unused dependency (`stringable`) from pandoc.cabal.
15582 This will help packagers, but users should not need to upgrade.
15584## pandoc 1.12.0.1 (2013-09-20)
15586 * Allow `--metadata` to be repeated for the same key to form a list.
15587 This also has the effect that `--bibliography` can be repeated,
15588 as before.
15590 * Handle boolean values in `--metadata`. Note that anything not parseable
15591 as a YAML boolean or string is treated as a literal string.
15592 You can get a string value with "yes", or any of the strings interpretable
15593 as booleans, by quoting it:
15595 -M boolvalue=yes -M stringvalue='"yes"'
15597 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
15598 option used.
15600 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
15601 in which docx files could not be read by some versions of Word
15602 and LibreOffice (#990).
15604 * Fixed a regression involving slide shows with bibliographies.
15605 The Div container around references messed up the procedure for carving
15606 a document into slides. So we now remove the surrounding Div in
15607 `prepSlides`.
15609 * More informative error message when a filter is not found in path.
15611 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
15612 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
15614 * Don't use unicode_collation in building OSX package:
15615 it adds something like 50MB of dependencies to the package.
15617 * Declare alex and happy as build-tools (#986).
15619## pandoc 1.12 (2013-09-15)
15621### New features
15623 * Much more flexible metadata, including arbitrary fields and structured
15624 values. Metadata can be specified flexibly in pandoc markdown using
15625 YAML metadata blocks, which may occur anywhere in the document:
15627 ---
15628 title: Here is my title.
15629 abstract: |
15630 This is the abstract.
15632 1. It can contain
15633 2. block content
15634 and *inline markup*
15636 tags: [cat, dog, animal]
15637 ...
15639 Metadata fields automatically populate template variables.
15641 * Added `opml` (OPML) as input and output format. The `_note` attribute,
15642 used in OmniOutliner and supported by multimarkdown, is supported.
15643 We treat the contents as markdown blocks under a section header.
15645 * Added `haddock` (Haddock markup) as input format (David Lazar).
15647 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
15648 (Thanks to Jamie F. Olson for the initial patch.)
15649 Nested vertical stacks are used for hierarchical structure.
15650 Results for more than one level of nesting may be odd.
15652 * Custom writers can now be written in lua.
15654 pandoc -t data/sample.lua
15656 will load the script sample.lua and use it as a custom writer.
15657 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
15658 Note that pandoc embeds a lua interpreter, so lua need not be
15659 installed separately.
15661 * New `--filter/-F` option to make it easier to run "filters"
15662 (Pandoc AST transformations that operate on JSON serializations).
15663 Filters are always passed the name of the output format, so their
15664 behavior can be tailored to it. The repository
15665 <https://github.com/jgm/pandocfilters> contains
15666 a python module for writing pandoc filters in python, with
15667 a number of examples.
15669 * Added `--metadata/-M` option.
15670 This is like `--variable/-V`, but actually adds to metadata, not
15671 just variables.
15673 * Added `--print-default-data-file` option, which allows printing
15674 of any of pandoc's data files. (For example,
15675 `pandoc --print-default-data-file reference.odt` will print
15676 `reference.odt`.)
15678 * Added syntax for "pauses" in slide shows:
15680 This gives
15682 . . .
15684 me pause.
15686 * New markdown extensions:
15688 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
15689 rather than being treated as hard line breaks or spaces. This is useful
15690 for some East Asian languages, where spaces aren't used between words,
15691 but text is separated into lines for readability.
15692 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
15693 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
15694 only. (Default for `markdown_github`.) (#807)
15695 + `lists_without_preceding_blankline`: Allow lists to start without
15696 preceding blank space. (Default for `markdown_github`.) (#972)
15698### Behavior changes
15700 * `--toc-level` no longer implies `--toc`.
15701 Reason: EPUB users who don't want a visible TOC may still want
15702 to set the TOC level for in the book navigation.
15704 * `--help` now prints in and out formats in alphabetical order, and
15705 says something about PDF output (#720).
15707 * `--self-contained` now returns less verbose output (telling you
15708 which URLs it is fetching, but not giving the full header). In
15709 addition, there are better error messages when fetching a URL fails.
15711 * Citation support is no longer baked in to core pandoc. Users who
15712 need citations will need to install and use a separate filter
15713 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
15714 `csl`, and `citation-abbreviations` from the metadata, though it
15715 may still be specified on the command line as before.
15717 * A `Cite` element is now created in parsing markdown whether or not
15718 there is a matching reference.
15720 * The `pandoc-citeproc` script will put the bibliography at the
15721 end of the document, as before. However, it will be put inside a `Div`
15722 element with class "references", allowing users some control
15723 over the styling of references. A final header, if any, will
15724 be included in the `Div`.
15726 * The markdown writer will not print a bibliography if the
15727 `citations` extension is enabled. (If the citations are formatted
15728 as markdown citations, it is redundant to have a bibliography,
15729 since one will be generated automatically.)
15731 * Previously we used to store the directory of the first input file,
15732 even if it was local, and used this as a base directory for finding
15733 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
15734 users. So we now look for images relative to the current
15735 working directory, even if the first file argument is in another
15736 directory. Note that this change may break some existing workflows.
15737 If you have been assuming that relative links will be interpreted
15738 relative to the directory of the first file argument, you'll need
15739 to make that the current directory before running pandoc. (#942)
15741 * Better error reporting in some readers, due to changes in `readWith`:
15742 the line in which the error occurred is printed, with a caret pointing
15743 to the column.
15745 * All slide formats now support incremental slide view for definition lists.
15747 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
15748 Parse `:<math>...</math>` as display math. These notations are used with
15749 the MathJax MediaWiki extension.
15751 * All writers: template variables are set automatically from metadata
15752 fields. However, variables specified on the command line with
15753 `--variable` will completely shadow metadata fields.
15755 * If `--variable` is used to set many variables with the same name,
15756 a list is created.
15758 * Man writer: The `title`, `section`, `header`, and `footer` can now
15759 all be set individually in metadata. The `description` variable has been
15760 removed. Quotes have been added so that spaces are allowed in the
15761 title. If you have a title that begins
15763 COMMAND(1) footer here | header here
15765 pandoc will still parse it into a title, section, header, and
15766 footer. But you can also specify these elements explicitly (#885).
15768 * Markdown reader
15770 + Added support for YAML metadata blocks, which can come anywhere
15771 in the document (not just at the beginning). A document can contain
15772 multiple YAML metadata blocks.
15773 + HTML span and div tags are parsed as pandoc Span and Div elements.
15775 * Markdown writer
15777 + Allow simple tables to be printed as grid tables,
15778 if other table options are disabled. This means you can do
15779 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
15780 and all tables will render as grid tables.
15781 + Support YAML title block (render fields in alphabetical order
15782 to make output predictable).
15784### API changes
15786 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
15787 structured metadata. (Note: existing code that pattern-matches
15788 on `Meta` will have to be revised.) Metadata can now contain
15789 indefinitely many fields, with content that can be a string,
15790 a Boolean, a list of `Inline` elements, a list of `Block`
15791 elements, or a map or list of these.
15793 * A new generic block container (`Div`) has been added to `Block`,
15794 and a generic inline container (`Span`) has been added to `Inline`.
15795 These can take attributes. They will render in HTML, Textile,
15796 MediaWiki, Org, RST and Markdown (with `markdown_in_html`
15797 extension) as HTML `<div>` and `<span>` elements; in other formats
15798 they will simply pass through their contents. But they can be
15799 targeted by scripts.
15801 * `Format` is now a newtype, not an alias for String.
15802 Equality comparisons are case-insensitive.
15804 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
15805 functions that are much faster than the SYB functions from
15806 `Text.Pandoc.Generic`. These functions are now used where possible
15807 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
15808 match the generic traversals `bottomUp` and `queryWith`.)
15810 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
15811 instances for the basic pandoc types. They use GHC generics and
15812 should be faster than the old JSON serialization using
15813 `Data.Aeson.Generic`.
15815 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
15816 This is a souped-up version of `readProcessWithErrorcode` that
15817 uses lazy bytestrings instead of strings and allows setting
15818 environment variables. (Used in `Text.Pandoc.PDF`.)
15820 * New module `Text.Pandoc.Readers.OPML`.
15822 * New module `Text.Pandoc.Writers.OPML`.
15824 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
15825 This is based on Haddock's own lexer/parser.
15827 * New module `Text.Pandoc.Writers.Custom`.
15829 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
15830 Either, for better error handling.
15832 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
15834 * Removed `stripTags` from `Text.Pandoc.XML`.
15836 * `Text.Pandoc.Templates`:
15838 + Simplified `Template` type to a newtype.
15839 + Removed `Empty`.
15840 + Changed type of `renderTemplate`: it now takes a JSON context
15841 and a compiled template.
15842 + Export `compileTemplate`.
15843 + Export `renderTemplate'` that takes a string instead of a compiled
15844 template.
15845 + Export `varListToJSON`.
15847 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
15849 * `Text.Pandoc`:
15851 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
15852 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
15853 `Text.Pandoc.JSON` should be used instead. (Compiling against
15854 pandoc-types instead of pandoc will also produce smaller executables.)
15855 * Removed the deprecated `jsonFilter` function.
15856 + Added `readJSON`, `writeJSON` to the API (#817).
15858 * `Text.Pandoc.Options`:
15860 + Added `Ext_lists_without_preceding_blankline`,
15861 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
15862 `Ext_yaml_metadataBlock` to `Extension`.
15863 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
15864 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
15865 first command-line argument is an absolute URL. (So, relative links
15866 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
15867 + All bibliography-related fields have been removed from
15868 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
15869 `readerReferences`, `readerCitationStyle`.
15871 * The `Text.Pandoc.Biblio` module has been removed. Users of the
15872 pandoc library who want citation support will need to use
15873 `Text.CSL.Pandoc` from `pandoc-citeproc`.
15875### Bug fixes
15877 * In markdown, don't autolink a bare URI that is followed by `</a>`
15878 (#937).
15880 * `Text.Pandoc.Shared`
15882 + `openURL` now follows redirects (#701), properly handles `data:`
15883 URIs, and prints diagnostic output to stderr rather than stdout.
15884 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
15885 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
15886 + Fixed `readDefaultDataFile` so it works on Windows.
15887 + Better error messages for `readDefaultDataFile`. Instead of
15888 listing the last path tried, which can confuse people who are
15889 using `--self-contained`, so now we just list the data file name.
15890 + URL-escape pipe characters. Even though these are legal, `Network.URI`
15891 doesn't regard them as legal in URLs. So we escape them first (#535).
15893 * Mathjax in HTML slide shows: include explicit "Typeset" call.
15894 This seems to be needed for some formats (e.g. slideous) and won't
15895 hurt in others (#966).
15897 * `Text.Pandoc.PDF`
15899 + On Windows, create temdir in working directory, since the system
15900 temp directory path may contain tildes, which can cause
15901 problems in LaTeX (#777).
15902 + Put temporary output directory in `TEXINPUTS` (see #917).
15903 + `makePDF` tries to download images that are not found locally,
15904 if the first argument is a URL (#917).
15905 + If compiling with `pdflatex` yields an encoding error, offer
15906 the suggestion to use `--latex-engine=xelatex`.
15908 * Produce automatic header identifiers in parsing textile, RST,
15909 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
15911 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
15912 before treating as a filename. This fixes `--self-contained` when used
15913 with CSS files that include web fonts using the method described here:
15914 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
15915 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
15917 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
15918 percent-encoding, or a `+` character, as final punctuation.
15920 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
15921 EPS images properly sized on conversion to Word.
15923 * Slidy: Use slidy.js rather than slidy.js.gz.
15924 Reason: some browsers have trouble with the gzipped js file,
15925 at least on the local file system (#795).
15927 * Markdown reader
15929 + Properly handle blank line at beginning of input (#882).
15930 + Fixed bug in unmatched reference links. The input
15931 `[*infile*] [*outfile*]` was getting improperly parsed:
15932 "infile" was emphasized, but "*outfile*" was literal (#883).
15933 + Allow internal `+` in citation identifiers (#856).
15934 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
15935 + Do not generate blank title, author, or date metadata elements.
15936 Leave these out entirely if they aren't present.
15937 + Allow backtick code blocks not to be preceded by blank line (#975).
15939 * Textile reader:
15941 + Correctly handle entities.
15942 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
15943 in code blocks, rather than printing them verbatim. Parse attributes
15944 on `<pre>` tag for code blocks.
15946 * HTML reader: Handle non-simple tables (#893). Column widths are read from
15947 `col` tags if present, otherwise divided equally.
15949 * LaTeX reader
15951 + Support alltt environment (#892).
15952 + Support `\textasciitilde`, `\textasciicircum` (#810).
15953 + Treat `\textsl` as emphasized text reader (#850).
15954 + Skip positional options after `\begin{figure}`.
15955 + Support `\v{}` for hacek (#926).
15956 + Don't add spurious ", " to citation suffixes.
15957 This is added when needed in pandoc-citeproc.
15958 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
15959 + Improved support for accented characters (thanks to Scott Morrison).
15960 + Parse label after section command and set id (#951).
15962 * RST reader:
15964 + Don't insert paragraphs where docutils doesn't.
15965 `rst2html` doesn't add `<p>` tags to list items (even when they are
15966 separated by blank lines) unless there are multiple paragraphs in the
15967 list. This commit changes the RST reader to conform more closely to
15968 what docutils does (#880).
15969 + Improved metadata. Treat initial field list as metadata when
15970 standalone specified. Previously ALL fields "title", "author",
15971 "date" in field lists were treated as metadata, even if not at
15972 the beginning. Use `subtitle` metadata field for subtitle.
15973 + Fixed 'authors' metadata parsing in reST. Semicolons separate
15974 different authors.
15976 * MediaWiki reader
15978 + Allow space before table rows.
15979 + Fixed regression for `<ref>URL</ref>`.
15980 `<` is no longer allowed in URLs, according to the uri parser
15981 in `Text.Pandoc.Parsing`. Added a test case.
15982 + Correctly handle indented preformatted text without preceding
15983 or following blank line.
15984 + Fixed `|` links inside table cells. Improved attribute parsing.
15985 + Skip attributes on table rows. Previously we just crashed if
15986 rows had attributes, now we ignore them.
15987 + Ignore attributes on headers.
15988 + Allow `Image:` for images (#971).
15989 + Parse an image with caption in a paragraph by itself as a figure.
15991 * LaTeX writer
15993 + Don't use ligatures in escaping inline code.
15994 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
15995 wherein notes were numbered incorrectly in tables (#827).
15996 + Always create labels for sections. Previously the labels were only
15997 created when there were links to the section in the document (#871).
15998 + Stop escaping `|` in LaTeX math.
15999 This caused problems with array environments (#891).
16000 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
16001 `\` will cause major problems if unescaped.
16002 + Write id for code block to label attribute in LaTeX when listings
16003 is used (thanks to Florian Eitel).
16004 + Scale LaTeX tables so they don't exceed columnwidth.
16005 + Avoid problem with footnotes in unnumbered headers (#940).
16007 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
16008 to the slide if it is one of the header classes. It is recommended
16009 that your bibliography slide have this attribute:
16011 # References {.allowframebreaks}
16013 This causes multiple slides to be created if necessary, depending
16014 on the length of the bibliography.
16016 * ConTeXt writer: Properly handle tables without captions. The old output
16017 only worked in MkII. This should work in MkIV as well (#837).
16019 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
16021 * HTML writer:
16023 + Fixed `--no-highlight` (Alexander Kondratskiy).
16024 + Don't convert to lowercase in email obfuscation (#839).
16025 + Ensure proper escaping in `<title>` and `<meta>` fields.
16027 * AsciiDoc writer:
16029 + Support `--atx-headers` (Max Rydahl Andersen).
16030 + Don't print empty identifier blocks `([[]])` on headers (Max
16031 Rydahl Andersen).
16033 * ODT writer:
16035 + Fixing wrong numbered-list indentation in open document format
16036 (Alexander Kondratskiy) (#369).
16037 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
16038 + Minor changes for ODF 1.2 conformance (#939). We leave the
16039 nonconforming `contextual-spacing` attribute, which is provided by
16040 LibreOffice itself and seems well supported.
16042 * Docx writer:
16044 + Fixed rendering of display math in lists.
16045 In 1.11 and 1.11.1, display math in lists rendered as a new list
16046 item. Now it always appears centered, just as outside of lists,
16047 and in proper display math style, no matter how far indented the
16048 containing list item is (#784).
16049 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
16050 Previously we used `w:cr` (#873).
16051 + Use Compact style for Plain block elements, to
16052 differentiate between tight and loose lists (#775).
16053 + Ignore most components of `reference.docx`.
16054 We take the `word/styles.xml`, `docProps/app.xml`,
16055 `word/theme/theme1.xml`, and `word/fontTable.xml` from
16056 `reference.docx`, ignoring everything else. This should help
16057 with the corruption problems caused when different versions of
16058 Word resave the reference.docx and reorganize things.
16059 + Made `--no-highlight` work properly.
16061 * EPUB writer
16063 + Don't add `dc:creator` tags if present in EPUB metadata.
16064 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
16065 + Don't put blank title page in reading sequence.
16066 Set `linear="no"` if no title block. Addresses #797.
16067 + Download webtex images and include as data URLs.
16068 This allows you to use `--webtex` in creating EPUBs.
16069 Math with `--webtex` is automatically made self-contained.
16070 + In `data/epub.css`, removed highlighting styles (which
16071 are no longer needed, since styles are added by the HTML
16072 writer according to `--highlighting-style`). Simplified
16073 margin fields.
16074 + If resource not found, skip it, as in Docx writer (#916).
16076 * RTF writer:
16078 + Properly handle characters above the 0000-FFFF range.
16079 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
16080 + Fixed regression with RTF table of contents.
16081 + Only autolink absolute URIs. This fixes a regression, #830.
16083 * Markdown writer:
16085 + Only autolink absolute URIs. This fixes a regression, #830.
16086 + Don't wrap attributes in fenced code blocks.
16087 + Write full metadata in MMD style title blocks.
16088 + Put multiple authors on separate lines in pandoc titleblock.
16089 Also, don't wrap long author entries, as new lines get treated
16090 as new authors.
16092 * `Text.Pandoc.Templates`:
16094 + Fixed bug retrieving default template for markdown variants.
16095 + Templates can now contain "record lookups" in variables;
16096 for example, `author.institution` will retrieve the `institution`
16097 field of the `author` variable.
16098 + More consistent behavior of `$for$`. When `foo` is not a list,
16099 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
16100 So if `foo` resolves to "", no output should be produced.
16101 See pandoc-templates#39.
16103 * Citation processing improvements (now part of pandoc-citeproc):
16105 + Fixed `endWithPunct` The new version correctly sees a sentence
16106 ending in '.)' as ending with punctuation. This fixes a bug which
16107 led such sentences to receive an extra period at the end: '.).'.
16108 Thanks to Steve Petersen for reporting.
16109 + Don't interfere with Notes that aren't citation notes.
16110 This fixes a bug in which notes not generated from citations were
16111 being altered (e.g. first letter capitalized) (#898).
16112 + Only capitalize footnote citations when they have a prefix.
16113 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
16114 inserted before it before passing to citeproc-hs, so that bare numbers
16115 are treated as page numbers by default. A suffix not beginning with
16116 punctuation has a space added at the beginning (rather than a comma and
16117 space, as was done before for not-author-in-text citations).
16118 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
16119 properly, with '23' treated as a locator of type 'page'.
16120 + Many improvements to citation rendering, due to fixes in citeproc-hs
16121 (thanks to Andrea Rossato).
16122 + Warnings are issued for undefined citations, which are rendered
16123 as `???`.
16124 + Fixed hanging behavior when locale files cannot be found.
16126### Template changes
16128 * DocBook: Use DocBook 4.5 doctype.
16130 * Org: '#+TITLE:' is inserted before the title.
16131 Previously the writer did this.
16133 * LaTeX: Changes to make mathfont work with xelatex.
16134 We need the mathspec library, not just fontspec, for this.
16135 We also need to set options for setmathfont (#734).
16137 * LaTeX: Use `tex-ansi` mapping for `monofont`.
16138 This ensures that straight quotes appear as straight, rather than
16139 being treated as curly. See #889.
16141 * Made `\includegraphics` more flexible in LaTeX template.
16142 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
16144 * LaTeX/Beamer: Added `classoption` variable.
16145 This is intended for class options like `oneside`; it may
16146 be repeated with different options. (Thanks to Oliver Matthews.)
16148 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
16150 * LaTeX: Added `biblio-style` variable (#920).
16152 * DZSlides: title attribute on title section.
16154 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
16156### Under-the-hood improvements
16158 * Markdown reader:Improved strong/emph parsing, using the strategy of
16159 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
16160 no backtracking, and no keeping track of nesting levels. It will give
16161 different results in some edge cases, but these should not affect normal
16162 uses.
16164 * Added `Text.Pandoc.Compat.Monoid`.
16165 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
16166 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
16168 * Added `Text.Pandoc.Compat.TagSoupEntity`.
16169 This allows pandoc to compile with `tagsoup` 0.13.x.
16170 Thanks to Dirk Ullrich for the patch.
16172 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
16173 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
16174 handle simple math in bibliography fields.)
16176 * Added `Text.Pandoc.Writers.Shared` for shared functions used
16177 only in writers. `metaToJSON` is used in writers to create a
16178 JSON object for use in the templates from the pandoc metadata
16179 and variables. `getField`, `setField`, and `defField` are
16180 for working with JSON template contexts.
16182 * Added `Text.Pandoc.Asciify` utility module.
16183 This exports functions to create ASCII-only versions of identifiers.
16185 * `Text.Pandoc.Parsing`
16187 + Generalized state type on `readWith` (API change).
16188 + Specialize readWith to `String` input. (API change).
16189 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
16190 with `stateMeta` and `stateMeta'`.
16192 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
16193 bytestrings seemed to cause problems using pandoc on 64-bit Windows
16194 7/8 (#874).
16196 * Factored out `registerHeader` from markdown reader, added to
16197 `Text.Pandoc.Parsing`.
16199 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
16200 Reason: < 0.5 does not provide a monoid instance for Attribute,
16201 which is now needed by the HTML writer (#803).
16203 * Added `http-conduit` flag, which allows fetching https resources.
16204 It also brings in a large number of dependencies (`http-conduit`
16205 and its dependencies), which is why for now it is an optional flag
16206 (#820).
16208 * Added CONTRIBUTING.md.
16210 * Improved INSTALL instructions.
16212 * `make-windows-installer.bat`: Removed explicit paths for executables.
16214 * `aeson` is now used instead of `json` for JSON.
16216 * Set default stack size to 16M. This is needed for some large
16217 conversions, esp. if pandoc is compiled with 64-bit ghc.
16219 * Various small documentation improvements.
16220 Thanks to achalddave and drothlis for patches.
16222 * Removed comment that chokes recent versions of CPP (#933).
16224 * Removed support for GHC version < 7.2, since pandoc-types now
16225 requires at least GHC 7.2 for GHC generics.
16228## pandoc 1.11.1 (2013-03-17)
16230 * Markdown reader:
16232 + Fixed regression in which parentheses were lost in link URLs.
16233 Added tests. Closes #786.
16234 + Better handling of unmatched double quotes in `--smart` mode.
16235 These occur frequently in fiction, since it is customary not to
16236 close quotes in dialogue if the speaker does not change between
16237 paragraphs. The unmatched quotes now get turned into literal
16238 left double quotes. (No `Quoted` inline is generated, however.)
16239 Closes #99 (again).
16241 * HTML writer: Fixed numbering mismatch between TOC and sections.
16242 `--number-offset` now affects TOC numbering as well
16243 as section numbering, as it should have all along. Closes #789.
16245 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
16246 as markdown citations, even if `--bibliography` was specified, unless
16247 `citation` extension is disabled. Now, formatted citations are always
16248 printed if `--bibliography` was specified. If you want to reformat
16249 markdown keeping pandoc markdown citations intact, don't use
16250 `--bibliography`. Note that citations parsed from LaTeX documents will
16251 be rendered as pandoc markdown citations when `--bibliography` is not
16252 specified.
16254 * ODT writer: Fixed regression leading to corrupt ODTs.
16255 This was due to a change in the `Show` instance for
16256 `Text.Pandoc.Pretty.Doc`. Closes #780.
16258 * Fixed spacing bugs involving code block attributes in
16259 RST reader and Markdown writer. Closes #763.
16261 * Windows package: Various improvements due to Fyodor Sheremetyev.
16263 + Automatically set installation path (Program Files or Local App Data).
16264 + Set system PATH environment variable when installing for all users.
16265 + Pandoc can installed for all users using the following command.
16266 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
16268 * Bumped QuickCheck version bound.
16270## pandoc 1.11 (2013-03-09)
16272 * Added `--number-offset` option. (See README for description.)
16274 * Added `--default-image-extension` option. (See README for description.)
16276 * `--number-sections` behavior change: headers with class `unnumbered`
16277 will not be numbered.
16279 * `--version` now reports the default data directory.
16281 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
16283 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
16285 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
16286 a field for `Attr` rather than just `String`. (API change.)
16288 * Added `markdown_github` as input format. This was an accidental
16289 omission in 1.10.
16291 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
16292 change.)
16294 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
16296 * Beamer template:
16298 + Fixed captions with longtable. Thanks to Joost Kremers.
16299 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
16301 * LaTeX template:
16303 + Load microtype after fonts. Microtype needs to know
16304 what fonts are being used. Thanks to dfc for the patch.
16305 + Set `secnumdepth` to 5 if `--number-sections` specified.
16306 This yields behavior equivalent to the other writers, numbering
16307 level 4 and 5 headers too. Closes #753.
16309 * HTML reader:
16311 + Handle `<colgroup>` tag.
16312 + Preserve all header attributes.
16314 * LaTeX reader:
16316 + Parse `\hrule` as `HorizontalRule`. Closes #746.
16317 + Parse starred variants of `\section` etc. as headers with
16318 attribute `unnumbered`.
16319 + Read optional attributes in `lstlisting` and `Verbatim` environments.
16320 We convert these to pandoc standard names, e.g. `numberLines`
16321 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
16322 + Handle language attribute for lstlistings.
16323 + Better support for Verbatim and minted environments. Closes #763.
16325 * Markdown reader:
16327 + `-` in an attribute context = `.unnumbered`. The point of this
16328 is to provide a way to specify unnumbered headers in non-English
16329 documents.
16330 + Fixed bug parsing key/value attributes. Parsing failed if you
16331 had an unquoted attribute immediately before the final '}'.
16332 + Make backslash escape work in attributes.
16333 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
16334 pandoc will parse a MMD title block if it sees one, even if
16335 `pandoc_title_blocks` is enabled.
16336 + Refactoring: `litChar` now includes entities, so we don't need
16337 to use `fromEntities` e.g. on titles.
16338 + Allow spaces around borders in pipe tables. Closes #772.
16339 + Allow all punctuation in angle-bracket autolinks. Previously
16340 things like `----` were disallowed, because the uri parser
16341 treated them as trailing punctuation. Closes #768.
16342 + Make `implicit_header_references` work properly when
16343 headers are given explicit identifiers.
16344 + Check for tables before line blocks. Otherwise some pipe
16345 tables get treated as line blocks.
16346 + Allow `&` in emails (for entities).
16347 + Properly handle entities in titles and links. A markdown link
16348 `<http://g&ouml;ogle.com>` should be a link to `http://göogle.com`.
16349 Closes #723.
16351 * Textile reader:
16353 + Handle attributes on headers.
16355 * LaTeX reader:
16357 + Add `fig:` as title for images with captions.
16358 This is needed for them to be rendered as figures. Closes #766.
16359 + Never emit an empty paragraph. See #761.
16360 + Handle `\caption` for images in figures. Closes #766.
16361 + Parse `\section*`, etc. as unnumbered sections.
16363 * HTML writer:
16365 + Support header attributes. The attributes go on
16366 the enclosing `section` or `div` tag if `--section-divs` is specified.
16367 + Fixed a regression (only now noticed) in html+lhs output.
16368 Previously the bird tracks were being omitted.
16370 * LaTeX writer:
16372 + Omit lists with no items to avoid LaTeX errors.
16373 + Support line numbering with `--listings`.
16374 If `numberLines` class is present, we add `numbers=left`;
16375 if `startFrom` is present, we add `firstnumber=`. (#763)
16377 * ConTeXt writer:
16379 + Removed `\placecontent`. This produced a duplicate toc,
16380 in conjunction with `\placelist`.
16381 + Use `\title`, `\subject` etc. for headers with
16382 `unnumbered` class.
16384 * Textile writer:
16386 + Support header attributes.
16388 * Markdown writer:
16390 + Use grid tables when needed, and if enabled. Closes #740.
16391 + Render citations as pandoc-markdown citations.
16392 Previously citations were rendered as citeproc-formatted citations
16393 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
16394 unless the `citations` extension is disabled.
16395 If you still want formatted citations in your markdown output,
16396 use `pandoc -t markdown-citations`.
16398 * RST writer:
16400 + Support `:number-lines:` in code blocks.
16402 * Docx writer:
16404 + Better treatment of display math. Display math inside a
16405 paragraph is now put in a separate paragraph, so it will render
16406 properly (centered and without extra blank lines around it).
16407 Partially addresses #742.
16408 + Content types and document rels xml files are now created from
16409 scratch, rather than being taken over from `reference.docx`.
16410 This fixes problems that arise when you edit the `reference.docx`
16411 with Word.
16412 + We also now encode mime types for each individual image rather
16413 than using defaults. This should allow us to handle a wider
16414 range of image types (including PDF). Closes #414.
16415 + Changed style names in `reference docx`.
16416 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
16417 The old names got changed by Word when the `reference.docx` was
16418 edited. Closes #414.
16420 * EPUB writer:
16422 + Fix section numbering. Previously the numbering restarted from 1
16423 in each chapter (with `--number-sections`), though the numbers in
16424 the table of contents were correct.
16425 + Headers with "unnumbered" attribute are not numbered. (Nor do they
16426 cause an increment in running numbering.) Section numbers now work
16427 properly, even when there is material before the first numbered section.
16428 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
16429 but `linear` is set to `no` unless the `--toc` option is specified.
16430 Include `<guide>` element in OPF. This should allow the TOC to
16431 be usable in Kindles when converted with kindlegen. Closes #773.
16433 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
16434 This dramatically reduces the speed penalty that comes from enabling the
16435 `autolink_bare_uris` extension. The penalty is still substantial (in one
16436 test, from 0.33s to 0.44s), but nowhere near what it used to be.
16437 The RST reader is also much faster now, as it autodetects URIs.
16439 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
16440 with class "unnumbered". Unnumbered sections get `[]` for their
16441 section number.
16443 * `Text.Pandoc.Pretty`:
16445 + Fixed `chomp` so it works inside `Prefixed` elements.
16446 + Changed `Show` instance so it is better for debugging.
16448 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
16450 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
16452 * Windows installer improvements:
16454 + The installer is now signed with a certificate (thanks to
16455 Fyodor Sheremetyev).
16456 + WiX is used instead of InnoSetup. The installer is now a
16457 standard msi file.
16458 + The version number is now auto-detected, and need not be
16459 updated separately.
16461 * OSX installer improvements:
16463 + The package and pandoc executable are now signed with a
16464 certificate (thanks to Fyodor Sheremetyev).
16465 + RTF version of license is used.
16466 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
16467 Closes #580.
16469 * Converted COPYING to markdown.
16471 * pandoc.cabal: Require latest versions of highlighting-kate,
16472 texmath, citeproc-hs, zip-archive.
16474## pandoc 1.10.1 (2013-01-23)
16476 * Markdown reader: various optimizations, leading to a
16477 significant performance boost.
16479 * RST reader: Allow anonymous form of inline links:
16480 `` `hello <url>`__ `` Closes #724.
16482 * Mediawiki reader: Don't require newlines after tables.
16483 Thanks to jrunningen for the patch. Closes #733.
16485 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
16486 when output is LaTeX, and applied when it is another format.
16487 Partially addresses #730.
16489 * Markdown and RST readers: Added parser to `block` that skips blank
16490 lines. This fixes a subtle regression involving grid tables with
16491 empty cells. Also added test for grid table with empty cells.
16492 Closes #732.
16494 * RST writer: Use `.. code:: language` for code blocks with language.
16495 Closes #721.
16497 * DocBook writer: Fixed output for hard line breaks, adding a newline
16498 between `<literallayout>` tags.
16500 * Markdown writer: Use an autolink when link text matches url.
16501 Previously we also checked for a null title, but this
16502 test fails for links produced by citeproc-hs in bibliographies.
16503 So, if the link has a title, it will be lost on conversion
16504 to an autolink, but that seems okay.
16506 * Markdown writer: Set title, author, date variables as before.
16507 These are no longer used in the default template, since we use
16508 titleblock, but we set them anyway for those who use custom templates.
16510 * LaTeX writer: Avoid extra space at start/end of table cell.
16511 Thanks to Nick Bart for the suggestion of using @{}.
16513 * `Text.Pandoc.Parsing`:
16515 + More efficient version of `anyLine`.
16516 + Type of `macro` has changed; the parser now returns `Blocks`
16517 instead of `Block`.
16519 * Relaxed old-time version bound, allowing 1.0.*.
16521 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
16522 should create a symlink as described in the README.
16524## pandoc 1.10.0.5 (2013-01-23)
16526 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
16527 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
16528 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
16530 * Markdown reader: Fixed bug with headerless grid tables.
16531 The 1.10 code assumed that each table header cell contains exactly one
16532 block. That failed for headerless tables (0) and also for tables with
16533 multiple blocks in a header cell. The code is fixed and tests provided.
16534 Thanks to Andrew Lee for pointing out the bug.
16536 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
16538 + Tilde code fences can again take a bare language string
16539 (`~~~ haskell`), not just curly-bracketed attributes
16540 (`~~~ {.haskell}`).
16541 + Backtick code blocks can take the curly-bracketed attributes.
16542 + Backtick code blocks don't *require* a language.
16543 + Consolidated code for the two kinds of fenced code blocks.
16545 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
16547 * Markdown writer: Use proportional font for email autolinks with
16548 obfuscation. Closes #714.
16550 * Corrected name of `blank_before_blockquote` in README. Closes #718.
16552 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
16553 The bug prevented an autolink at the end of a string (e.g.
16554 at the end of a line block line) from counting as a link. Closes #711.
16556 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
16557 This should work on Windows, unlike the TH solution with
16558 file-embed.
16560 * Eliminated use of TH in test suite.
16562 * Added `Text.Pandoc.Data` (non-exported) to hold the association
16563 list of embedded data files, if the `embed_data_files` flag is selected.
16564 This isolates the code that needs special treatment with file-embed or
16565 `hsb2hs`.
16567 * Changes to `make-windows-installer.bat`.
16569 + Exit batch file if any of the cabal-dev installs fail.
16570 + There's no longer any need to reinstall `highlighting-kate`.
16571 + Don't start with a `cabal update`; leave that to the user.
16572 + Force reinstall of pandoc.
16574 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
16575 Jens Petersen.
16577## pandoc 1.10.0.4 (2013-01-20)
16579 * Fixed bug with escaped % in LaTeX reader. Closes #710.
16581## pandoc 1.10.0.3 (2013-01-20)
16583 * Added further missing fb2 tests to cabal file.
16585## pandoc 1.10.0.2 (2013-01-20)
16587 * Added fb2 tests to cabal file's extra-source-files.
16589## pandoc 1.10.0.1 (2013-01-20)
16591 * Bump version bounds on test-framework packages.
16593## pandoc 1.10 (2013-01-19)
16595### New features
16597 * New input formats: `mediawiki` (MediaWiki markup).
16599 * New output formats: `epub3` (EPUB v3 with MathML),
16600 `fb2` (FictionBook2 ebooks).
16602 * New `--toc-depth` option, specifying how many levels of
16603 headers to include in a table of contents.
16605 * New `--epub-chapter-level` option, specifying the header
16606 level at which to divide EPUBs into separate files.
16607 Note that this normally affects only performance, not the
16608 visual presentation of the EPUB in a reader.
16610 * Removed the `--strict` option. Instead of using `--strict`,
16611 one can now use the format name `markdown_strict` for either input
16612 or output. This gives more fine-grained control that `--strict`
16613 did, allowing one to convert from pandoc's markdown to strict
16614 markdown or vice versa.
16616 * It is now possible to enable or disable specific syntax
16617 extensions by appending them (with `+` or `-`) to the writer
16618 or reader name. For example,
16620 pandoc -f markdown-footnotes+hard_line_breaks
16622 disables footnotes and enables treating newlines as hard
16623 line breaks. The literate Haskell extensions are now implemented
16624 this way as well, using either `+lhs` or `+literate_haskell`.
16625 For a list of extension names, see the README under
16626 "Pandoc's Markdown."
16628 * The following aliases have been introduced for specific
16629 combinations of markdown extensions: `markdown_phpextra`,
16630 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
16631 work just like regular reader and writer names, and can be modified
16632 with extension modifiers as described above. (Note that conversion
16633 from one markdown dialect to another does not work perfectly,
16634 because there are differences in markdown parsers besides
16635 just the extensions, and because pandoc's internal document model is
16636 not rich enough to capture all of the extensions.)
16638 * New `--html-q-tags` option. The previous default was to use `<q>`
16639 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
16640 Moreover, they are not a robust way of typesetting quotes, since
16641 some user agents don't support them, and some CSS resets (e.g.
16642 bootstrap) prevent pandoc's quotes CSS from working properly.
16643 We now just insert literal quote characters by default in both
16644 `html` and `html5` output, but this option is provided for
16645 those who still want `<q>` tags.
16647 * The markdown reader now prints warnings (to stderr) about
16648 duplicate link and note references. Closes #375.
16650 * Markdown syntax extensions:
16652 + Added pipe tables. Thanks to François Gannaz for the initial patch.
16653 These conform to PHP Markdown Extra's pipe table syntax. A subset
16654 of org-mode table syntax is also supported, which means that you can
16655 use org-mode's nice table editor to create tables.
16657 + Added support for RST-style line blocks. These are
16658 useful for verse and addresses.
16660 + Attributes can now be specified for headers, using the same
16661 syntax as in code blocks. (However, currently only the
16662 identifier has any effect in most writers.) For example,
16664 # My header {#foo}
16666 See [the header above](#foo).
16668 + Pandoc will now act as if link references have been defined
16669 for all headers without explicit identifiers.
16670 So, you can do this:
16672 # My header
16674 Link to [My header].
16675 Another link to [it][My header].
16677 Closes #691.
16679 * LaTeX reader:
16681 + Command macros now work everywhere, including non-math.
16682 Environment macros still not supported.
16683 + `\input` now works, as well as `\include`. TEXINPUTS is used.
16684 Pandoc looks recursively into included files for more included files.
16686### Behavior changes
16688 * The Markdown reader no longer puts the text of autolinks in a
16689 `Code` inline. This means that autolinks will no longer appear
16690 in a monospace font.
16692 * The character `/` can now appear in markdown citation keys.
16694 * HTML blocks in strict_markdown are no longer required to begin
16695 at the left margin. Technically this is required, according to
16696 the markdown syntax document, but `Markdown.pl` and other markdown
16697 processors are more liberal.
16699 * The `-V` option has been changed so that if there are duplicate
16700 variables, those specified later on the command line take precedence.
16702 * Tight lists now work in LaTeX and ConTeXt output.
16704 * The LaTeX writer no longer relien on the `enumerate` package.
16705 Instead, it uses standard LaTeX commands to change the list numbering
16706 style.
16708 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
16709 tables to be split over page boundaries.
16711 * The RST writer now uses a line block to render paragraphs containing
16712 linebreaks (which previously weren't supported at all).
16714 * The markdown writer now applies the `--id-prefix` to footnote IDs.
16715 Closes #614.
16717 * The plain writer no longer uses backslash-escaped line breaks
16718 (which are not very "plain").
16720 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
16721 Read bytestring and use `Text`'s decodeUtf8 instead of using
16722 `System.IO.hGetContents`. This way you get a message saying
16723 "invalid UTF-8 stream" instead of "invalid byte sequence."
16724 You are also told which byte caused the problem.
16726 * Docx, ODT, and EPUB writers now download images specified by a URL
16727 instead of skipping them or raising an error.
16729 * EPUB writer:
16731 + The default CSS now left-aligns headers by default, instead of
16732 centering. This is more consistent with the rest of the writers.
16733 + A proper multi-level table of contents is now used in `toc.ncx`.
16734 There is no longer a subsidiary table of contents at the beginning
16735 of each chapter.
16736 + Code highlighting now works by default.
16737 + Section divs are used by default for better semantic markup.
16738 + The title is used instead of "Title Page" in the table of contents.
16739 Otherwise we have a hard-coded English string, which looks
16740 strange in ebooks written in other languages. Closes #572.
16742 * HTML writer:
16744 + Put mathjax in span with class "math". Closes #562.
16745 + Put citations in a span with class "citation." In HTML5, also include
16746 a `data-cite` attribute with a space-separated list of citation
16747 keys.
16749 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
16750 This treats both `\r\n` and `\n` as `\n` on input, no matter
16751 what platform we're running on.
16753 * Citation processing is now done in the Markdown and LaTeX
16754 readers, not in `pandoc.hs`. This makes it easier for library users
16755 to use citations.
16757### Template changes
16759 * HTML: Added css to template to preserve spaces in `<code>` tags.
16760 Thanks to Dirk Laurie.
16762 * Beamer: Remove English-centric strings in section pages.
16763 Section pages used to have "Section" and a number as well as the
16764 section title. Now they just have the title. Similarly for part
16765 and subsection. Closes #566.
16767 * LaTeX, ConTeXt: Added papersize variable.
16769 * LaTeX, Beamer templates: Use longtable instead of ctable.
16771 * LaTeX, Beamer templates: Don't require 'float' package for tables.
16772 We don't actually seem to use the '[H]' option.
16774 * Markdown, plain: Fixed titleblock so it is just a single string.
16775 Previously separate title, author, and date variables were used,
16776 but this didn't allow different kinds of title blocks.
16778 * EPUB:
16780 + Rationalized templates. Previously there were three different
16781 templates involved in epub production. There is now just one
16782 template, `default.epub` or `default.epub3`. It can now be
16783 overridden using `--template`, just like other templates.
16784 The titlepage is now folded into the default template.
16785 A `titlepage` variable selects it.
16786 + UTF-8, lang tag, meta tags, title element.
16788 * Added scale-to-width feature to beamer template
16790### API changes
16792 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
16793 Previously header identifiers were autogenerated by the writers.
16794 Now they are added in the readers (either automatically or explicitly).
16796 * `Text.Pandoc.Builder`:
16798 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
16799 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
16800 custom Monoid instances for `Many Inline` and `Many Block. This
16801 allows `Many` to be made an instance of `Foldable` and `Traversable`.
16802 + The old `Listable` class has been removed.
16803 + The module now exports `isNull`, `toList`, `fromList`.
16804 + The old `Read` and `Show` instances have been removed; derived
16805 instances are now used.
16806 + Added `headerWith`.
16808 * The readers now take a `ReaderOptions` rather than a `ParserState`
16809 as a parameter. Indeed, not all parsers use the `ParserState` type;
16810 some have a custom state. The motivation for this change was to separate
16811 user-specifiable options from the accounting functions of parser state.
16813 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
16814 formerly in `Text.Pandoc.Shared`, and its associated
16815 data types. It also includes a new type `ReaderOptions`, which
16816 contains many options formerly in `ParserState`, and its associated
16817 data types:
16819 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
16820 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
16821 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
16822 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
16823 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
16824 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
16825 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
16826 + `ParserState.stateIndentedCodeClasses` ->
16827 `ReaderOptions.readerIndentedCodeClasses`.
16828 + Added `ReaderOptions.readerCitationStyle`.
16830 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
16831 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
16832 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
16833 been renamed `writerEpubMetadata` for consistency.
16835 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
16836 longer stylesheet, fonts, reference files as separate parameters.
16838 * Removed `writerLiterateHaskell` from `WriterOptions`, and
16839 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
16840 by an extension (`Ext_literate_haskell`).
16842 * Removed deprecated `writerXeTeX`.
16844 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
16845 Strict is now handled through extensions.
16847 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
16848 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
16849 and `multimarkdownExtensions`, as well as the `Extensions` type.
16851 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
16852 `readMediaWiki`.
16854 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
16855 (thanks to Sergey Astanin).
16857 * `Text.Pandoc`:
16859 + Added `getReader`, `getWriter` to `Text.Pandoc`.
16860 + `writers` is now an association list `(String, Writer)`.
16861 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
16862 an `IOByteStringWriter`. ALL writers are now in the 'writers'
16863 list, including the binary writers and FB2 writer. This allows
16864 code in `pandoc.hs` to be simplified.
16865 + Changed type of `readers`, so all readers are in IO.
16866 Users who want pure readers can still get them form the reader
16867 modules; this just affects the function `getReader` that looks up
16868 a reader based on the format name. The point of this change is to
16869 make it possible to print warnings from the parser.
16871 * `Text.Pandoc.Parsing`:
16873 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
16874 No other module directly imports Parsec. This will make it easier
16875 to change the parsing backend in the future, if we want to.
16876 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
16877 + Export the type synonym `Parser`.
16878 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
16879 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
16880 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
16881 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
16882 + `ParserState` is no longer an instance of `Show`.
16883 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
16884 + Generalized type of `withQuoteContext`.
16885 + Added `guardEnabled`, `guardDisabled`, `getOption`.
16886 + Removed `failIfStrict`.
16887 + `lookupKeySrc` and `fromKey` are no longer exported.
16889 * `Data.Default` instances are now provided for `ReaderOptions`,
16890 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
16891 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
16892 of `defaultWriterOptions` (which is still defined). Closes #546.
16894 * `Text.Pandoc.Shared`:
16896 + Added `safeRead`.
16897 + Renamed `removedLeadingTrailingSpace` to `trim`,
16898 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
16899 + Count `\r` as space in `trim` functions.
16900 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
16901 to `Shared`.
16902 + Removed `failUnlessLHS`.
16903 + Export `compactify'`, formerly in Markdown reader.
16904 + Export `isTightList`.
16905 + Do not export `findDataFile`.
16906 + `readDataFile` now returns a strict ByteString.
16907 + Export `readDataFileUTF8` which returns a String, like the
16908 old `readDataFile`.
16909 + Export `fetchItem` and `openURL`.
16911 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
16912 Removed `readImageSize`.
16914 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
16915 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
16916 `fromStringLazy`.
16918 * `Text.Pandoc.UTF8` is now an exposed module.
16920 * `Text.Pandoc.Biblio`:
16922 + csl parameter now a `String` rather than a `FilePath`.
16923 + Changed type of `processBiblio`. It is no longer in the IO monad.
16924 It now takes a `Maybe Style` argument rather than parameters for CSL
16925 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
16926 the style file and add abbreviations.)
16928 * Markdown reader now exports `readMarkdownWithWarnings`.
16930 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
16931 `rtfEmbedImage`.
16933### Bug fixes
16935 * Make `--ascii` work properly with `--self-contained`. Closes #568.
16937 * Markdown reader:
16939 + Fixed link parser to avoid exponential slowdowns. Closes #620.
16940 Previously the parser would hang on input like this:
16942 [[[[[[[[[[[[[[[[[[hi
16944 We fixed this by making the link parser parser characters
16945 between balanced brackets (skipping brackets in inline code spans),
16946 then parsing the result as an inline list. One change is that
16948 [hi *there]* bud](/url)
16950 is now no longer parsed as a link. But in this respect pandoc behaved
16951 differently from most other implementations anyway, so that seems okay.
16953 + Look for raw html/latex blocks before tables.
16954 Otherwise the following gets parsed as a table:
16956 \begin{code}
16957 --------------
16958 -- My comment.
16959 \end{code}
16961 Closes #578.
16963 * RST reader:
16965 + Added support for `:target:` on `.. image::` blocks
16966 and substitutions.
16967 + Field list fixes:
16969 - Fixed field lists items with body beginning after a new line
16970 (Denis Laxalde).
16971 - Allow any char but ':' in names of field lists in RST reader
16972 (Denis Laxalde).
16973 - Don't allow line breaks in field names.
16974 - Require whitespace after field list field names.
16975 - Don't create empty definition list for metadata field lists.
16976 Previously a field list consisting only of metadata fields (author,
16977 title, date) would be parsed as an empty DefinitionList, which is
16978 not legal in LaTeX and not needed in any format.
16980 + Don't recognize inline-markup starts inside words.
16981 For example, `2*2 = 4*1` should not contain an emphasized
16982 section. Added test case for "Literal symbols". Closes #569.
16983 + Allow dashes as separator in simple tables. Closes #555.
16984 + Added support for `container`, `compound`, `epigraph`,
16985 `rubric`, `highlights`, `pull-quote`.
16986 + Added support for `.. code::`.
16987 + Made directive labels case-insensitive.
16988 + Removed requirement that directives begin at left margin.
16989 This was (correctly) not in earlier releases; docutils doesn't
16990 make the requirement.
16991 + Added support for `replace::` and `unicode::` substitutions.
16992 + Ignore unknown interpreted roles.
16993 + Renamed image parser to `subst`, since it now handles all
16994 substitution references.
16996 * Textile reader:
16998 + Allow newlines before pipes in table. Closes #654.
16999 + Fixed bug with list items containing line breaks.
17000 Now pandoc correctly handles hard line breaks inside list items.
17001 Previously they broke list parsing.
17002 + Implemented comment blocks.
17003 + Fixed bug affected words ending in hyphen.
17004 + Properly handle links with surrounding brackets.
17005 Square brackets need to be used when the link isn't surrounded by
17006 spaces or punctuation, or when the URL ending may be ambiguous.
17007 Closes #564.
17008 + Removed nullBlock. Better to know about parsing problems than
17009 to skip stuff when we get stuck.
17010 + Allow ID attributes on headers.
17011 + Textile reader: Avoid parsing dashes as strikeout.
17012 Previously the input
17014 text--
17015 text--
17016 text--
17017 text--
17019 would be parsed with strikeouts rather than dashes. This fixes
17020 the problem by requiring that a strikeout delimiting - not be
17021 followed by a -. Closes #631.
17022 + Expanded list of `stringBreakers`.
17023 This fixes a bug on input like "(_hello_)" which should
17024 be a parenthesized emphasized "hello".
17025 The new list is taken from the PHP source of textile 2.4.
17026 + Fixed autolinks. Previously the textile reader and writer
17027 incorrectly implemented RST-style autolinks for URLs and email
17028 addresses. This has been fixed. Now an autolink is done this way:
17029 `"$":http://myurl.com`.
17030 + Fixed footnotes bug in textile. This affected notes occurring
17031 before punctuation, e.g. `foo[1].`. Closes #518.
17033 * LaTeX reader:
17035 + Better handling of citation commands.
17036 + Better handling of `\noindent`.
17037 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
17038 Closes #622.
17039 + Made `rawLaTeXInline` try to parse block commands as well. This
17040 is usually what we want, given how `rawLaTeXInline` is used in
17041 the markdown and textile readers. If a block-level LaTeX command
17042 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
17043 we can treat it as raw inline LaTeX.
17044 + Handle `\slash` command. Closes #605.
17045 + Basic `\enquote` support.
17046 + Fixed parsing of paragraphs beginning with a group. Closes #606.
17047 + Use curly quotes for bare straight quotes.
17048 + Support obeylines environment. Closes #604.
17049 + Guard against "begin", "end" in inlineCommand and
17050 blockCommand.
17051 + Better error messages for environments. Now it should tell you that
17052 it was looking for \end{env}, instead of giving "unknown parse error."
17054 * HTML reader:
17056 + Added HTML 5 tags to list of block-level tags.
17057 + HTML reader: Fixed bug in `htmlBalanced`, which
17058 caused hangs in parsing certain markdown input using
17059 strict mode.
17060 + Parse `<q>` as `Quoted DoubleQuote`.
17061 + Handle nested `<q>` tags properly.
17062 + Modified `htmlTag` for fewer false positives.
17063 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
17064 This makes it more useful in the wikimedia and markdown parsers.
17066 * DocBook reader: Support title in "figure" element. Closes #650.
17068 * MediaWiki writer:
17070 + Remove newline after `<br/>` in translation of `LineBreak`
17071 There's no particular need for a newline (other than making the
17072 generated MediaWiki source look nice to a human), and in fact
17073 sometimes it is incorrect: in particular, inside an enumeration, list
17074 items cannot have embedded newline characters. (Brent Yorgey)
17075 + Use `<code>` not `<tt>` for Code.
17077 * Man writer: Escape `-` as `\-`.
17078 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
17079 signs. That is preferable for use with command-line options. See
17080 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
17081 to Andrea Bolognani for bringing the issue to our attention.
17083 * RST writer:
17085 + Improved line block output. Use nonbreaking spaces for
17086 initial indent (otherwise lost in HTML and LaTeX).
17087 Allow multiple paragraphs in a single line block.
17088 Allow soft breaks w continuations in line blocks.
17089 + Properly handle images with no alt text. Closes #678.
17090 + Fixed bug with links with duplicate text. We now (a) use anonymous
17091 links for links with inline URLs, and (b) use an inline link instead
17092 of a reference link if the reference link would require a label that
17093 has already been used for a different link. Closes #511.
17094 + Fixed hyperlinked images. Closes #611. Use `:target:`
17095 field when you have a simple linked image.
17096 + Don't add `:align: center` to figures.
17098 * Texinfo writer: Fixed internal cross-references.
17099 Now we insert anchors after each header, and use `@ref` instead of `@uref`
17100 for links. Commas are now escaped as `@comma{}` only when needed;
17101 previously all commas were escaped. (This change is needed, in part,
17102 because `@ref` commands must be followed by a real comma or period.) Also
17103 insert a blank line in from of `@verbatim` environments.
17105 * DocBook writer:
17107 + Made --id-prefix work in DocBook as well as HTML.
17108 Closes #607.
17109 + Don't include empty captions in figures. Closes #581.
17111 * LaTeX writer:
17113 + Use `\hspace*` for nonbreaking space after line break,
17114 since `~` spaces after a line break are just ignored.
17115 Closes #687.
17116 + Don't escape `_` in URLs or hyperref identifiers.
17117 + Properly escape strings inside `\url{}`. Closes #576.
17118 + Use `[fragile]` only for slides containing code rendered
17119 using listings. Closes #649.
17120 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
17121 highlighting-kate's macros, which redefine `|` as a short verbatim
17122 delimiter. Thanks to Björn Peemöller for raising this issue.
17123 + Use minipage rather than parbox for block containers in tables.
17124 This allows verbatim code to be included in grid tables.
17125 Closes #663.
17126 + Prevent paragraphs containing only linebreaks or spaces.
17128 * HTML writer:
17130 + Included `highlighting-css` for code spans, too.
17131 Previously it was only included if used in a code block. Closes #653.
17132 + Improved line breaks with `<dd>` tags. We now put a newline between
17133 `</dd>` and `<dd>` when there are multiple definitions.
17134 + Changed mathjax cdn url so it doesn't use https. (This caused
17135 problems when used with `--self-contained`.) See #609.
17137 * EPUB writer:
17139 + `--number-sections` now works properly.
17140 + Don't strip meta and link elements in epub metadata.
17141 Patch from aberrancy. Closes #589.
17142 + Fixed a couple validation bugs.
17143 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
17144 of chapters in some readers, which apparently sort ch2 after ch10.
17145 Closes #610.
17147 * ODT writer: properly set title property (Arlo O'Keeffe).
17149 * Docx writer:
17151 + Fixed bug with nested lists. Previously a list like
17153 1. one
17154 - a
17155 - b
17156 2. two
17158 would come out with a bullet instead of "2."
17159 Thanks to Russell Allen for reporting the bug.
17160 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
17161 This seems to fix a problem viewing pandoc-generated
17162 docx files in LibreOffice.
17163 + Use integer ids for bookmarks. Closes #626.
17164 + Added nsid to abstractNum elements. This helps when merging
17165 word documents with numbered or bulleted lists. Closes #627.
17166 + Use separate footnotes.xml for notes.
17167 This seems to help LibreOffice convert the file, even though
17168 it was valid docx before. Closes #637.
17169 + Use rIdNN identifiers for r:embed in images.
17170 + Avoid reading image files again when we've already processed them.
17171 + Fixed typo in `referenc.docx` that prevented image captions from
17172 working. Thanks to Huashan Chen.
17174 * `Text.Pandoc.Parsing`:
17176 + Fixed bug in `withRaw`, which didn't correctly handle the case
17177 where nothing is parsed.
17178 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
17179 though it still doesn't implement quoted strings in email addresses.
17180 + Revised URI parser. It now allows many more schemes, allows
17181 uppercase URIs, and better handles trailing punctuation and
17182 trailing slashes in bare URIs. Added many tests.
17183 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
17184 etc. parse properly. Formerly we had some English-centric heuristics,
17185 but they are no longer needed. Closes #698.
17187 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
17188 This fixes bug with Chinese commas in markdown and reST tables, and
17189 a bug that caused combining characters to be dropped.
17191 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
17193 * `Text.Pandoc.Biblio`:
17195 + Run `mvPunc` and `deNote` on metadata too.
17196 This fixed a bug with notes on titles using footnote styles.
17197 + Fixed bug in fetching CSL files from CSL data directory.
17199 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
17200 is provided. It should be the URL up to the path.
17202 * Fixed/simplified diff output for tests.
17203 Biblio: Make sure mvPunc and deNote run on metadata too.
17204 This fixed a bug with notes on titles using footnote styles.
17206### Under the hood improvements
17208 * We no longer depend on `utf8-string`. Instead we use functions
17209 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
17211 * Use `safeRead` instead of using `reads` directly (various modules).
17213 * "Implicit figures" (images alone in a paragraph) are now handled
17214 differently. The markdown reader gives their titles the prefix `fig:`; the
17215 writers look for this before treating the image as a figure. Though this
17216 is a bit of a hack, it has two advantages: (i) implicit figures can be
17217 limited to the markdown reader, and (ii) they can be deactivated by turning
17218 off the `implicit_figures` extension.
17220 * `catch` from `Control.Exception` is now used instead of the
17221 old Preface `catch`.
17223 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
17224 and `oneOfStrings` (which is now non-backtracking).
17226 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
17227 Now citeproc-hs is fixed upstream, so this is no longer needed.
17228 Closes #531.
17230 * Textile reader: Improved speed of `hyphenedWords`.
17231 This speeds up the textile reader by about a factor of 4.
17233 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
17234 better performance, and automatic normalization.
17236 * Major rewrite of markdown reader:
17238 + Use `Text.Pandoc.Builder` instead of lists. This also
17239 means that everything is normalized automatically.
17240 + Move to a one-pass parsing strategy, returning values in the reader
17241 monad, which are then run (at the end of parsing) against the final
17242 parser state.
17244 * In HTML writer, we now use `toHtml` instead of pre-escaping.
17245 We work around the problem that blaze-html unnecessarily escapes `'`
17246 by pre-escaping just the `'` characters, instead of the whole string.
17247 If blaze-html later stops escaping `'` characters, we can simplify
17248 `strToHtml` to `toHtml`. Closes #629.
17250 * Moved code for embedding images in RTFs from `pandoc.hs` to the
17251 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
17253 * Moved citation processing from `pandoc.hs` into the readers.
17254 This makes things more convenient for library users.
17256 * The man pages are now built by an executable `make-pandoc-man-pages`,
17257 which has its own stanza in the cabal file so that dependencies can be
17258 handled by Cabal. Special treatment in `Setup.hs` ensures that this
17259 executable never gets installed; it is only used to create the man pages.
17261 * The cabal file has been modified so that the pandoc library is used
17262 in building the pandoc executable. (This required moving `pandoc.hs`
17263 from `src` to `.`.) This cuts compile time in half.
17265 * The `executable` and `library` flags have been removed.
17267 * `-threaded` has been removed from ghc-options.
17269 * Version bounds of dependencies have been raised, and the
17270 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
17271 GHC 7.6.
17273 * We now require base >= 4.2.
17275 * Integrated the benchmark program into cabal. One can now do:
17277 cabal configure --enable-benchmarks && cabal build
17278 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
17280 The benchmark now uses README + testsuite, so benchmark results
17281 from older versions aren't comparable.
17283 * Integrated test suite with cabal.
17284 To run tests, configure with `--enable-tests`, then `cabal test`.
17285 You can specify particular tests using `--test-options='-t markdown'`.
17286 No output is shown unless tests fail. The Haskell test modules
17287 have been moved from `src/` to `tests/`.
17289 * Moved all data files and templates to the `data/` subdirectory.
17291 * Added an `embed_data_files` cabal flag. This causes all
17292 data files to be embedded in the binary, so that the binary
17293 is self-sufficient and can be relocated anywhere, copied on
17294 a USB key, etc. The Windows installer now uses this.
17295 (Since we no longer have the option to build the executable
17296 without the library, this is the only way to get a relocatable
17297 binary on Windows.)
17299 * Removed pcre3.dll from windows package.
17300 It isn't needed unless highlighting-kate is compiled with the
17301 `pcre-light` flag. By default, regex-prce-builtin is used.
17304## pandoc 1.9.4.5 (2012-10-21)
17306 * Raised version bounds on network, base64-bytestring, json,
17307 and template-haskell.
17309## pandoc 1.9.4.4 (2012-10-20)
17311 * Removed `tests` flag and made test suite into a proper cabal
17312 test suite, which can now be enabled using `--enable-tests`
17313 and run with `cabal test`.
17315 * Moved man page creation out of `Setup.hs` and into an
17316 executable built by Cabal, but never installed. This
17317 allows dependencies to be specified, and solves a problem
17318 with 1.9.4.3, which could only be installed if `data-default`
17319 had already been installed.
17321 * Updated `lhs-latex.tex` test for latest highlighting-kate
17322 representation of backticks.
17324## pandoc 1.9.4.3 (2012-10-20)
17326 * Removed `-threaded` from default compile flags.
17328 * Modified modules to compile with GHC 7.6 and latest version of time
17329 package.
17331## pandoc 1.9.4.2 (2012-06-29)
17333 * Don't encode/decode file paths if base >= 4.4.
17334 Prior to base 4.4, filepaths and command line arguments were treated
17335 as unencoded lists of bytes, not unicode strings, so we had to work
17336 around that by encoding and decoding them. This commit adds CPP
17337 checks for the base version that intelligibly enable encoding/decoding
17338 when needed. Fixes a bug with multilingual filenames when pandoc was
17339 compiled with ghc 7.4 (#540).
17341 * Don't generate an empty H1 after hrule slide breaks.
17342 We now use a slide-level header with contents `[Str "\0"]` to mark
17343 an hrule break. This avoids creation of an empty H1 in these
17344 contexts. Closes #484.
17346 * Docbook reader: Added support for "bold" emphasis. Thanks to mb21.
17348 * In make_osx_package.sh, ensure citeproc-hs is built with the
17349 embed_data_files flag.
17351 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
17353 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
17354 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
17356 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
17357 Closes #535.
17359 * Added webm to mime types. Closes #543.
17361 * Added some missing exports and tests to the cabal file
17362 (Alexander V Vershilov).
17364 * Compile with `-rtsopts` and `-threaded` by default.
17366## pandoc 1.9.4.1 (2012-06-08)
17368 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
17370 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
17371 variables. Make TOC links black.
17373 * LaTeX template improvements.
17375 + Don't print date unless one is given explicitly in the document.
17376 + Simplified templates.
17377 + Use fontenc [T1] by default, and lmodern.
17378 + Use microtype if available.
17380 * Biblio:
17382 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
17383 Motivation: `@item1 [50]` should be as close as possible to
17384 `[@item1, 50]`.
17385 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
17386 beginning with a citation to be empty. Closes #531.
17388 * Fixed documentation on mixed lists. Closes #533.
17390## pandoc 1.9.4 (2012-06-03)
17392 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
17393 footnotes and captions. We now handle note citations by inserting
17394 footnotes during initial citation processing, and doing a separate
17395 pass later to remove notes inside notes.
17397 * Added 'zenburn' highlight style from highlighting-kate.
17399 * Added Slideous writer. Slideous is an HTML + javascript slide show
17400 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
17402 * LaTeX writer:
17404 + Ensure we don't have extra blank lines at ends of cells.
17405 This can cause LaTeX errors, as they are interpreted as new paragraphs.
17406 + More consistent interblock spacing.
17407 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
17408 code in LaTeX. Closes #527.
17409 + Ensure that a Verbatim at the end of a footnote is followed by
17410 a newline. (Fixes a regression in the previous version.)
17411 + In default template, use black for internal links and TOC.
17412 Added commented-out code to use footnotes for links, as would
17413 be suitable in print output.
17415 * Beamer writer: When `--incremental` is used, lists inside
17416 a block quote should appear all at once. (This makes Beamer
17417 output consistent with the HTML slide show formats.)
17419 * ConTeXt writer:
17421 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
17422 to avoid gobbling spaces after the `%` sign.
17423 + Ensure space after `\stopformula`.
17425 * Markdown writer:
17427 + Use `:` form instead of `~` in definition lists, for better
17428 compatibility with other markdown implementations.
17429 + Don't wrap the term, because it breaks definition lists.
17430 + Use a nonzero space to prevent false recognition
17431 of list marker in ordered lists. Closes #516.
17433 * Org writer: Add space before language name. Closes #523.
17435 * Docx writer: Simplified bullet characters so they work properly
17436 with Word 2007. Closes #520.
17438 * LaTeX reader: Support `\centerline`.
17440 * RST reader: handle figures. Closes #522.
17442 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
17443 (Paul Rivier)
17445## pandoc 1.9.3 (2012-05-12)
17447 * Added docbook reader (with contributions from Mauro Bieg).
17449 * Fixed bug in `fromEntities`. The previous version would turn
17450 `hi & low you know;` into `hi &`.
17452 * HTML reader:
17454 + Don't skip nonbreaking spaces.
17455 Previously a paragraph containing just `&nbsp;` would be rendered
17456 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
17457 + Support `<col>` and `<caption>` in tables. Closes #486.
17459 * Markdown reader:
17461 + Don't recognize references inside delimited code blocks.
17462 + Allow list items to begin with lists.
17464 * LaTeX reader:
17466 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
17467 + Control sequences can't be followed by a letter.
17468 This fixes a bug where `\begingroup` was parsed as `\begin`
17469 followed by `group`.
17470 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
17471 + Make `\label` and `\ref` sensitive to `--parse-raw`.
17472 If `--parse-raw` is selected, these will be parsed as raw latex
17473 inlines, rather than bracketed text.
17474 + Don't crash on unknown block commands (like `\vspace{10pt}`)
17475 inside `\author`; just skip them. Closes #505.
17477 * Textile reader:
17479 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
17480 + Added support for LaTeX blocks and inlines (Paul Rivier).
17481 + Better conformance to RedCloth inline parsing (Paul Rivier).
17482 + Parse '+text+' as emphasized (should be underlined, but this
17483 is better than leaving literal plus characters in the output.
17485 * Docx writer: Fixed multi-paragraph list items. Previously they each
17486 got a list marker. Closes #457.
17488 * LaTeX writer:
17490 + Added `--no-tex-ligatures` option to avoid replacing
17491 quotation marks and dashes with TeX ligatures.
17492 + Use `fixltx2e` package to provide `\textsubscript`.
17493 + Improve spacing around LaTeX block environments:
17494 quote, verbatim, itemize, description, enumerate.
17495 Closes #502.
17496 + Use blue instead of pink for URL links in latex/pdf output.
17498 * ConTeXt writer: Fixed escaping of `%`.
17499 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
17500 Inside URLs, `%` needs to be escaped as `\%`
17501 Thanks to jmarca and adityam for the fix. Closes #492.
17503 * Texinfo writer: Escape special characters in node titles.
17504 This fixes a problem pointed out by Joost Kremers. Pandoc used
17505 to escape an '@' in a chapter title, but not in the corresponding
17506 node title, leading to invalid texinfo.
17508 * Fixed document encoding in texinfo template.
17509 Resolves Debian Bug #667816.
17511 * Markdown writer:
17513 + Don't force delimited code blocks to be flush left.
17514 Fixes bug with delimited code blocks inside lists etc.
17515 + Escape `<` and `$`.
17517 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
17518 Previously we used `\href{\#ident}{text}`, which didn't work on
17519 all systems. Thanks to Dirk Laurie.
17521 * RST writer: Don't wrap link references. Closes #487.
17523 * Updated to use latest versions of blaze-html, mtl.
17526## pandoc 1.9.2 (2012-04-05)
17528 * LaTeX reader:
17530 + Made `lstlisting` work as a proper verbatim environment.
17531 + Fixed bug parsing LaTeX tables with one column.
17533 * LaTeX writer:
17535 + Use `{}` around `ctable` caption, so that formatting can be used.
17536 + Don't require eurosym package unless document has a €.
17538 * LaTeX template: Added variables for `geometry`, `romanfont`,
17539 `sansfont`, `mathfont`, `mainfont` so users can more easily
17540 customize fonts.
17542 * PDF writer:
17544 + Run latex engine at least two times, to ensure
17545 that PDFs will have hyperlinked bookmarks.
17546 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
17548 * Texinfo writer: retain directories in image paths. (Peter Wang)
17550 * RST writer: Better handling of inline formatting, in accord
17551 with docutils' "inline markup recognition rules" (though we don't
17552 implement the unicode rules fully). Now `hi*there*hi` gets
17553 rendered properly as `hi\ *there*\ hi`, and unnecessary
17554 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
17556 * RST reader:
17558 + Parse `\ ` as null, not escaped space.
17559 + Allow `` :math:`...` `` even when not followed by blank
17560 or `\`. This does not implement the complex rule docutils follows,
17561 but it should be good enough for most purposes.
17562 + Add support for the rST default-role directive. (Greg Maslov)
17564 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
17565 (Greg Maslov)
17567 * Markdown reader: Properly handle citations nested in other inline
17568 elements.
17570 * Markdown writer: don't replace empty alt in image with "image".
17572 * DZSlides: Updated template.html and styles in default template.
17573 Removed bizarre CSS for `q` in dzslides template.
17575 * Avoid repeated `id` attribute in section and header in HTML slides.
17577 * README improvements: new instructions on internal links,
17578 removed misleading note on reST math.
17580 * Build system:
17582 + Fixed Windows installer so that dzslides works.
17583 + Removed stripansi.sh.
17584 + Added .travis.yml for Travis continuous integration support..
17585 + Fixed upper bound for zlib (Sergei Trofimovich).
17586 + Fixed upper bound for test-framework.
17587 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
17590## pandoc 1.9.1.2 (2012-03-09)
17592 * Added `beamer+lhs` as output format.
17594 * Don't escape `<` in `<style>` tags with `--self-contained`.
17595 This fixes a bug which prevented highlighting from working
17596 when using `--self-contained`.
17598 * PDF: run latex engine three times if `--toc` specified.
17599 This fixes page numbers in the table of contents.
17601 * Docx writer: Added TableNormal style to tables.
17603 * LaTeX math environment fixes. `aligned` is now used instead of
17604 the nonexistent `aligned*`. `multline` instead of the nonexistent
17605 `multiline`.
17607 * LaTeX writer: Use `\textasciitilde` for literal `~`.
17609 * HTML writer: Don't escape contents of EQ tags with --gladtex.
17610 This fixes a regression from 1.8.
17612 * Use `<q>` tags for Quoted items for HTML5 output.
17613 The quote style can be changed by modifying the template
17614 or including a css file. A default quote style is included.
17616 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
17617 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
17619 * Updated LaTeX template for better language support.
17620 Use `polyglossia` instead of `babel` with xetex.
17621 Set `lang` as documentclass option.
17622 `\setmainlanguage` will use the last of a comma-separated
17623 list of languages. Thanks to François Gannaz.
17625 * Fixed default LaTeX template so `\euro` and `€` work. The
17626 `eurosym` package is needed if you are using pdflatex.
17628 * Fixed escaping of period in man writer (thanks to Michael Thompson).
17630 * Fixed list label positions in beamer.
17632 * Set `mainlang` variable in context writer.
17633 This parallels behavior of latex writer. `mainlang` is the last
17634 of a comma-separated list of languages in lang.
17636 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
17638 * Changed `-V` so that you can specify a key without a value.
17639 Such keys get the value `true`.
17641 * Fixed permissions on installed man pages - thanks Magnus Therning.
17643 * Windows installer: require XP or higher. The installer is
17644 now compiled on a Windows 7 machine, which fixes a problem
17645 using citation functions on Windows 7.
17647 * OSX package: Check for 64-bit Intel CPU before installing.
17650## pandoc 1.9.1.1 (2012-02-11)
17652 * Better handling of raw latex environments in markdown. Now
17654 \begin{equation}
17655 a_1
17656 \end{equation}
17658 turns into a raw latex block as expected.
17660 * Improvements to LaTeX reader:
17662 + Skip options after block commands.
17663 + Correctly handle `{\\}` in braced.
17664 + Added a needed 'try'.
17665 + Citations: add `, ` to suffix if it doesn't start with space or
17666 punctuation. Otherwise we get no space between the year and the
17667 suffix in author-date styles.
17669 * Added two needed data files for S5. This fixes a problem with
17670 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
17671 which was no longer being used.
17673 * Fixed some minor problems in `reference.docx`:
17674 name on "Date" style, `xCs` instead of `xIs`.
17676 * Fixed a problem creating docx files using a reference docx
17677 modified using Word. The problem seems to be that Word
17678 modifies `_rels/.rels`, changing the Type of the Relationship to
17679 `docProps/core.xml`. Pandoc now changes this back to the correct
17680 value if it has been altered, fixing the problem.
17682 * Fixed html5 template so it works properly with highlighting.
17684## pandoc 1.9.1 (2012-02-09)
17686 * LaTeX reader:
17688 + Fixed regression in 1.9; properly handle escaped $ in latex math.
17689 + Put LaTeX verse environments in blockquotes.
17691 * Markdown reader:
17693 + Limit nesting of strong/emph. This avoids exponential lookahead
17694 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
17695 + Improved attributes syntax (in code blocks/spans): (1)
17696 Attributes can contain line breaks. (2) Values in key-value
17697 attributes can be surrounded by either double or single quotes, or
17698 left unquoted if they contain no spaces.
17700 * Headers no longer wrap in markdown or RST writers.
17702 * Added `stateMaxNestingLevel` to `ParserState`.
17703 We set this to 6, so you can still have `Emph` inside `Emph`,
17704 just not indefinitely.
17706 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
17708 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
17709 is present.
17711 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
17713## pandoc 1.9.0.5 (2012-02-06)
17715 * Changed cabal file so that build-depends for the test program
17716 are not required unless the tests flag is used.
17718 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
17719 form ligatures (dashes) in code spans.
17721## pandoc 1.9.0.4 (2012-02-06)
17723 * Raised version bound on test-framework to avoid problems
17724 compiling tests on GHC 7.4.1.
17726 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
17727 so citations don't just disappear unless you process with
17728 citeproc. Ignore `\bibliographystyle`, `\nocite`.
17730 * Simplified tex2pdf; it will always run latex twice to
17731 resolve table of contents and hyperrefs.
17733## pandoc 1.9.0.3 (2012-02-06)
17735 * Require Cabal >= 1.10.
17737 * Tweaked cabal file to meet Cabal 1.10 requirements.
17739## pandoc 1.9.0.2 (2012-02-05)
17741 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
17742 ghc 6.12.
17744## pandoc 1.9 (2012-02-05)
17746### New features
17748 * Added a Microsoft Word `docx` writer. The writer includes support
17749 for highlighted code and for math (which is converted from TeX to OMML,
17750 Office's native math markup language, using texmath's new OMML module).
17751 A new option `--reference-docx` allows the user to customize the
17752 styles.
17754 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
17756 * Better support for slide shows:
17758 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
17759 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
17761 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
17762 slide presentations.
17764 + New, flexible rules for dividing documents into sections and slides
17765 (see the "Structuring the slide show" in the User's Guide). These
17766 are backward-compatible with the old rules, but they allow slide
17767 shows to be organized into sections and subsections containing
17768 multiple slides.
17770 + A new `--slide-level` option allows users to override defaults
17771 and select a slide level below the first header level with content.
17773 * A new `--self-contained` option produces HTML output that does not
17774 depend on an internet connection or the presence of any external
17775 files. Linked images, CSS, and javascript is downloaded (or fetched
17776 locally) and encoded in `data:` URIs. This is useful for making portable
17777 `HTML slide shows. The --offline` option has been deprecated and is now
17778 `treated as a synonym or --self-contained`.
17780 * Support for PDF output:
17782 + Removed the old `markdown2pdf`.
17783 + `pandoc` can now create PDFs (assuming you have latex and a set of
17784 appropriate packages installed): just specify an output file with the
17785 `.pdf` extension.
17786 + A new option `--latex-engine` allows you to specify `pdflatex`,
17787 `xelatex`, or `lualatex` as the processor.
17789 * Highlighting changes:
17791 + Syntax highlighting is now a standard feature; the `highlighting`
17792 flag is no longer needed when compiling.
17793 + A new `--no-highlight` option allows highlighting to be disabled.
17794 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
17795 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
17796 + A new `--highlight-style` option selects between various highlighting
17797 color themes.
17799 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
17801 * LaTeX `\include` and `\usepackage` commands are now processed,
17802 provided the files are in the working directory.
17804 * EPUB improvements:
17806 + Internal and external links now work in EPUB.
17807 + Raw HTML is allowed.
17808 + New `--epub-embed-font` option.
17809 + Customizable templates for EPUB pages offer more control over
17810 formatting: `epub-page.html`, `epub-coverimage.html`,
17811 `epub-titlepage.html`.
17813 * `--mathml` now works with DocBook.
17815 * Added support for math in RST reader and writer. Inline math uses the
17816 `` :math:`...` `` construct. Display math uses
17818 .. math:: ...
17820 or if the math is multiline,
17822 .. math::
17824 ...
17826 These constructions are now supported now by `rst2latex.py`.
17828 * Github syntax for fenced code blocks is supported in pandoc's
17829 markdown. You can now write
17831 ```ruby
17832 x = 2
17833 ```
17835 instead of
17837 ~~~ {.ruby}
17838 x = 2
17839 ~~~~
17841 * Easier scripting: a new `toJsonFilter` function makes it easier to
17842 write Haskell scripts to manipulate the Pandoc AST.
17843 See [Scripting with pandoc](scripting.html#pandoc-1.9-changes).
17845### Behavior changes
17847 * Fixed parsing of consecutive lists in markdown.
17848 Pandoc previously behaved like Markdown.pl for consecutive
17849 lists of different styles. Thus, the following would be parsed
17850 as a single ordered list, rather than an ordered list followed
17851 by an unordered list:
17853 1. one
17854 2. two
17856 - one
17857 - two
17859 This change makes pandoc behave more sensibly, parsing this as
17860 two lists. Any change in list type (ordered/unordered) or in
17861 list number style will trigger a new list. Thus, the following
17862 will also be parsed as two lists:
17864 1. one
17865 2. two
17867 a. one
17868 b. two
17870 Since we regard this as a bug in Markdown.pl, and not something
17871 anyone would ever rely on, we do not preserve the old behavior
17872 even when `--strict` is selected.
17874 * Dashes work differently with `--smart`: `---` is always em-dash,
17875 and `--` is always en-dash. Pandoc no longer tries to guess when
17876 `-` should be en-dash. *Note:* This may change how existing documents
17877 look when processed with pandoc. A new option, `--old-dashes`,
17878 is provided for legacy documents.
17880 * The markdown writer now uses setext headers for levels 1-2.
17881 The old behavior (ATX headers for all levels) can be restored
17882 using the new `--atx-headers` option.
17884 * Links are now allowed in markdown image captions. They are also
17885 allowed in links, but will appear there as regular text. So,
17887 [link with [link](/url)](/url)
17889 will turn into
17891 <p><a href="/url">link with link</a></p>
17893 * Improved handling of citations using `citeproc-hs-0.3.4`.
17894 Added `--citation-abbreviations` option.
17896 * Citation keys can no longer end with a punctuation character.
17897 This means that `@item1.` will be parsed as a citation with key
17898 'item1', followed by a period, instead of a citation with key
17899 'item1.', as was the case previously.
17901 * In HTML output, citations are now put in a span with class `citation`.
17903 * The markdown reader now recognizes DocBook block and inline tags.
17904 It was always possible to include raw DocBook tags in a markdown
17905 document, but now pandoc will be able to distinguish block from
17906 inline tags and behave accordingly. Thus, for example,
17908 <sidebar>
17909 hello
17910 </sidebar>
17912 will not be wrapped in `<para>` tags.
17914 * The LaTeX parser has been completely rewritten; it is now much more
17915 accurate, robust, and extensible. However, there are two important
17916 changes in how it treats unknown LaTeX. (1) Previously, unknown
17917 environments became BlockQuote elements; now, they are treated
17918 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
17919 same as `xyz`. (2) Previously, arguments of unknown commands
17920 were passed through with their braces; now the braces are stripped
17921 off.
17923 * `--smart` is no longer selected automatically with `man` output.
17925 * The deprecated `--xetex` option has been removed.
17927 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
17928 instead. `html5` and `html5+lhs` are now separate output formats.
17930 * Single quotes are no longer escaped in HTML output. They do not
17931 need to be escaped outside of attributes.
17933 * Pandoc will no longer transform leading newlines in code
17934 blocks to `<br/>` tags.
17936 * The ODT writer now sizes images appropriately, using the image
17937 size and DPI information embedded in the image.
17939 * `--standalone` is once again implicitly for a non-text output format
17940 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
17941 and get a standalone ODT file.
17943 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
17944 `<section>`.
17946 * The HTML writer now uses `<del>` for strikeout.
17948 * In HTML output with `--section-divs`, the classes `section` and
17949 `level[1,2,..6]` are put on the `div` tags so they can be styled.
17950 In HTML 5 output with `--section-divs`, the classes
17951 `level[1,2,...6]` are put on `section` tags.
17953 * EPUB writer changes:
17955 + The `lang` variable now sets the language
17956 in the metadata (if it is not set, we default to the locale).
17957 + EPUB: UTF-8 is used rather than decimal entities.
17959 * Added `titleslide` class to title slide in S5 template.
17961 * In HTML, EPUB, and docx metadata, the date is normalized into
17962 YYYY-MM-DD format if possible. (This is required for validation.)
17964 * Attributes in highlighted code blocks are now preserved in HTML.
17965 The container element will have the classes, id, and key-value attributes
17966 you specified in the delimited code block. Previously these were stripped
17967 off.
17969 * The reference backlink in the HTML writer no longer has a special
17970 `footnoteBacklink` class.
17972 * The HTML template has been split into `html` and `html5` templates.
17974 * Author and date are treated more consistently in HTML templates.
17975 Authors are now `<h2>`, date `<h3>`.
17977 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
17979 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
17981### Bug fixes
17983 * Better support for combining characters and East Asian wide characters
17984 in markdown and reST.
17986 * Better handling of single quotes with `--smart`.
17987 Previously `D'oh l'*aide*` would be parsed with left and right single
17988 quotes instead of apostrophes. This kind of error is now fixed.
17990 * Highlighting: Use `reads` instead of `read` for better error handling.
17991 Fixes crash on `startNum="abc"`.
17993 * Added blank comment after directives in rst template.
17995 * Unescape entities in citation `refId`. The `refId`s coming
17996 from citeproc contain XML numeric entities, and these don't match with the
17997 citation keys parsed by pandoc. Solution is to unescape them.
17999 * HTML reader: Fixed bug parsing tables with both thead and tbody.
18001 * Markdown reader:
18003 + Better handling of escapes in link URLs and titles.
18004 + Fixed backslash escapes in reference links.
18005 + Fixed bug in table/hrule parsing, by checking that the top
18006 line of a table is not followed by a blank line. This bug caused
18007 slowdowns on some files with hrules and tables, as pandoc tried to
18008 interpret the hrules as the tops of multiline tables.
18009 + Fixed bug in code block attribute parser. Previously the ID attribute
18010 got lost if it didn't come first. Now attributes can come in any order.
18012 * RST reader: allow footnotes followed by newline without space characters.
18014 * LaTeX reader:
18016 + Ignore empty groups {}, { }.
18017 + LaTeX reader: Handle `\@`.
18018 + LaTeX reader: Don't crash on commands like `\itemsep`.
18019 + LaTeX reader: Better handling of letter environments.
18021 * RST writer: Fixed bug involving empty table cells. isSimple was being
18022 calculated in a way that assumed there were no non-empty cells.
18024 * ConTeXt writer:
18026 + Made `--toc` work even without `--number-sections`.
18027 + Escape # in link URLs.
18028 + Use buffering for footnotes containing code blocks.
18029 + Changed 'descr' to 'description', fixed alignment.
18031 * LaTeX writer:
18033 + Escape euro character.
18034 + Don't escape `~` inside `\href{...}`.
18035 + Escape `#` in href URLs.
18036 + Improved detection of book classes. We now check the
18037 `documentclass` variable, and if that is not set, we look through
18038 the template itself. Also, we have added the KOMA classes scrreprt
18039 and scrbook. You can now make a book using
18040 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
18041 + LHS files now set the "listings" variable, so that the definition
18042 of the `code` environment will be included in the template.
18043 + Links are colored blue by default (this can be changed by
18044 modifying `hyperref` settings in the template).
18045 + Added `lang` variable to LaTeX template.
18047 * HTML writer:
18049 + Fixed bug in HTML template with html5 and mathml.
18050 + Don't use self-closing img, br, hr tags for HTML5.
18051 + Use `<section>` for footnotes if HTML5.
18052 + Update HTML templates to use Content-Style-Type meta tag.
18053 + Use separate variables for meta-date, meta-author.
18054 This makes footnotes work in author and date fields.
18055 + Use 'vertical-align:middle' in WebTeX math for better alignment.
18057 * S5/slidy writer: Make footnotes appear on separate slide at end.
18059 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
18060 META-INF/manifest.xml for ODT files will have everything it needs, so
18061 that ODT files modified by LibreOffice can be used as `--reference-odt`.
18063 * `Text.Pandoc.Templates`: Return empty string for json template.
18065 * `Text.Pandoc.Biblio`:
18067 + Expand citations recursively inside nested inlines.
18068 + Treat `\160` as space when parsing locator and suffix.
18069 This fixes a bug with "p. 33" when `--smart` is used. Previously
18070 the whole "p. 33" would be included in the suffix, with no locator.
18071 + Put whole author-in-text citation in a Cite. Previously just the
18072 date and other info went in the Cite.
18073 + Don't add comma+space to prefix if it ends in punctuation.
18075 * Updated chicago-author-date.csl. The old version did not work
18076 properly for edited volumes with no author.
18078 * EPUB writer:
18080 + Add date to EPUB titlepage and metadata.
18081 + Added TOC identifier in EPUB page template.
18082 + Don't generate superfluous file `cover-image.jpg`.
18084### Under the hood improvements
18086 * Modified `make_osx_package.sh` to use cabal-dev.
18087 Items are no longer installed as root.
18088 Man pages are zipped and given proper permissions.
18090 * Modified windows installer generator to use cabal-dev.
18092 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
18093 Setup.hs we now invoke 'runghc' in a way that points it to the correct
18094 package databases, instead of always falling back to the default user
18095 package db.
18097 * Updated to work with GHC 7.4.1.
18099 * Removed dependency on old-time.
18101 * Removed dependency on dlist.
18103 * New slidy directory for "self-contained."
18105 * TeXMath writer: Use unicode thin spaces for thin spaces.
18107 * Markdown citations: don't strip off initial space in locator.
18109### API changes
18111 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
18112 from the native `Inline` type in pandoc-types. Now we use `Str`
18113 elements with unicode.
18115 * Improvements to `Text.Pandoc.Builder`:
18117 + `Inlines` and `Blocks` are now newtypes (not synonyms for
18118 sequences).
18119 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
18120 and a new `Listable` class, which allows these to be manipulated
18121 to some extent like lists. Monoid append includes automatic
18122 normalization.
18123 + `+++` has been replaced by `<>` (mappend).
18125 * Use blaze-html instead of xhtml for HTML generation.
18126 This changes the type of `writeHtml`.
18128 * `Text.Pandoc.Shared`:
18130 + Added `warn` and `err`.
18131 + Removed `unescapeURI`, modified `escapeURI`.
18132 (See under [behavior changes], above.)
18134 * Changes in URI escaping: Previously the readers escaped URIs by
18135 converting unicode characters to octets and then percent encoding.
18136 Now unicode characters are left as they are, and `escapeURI` only
18137 percent-encodes space characters. This gives more readable
18138 URIs, and works well with modern user agents. URIs are no longer unescaped
18139 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
18141 * New module `Text.Pandoc.SelfContained`.
18143 * New module `Text.Pandoc.Docx`.
18145 * New module `Text.Pandoc.PDF`.
18147 * Added `writerBeamer` to `WriterOptions`.
18149 * Added `normalizeDate` to `Text.Pandoc.Shared`.
18151 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
18152 This is like `splitWithIndices`, but it is sensitive to distinctions
18153 between wide, combining, and regular characters.
18155 * `Text.Pandoc.Pretty`:
18157 + Added `chomp` combinator.
18158 + Added `beforeNonBreak` combinator. This allows you to include
18159 something conditionally on it being before a nonblank.
18160 Used for RST inline math.
18161 + Added `charWidth` function. All characters marked W or F in the unicode
18162 spec EastAsianWidth.txt get width 2.
18163 + Added `realLength`, based on `charWidth`. `realLength` is now
18164 used in calculating offsets.
18166 * New module `Text.Pandoc.Slides`, for common functions for breaking
18167 a document into slides.
18169 * Removed `Text.Pandoc.S5`, which is no longer needed.
18171 * Removed `Text.Pandoc.CharacterReferences`. Moved
18172 `characterReference` to `Text.Pandoc.Parsing`.
18173 `decodeCharacterReferences` is replaced by `fromEntities`
18174 in `Text.Pandoc.XML`.
18176 * Added `Text.Pandoc.ImageSize`. This is intened for use
18177 in `docx` and `odt` writers, so the size and dpi of images
18178 can be calculated.
18180 * Removed `writerAscii` in `WriterOptions`.
18182 * Added `writerHighlight` to `WriterOptions`.
18184 * Added `DZSlides` to `HTMLSlideVariant`.
18186 * `writeEPUB` has a new argument for font files to embed.
18188 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
18189 of whether we're parsing the position immediately after a regular
18190 (non-space, non-symbol) string, which is useful for distinguishing
18191 apostrophes from single quote starts.
18193 * `Text.Pandoc.Parsing`:
18195 + `escaped` now returns a `Char`.
18196 + Removed `charsInBalanced'`, added a character parser as
18197 a parameter of `charsInBalanced`. This is needed for
18198 proper handling of escapes, etc.
18199 + Added `withRaw`.
18201 * Added `toEntities` to `Text.Pandoc.XML`.
18203 * `Text.Pandoc.Readers.LaTeX`:
18205 + Export `handleIncludes`.
18206 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
18208 * Added `ToJsonFilter` class and `toJsonFilter` function to
18209 `Text.Pandoc`, deprecating the old `jsonFilter` function.
18211 * `Text.Pandoc.Highlighting`:
18213 + Removed `highlightHtml`, `defaultHighlightingCss`.
18214 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
18215 key functions from highlighting-kate.
18216 + Changed types of highlighting function. `highlight` returns a
18217 `Maybe`, not an `Either`.
18220## pandoc 1.8.2.1 (2011-08-01)
18222 * Adjusted Arbitrary instance to help avoid timeouts in tests.
18224 * Added `Tests.Writers.Markdown` to cabal file.
18226 * Relaxed version bounds on pandoc-types, test-framework.
18228## pandoc 1.8.2 (2011-07-30)
18230 * Added script to produce OS X package.
18232 * Made `templates` directory a git submodule. This should make it
18233 easier for people to revise their custom templates when the default
18234 templates change.
18236 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
18237 **Note:** If you have existing templates in `~/.pandoc/templates`, you
18238 must rename them to conform to the new scheme!
18240 * Default template improvements:
18242 + HTML: Display author and date after title.
18243 + HTML: Made table of contents more customizable. The container
18244 for the TOC is now in the template, so users can insert a header
18245 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
18246 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
18247 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
18248 hard-coding. If you want to put your slidy files in the slidy
18249 subdirectory, for example, you can do
18250 `pandoc -t slidy -V slidy-url=slidy -s`.
18251 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
18252 & writer). Closes #279.
18253 + LaTeX: Set `\emergencystretch` to prevent overfull lines.
18254 + LaTeX: Use different `hyperref` options for `xetex`, fixing
18255 problems with unicode bookmarks (thanks to CircleCode).
18256 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
18257 with `inputenc`. This covers fewer characters but is more
18258 robust with other packages, and `ucs` is unmaintained. Users
18259 who need better unicode support should use xelatex or lualatex.
18261 * If a template specified with `--template` is not found, look for it
18262 in `datadir`. Also, if no extension is provided, supply one based
18263 on the writer. So now you can put your `special.latex` template in
18264 `~/.pandoc/templates`, and use it from any directory via
18265 `pandoc -t latex --template special`.
18267 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
18269 * Fixed smart quotes bug, now handling `'...hi'` properly.
18271 * RST reader:
18273 + Partial support for labeled footnotes.
18274 + Improved accuracy of `simpleReferenceName` parser.
18276 * HTML reader:
18278 + Substitute correct unicode characters for
18279 characters in the 128..159 range, which are often found even in
18280 HTML that purports to be UTF-8.
18282 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
18283 to the title, after a colon and linebreak). Closes #280.
18285 * Leaner `reference.odt`.
18287 * Added unexported module `Text.Pandoc.MIME` for use in
18288 the ODT writer.
18290 * ODT writer: Construct `manifest.xml` based on archive contents.
18291 This fixes a bug in ODTs containing images. Recent versions of
18292 LibreOffice would reject these as corrupt, because `manifest.xml`
18293 did not contain a reference to the image files.
18295 * LaTeX writer:
18297 + Make verbatim environments flush to avoid spurious
18298 blank lines. Closes #277.
18299 + Use `\texttt` and escapes insntead of `\verb!...!`, which
18300 is too fragile (doesn't work in command arguments).
18301 + Use `\enquote{}` for quotes if the template includes
18302 the `csquotes` package. This provides better support for
18303 local quoting styles. (Thanks to Andreas Wagner for the idea.)
18305 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
18306 margin, preventing spurious blank lines.
18308 * Slidy writer:
18310 + Use non-minimized version of `slidy.css` with `--offline`
18311 option, so users can more easily edit it.
18312 + Also fixed a bug in the CSS that prevented proper centering
18313 of title (now reported and fixed upstream).
18315 * S5 writer:
18317 + Replaced `s5/default/slides.js.{comment,packed}` with
18318 new compressed `s5/default/slides.min.js`.
18319 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
18320 when `--offline` is specified. Using inline CSS didn't
18321 work with Chrome or Safari. This fixes offline
18322 S5 on those browsers.
18324 * HTML writer: Removed English title on footnote backlinks.
18325 This is incongrous in non-English documents.
18327 * Docbook writer:
18329 + Use CALS tables. (Some older docbook software does not work
18330 well with XHTML tables.) Closes #77.
18331 + Use `programlisting` tags (instead of `screen`) for code blocks.
18333 * `markdown2pdf`:
18335 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
18336 of `-interaction=batchmode`, which essentially just ignored errors,
18337 leading to bad results. Better to know when something is wrong.
18338 + Fixed issues with non-UTF-8 output of `pdflatex`.
18339 + Better error reporting.
18341 * `--mathjax` now takes an optional URL argument. If it is not
18342 provided, pandoc links directly to the (secure) mathjax CDN,
18343 as now recommended (thanks to dsanson).
18345 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
18346 since the LaTeX writer now produces a file that can be processed by
18347 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
18349 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
18350 to be used to create the PDF.
18353## pandoc 1.8.1.2 (2011-07-16)
18355 * Added `--epub-cover-image` option.
18357 * Documented `--biblatex` and `--natbib` options.
18359 * Allow `--section-divs` with slidy output. Resolves Issue #296.
18361 * Disallow notes within notes in reST and markdown.
18362 These previously caused infinite looping and stack overflows.
18363 For example:
18365 [^1]
18367 [^1]: See [^1]
18369 Note references are allowed in reST notes, so this isn't a full
18370 implementation of reST. That can come later. For now we need to
18371 prevent the stack overflows. Partially resolves Issue #297.
18373 * EPUB writer: Allow non-plain math methods.
18375 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
18376 `(@item1; @item2)` because the final paren was being parsed as part of
18377 the item key.
18379 * Changed URI parser so it doesn't include trailing punctuation.
18380 So, in RST, `http://google.com.` should be parsed as a link followed by a
18381 period. The parser is smart enough to recognize balanced parentheses, as
18382 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
18384 * Markdown+lhs reader: Require space after inverse bird tracks, so that
18385 HTML tags can be used freely at the left margin of a markdown+lhs document.
18386 Thanks to Conal Elliot for the suggestion.
18388 * Markdown reader: Fixed bug in footnote order (reported by CircleCode).
18390 * RST reader:
18391 + Fixed bug in in field lists with multi-line items at the
18392 end of the list.
18393 + Added parentheses to RST `specialChars`, so
18394 `(http://google.com)` will be parsed as a link in parens.
18395 Resolves Issue #291.
18396 + Allow `|` followed by newline in RST line block.
18398 * LaTeX reader:
18399 + Support `\dots`.
18400 + Gobble option & space after linebreak `\\[10pt]`.
18402 * Textile reader:
18403 + Make it possible to have colons after links. (qerub)
18404 + Make it possible to have colons after links. (Christoffer Sawicki)
18406 * HTML reader:
18407 + Skip spaces after `<b>`, `<emph>`, etc.
18408 + Handle tbody, thead in simple tables. Closes #274.
18409 + Implicit `Para`s instead of `Plains` in some contexts.
18411 * OpenDocument writer: Use special `First paragraph` style for
18412 first paragraph after most non-paragraph blocks. This allows users to
18413 specify e.g. that only paragraphs after the first paragraph of a block are
18414 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
18416 * LaTeX writer: use `deVerb` on table and picture captions.
18417 Otherwise LaTeX complains about `\verb` inside command argument.
18418 Thanks to bbanier for reporting the bug.
18420 * Markdown writer: Insert HTML comment btw list and indented code block.
18421 This prevents the code block from being interpreted as part of the list.
18423 * EPUB writer: Add a meta element specify the cover.
18424 Some EPUB e-readers, such as the Nook, require a meta element inside the
18425 OPF metadata block to ensure the cover image is properly displayed.
18426 (Kelsey Hightower)
18428 * HTML writer: Use embed tag for images with non-image extensions.
18429 (e.g. PDFs). Closes #264.
18431 * LaTeX writer: Improved tables.
18433 + More space between lines, top-align cells.
18434 + Use ctable package, which allows footnotes and
18435 provides additional options.
18436 + Made cell alignments work in multiline tables.
18437 + Closes #271, #272.
18439 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
18440 Also do this when copying image files into EPUBs and ODTs.
18441 Closes #263.
18443 * Changed to github issue tracker.
18445 * Added failing emph/strong markdown test case due to Perry Wagle.
18447 * Slidy improvements:
18448 + Updated to use Slidy2.
18449 + Fixed bug, unclosed div tag.
18450 + Added `duration` variable in template.
18451 Setting this activates the timer.
18452 + Use 'titlepage' instead of 'cover' for title div.
18455## pandoc 1.8.1.1 (2011-02-13)
18457 * `markdown2pdf`: Removed some debugging lines accidentally included
18458 in the 1.8.1 release. With those lines, the temp directory is created
18459 in the working directory, and it is not deleted. This fix restores
18460 the original behavior.
18462## pandoc 1.8.1 (2011-02-13)
18464 * Added `--ascii` option. Currently supported only in HTML writer,
18465 which it causes to use numerical entities instead of UTF-8.
18467 * EPUB writer: `--toc` now works to provide a table of contents
18468 at the beginning of each chapter.
18470 * LaTeX writer: Change figure defaults to `htbp`.
18471 This prevents "too many unprocessed floats." Resolves
18472 Issue #285.
18474 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
18475 base.
18477 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
18478 Tanimoto. Resolves Issue #286.
18480 * HTML writer: Put line breaks in section divs.
18482 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
18484## pandoc 1.8.0.3 (2011-02-05)
18486 * Fixed Source-repository stanza in cabal file.
18488## pandoc 1.8.0.2 (2011-02-05)
18490 * HTML writer:
18492 + Stringify alt text instead of converting to HTML.
18493 + Break lines after block elements, not inside tags.
18494 HTML output now closely resembles that of tidy. Resolves Issue #134.
18496 * Markdown reader: Fixed bug in footnote block parser (pointed out
18497 by Jesse Rosenthal). The problem arose when the blank line
18498 at the end of a footnote block contained indenting spaces.
18500 * Shared: Improved 'normalize' function so it normalizes Spaces too.
18501 In normal form, Space elements only occur to separate two non-Space
18502 elements. So, we never have [Space], or [, ..., Space].
18504 * Tests:
18506 + Improved Arbitrary instance.
18507 + Added timeout for test instances.
18509 * README:
18511 + Added section on four-space rule for lists. Resolves Issue #283.
18512 + Clarified optional arguments on math options.
18514 * markdown2pdf: Fixed bug with output file extensions.
18515 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
18516 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
18518## pandoc 1.8.0.1 (2011-01-31)
18520 * Revised Interact.hs so that it works with the CPP macros
18521 in the UTF8 module.
18523 * Revised Setup.hs so that we don't call MakeManPage.hs unless
18524 the man pages are out of date.
18526## pandoc 1.8 (2011-01-30)
18528### New features
18530 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
18531 You can now write, for example,
18533 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
18535 and, when you process your document using `pandoc`, specifying
18536 a citation style using `--csl` and a bibliography using `--bibliography`,
18537 the citation will be replaced by an appropriately formatted
18538 citation, and a list of works cited will be added to the end
18539 of the document.
18541 This means that you can switch effortlessly between different citation
18542 and bibliography styles, including footnote, numerical, and author-date
18543 formats. The bibliography can be in any of the following formats: MODS,
18544 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
18545 See the README for further details.
18547 Citations are supported in the markdown reader, using a special
18548 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
18549 (Thanks to Nathan Gass for the natbib and biblatex support.)
18551 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
18552 the `textile` reader, an almost complete implementation of the textile
18553 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
18554 Resolves Issue #51.
18556 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
18558 * New `json` reader and writer, for reading and writing a JSON
18559 representation of the native Pandoc AST. These are much faster
18560 than the `native` reader and writer, and should be used for
18561 serializing Pandoc to text. To convert between the JSON representation
18562 and native Pandoc, use `encodeJSON` and `decodeJSON` from
18563 `Text.JSON.Generic`.
18565 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
18566 to write scripts that transform a JSON-encoded pandoc document.
18567 For example:
18569 -- removelinks.hs - removes links from document
18570 import Text.Pandoc
18571 main = interact $ jsonFilter $ bottomUp removeLink
18572 where removeLink (Link xs _) = Emph xs
18573 removeLink x = x
18575 To use this to remove links while translating markdown to LaTeX:
18577 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
18579 * Attributes are now allowed in inline `Code` elements, for example:
18581 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
18583 The attribute syntax is the same as for delimited code blocks.
18584 `Code` inline has an extra argument place for attributes, just like
18585 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
18586 is compiled with highlighting support. Resolves Issue #119.
18588 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
18589 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
18590 scripts to transform Pandoc documents. Scripts can now change
18591 how each element is rendered in each output format.
18593 * You can now define LaTeX macros in markdown documents, and pandoc
18594 will apply them to TeX math. For example,
18596 \newcommand{\plus}[2]{#1 + #2}
18597 $\plus{3}{4}$
18599 yields `3+4`. Since the macros are applied in the reader, they
18600 will work in every output format, not just LaTeX.
18602 * LaTeX macros can also be used in LaTeX documents (both in math
18603 and in non-math contexts).
18605 * A new `--mathjax` option has been added for displaying
18606 math in HTML using MathJax. Resolves issue #259.
18608 * Footnotes are now supported in the RST reader. (Note, however,
18609 that unlike docutils, pandoc ignores the numeral or symbol used in
18610 the note; footnotes are put in an auto-numbered ordered list.)
18611 Resolves Issue #258.
18613 * A new `--normalize` option causes pandoc to normalize the AST
18614 before writing the document. This means that, for example,
18615 `*hi**there*` will be rendered as `<em>hithere</em>`
18616 instead of `<em>hi</em><em>there</em>`. This is not the default,
18617 because there is a significant performance penalty.
18619 * A new `--chapters` command-line option causes headers
18620 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
18621 Resolves Issue #265.
18623 * In DocBook output, `<chapter>` is now used for top-level
18624 headers if the template contains `<book>`. Resolves Issue #265.
18626 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
18627 the LaTeX writer to use the listings package for code blocks.
18628 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
18629 Millon for the markdown2pdf patch.)
18631 * `markdown2pdf` now supports `--data-dir`.
18633 * URLs in autolinks now have class "url" so they can be styled.
18635 * Improved prettyprinting in most formats. Lines will be wrapped
18636 more evenly and duplicate blank lines avoided.
18638 * New `--columns` command-line option sets the column width for
18639 line wrapping and relative width calculations for tables.
18641 * Made `--smart` work in HTML, RST, and Textile readers, as well
18642 as markdown.
18644 * Added `--html5` option for HTML5 output.
18646 * Added support for listings package in LaTeX reader
18647 (Puneeth Chaganti).
18649 * Added support for simple tables in the LaTeX reader.
18651 * Added support for simple tables in the HTML reader.
18653 * Significant performance improvements in many readers and writers.
18655### API and program changes
18657 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
18658 auxiliary package, `pandoc-types`. This will make it possible for other
18659 programs to supply output in Pandoc format, without depending on the whole
18660 pandoc package.
18662 * Added `Attr` field to `Code`.
18664 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
18665 `RawBlock` and `RawInline`.
18667 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
18668 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
18669 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
18671 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
18673 * `Text.Pandoc` now exports association lists `readers` and `writers`.
18675 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
18676 `readNative` can now read full pandoc documents, block lists, blocks,
18677 inline lists, or inlines. It will interpret `Str "hi"`
18678 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
18679 This should make testing easier.
18681 * Removed deprecated `-C/--custom-header` option.
18682 Use `--template` instead.
18684 * `--biblio-file` has been replaced by `--bibliography`.
18685 `--biblio-format` has been removed; pandoc now guesses the format
18686 from the file extension (see README).
18688 * pandoc will treat an argument as a URI only if it has an
18689 `http(s)` scheme. Previously pandoc would treat some
18690 Windows pathnames beginning with `C:/` as URIs.
18692 * The `--sanitize-html` option and the `stateSanitize` field in
18693 `ParserState` have been removed. Sanitization is better done in the
18694 resulting HTML using `xss-sanitize`, which is based on pandoc's
18695 sanitization, but improved.
18697 * pandoc now adds a newline to the end of its output in fragment
18698 mode (= not `--standalone`).
18700 * Added support for `lang` in `html` tag in the HTML template,
18701 so you can do `pandoc -s -V lang=es`, for example.
18703 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
18704 a boolean argument that selects between "inline" and
18705 "block" HTML.
18707 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
18708 Images are embedded in RTF output when possible (png, jpeg).
18709 Resolves Issue #275.
18711 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
18712 `pretty` package. Changed all writers that used
18713 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
18715 * Rewrote `writeNative` using the new prettyprinting module. It is
18716 now much faster. The output has been made more consistent and compressed.
18717 `writeNative` is also now sensitive to writerStandalone`, and will simply
18718 `print a block list if writerStandalone` is False.
18720 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
18721 blocks and concatenate them, so a separate module is no longer needed.
18723 * `Text.Pandoc.Shared`:
18725 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
18726 `WriterOptions`.
18727 + Added `normalize`.
18728 + Removed unneeded prettyprinting functions:
18729 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
18730 `BlockWrapper`, `wrappedBlocksToDoc`.
18731 + Made `splitBy` take a test instead of an element.
18732 + Added `findDataFile`, refactored `readDataFile`.
18733 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
18734 + Fixed `inlineListToIdentifier` to treat `\160` as ' '.
18736 * `Text.Pandoc.Readers.HTML`:
18738 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
18739 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
18740 `htmlBlockElement`, `htmlComment`
18741 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
18742 `isTextTag`
18744 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
18745 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
18746 an inline parser.
18748 * Ellipses are no longer allowed to contain spaces.
18749 Previously we allowed '. . .', ' . . . ', etc. This caused
18750 too many complications, and removed author's flexibility in
18751 combining ellipses with spaces and periods.
18753 * Allow linebreaks in URLs (treat as spaces). Also, a string of
18754 consecutive spaces or tabs is now parsed as a single space. If you have
18755 multiple spaces in your URL, use `%20%20`.
18757 * `Text.Pandoc.Parsing`:
18759 + Removed `refsMatch`.
18760 + Hid `Key` constructor.
18761 + Removed custom `Ord` and `Eq` instances for `Key`.
18762 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
18763 + Generalized type on `readWith`.
18765 * Small change in calculation of relative widths of table columns.
18766 If the size of the header > the specified column width, use
18767 the header size as 100% for purposes of calculating
18768 relative widths of columns.
18770 * Markdown writer now uses some pandoc-specific features when `--strict`
18771 is not specified: `\` newline is used for a hard linebreak instead of
18772 two spaces then a newline. And delimited code blocks are used when
18773 there are attributes.
18775 * HTML writer: improved gladTeX output by setting ENV appropriately
18776 for display or inline math (Jonathan Daugherty).
18778 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
18780 * LaTeX reader:
18782 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
18783 + `\index{}` commands are skipped.
18785 * Added `fontsize` variable to default LaTeX template.
18786 This makes it easy to set the font size using `markdown2pdf`:
18787 `markdown2pdf -V fontsize=12pt input.txt`.
18789 * Fixed problem with strikeout in LaTeX headers when using
18790 hyperref, by adding a command to the default LaTeX template
18791 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
18792 for the fix.
18794 * The `COLUMNS` environment variable no longer has any effect.
18796### Under-the-hood improvements
18798 * Pandoc now compiles with GHC 7. (This alone leads to a
18799 significant performance improvement, 15-20%.)
18801 * Completely rewrote HTML reader using tagsoup as a lexer. The
18802 new reader is faster and more accurate. Unlike the
18803 old reader, it does not get bogged down on some input
18804 (Issues #277, 255). And it handles namespaces in tags
18805 (Issue #274).
18807 * Replaced `escapeStringAsXML` with a faster version.
18809 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
18810 for a significant performance boost.
18812 * Improved performance of all readers by rewriting parsers.
18814 * Simplified Text.Pandoc.CharacterReferences by using
18815 entity lookup functions from TagSoup.
18817 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
18818 from `System.IO` if base >= 4.2. This gives support for
18819 windows line endings on windows.
18821 * Remove duplications in documentation by generating the
18822 pandoc man page from README, using `MakeManPage.hs`.
18824 * README now includes a full description of markdown syntax,
18825 including non-pandoc-specific parts. A new `pandoc_markdown`
18826 man page is extracted from this, so you can look up markdown
18827 syntax by doing `man pandoc_markdown`.
18829 * Completely revised test framework (with help from Nathan Gass).
18830 The new test framework is built when the `tests` Cabal flag is set. It
18831 includes the old integration tests, but also some new unit and quickcheck
18832 tests. Test output has been much improved, and you can now specify a glob
18833 pattern after `cabal test` to indicate which tests should be run;
18834 for example `cabal test citations` will run all the citation tests.
18836 * Added a shell script, `stripansi.sh`, for filtering ANSI control
18837 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
18839 * Added `Interact.hs` to make it easier to use ghci while developing.
18840 `Interact.hs` loads `ghci` from the `src` directory, specifying
18841 all the options needed to load pandoc modules (including
18842 specific package dependencies, which it gets by parsing
18843 dist/setup-config).
18845 * Added `Benchmark.hs`, testing all readers + writers using criterion.
18847 * Added `stats.sh`, to make it easier to collect and archive
18848 benchmark and lines-of-code stats.
18850 * Added upper bounds to all cabal dependencies.
18852 * Include man pages in extra-source-files. This allows users to
18853 install pandoc from the tarball without needing to build the man
18854 pages.
18856### Bug fixes
18858 * Filenames are encoded as UTF8. Resolves Issue #252.
18860 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
18861 were just parsed literally, leading to problems in some output formats.
18862 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
18863 Resolves Issue #270.
18865 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
18866 Spaces at end of line were not being stripped properly,
18867 resulting in unintended LineBreaks.
18869 * Markdown reader:
18871 + Allow HTML comments as inline elements in markdown.
18872 So, `aaa <!-- comment --> bbb` can be a single paragraph.
18873 + Fixed superscripts with links: `^[link](/foo)^` gets
18874 recognized as a superscripted link, not an inline note followed by
18875 garbage.
18876 + Fixed regression, making markdown reference keys case-insensitive again.
18877 Resolves Issue #272.
18878 + Properly handle abbreviations (like `Mr.`) at the end of a line.
18879 + Better handling of intraword underscores, avoiding exponential
18880 slowdowns in some cases. Resolves Issue #182.
18881 + Fixed bug in alignments in tables with blank rows in the header.
18883 * RST reader:
18885 + Field lists now allow spaces in field names, and
18886 block content in field values. (Thanks to Lachlan Musicman
18887 for pointing out the bug.)
18888 + Definition list items are now always `Para` instead of
18889 `Plain`, matching behavior of `rst2xml.py`.
18890 + In image blocks, the description is parsed properly and
18891 used for the alt attribute, not also the title.
18892 + Skip blank lines at beginning of file. Resolves
18893 Debian #611328.
18895 * LaTeX reader:
18897 + Improved parsing of preamble.
18898 Previously you'd get unexpected behavior on a document that
18899 contained `\begin{document}` in, say, a verbatim block.
18900 + Allow spaces between `\begin` or `\end` and `{`.
18901 + Support `\L` and `\l`.
18902 + Skip comments inside paragraphs.
18904 * LaTeX writer:
18906 + Escape strings in `\href{..}`.
18907 + In nonsimple tables, put cells in `\parbox`.
18909 * OpenDocument writer: don't print raw TeX.
18911 * Markdown writer:
18913 + Fixed bug in `Image`. URI was getting unescaped twice!
18914 + Avoid printing extra blank lines at the end if there are
18915 no notes or references.
18917 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
18918 This avoids unwanted interpretation as an optional argument.
18920 * ConTeXt writer: Fixed problem with inline code. Previously
18921 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
18922 If it contains neither, use `\type{}`; otherwise use `\mono{}`
18923 with an escaped version of the string.
18925 * `:` now allowed in HTML tags. Resolves Issue #274.
18929## pandoc 1.6 (2010-07-24)
18931+ New EPUB and HTML Slidy writers. (Issue #122)
18933 - [EPUB] is a standard ebook format, used in Apple's iBooks for
18934 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
18935 reader, and many other devices, and by online ebook readers like
18936 [bookworm]. (Amazon's Kindle uses a different format, MobiPocket,
18937 but EPUB books can easily be converted to Kindle format.) Now you
18938 can write your book in markdown and produce an ebook with a single
18939 command! I've put up a short [tutorial here].
18940 - [Slidy], like S5, is a system for producing HTML+javascript slide shows.
18942+ All input is assumed to be UTF-8, no matter what the locale and ghc
18943 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
18944 Also, a BOM, if present, is stripped from the input.
18946+ Markdown now supports grid tables, whose cells can contain
18947 arbitrary block elements. (Issue #43)
18949+ Sequentially numbered example lists in markdown with `@` marker.
18951+ Markdown table captions can begin with a bare colon and no longer need
18952 to include the English word "table." Also, a caption can now occur
18953 either before or after the table. (Issue #227)
18955+ New command-line options:
18957 - `--epub-stylesheet` allows you to specify a CSS file that will
18958 be used to style your ebook.
18959 - `--epub-metadata` allows you to specify metadata for the ebook.
18960 - `--offline` causes the generated HTML slideshow to include all
18961 needed scripts and stylesheets.
18962 - `--webtex` causes TeX math to be converted to images using the
18963 Google Charts API (unless a different URL is specified).
18964 - `--section-divs` causes div tags to be added around each section
18965 in an HTML document. (Issue #230, 239)
18967+ Default behavior of S5 writer in standalone mode has changed:
18968 previously, it would include all needed scripts and stylesheets
18969 in the generated HTML; now, only links are included unless
18970 the `--offline` option is used.
18972+ Default behavior of HTML writer has changed. Between 1.2 and 1.5,
18973 pandoc would enclose sections in div tags with identifiers on the
18974 div tags, so that the sections can be manipulated in javascript.
18975 This caused undesirable interactions with raw HTML div tags. So,
18976 starting with 1.6, the default is to put the identifiers directly
18977 on the header tags, and not to include the divs. The `--section-divs`
18978 option selects the 1.2-1.5 behavior.
18980+ API changes:
18982 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
18983 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
18984 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
18985 `writerIncludeAfter`.
18986 - Added `headerShift` to `Text.Pandoc.Shared`.
18987 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
18988 to a new module, `Text.Pandoc.Parsing`.
18989 - Added `stateHasChapters` to `ParserState`.
18990 - Added `HTMLSlideVariant`.
18991 - Made `KeyTable` a map instead of an association list.
18992 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`, `docDate`).
18993 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord` instances.
18994 - Reference keys now have a type of their own (`Key`), with its
18995 own `Ord` instance for case-insensitive comparison.
18996 - Added `Text.Pandoc.Writers.EPUB`.
18997 - Added `Text.Pandoc.UUID`.
18998 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
18999 Removed `saveOpenDocumentAsODT`, added `writeODT`.
19000 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
19001 Removed `prettyPandoc`.
19002 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
19003 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
19004 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
19005 To write S5, you now use `writeHtml` with `writerSlideVariant`
19006 set to `S5Slides` or `SlidySlides`.
19008+ Template changes. If you use custom templates, please update them,
19009 particularly if you use syntax highlighting with pandoc. The old HTML
19010 templates hardcoded highlighting CSS that will no longer work with
19011 the most recent version of highlighting-kate.
19013 - HTML template: avoid empty meta tag if no date.
19014 - HTML template: Use default highlighting CSS from highlighting-kate
19015 instead of hard-coding the CSS into the template.
19016 - HTML template: insert-before text goes before the title, and
19017 immediately after the `<body>` tag, as documented. (Issue #241)
19018 - Added slidy and s5 templates.
19019 - Added amssymb to preamble of latex template. (github Issue 1)
19021+ Removed excess newlines at the end of output. Note: because output
19022 will not contain an extra newline, you may need to make adjustments
19023 if you are inserting pandoc's output into a template.
19025+ In S5 and slidy, horizontal rules now cause a new slide, so you
19026 are no longer limited to one slide per section.
19028+ Improved handling of code in man writer. Inline code is now monospace,
19029 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
19031+ HTML reader parses `<tt>` as Code. (Issue #247)
19033+ html+lhs output now contains bird tracks, even when compiled without
19034 highlighting support. (Issue #242)
19036+ Colons are now no longer allowed in autogenerated XML/HTML identifiers,
19037 since they have a special meaning in XML.
19039+ Code improvements in ODT writer. Remote images are now replaced with
19040 their alt text rather than a broken link.
19042+ LaTeX reader improvements:
19044 - Made latex `\section`, `\chapter` parsers more forgiving of whitespace.
19045 - Parse `\chapter{}` in latex.
19046 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
19047 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
19048 for use in markdown reader.
19049 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
19050 in markdown document.
19052+ LaTeX writer: images are automatically shrunk if they would extend
19053 beyond the page margin.
19055+ Plain, markdown, RST writers now use unicode for smart punctuation.
19057+ Man writer converts math to unicode when possible, as in other writers.
19059+ `markdown2pdf` can now recognize citeproc options.
19061+ Command-line arguments are converted to UTF-8. (Issue #234)
19063+ `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
19064 This allows it to handle a wider range of formulas. Also, if a formula
19065 cannot be converted, it is left in raw TeX; formulas are no longer
19066 partially converted.
19068+ Unicode curly quotes are left alone when parsing smart quotes. (Issue #143)
19070+ Cabal file changes:
19072 - Removed parsec < 3 restriction.
19073 - Added 'threaded' flag for architectures where GHC lacks a threaded
19074 runtime.
19075 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
19076 - Require highlighting-kate 0.2.7.
19078+ Use explicit imports from `Data.Generics`. Otherwise we have a
19079 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
19081+ New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
19083[EPUB]: http://en.wikipedia.org/wiki/EPUB
19084[Slidy]: http://www.w3.org/Talks/Tools/Slidy
19085[bookworm]: http://bookworm.oreilly.com/
19086[tutorial here]: http://johnmacfarlane.net/pandoc/epub.html
19088## pandoc 1.5.1.1 (2010-03-29)
19090+ Fixed header identifiers (uniqueIdent in Shared) so they
19091 work as advertized in README and are guaranteed to be
19092 valid XHTML names. Thanks to Xyne for reporting the bug.
19094## pandoc 1.5.1 (2010-03-23)
19096+ Fixed treatment of unicode characters in URIs.
19097+ Revised Setup.hs so it works with debian's build process.
19098+ Fixed bug in OpenDocument writer that led to invalid
19099 XML for some input.
19101## pandoc 1.5.0.1 (2010-03-21)
19103+ HTML writer: Fixed error in math writer (with MathML option)
19104 that caused an infinite loop for unparsable MathML.
19106## pandoc 1.5 (2010-03-20)
19108+ Moved repository to [github](http://github.com/jgm/pandoc).
19109+ New `--mathml` option, for display of TeX math as MathML.
19110+ New `--data-dir` option, allowing users to specify a data
19111 directory other than `~/.pandoc`. Files placed in this directory
19112 will be used instead of system defaults.
19113+ New `--base-header-level` option. For example, `--base-header-level=2`
19114 changes level 1 headers to level 2, level 2 to level 3, etc.
19115+ New 'plain' output format: plain text without pictures, hyperlinks,
19116 inline formatting, or anything else that looks even vaguely
19117 markupish.
19118+ Titles and authors in title blocks can now span multiple lines,
19119 as long as the continuation lines begin with a space character.
19120+ When given an absolute URI as a parameter, pandoc will fetch
19121 the content via HTTP.
19122+ The HTML reader has been made much more forgiving. It no
19123 longer requires well-formed xhtml as input.
19124+ `html2markdown` has been removed; it is no longer necessary, given
19125 the last two changes. `pandoc` can be used by itself to convert
19126 web pages to markdown or other formats.
19127+ `hsmarkdown` has also been removed. Use `pandoc --strict` instead.
19128 Or symlink pandoc's executable to `hsmarkdown`; `pandoc` will then
19129 behave like `hsmarkdown` used to.
19130+ An image in a paragraph by itself is now rendered as a figure
19131 in most writers, with the alt text as the caption.
19132+ Incomplete support for reST tables (simple and grid). Thanks to
19133 Eric Kow. Colspans and rowspans not yet supported.
19134+ In mediawiki, links with relative URLs are now formatted as wikilinks.
19135 Also, headers have been promoted: `= head =` is now level 1 instead of
19136 level 2.
19137+ The markdown reader now handles "inverse bird tracks" when parsing
19138 literate haskell. These are used for haskell example code that
19139 is not part of the literate program.
19140+ The `-B` and `-A` options now imply `-s` and no longer work in
19141 fragment mode.
19142+ Headerless tables are now printed properly in all writers.
19143 In addition, tbody, thead, and cols are used in HTML and Docbook
19144 tables.
19145+ Improved build system; removed obsolete Makefile.
19146+ In LaTeX writer, `\chapter` is now used instead of `\section`.
19147 when the documentclass is book, report, or memoir.
19148+ Many small bug fixes. See [changelog] for details.
19150## pandoc 1.4 (2010-01-02)
19152+ New template system replaces old headers, giving users much
19153 more control over pandoc's output in `--standalone` mode.
19154 Added `--template` and `--variable` options. The `--print-default-header`
19155 option is now `--print-default-template`. See README under
19156 "Templates" for details.
19157+ The old `--custom-header` option should still work, but it has
19158 been deprecated.
19159+ New `--reference-odt` option allows users to customize styles
19160 in ODT output.
19161+ Users may now put custom templates, s5 styles, and a reference
19162 ODT in the `~/.pandoc` directory, where they will override system
19163 defaults. See README for details.
19164+ Unicode is now used whenever possible in HTML and XML output. Entities
19165 are used only where necessary (`&gt;`, `&lt;`, `&quot;`, `&amp;`).
19166+ Authors and dates may now include formatting and notes.
19167+ Added `--xetex` option for `pandoc` and `markdown2pdf`.
19168+ Windows installer now includes highlighting support and
19169 `markdown2pdf` and `hsmarkdown` wrappers.
19170+ Pandoc no longer requires Template Haskell, which should make
19171 it more portable.
19172+ Pandoc can now be built on GHC 6.12, as well as earlier versions.
19173+ See README for other small improvements and bug fixes.
19175## pandoc 1.3 (2009-12-10)
19177+ Added `--id-prefix` option to help prevent duplicate
19178 identifiers when you're generating HTML fragments.
19179+ Added `--indented-code-classes` option, which specifies
19180 default highlighting syntax for indented code blocks.
19181+ `--number-sections` now affects HTML output.
19182+ Improved syntax for markdown definition lists.
19183+ Better looking simple tables.
19184+ Markdown tables without headers are now possible.
19185+ New hard line break syntax: backslash followed by newline.
19186+ Improved performance of markdown reader by ~10% by eliminating the
19187 need for a separate parsing pass for notes.
19188+ Improved syntax highlighting for literate Haskell.
19189+ Support for "..code-block" directive in RST reader.
19190+ Windows binary now includes highlighting support.
19191+ Many bug fixes and small improvements. See [changelog]
19192 for details.
19194## pandoc 1.2.1 (2009-07-18)
19196+ Improved the efficiency of the markdown reader's
19197 abbreviation parsing (should give a big performance
19198 boost with `--smart`).
19199+ HTML writer now wraps sections in divs with unique
19200 identifiers, for easier manipulation.
19201+ Improved LaTeX reader's coverage of math modes.
19202+ Added a portable Haskell version of markdown2pdf (thanks
19203 to Paolo Tanimoto).
19204+ Made `--strict` compatible with `--standalone` and `--toc.`
19205+ Many other small improvements and bug fixes.
19206 See [changelog] for details.
19208## pandoc 1.2 (2009-03-01)
19210+ Added support for literate Haskell. lhs support is triggered by
19211 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
19212 Haskell LaTeX. '.lhs' files are treated by default as literate
19213 markdown.
19214+ Added `--email-obfuscation` option.
19215+ Brought citeproc support up to date for citeproc-hs-0.2.
19216+ Many bugs fixed. See [changelog] for details.
19218## pandoc 1.1 (2008-11-06)
19220+ New `--jsmath` option supporting use of pandoc with [jsMath].
19221+ Classes on HTML table output for better CSS styling.
19222+ Windows installer no longer requires admin privileges.
19223+ Many bugs fixed. See [changelog] for details.
19225## pandoc 1.0 (2008-09-13)
19227+ New writers for MediaWiki, GNU Texinfo (thanks to Peter Wang),
19228 OpenDocument XML (thanks to Andrea Rossato), and ODT (OpenOffice
19229 document).
19230+ New [delimited code blocks](README.html#delimited-code-blocks),
19231 with optional syntax highlighting.
19232+ Reorganized build system: pandoc can now be built using standard
19233 Cabal tools. It can be compiled on Windows without Cygwin.
19234 The tests can also be run without perl or unix tools.
19235+ LaTeXMathML replaces ASCIIMathML for rendering math in HTML.
19236+ Support for "displayed" math.
19237+ Common abbreviations are now handled more intelligently, with
19238 a non-breaking space (and not a sentence-ending space) after
19239 the period.
19240+ Code is -Wall clean.
19241+ Many bug fixes and small improvements. See [changelog] for
19242 full details.
19244## pandoc 0.46 (2008-01-08)
19246+ Added a `--sanitize-html` option (and a corresponding parameter
19247 in `ParserState` for those using the pandoc libraries in programs).
19248 This option causes pandoc to sanitize HTML (in HTML or Markdown
19249 input) using a whitelist method. Possibly harmful HTML elements
19250 are replaced with HTML comments. This should be useful in the
19251 context of web applications, where pandoc may be used to convert
19252 user input into HTML.
19253+ Made -H, -A, and -B options cumulative: if they are specified
19254 multiple times, multiple files will be included.
19255+ Many bug fixes and small improvements. See [changelog] for full
19256 details.
19258## pandoc 0.45 (2007-12-09)
19260+ Many bug fixes and structural improvements. See [changelog] for
19261 full details.
19262+ Improved treatment of math. Math is now rendered using unicode
19263 by default in HTML, RTF, and DocBook output. For more accurate
19264 display of math in HTML, `--gladtex`, `--mimetex`, and `--asciimathml`
19265 options are provided. See the [User's Guide](README.html#math) for
19266 details.
19267+ Removed support for box-style block quotes in markdown.
19268+ More idiomatic ConTeXt output.
19269+ Text wrapping in ConTeXt and LaTeX output.
19270+ Pandoc now correctly handles all standard line endings
19271 (CR, LF, CRLF).
19272+ New `--no-wrap` option that disables line wrapping and minimizes
19273 whitespace in HTML output.
19274+ Build process is now compatible with both GHC 6.8 and GHC 6.6.
19275 GHC and GHC_PKG environment variables may be used to specify
19276 which version of the compiler to use, when multiple versions are
19277 installed.
19279## pandoc 0.44 (2007-09-03)
19281 [ John MacFarlane ]
19283 * Fixed bug in HTML writer: when --toc was used, anchors were put around
19284 headers, which is invalid XHTML (block content within inline element).
19285 Now the anchors are put inside the header tags. Resolves Issue #23.
19287 * Added xmlns attribute to html element in html writer tests.
19288 This attribute is added by more recent versions of the
19289 xhtml library (>= 3000), and is required for valid XHTML.
19291 [ Recai Oktaş ]
19293 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
19294 command instead of 'runhaskell', which, on some platforms (such as s390,
19295 alpha, m68k), throws the following error:
19297 runhaskell Setup.hs configure --prefix=/usr
19298 ghc-6.6.1: not built for interactive use
19300 This causes a serious FTBFS bug. Closes: #440668.
19302## pandoc 0.43 (2007-09-02)
19304 [ John MacFarlane ]
19306 * The focus of this release is performance. The markdown parser
19307 is about five times faster than in 0.42, based on benchmarks
19308 with the TextMate manual.
19310 * Main.hs: Replaced CRFilter and tabFilter with single function
19311 tabFilter, which operates on the whole string rather than breaking
19312 it into lines, and handles dos-style line-endings as well as tabs.
19314 * Added separate LaTeX reader and native reader tests; removed
19315 round-trip tests.
19317 * Text.Pandoc.Shared:
19319 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
19320 + General code cleanup (to elimante warnings when compiling with -Wall.)
19321 + Added 'wrapped' function, which helps wrap text into paragraphs,
19322 using the prettyprinting library.
19323 + Rewrote charsInBalanced and charsInBalanced'.
19324 - Documented restriction: open and close must be distinct characters.
19325 - Rearranged options for greater efficiency.
19326 - Bug fix: Changed inner call to charsInBalanced inside
19327 charsInBalanced' to charsInBalanced'.
19328 + anyLine now requires that the line end with a newline (not eof).
19329 This is a harmless assumption, since we always add newlines to the
19330 end of a block before parsing with anyLine, and it yields a 10% speed
19331 boost.
19332 + Removed unnecessary 'try' in anyLine.
19333 + Removed unneeded 'try' from romanNumeral parser.
19334 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
19335 + Removed unneeded 'try' in parseFromString.
19336 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
19337 like 'string'.)
19338 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
19339 'try' is not automatically applied to the 'end' parser. Added
19340 'try' in calls to 'enclosed' where needed. Slight speed increase.
19342 * Writers:
19344 + Replaced individual wrapping routines in RST, Man, and Markdown
19345 writers with 'wrapped' from Text.Pandoc.Shared.
19346 + Rewrote LaTeX writer to use the prettyprinting library,
19347 so we get word wrapping, etc.
19348 + Modified latex writer tests for new latex writer using prettyprinter.
19349 + Fixed bug in LaTeX writer: autolinks would not cause
19350 `\usepackage{url}` to be put in the document header. Also, changes
19351 to state in enumerated list items would be overwritten.
19352 + In Markdown writer, escape paragraphs that begin with ordered list
19353 markers, so they don't get interpreted as ordered lists.
19355 * Text.Pandoc.Reades.LaTeX:
19357 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
19358 numeral after "enum" in "setcounter" would consist entirely of
19359 "i"s. 'enumiv' is legitimate.
19360 + LaTeX command and environment names can't contain numbers.
19361 + Rearranged order of parsers in inline for slight speed improvement.
19362 + Added '`' to special characters and 'unescapedChar'.
19364 * Text.Pandoc.Readers.RST:
19366 + Removed unneeded try's in RST reader; also minor code cleanup.
19367 + Removed tabchar.
19368 + Rearranged parsers in inline (doubled speed).
19370 * Text.Pandoc.Readers.Markdown:
19372 + Skip notes parsing if running in strict mode. (This yields a nice
19373 speed improvement in strict mode.)
19374 + Simplify autolink parsing code, using Network.URI to test for
19375 URIs. Added dependency on network library to debian/control and
19376 pandoc.cabal.
19377 + More perspicuous definition of nonindentSpaces.
19378 + Removed unneeded 'try' in 'rawLine'.
19379 + Combined linebreak and whitespace into a new whitespace parser, to
19380 avoid unnecessary reparsing of space characters.
19381 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
19382 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
19383 + Use lookAhead in parsers for setext headers and definition lists
19384 to see if the next line begins appropriately; if not, don't waste
19385 any more time parsing.
19386 + Don't require blank lines after code block. (It's sufficient to
19387 end code block with a nonindented line.)
19388 + Changed definition of 'emph': italics with '_' must not
19389 be followed by an alphanumeric character. This is to help
19390 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
19391 `[LC<em>TYPE]:my</em>type`.
19392 + Improved Markdown.pl-compatibility in referenceLink: the two parts
19393 of a reference-style link may be separated by one space, but not
19394 more... [a] [link], [not] [a link].
19395 + Fixed markdown inline code parsing so it better accords with
19396 Markdown.pl: the marker for the end of the code section is a clump
19397 of the same number of `'s with which the section began, followed
19398 by a non-` character. So, for example,
19399 ` h ``` i ` -> `<code>h ``` i</code>`.
19400 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
19401 rules are slightly different.
19402 + Rewrote 'para' for greater efficiency.
19403 + Rewrote link parsers for greater efficiency.
19404 + Removed redundant 'referenceLink' in definition of inline (it's
19405 already in 'link').
19406 + Refactored escapeChar so it doesn't need 'try'.
19407 + Refactored hrule for performance in Markdown reader.
19408 + More intelligent rearranging of 'inline' so that most frequently
19409 used parsers are tried first.
19410 + Removed tabchar parser, as whitespace handles tabs anyway.
19412 * Text.Pandoc.CharacterReferences:
19414 + Refactored.
19415 + Removed unnecessary 'try's for a speed improvement.
19416 + Removed unnecessary '&' and ';' from the entity table.
19418 * Build process:
19420 + Makefile: Get VERSION from cabal file, not Main.hs.
19421 + Modified MacPorts Portfile:
19422 - Depend on haddock
19423 - Build and install libraries and library documentation in
19424 addition to pandoc executable
19425 - Added template item for md5 sum in Portfile.in.
19426 - Incorporated changes from MacPorts repository (r28278).
19427 + FreeBSD port: Don't try to generate distinfo in Makefile.
19428 It can be made using 'make makesum' in FreeBSD.
19429 + Make both freebsd and macports targets depend on tarball.
19431 * Website and documentation:
19433 + Updated INSTALL instructions.
19434 + Added pandocwiki demo to website.
19435 + Removed local references to Portfile, since pandoc is now in the
19436 MacPorts repository.
19438## pandoc 0.42 (2007-08-26)
19440 [ John MacFarlane ]
19442 * Main.hs: Use utf8 conversion on the extra files loaded with
19443 the -H, -C, -B, and -A options. This fixes problems with unicode
19444 characters in these files.
19446 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
19447 Text.Pandoc.Readers.HTML and without it we get a linking error when
19448 using the library.
19450 * Markdown reader:
19452 + Added new rule for enhanced markdown ordered lists: if the list
19453 marker is a capital letter followed by a period (including a
19454 single-letter capital roman numeral), then it must be followed by
19455 at least two spaces. The point of this is to avoid accidentally
19456 treating people's initials as list markers: a paragraph might begin,
19457 "B. Russell was an English philosopher," and this shouldn't be
19458 treated as a list. Documented change in README.
19459 + Blocks that start with "p. " and a digit are no longer treated
19460 as ordered lists (it's a page number).
19461 + Added a needed 'try' to listItem.
19462 + Removed check for a following setext header in endline.
19463 A full test is too inefficient (doubles benchmark time), and the
19464 substitute we had before is not 100% accurate.
19465 + Don't use Code elements for autolinks if --strict specified.
19467 * LaTeX writer: When a footnote ends with a Verbatim environment, the
19468 close } of the footnote cannot occur on the same line or an error occurs.
19469 Fixed this by adding a newline before the closing } of every footnote.
19471 * HTML writer:
19472 + Removed incorrect "{}" around style information in HTML tables.
19473 Column widths now work properly in HTML.
19474 + If --strict option is specified (and --toc is not), don't include
19475 identifiers in headers, for better Markdown compatibility.
19477 * Build process:
19479 + Separated $(web_dest) and website targets.
19480 + In website, index.txt is now constructed from template index.txt.in.
19481 + Added freebsd target to Markefile. This creates the freebsd Makefile
19482 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
19483 from the repository.
19484 + Added macport target to Makefile. Portfile is built from template
19485 Portfile.in.
19486 + Removed OSX package targets. (Too many difficulties involving
19487 dependencies on dynamic libraries.)
19488 + More complete INSTALL instructions for all architectures.
19490 * Website:
19491 + Added a programming demo, pandocwiki.
19493 [ Recai Oktaş ]
19495 * Do not forget to close pandoc's ITP. Closes: #391666
19497## pandoc 0.41 (2007-08-19)
19499 [ John MacFarlane ]
19501 * Fixed bugs in HTML reader:
19502 + Skip material at end *only if* `</html>` is present (previously,
19503 only part of the document would be parsed if an error was
19504 found; now a proper error message is given).
19505 + Added new constant eitherBlockOrInline with elements that may
19506 count either as block-level or as inline. Modified isInline and
19507 isBlock to take this into account.
19508 + Modified rawHtmlBlock to accept any tag (even an inline tag):
19509 this is innocuous, because rawHtmlBlock is tried only if a regular
19510 inline element can't be parsed.
19511 + Added a necessary 'try' in definition of 'para'.
19513 * Fixed bug in markdown ordered list parsing. The problem was that
19514 anyOrderedListStart did not check for a space following the
19515 ordered list marker. So in 'A.B. 2007' the parser would be
19516 expecting a list item, but would not find one, causing an error.
19517 Fixed a similar bug in the RST reader. Resolves Issue #22.
19519 * Refactored RST and Markdown readers using parseFromString.
19521 * LaTeX reader will now skip anything after \end{document}.
19523 * Fixed blockquote output in markdown writer: previously, block
19524 quotes in indented contexts would be indented only in the first
19525 line.
19527 * Added note to INSTALL about variations in versions of the xhtml
19528 library that can lead to failed tests (thanks to Leif LeBaron).
19530## pandoc 0.4 (2007-01-16)
19532 [ John MacFarlane ]
19534 * Added two new output formats: groff man pages and ConTeXt. By
19535 default, output files with extensions ".ctx" and ".context" are
19536 assumed to be ConTeXt, and output files with single-digit extensions
19537 are assumed to be man pages.
19539 * Enhanced ordered lists (documented in README, under Lists):
19540 + The OrderedList block element now stores information about
19541 list number style, list number delimiter, and starting number.
19542 + The readers parse this information when possible.
19543 + The writers use this information to style ordered lists.
19544 + The enhancement can be disabled using the --strict option.
19546 * Added support for tables (with a new Table block element). Two kinds
19547 of tables are supported: a simple table with one-line rows, and a
19548 more complex variety with multiline rows. All output formats are
19549 supported, but only markdown tables are parsed at the moment. The
19550 syntax is documented in README.
19552 * Added support for definition lists (with a new DefinitionList block
19553 element). All output and input formats are supported. The syntax is
19554 documented in README.
19556 * Added support for superscripts and subscripts (with new Superscript
19557 and Subscript inline elements). All input and output
19558 formats. The syntax is documented in README.
19560 * Added support for strikeout (with a new Strikeout inline element).
19561 All input and output formats are supported. Thanks to Bradley Kuhn,
19562 who contributed a patch. The syntax is documented in README. Resolves
19563 Issue #18.
19565 * Added a --toc|--table-of-contents option. This causes an automatically
19566 generated table of contents (or an instruction that creates one) to
19567 be inserted at the beginning of the document. Not supported in S5,
19568 DocBook, or man page writers.
19570 * Modified the -m|--asciimathml option:
19572 + If an optional URL argument is provided, a link is inserted
19573 instead of the contents of the ASCIIMathML.js script.
19574 + Nothing is inserted unless the document actually contains
19575 LaTeX math.
19577 * Removed Blank block element as unnecessary.
19579 * Removed Key and Note blocks from the Pandoc data structure. All
19580 links are now stored as explicit links, and note contents are
19581 stored with the (inline) notes.
19583 + All link Targets are now explicit (URL, title) pairs; there
19584 is no longer a 'Ref' target.
19585 + Markdown and RST parsers now need to extract data from key and
19586 note blocks and insert them into the relevant inline elements.
19587 Other parsers have been simplified, since there is no longer any need
19588 to construct separate key and note blocks.
19589 + Markdown, RST, and HTML writers need to construct lists of
19590 notes; Markdown and RST writers need to construct lists of link
19591 references (when the --reference-links option is specified); and
19592 the RST writer needs to construct a list of image substitution
19593 references. All writers have been rewritten to use the State monad
19594 when state is required.
19595 + Several functions (generateReference, keyTable,
19596 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
19597 used by them) have been removed from Text.Pandoc.Shared, since
19598 they are no longer needed. New functions and data structures
19599 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
19600 added. The functions inTags, selfClosingTag, inTagsSimple, and
19601 inTagsIndented have been moved to the DocBook writer, since that
19602 is now the only module that uses them. NoteTable is now exported
19603 in Text.Pandoc.Shared.
19604 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
19605 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
19606 + Added writerNotes and writerReferenceLinks to WriterOptions.
19608 * Added Text.Pandoc module that exports basic readers, writers,
19609 definitions, and utility functions. This should export everything
19610 needed for most uses of Pandoc libraries. The haddock documentation
19611 includes a short example program.
19613 * Text.Pandoc.ASCIIMathML is no longer an exported module.
19615 * Added Text.Pandoc.Blocks module to help in printing markdown
19616 and RST tables. This module provides functions for working with
19617 fixed-width blocks of text--e.g., placing them side by side, as
19618 in a table row.
19620 * Refactored to avoid reliance on Haskell's Text.Regex library, which
19621 (a) is slow, and (b) does not properly handle unicode. This fixed
19622 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
19624 + Replaced 'gsub' with a general list function 'substitute'
19625 that does not rely on Text.Regex.
19626 + Rewrote extractTagType in HTML reader so that it doesn't use
19627 regexs.
19628 + In Markdown reader, replaced email regex test with a custom email
19629 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
19630 with a custom function isSelfClosingTag.
19631 + Modified Docbook writer so that it doesn't rely on Text.Regex for
19632 detecting 'mailto' links.
19633 + Removed escapePreservingRegex and reamped entity-handling
19634 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
19635 avoid reliance on Text.Regex (see below on character reference
19636 handling changes).
19638 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
19640 * Changed handling of XML entities. Entities are now parsed (and unicode
19641 characters returned) in the Markdown and HTML readers, rather than being
19642 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
19643 instead of entities for characters above 128. This makes the HTML and
19644 DocBook output much more readable and more easily editable.
19646 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
19647 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
19648 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
19649 Moved both functions to Text.Pandoc.Writers.Docbook.
19650 + Added characterReference parser to Text.Pandoc.CharacterReferences.
19651 This parses a string and return a unicode character.
19652 + Rewrote decodeCharacterReferences to use the new parser instead of
19653 Text.Regex.
19654 + Added new charRef parser for Markdown and HTML, which replaces the
19655 old 'entity' parser. Added '&' as a special character in Markdown reader.
19656 + Modified HTML and Markdown readers to call decodeEntities on all raw
19657 strings (e.g. authors, dates, link titles), to ensure that no
19658 unprocessed entities are included in the native representation of
19659 the document. (In the HTML reader, most of this work is done by a
19660 change in extractAttributeName.)
19661 + In XML and Markdown output, escape unicode nonbreaking space as '&nbsp;',
19662 since a unicode non-breaking space is impossible to distinguish visually
19663 from a regular space. (Resolves Issue #3.)
19664 + Removed encodeEntitiesNumerical.
19665 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
19666 slight performance boost over the old association list.
19667 + Removed unneeded decodeEntities from 'str' parser in HTML and
19668 Markdown readers.
19670 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
19671 fromUTF8, for clarity.
19673 * Replaced old haskell98 module names replaced by hierarchical module
19674 names, e.g. List by Data.List. Removed haskell98 from dependencies
19675 in pandoc.cabal, and added mtl (needed for state monad). Substituted
19676 xhtml for html.
19678 * Refactored and cleaned up character escaping in writers, using
19679 backslashEscapes and escapeStringUsing functions.
19681 * Instead of adding `\n\n` to the end of an input string in Main.hs,
19682 this is now done in the readers. This makes the libraries behave
19683 the way you'd expect from the pandoc program. Resolves Issue #10.
19685 * URLs and email addresses in autolinks are now typeset as Code.
19687 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
19688 doesn't display the whole output unless there's a line ending.
19690 * Major code cleanup in all modules, for greater consistency, concision,
19691 and readability.
19693 * HTML reader:
19695 + Fixed several bugs (extractTagType, attribute parsing).
19696 + Remove Null blocks in lists of blocks when possible.
19697 + Allow HTML comments as raw HTML inline.
19699 * Markdown reader:
19701 + Ordered list items may no longer begin with uppercase letters, or
19702 letters greater than 'n'. (This prevents first initials and page
19703 reference, e.g. 'p. 400', from being parsed as beginning lists.)
19704 Also, numbers beginning list items may no longer end with ')',
19705 which is now allowed only after letters. Note: These changes
19706 may cause documents to be parsed differently. Users should take
19707 care in upgrading.
19708 + Changed autoLink parsing to conform better to Markdown.pl's
19709 behavior. `<google.com>` is not treated as a link, but
19710 `<http://google.com>`, `<ftp://google.com>`, and
19711 `<mailto:google@google.com>` are.
19712 + Cleaned up handling of embedded quotes in link titles. Now these are
19713 stored as a '"' character, not as '&quot;'.
19714 + Use lookAhead parser for the 'first pass' (looking for reference keys),
19715 instead of parsing normally, then using setInput to reset input. This
19716 yields a slight performance boost.
19717 + Fixed several bugs in smart quote recognition.
19718 + Fixed bug in indentSpaces (which didn't properly handle
19719 cases with mixed spaces and tabs).
19720 + Consolidated 'text', 'special', and 'inline' into 'inline'.
19721 + Fixed bug which allowed URL and title to be separated by multiple blank
19722 lines in links and reference keys. They can be on separate lines but
19723 can't have blank lines between them.
19724 + Correctly handle bracketed text inside inline footnotes and links,using
19725 new function inlinesInBalanced. Resolves Issue #14.
19726 + Fixed bug in footnotes: links in footnotes were not being
19727 processed. Solution: three-stage parse. First, get all the
19728 reference keys and add information to state. Next, get all the
19729 notes and add information to state. (Reference keys may be needed
19730 at this stage.) Finally, parse everything else.
19731 + Replaced named constants like 'emphStart' with literals.
19732 + Removed an extra occurrence of escapedChar in definition of inline.
19734 * RST reader:
19736 + Allow the URI in a RST hyperlink target to start on the line
19737 after the reference key.
19738 + Added 'try' in front of 'string', where needed, or used a different
19739 parser. This fixes a bug where ````` would not be correctly parsed as
19740 a verbatim `.
19741 + Fixed slow performance in parsing inline literals in RST reader. The
19742 problem was that ``#`` was seen by 'inline' as a potential link or image.
19743 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
19744 Resolves Issue #8.
19745 + Use lookAhead instead of getInput/setInput in RST reader. Removed
19746 unneeded getState call, since lookAhead automatically saves and
19747 restores the parser state.
19748 + Allow hyperlink target URIs to be split over multiple lines, and
19749 to start on the line after the reference. Resolves Issue #7.
19750 + Fixed handling of autolinks.
19752 * LaTeX reader:
19754 + Replaced `choice [(try (string ...), ...]` idiom with `oneOfStrings`,
19755 for clarity.
19756 + Added clauses for tilde and caret. Tilde is `\ensuremath{\sim}`, and
19757 caret is `\^{}`, not `\^` as before.
19758 + Added parsing for `\url`.
19759 + Parse `\texttt{}` as code, provided there's nothing fancy inside.
19761 * HTML writer:
19763 + Modified HTML writer to use the Text.XHtml library. This results
19764 in cleaner, faster code, and it makes it easier to use Pandoc in
19765 other projects, like wikis, which use Text.XHtml. Two functions are
19766 now provided, writeHtml and writeHtmlString: the former outputs an
19767 Html structure, the latter a rendered string. The S5 writer is also
19768 changed, in parallel ways (writeS5, writeS5String).
19769 + The Html header is now written programmatically, so it has been
19770 removed from the 'headers' directory. The S5 header is still
19771 needed, but the doctype and some of the meta declarations have
19772 been removed, since they are written programmatically. This change
19773 introduces a new dependency on the xhtml package.
19774 + Fixed two bugs in email obfuscation involving improper escaping
19775 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
19776 Issue #9.
19777 + Fixed another bug in email obfuscation: If the text to be obfuscated
19778 contains an entity, this needs to be decoded before obfuscation.
19779 Thanks to thsutton for the patch. Resolves Issue #15.
19780 + Changed the way the backlink is displayed in HTML footnotes.
19781 Instead of appearing on a line by itself, it now generally
19782 appears on the last line of the note. (Exception: when the
19783 note does not end with a Plain or Para block.) This saves space
19784 and looks better.
19785 + Added automatic unique identifiers to headers:
19786 - The identifier is derived from the header via a scheme
19787 documented in README.
19788 - WriterState now includes a list of header identifiers and a table
19789 of contents in addition to notes.
19790 - The function uniqueIdentifiers creates a list of unique identifiers
19791 from a list of inline lists (e.g. headers).
19792 - This list is part of WriterState and gets consumed by blockToHtml
19793 each time a header is encountered.
19794 + Include CSS for .strikethrough class in header only if strikethrough
19795 text appears in the document.
19796 + If the 'strict' option is specified, elements that do not appear in
19797 standard markdown (like definition lists) are passed through as
19798 raw HTML.
19799 + Simplified treatment of autolinks, using pattern matching instead of
19800 conditionals.
19802 * Markdown writer:
19804 + Links in markdown output are now printed as inline links by default,
19805 rather than reference links. A --reference-links option has been added
19806 that forces links to be printed as reference links. Resolves Issue #4.
19807 + Use autolinks when possible. Instead of `[site.com](site.com)`,
19808 use `<site.com>`.
19810 * LaTeX writer:
19812 + Rewrote to use the State monad. The preamble now includes only those
19813 packages that are actually required, given the document's content.
19814 Thus, for example, if strikeout is not used, ulem is not required.
19815 Modified LaTeXHeader accordingly.
19816 + Modified LaTeX writer to insert `\,` between consecutive quotes.
19817 + Removed unused function tableRowColumnWidths.
19818 + Simplified code for escaping special characters.
19819 + Leave extra blank line after `\maketitle`.
19820 + Include empty `\author{}` when no author specified to avoid LaTeX
19821 errors.
19822 + Include fancyvrb code in header only if needed -- that is, only
19823 if there is actually code in a footnote.
19824 + Use `\url{}` for autolinks.
19825 + Include [mathletters] option in ucs package, so that basic unicode
19826 Greek letters will work correctly.
19828 * RST writer: Force blank line before lists, so that sublists will
19829 be handled correctly.
19831 * Docbook writer: Fixed a bug: email links with text, like
19832 [foo](me@bar.baz), were being incorrectly treated as autolinks.
19834 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
19835 Text.Pandoc.Shared.
19837 * Text.Pandoc.Shared:
19839 + Added defaultWriterOptions.
19840 + Added writerTableOfContents to WriterOptions.
19841 + Added writerIgnoreNotes option to WriterOptions. This is needed
19842 for processing header blocks for a table of contents, since notes on
19843 headers should not appear in the TOC.
19844 + Added prettyprinting for native Table format.
19845 + Removed some unneeded imports.
19846 + Moved escape and nullBlock parsers from
19847 Text.ParserCombinators.Pandoc, since the latter is for
19848 general-purpose parsers that don't depend on Text.Pandoc.Definition.
19849 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
19850 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
19851 writer, because HTML writer now uses these in constructing a table
19852 of contents.
19853 + Added clauses for new inline elements (Strikeout, Superscript,
19854 Subscript) to refsMatch.
19855 + Removed backslashEscape; added new functions escapeStringUsing and
19856 backslashEscapes.
19857 + Moved failIfStrict from markdown reader, since it is now used also
19858 by the HTML reader.
19859 + Added a 'try' to the definition of indentSpaces.
19860 + In definition of 'reference', added check to make sure it's not a note
19861 reference.
19862 + Added functions: camelCaseToHyphenated, toRomanNumeral,
19863 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
19864 charsInBalanced', withHorizDisplacement, romanNumeral
19865 + Fixed a bug in the anyLine parser. Previously it would parse an empty
19866 string "", but it should fail on an empty string, or we get an error
19867 when it is used inside "many" combinators.
19868 + Removed followedBy' parser, replacing it with the lookAhead parser from
19869 Parsec.
19870 + Added some needed 'try's before multicharacter parsers, especially in
19871 'option' contexts.
19872 + Removed the 'try' from the 'end' parser in 'enclosed', so that
19873 'enclosed' behaves like 'option', 'manyTill', etc.
19874 + Added lineClump parser, which parses a raw line block up to and
19875 including any following blank lines.
19876 + Renamed parseFromStr to parseFromString.
19877 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
19878 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
19879 in calling code.
19880 + Removed unneeded 'try' in blanklines.
19881 + Removed endsWith function and rewrote calling functions to use
19882 isSuffixOf instead.
19883 + Added >>~ combinator.
19884 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
19885 Space.
19887 * Refactored runtests.pl; added separate tests for tables.
19889 * Shell scripts:
19891 + Added -asxhtml flag to tidy in html2markdown. This will
19892 perhaps help the parser, which expects closing tags.
19893 + Modified markdown2pdf to run pdflatex a second time if --toc or
19894 --table-of-contents was specified; otherwise the table of
19895 contents won't appear.
19896 + Modified markdown2pdf to print a helpful message if the 'ulem'
19897 LaTeX package is required and not found.
19899 * Changes to build process:
19901 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
19902 is now required.
19903 + Removed cabalize and Pandoc.cabal.in. The repository now contains
19904 pandoc.cabal itself.
19905 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
19906 likes the cabal file to have the same name as the tarball.
19907 + Expanded and revised the package description in pandoc.cabal.
19908 Revised the package synopsis.
19909 + The tarball built by 'make tarball' now contains files built from
19910 templates (including man pages and shell scripts), so pandoc can
19911 be built directly using Cabal tools, without preprocessing.
19912 + Executable binaries are now stripped before installing.
19913 + Man pages are now generated from markdown sources, using pandoc's
19914 man page writer.
19915 + Use HTML version of README (instead of RTF) in Mac OS X installer.
19916 + Instead of testing for the existence of a pandoc symlink in build-exec,
19917 use ln -f.
19919 * Documentation:
19921 + Updated README and man pages with information on new features.
19922 + Updated INSTALL instructions with some useful clarifications and
19923 links.
19924 + Updated web content.
19926 * Added FreeBSD port.
19928 [ Recai Oktaş ]
19930 * debian/control:
19932 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
19933 libghc6-xhtml-dev. Removed libghc6-html-dev.
19934 + Suggest texlive-latex-recommended | tetex-extra instead of
19935 tetex-bin. This brings in fancyvrb and unicode support.
19938## pandoc 0.3 (2007-01-05)
19940 [ John MacFarlane ]
19942 * Changes in pandoc options:
19944 + Allow options to follow or precede arguments.
19945 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
19946 + Added '--strict' option.
19947 + Added '-o/--output' option.
19948 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
19949 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
19950 error conditions. This is helpful for writing wrappers.
19951 + Added copyright message to '-v' output, modeled after FSF messages.
19952 + Reformatted usage message so that it doesn't wrap illegibly.
19953 + Removed extra blanks after '-h' and '-D' output.
19955 * Added docbook writer.
19957 * Added implicit setting of default input and output format based
19958 on input and output filename extensions. These defaults are
19959 overridden if explicit input and output formats are specified using
19960 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
19961 and README.
19963 * Allow ordered list items to begin with (single) letters, as well
19964 as numbers. The list item marker may now be terminated either by
19965 '.' or by ')'. This extension to standard markdown is documented
19966 in README.
19968 * Revised footnote syntax. (See README for full details.) The
19969 '[^1]' format now standard in markdown extensions is supported,
19970 as are inline footnotes with this syntax: `^[My note.]`.
19971 The earlier footnote syntax `^(1)` is no longer supported.
19973 * Improved HTML representation of footnotes. All footnotes
19974 are now auto-numbered and appear in an ordered list at the
19975 end of the HTML document. Since the default appearance is now
19976 acceptable, the old footnote styles have been removed from the
19977 HTML header.
19979 * Bug fixes:
19981 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
19982 These readers ran 'runParser' on processed chunks of text to handle
19983 embedded block lists in lists and quotation blocks. But then
19984 any changes made to the parser state in these chunks was lost,
19985 as the state is local to the parser. So, for example, footnotes
19986 didn't work in quotes or list items. The fix: instead of calling
19987 runParser on some raw text, use setInput to make it the input, then
19988 parse it, then use setInput to restore the input to what it was
19989 before. This is shorter and more elegant, and it fixes the problem.
19990 + Fixed bug in notFollowedBy' combinator (adding 'try' before
19991 'parser'). Adjusted code that uses this combinator accordingly.
19992 + Fixed bug in RTF writer that caused improper indentation on
19993 footnotes occurring in indented blocks like lists.
19994 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
19995 and date are parsed correctly. Everything else in the preamble
19996 is skipped.
19997 + Modified escapedChar in LaTeX reader to allow a `\` at the end of a
19998 line to count as escaped whitespace.
19999 + Modified LaTeX reader to produce inline links rather than reference
20000 links. Otherwise, links in footnotes aren't handled properly.
20001 + Fixed handling of titles in links in Markdown reader, so that
20002 embedded quotation marks are now handled properly.
20003 + Fixed Markdown reader's handling of embedded brackets in links.
20004 + Fixed Markdown reader so that it only parses bracketed material
20005 as a reference link if there is actually a corresponding key.
20006 + Revised inline code parsing in Markdown reader to conform to
20007 markdown standard. Now any number of `s can begin inline code,
20008 which will end with the same number of `s. For example, to
20009 have two backticks as code, write ``` `` ```. Modified Markdown
20010 writer accordingly.
20011 + Fixed bug in text-wrapping routine in Markdown and RST writers.
20012 Now LineBreaks no longer cause wrapping problems.
20013 + Supported hexadecimal numerical entity references as well as
20014 decimal ones.
20015 + Fixed bug in Markdown reader's handling of underscores and other
20016 inline formatting markers inside reference labels: for example,
20017 in '[A_B]: /url/a_b', the material between underscores was being
20018 parsed as emphasized inlines.
20019 + Changed Markdown reader's handling of backslash escapes so that
20020 only non-alphanumeric characters can be escaped. Strict mode
20021 follows Markdown.pl in only allowing a select group of punctuation
20022 characters to be escaped.
20023 + Modified HTML reader to skip a newline following a `<br>` tag.
20024 Otherwise the newline will be treated as a space at the beginning
20025 of the next line.
20027 * Made handling of code blocks more consistent. Previously, some
20028 readers allowed trailing newlines, while others stripped them.
20029 Now, all readers strip trailing newlines in code blocks. Writers
20030 insert a newline at the end of code blocks as needed.
20032 * Modified readers to make spacing at the end of output more consistent.
20034 * Minor improvements to LaTeX reader:
20036 + `\thanks` now treated like a footnote.
20037 + Simplified parsing of LaTeX command arguments and options.
20038 commandArgs now returns a list of arguments OR options (in
20039 whatever order they appear). The brackets are included, and
20040 a new stripFirstAndLast function is provided to strip them off
20041 when needed. This fixes a problem in dealing with \newcommand
20042 and \newenvironment.
20044 * Revised RTF writer:
20046 + Default font is now Helvetica.
20047 + An `\f0` is added to each `\pard`, so that font resizing works
20048 correctly.
20050 * Moved handling of "smart typography" from the writers to the Markdown
20051 and LaTeX readers. This allows great simplification of the writers
20052 and more accurate smart quotes, dashes, and ellipses. DocBook can
20053 now use `<quote>`. The '--smart' option now toggles an option in
20054 the parser state rather than a writer option. Several new kinds
20055 of inline elements have been added: Quoted, Ellipses, Apostrophe,
20056 EmDash, EnDash.
20058 * Changes in HTML writer:
20060 + Include title block in header even when title is null.
20061 + Made javascript obfuscation of emails even more obfuscatory,
20062 by combining it with entity obfuscation.
20064 * Changed default ASCIIMathML text color to black.
20066 * Test suite:
20068 + Added --strip-trailing-cr option to diff in runtests.pl, for
20069 compatibility with Windows.
20070 + Added regression tests with footnotes in quote blocks and lists.
20072 * Makefile changes:
20074 + osx-pkg target creates a Mac OS X package (directory). New osx
20075 directory contains files needed for construction of the package.
20076 + osx-dmg target creates a compressed disk image containing the package.
20077 + win-pkg target creates Windows binary package.
20078 + tarball target creates distribution source tarball.
20079 + website target generates pandoc's website automatically, including
20080 demos. New 'web' directory contains files needed for construction
20081 of the website (which will be created as the 'pandoc' subdirectory
20082 of 'web').
20083 + Makefile checks to see if we're running Windows/Cygwin; if so,
20084 a '.exe' extension is added to each executable in EXECS.
20086 * Removed all wrappers except markdown2pdf and html2markdown.
20088 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
20089 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
20090 option and disables other options.
20092 * Added code to html2markdown that tries to determine the character
20093 encoding of an HTML file, by parsing the "Content-type" meta tag.
20095 + If the encoding can't be determined, then if the content is local,
20096 the local encoding is used; if it comes from a URL, UTF-8 is used
20097 by default.
20098 + If input is from STDIN, don't try to determine character encoding.
20099 + Encoding can be specified explicitly using '-e' option.
20101 * Improved warning messages in wrappers:
20103 + Print warning if iconv not available
20104 + More user-friendly error messages in markdown2pdf, when
20105 pdflatex fails.
20107 * Code cleanup:
20109 + Renamed 'Text/Pandoc/HtmlEntities' module to
20110 'Text/Pandoc/Entities'. Also changed function names so as
20111 not to be HTML-specific.
20112 + Refactored SGML string escaping functions from HTML and Docbook
20113 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
20114 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
20115 used anywhere.
20116 + Removed splitBySpace and replaced it with a general, polymorphic
20117 splitBy function.
20118 + Refactored LaTeX reader for clarity (added isArg function).
20119 + Converted some CR's to LF's in src/ui/default/print.css.
20120 + Added license text to top of source files.
20121 + Added module data for haddock to source files.
20122 + Reformatted code for consistency.
20124 * Rewrote documentation and man pages. Split README into INSTALL
20125 and README.
20127 * Split LICENSE into COPYING and COPYRIGHT.
20129 * Removed TODO, since we now maintain ToDo on the wiki.
20131 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
20132 duplication.
20134 [ Recai Oktaş ]
20136 * Revamped build process to conform to debian standards and created
20137 a proper debian package. Closes: #391666.
20139 * Modified build process to support GHC 6.6.
20141 + The package can still be compiled using GHC 6.4.2, though because
20142 of dependencies the "make deb" target works only with GHC 6.6+.
20143 + The script 'cabalize' is used to create an appropriate
20144 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
20145 Cabal versions.
20147 * Refactored template processing (fillTemplates.pl).
20149 * Modified wrapper scripts to make them more robust and portable.
20150 To avoid code duplication and ensure consistency, wrappers are
20151 generated via a templating system from templates in src/wrappers.
20153 + Wrappers now accept multiple filenames, when appropriate.
20154 + Spaces and tabs allowed in filenames.
20155 + getopts shell builtin is used for portable option parsing.
20156 + Improved html2markdown's web grabber code, making it more robust,
20157 configurable and verbose. Added '-e', '-g' options.
20160## pandoc 0.2 (2006-08-14)
20162 * Fixed unicode/utf-8 translation
20164## pandoc 0.1 (2006-08-14)
20166 * Initial creation of debian package