git.iko.soy/typeable/pandoc
on rebase-relative-paths-extension help sign in
typeable/pandoc/changelog.md
20101 lines 864 kB history raw
1# Revision history for pandoc
3## pandoc 2.14 (PROVISIONAL)
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 Text.Pandoc.Sources (exported module), with a `Sources` type and a
16 `ToSources` class. A `Sources` wraps a list of `(SourcePos, Text)` pairs
17 [API change]. A parsec `Stream` instance is provided for `Sources`. The
18 module also exports versions of parsec's `satisfy` and other Char parsers
19 that track source positions accurately from a `Sources` stream (or any
20 instance of the new `UpdateSourcePos` class).
22 * Text.Pandoc.Parsing
24 + Export the modified Char parsers defined in Text.Pandoc.Sources
25 instead of the ones parsec provides. Modified parsers to use a
26 `Sources` as stream [API change].
27 + Improve include file functions [API change]. Remove old
28 `insertIncludedFileF`. Give `insertIncludedFile` a more general type,
29 allowing it to be used where `insertIncludedFileF` was.
30 + Add parameter to the `citeKey` parser from
31 Text.Pandoc.Parsing, which controls whether the `@{..}`
32 syntax is allowed [API change].
34 * Text.Pandoc.Error: Modified the constructor `PandocParsecError` to take a
35 `Sources` rather than a `Text` as first argument, so parse error locations
36 can be accurately reported.
38 * Fix source position reporting for YAML bibliographies (#7273).
40 * Issue error message when reader or writer format is malformed
41 (#7231). Previously we exited with an error status but (due to a bug)
42 no message.
44 * Smarter smart quotes (#7216, #2103). Treat a leading `"` with no
45 closing `"` as a left curly quote. This supports the practice, in
46 fiction, of continuing paragraphs quoting the same speaker without an
47 end quote. It also helps with quotes that break over lines in line blocks.
49 * Markdown reader:
51 + Use MetaInlines not MetaBlocks for multimarkdown
52 metadata fields. This gives better results in converting to e.g.
53 pandoc markdown.
54 + Implement curly-brace syntax for Markdown citation keys (#6026).
55 The change provides a way to use citation keys that contain
56 special characters not usable with the standard citation
57 key syntax. Example: `@{foo_bar{x}'}` for the key `foo_bar{x}`.
58 It also allows separating citation keys from immediately
59 following text, e.g. `@{foo}A`.
61 * RST reader:
63 + Seek include files in the directory of the file
64 containing the include directive, as RST requires (#6632).
65 + Use `insertIncludedFile` from Text.Pandoc.Parsing
66 instead of reproducing much of its code.
68 * Org reader: Resolve org includes relative to the directory containing the
69 file containing the INCLUDE directive (#5501).
71 * ODT reader: Treat tabs as spaces (#7185, niszet).
73 * Docx reader: Add handling of vml image objects (#7257, mbrackeantidot).
75 * LaTeX reader:
77 + Improved siunitx support (#6658, #6620).
78 + Better support for `\xspace` (#7299).
80 * ConTeXt writer: improve ordered lists (#5016, Denis Maier).
81 Change ordered list from itemize to enumerate. Add new
82 itemgroup for ordered lists. Remove manual insertion of
83 width attributes. Use tabular figures in ordered list
84 enumerators.
86 * HTML reader:
88 + Don't fail on unmatched closing "script" tag (Albert Krenkel, #7282).
89 + Keep h1 tags as normal headers (#2293, Albert Krewinkel).
90 The tags `<title>` and `<h1 class="title">` often contain the same
91 information, so the latter was dropped from the document. However, as
92 this can lead to loss of information, the heading is now always
93 retained. Use `--shift-heading-level-by=-1` to turn the `<h1>`
94 into the document title, or a filter to restore the previous behavior.
96 * DocBook/JATS readers:
98 + Fix mathml regression caused by the switch in XML libraries (#7173).
99 + Fix "phrase" in DocBook: take classes from "role" not "class" (#7195).
101 * DocBook reader: ensure that first and last names are separated (#6541).
103 * Plain writer: handle superscript unicode minus (#7276).
105 * LaTeX writer:
107 + Better handling of line breaks in simple tables (#7272).
108 Now we also handle the case where they're embedded in other
109 elements, e.g. spans.
110 + For beamer output, support `exampleblock` and `alertblock` (#7278).
111 A block will be rendered as an `exampleblock` if the heading
112 has class `example` and an `alertblock` if it has class `alert`.
113 + Separate successive quote chars with thin space (#6958,
114 Albert Krewinkel). Successive quote characters are separated with
115 a thin space to improve readability and to prevent unwanted ligatures.
116 Detection of these quotes sometimes had failed if the second quote
117 was nested in a span element.
118 + Separate successive quote chars with thin space (#6958, Albert
119 Krewinkel).
121 * EPUB Writer: Fix belongs-to-collection XML id choice (#7267, nuew).
122 The epub writer previously used the same XML id for both the book
123 identifier and the epub collection. This causes an error on epubcheck.
125 * BibTeX/BibLaTeX writer: Handle `annote` field (#7266).
127 * ZimWiki writer: allow links and emphasis in headers (#6605,
128 Albert Krewinkel).
130 * ConTeXt writer:
132 + Support blank lines in line blocks (#6564, Albert Krewinkel,
133 thanks to @denismaier).
134 + Use span identifiers as reference anchors (#7246, Albert Krewinkel).
136 * HTML writer:
138 + Keep attributes from code nested below `pre` tag (#7221,
139 Albert Krewinkel). If a code block is defined with `<pre><code
140 class="language-x">…</code></pre>`, where the `<pre>` element has no
141 attributes, then the attributes from the `<code>` element are used
142 instead. Any leading `language-` prefix is dropped in the code's
143 `class` attribute are dropped to improve syntax highlighting.
144 + Ensure headings only have valid attribs in HTML4 (#5944, Albert
145 Krewinkel).
146 + Parse `<header>` as a Div (Albert Krewinkel).
148 * Org writer:
150 + Inline latex envs need newlines (#7252, tecosaur).
151 As specified in https://orgmode.org/manual/LaTeX-fragments.html, an
152 inline \begin{}...\end{} LaTeX block must start on a new line.
153 + Use LaTeX style maths deliminators (#7196, tecosaur).
155 * JATS writer (Albert Krewinkel):
157 + Use either styled-content or named-content for spans (#7211).
158 If the element has a content-type attribute, or at least one class,
159 then that value is used as `content-type` and the span is put inside
160 a `<named-content>` element. Otherwise a `<styled-content>` element
161 is used instead.
162 + Reduce unnecessary use of `<p>` elements for wrapping (#7227).
163 The `<p>` element is used for wrapping in cases were the contents
164 would otherwise not be allowed in a certain context. Unnecessary
165 wrapping is avoided, especially around quotes (`<disp-quote>` elements).
166 + Convert spans to `<named-content>` elements (#7211). Spans with
167 attributes are converted to `<named-content>` elements instead of
168 being wrapped with `<milestone-start/>` and `<milestone-end>`
169 elements. Milestone elements are not allowed in documents using the
170 articleauthoring tag set, so this change ensures the creation of valid
171 documents.
172 + Add footnote number as label in backmatter (#7210). Footnotes in the
173 backmatter are given the footnote's number as a label. The
174 articleauthoring output is unaffected from this change, as footnotes
175 are placed inline there.
176 + Escape disallows chars in identifiers. XML identifiers must start
177 with an underscore or letter, and can contain only a limited set
178 of punctuation characters. Any IDs not adhering to these rules are
179 rewritten by writing the offending characters as `Uxxxx`,
180 where `xxxx` is the character's hex code.
182 * Docx writer:
184 + Autoset table width if no column has an explicit width (Albert
185 Krewinkel).
186 + Extract Table handling into separate module (Albert Krewinkel).
187 + Support colspans and rowspans in tables (Albert Krewinkel, #6315).
188 + Support multirow table headers (Albert Krewinkel).
189 + Improve integration of settings from reference.docx (#1209).
190 This change allows users to create a reference.docx that
191 sets `w:proofState` for spelling or grammar to `dirty`,
192 so that spell/grammar checking will be triggered on the
193 generated docx.
194 + Copy over more settings from reference.docx (#7240). From settings.xml
195 in the reference-doc, we now include: `zoom`, `embedSystemFonts`,
196 `doNotTrackMoves`, `defaultTabStop`, `drawingGridHorizontalSpacing`,
197 `drawingGridVerticalSpacing`, `displayHorizontalDrawingGridEvery`,
198 `displayVerticalDrawingGridEvery`, `characterSpacingControl`,
199 `savePreviewPicture`, `mathPr`, `themeFontLang`, `decimalSymbol`,
200 `listSeparator`, `autoHyphenation`, `compat`.
201 + Set zoom to 100% by default in settings.xml.
202 + Align math options more with current Word defaults (e.g.
203 Cambria Math font).
204 + Remove `rsid`s from default settings.xml. Word will add these
205 when revisions are made.
207 * Ms writer: Handle tables with multiple paragraphs (#7288).
208 Previously they overflowed the table cell width. We now set line lengths
209 per-cell and restore them after the table has been written.
211 * Markdown writer:
213 + Use cleaner braceless syntax for code blocks with a
214 single class (#7242, Jan Tojnar).
215 + Add quotes properly in markdown YAML metadata fields (#7245).
216 This fixes a bug, which caused the writer to look at the *last*
217 rather than the *first* character in determining whether quotes
218 were needed. So we got spurious quotes in some cases and
219 didn't get necessary quotes in others.
220 + Use `@{..}` syntax for citations when needed.
221 + Use fewer unneeded escapes for `#` (see #6259).
222 + Improve escaping of `@`. We need to escape literal `@` before
223 `{` because of the new citation syntax.
225 * Commonmark writer: Use backslash escapes for `<` and `|`...
226 instead of entities (#7208).
228 * Powerpoint writer: allow `monofont` to be specified in metadata
229 (#7187).
231 * LaTeX template:
233 + Use non-starred names for xcolor color names (#6109).
234 This should make svgnames and x11names work properly.
235 + Fix bad vertical spacing after bibliography (#7234, badumont).
236 + List of figures before list of tables (#7235, Julien Dutant).
237 + Move CSL macro definitions before header-includes so they can be
238 overridden (#7286).
239 + Improve treatment of CSL `entry-spacing` (#7296).
240 Previously with the default template settings (`indent` variable
241 not set), we would get interparagraph spaces separating bib
242 entries even with `entry-spacing="0"`. On the other hand,
243 setting `entry-spacing="2"` gave ridiculously large spacing.
244 This change makes the spacing caused by `entry-spacing` a multiple
245 of `\parskip` by default, which gives aesthetically reasonable
246 output. Those who want a larger or smaller unit (e.g. because
247 they use `indent` which sets `\parskip` to 0) may
248 `\setlength{\cslentryspacingunit}{10pt}` in header-includes
249 to override the defaults.
250 + Move title, author, date up to top of preamble (#7295).
251 This allows header-includes to use them, and puts them
252 in a position where you can see them immediately.
253 + Define commands for zero width non-joiner character
254 (#6639, Albert Krewinkel). The zero-width non-joiner character
255 is used to avoid ligatures (e.g. in German).
257 * ConTeXt template: List of figures before list of tables (#7235,
258 Julien Dutant).
260 * reveal.js template:
262 + Support `toc-title` (#7171, Florian Kohrt).
263 + Use `hash: true` by default rather than `history: true` (#6968).
265 * HTML-based slide shows: add support for `institute` (#7289, Thomas
266 Hodgson).
268 * Text.Pandoc.XML.Light: add Eq, Ord instances for Content,
269 Element, Attr, CDataKind [API change].
271 * Text.Pandoc.MediaBag: change type to use a Text key instead of
272 `[FilePath]`. We normalize the path and use `/` separators for
273 consistency.
275 * Text.Pandoc.Class.PandocMonad: Use `fetchItem` instead of `downloadOrRead`
276 in `fetchMediaResource`.
278 * Text.Pandoc.Asciify: simplify code and export `toAsciiText` [API change].
279 Instead of encoding a giant (and incomplete) map, we now
280 just use unicode-transforms to normalize the text to
281 a canonical decomposition, and manipulate the result.
283 * App: allow tabs expansion even if file-scope is used (Albert Krewinkel,
284 #6709). Tabs in plain-text inputs are now handled correctly, even if
285 the `--file-scope` flag is used.
287 * Add new internal module Text.Pandoc.Writers.GridTable (Albert Krewinkel).
289 * Text.Pandoc.Highlighting: Change type of `languagesByExtension`, adding
290 a parameter for a `SyntaxMap` [API change] (Jan Tojnar, #7241).
291 Languages defined using `--syntax-definition` were not recognized by
292 `languagesByExtension`. This patch corrects that, allowing the writers
293 to see all custom definitions. The LaTeX writer still uses the default
294 syntax map, but that's okay in that context, since
295 `--syntax-definition` won't create new listings styles.
297 * Text.Pandoc.Citeproc:
299 + Ensure that CSL-related attributes are passed on to a Div
300 with id 'refs'. Otherwise things like `entry-spacing`
301 won't work when such Divs are used.
302 + Use metadata's `lang` for the lang parameter of citeproc, overriding
303 `localeLanguage`.
305 * Remove Text.Pandoc.BCP47 module [API change].
306 Use types and functions from UnicodeCollation.Lang instead.
307 This is a richer implementation of BCP 47.
309 * Text.Pandoc.Shared:
311 + Fix regression in grid tables for wide characters (#7214).
312 In the translation from String to Text, a char-width-sensitive
313 `splitAt'` was dropped. This commit reinstates it and uses it to make
314 `splitTextByInstances` char-width sensitive.
315 + Add `getLang` (formerly in the now-removed BCP47) [API change].
317 * Text.Pandoc.SelfContained: use `application/octet-stream`
318 for unknown mime types instead of halting with an error (#7202).
320 * Lua filters: respect Inlines/Blocks filter functions in `pandoc.walk_*`
321 (Albert Krewinkel).
323 * Add text as build-depend for trypandoc (#7193, Roman Beránek).
325 * Use citeproc 0.4.
327 * Use texmath 0.12.3.
329 * Allow attoparsec 0.14.x.
331 * Require latest skylighting (fixes a bug in XML syntax highlighting).
333 * Use latest xml-conduit.
335 * MANUAL:
337 + Add information about `lang` and bibliography sorting.
338 + Add info about YAML escape sequences, link to spec (#7152,
339 Albert Krewinkel).
340 + Note that `institute` variable works for HTML-based slides.
341 + Update documentation on citation syntax.
343 * Updated and fixed typos in documentation (Charanjit Singh,
344 Anti-Distinctlyminty, Tatiana Porras, obcat).
346 * Add instructions for installing pandoc-types before compiling filter.
348 * INSTALL: add note that parallel installations should be avoided
349 (#6865).
351 * Remove `biblatex-nussbaum.md` test. It is basically the same
352 as `biblaetx-quotes.md`.
355## pandoc 2.13 (2021-03-21)
357 * Support `yaml_metadata_block` extension for `commonmark`, `gfm` (#6537).
358 This supported is a bit more limited than with pandoc's
359 `markdown`. The YAML block must be the first thing in the input,
360 and the leaf notes are parsed in isolation from the rest of
361 the document. So, for example, you can't use reference
362 links if the references are defined later in the document.
364 * Fix fallback to default partials when custom templates are used.
365 If the directory containing a template does not contain the partial,
366 it should be sought in the default templates, but this was not
367 working properly (#7164).
369 * Handle `nocite` better with `--biblatex` and `--natbib` (#4585).
370 Previously the nocite metadata field was ignored with these formats.
371 Now it populates a `nocite-ids` template variable and causes a
372 `\nocite` command to be issued.
374 * Text.Pandoc.Citeproc: apply `fixLinks` correctly (#7130). This is code
375 that incorporates a prefix like `https://doi.org/` into a following link
376 when appropriate.
378 * Text.Pandoc.Shared:
380 + Remove `backslashEscapes`, `escapeStringUsing` [API change]. Replace
381 these inefficient association list lookups with more efficient escaping
382 functions in the writers that used them (for a 10-25% performance boost
383 in org, haddock, rtf, texinfo writers).
384 + Remove `ToString`, `ToText` typeclasses [API change]. These were needed
385 for the transition from String to Text, but they are no longer used and
386 may clash with other things.
387 + Simplify `compactDL`.
389 * Text.Pandoc.Parsing:
391 + Change type of `readWithM` so that it is no longer polymorphic
392 [API change]. The `ToText` class has been removed, and now that we've
393 completed the transition to Text we no longer need this to operate
394 on Strings.
395 + Remove `F` type synonym [API change]. Muse and Org were defining their
396 own `F` anyway.
398 * Text.Pandoc.Readers.Metadata:
400 + Export `yamlMetaBlock` [API change].
401 + Make `yamlBsToMeta`, `yamlBsToRefs` polymorphic on the parser state
402 [API change].
404 * Markdown reader: Fix regression with `tex_math_backslash` (#7155).
406 * MediaWiki reader: Allow block-level content in notes (ref) (#7145).
408 * Jira reader (Albert Krewinkel):
410 + Fixed parsing of autolinks (i.e., of bare URLs in the text).
411 Previously an autolink would take up the rest of a line, as spaces
412 were allowed characters in these items.
413 + Emoji character sequences no longer cause parsing failures. This was
414 due to missing backtracking when emoji parsing fails.
415 + Mark divs created from panels with class "panel".
417 * RST reader: fix logic for ending comments (#7134). Previously comments
418 sometimes got extended too far.
420 * DocBook writer: include Header attributes as XML attributes on
421 section (Erik Rask). Attributes with key names that are not allowed
422 as XML attributes are dropped, as are attributes with invalid values
423 and `xml:id` (DocBook 5) and `id` (DocBook 4).
425 * Docx writer:
427 + Make `nsid` in `abstractNum` deterministic. Previously we assigned
428 a random number, but we don't need random values, so now we just
429 assign a value based on the list marker.
430 + Use integral values for `w:tblW` (#7141).
432 * Jira writer (Albert Krewinkel):
434 + Block quotes are only rendered as `bq.` if they do not contain a
435 linebreak.
436 + Jira writer: improve div/panel handling. Include div attributes in
437 panels, always render divs with class `panel` as panels, and
438 avoid nesting of panels.
440 * HTML writer: Add warnings on duplicate attribute values.
441 This prevents emitting invalid HTML. Ultimately it would be good to
442 prevent this in the types themselves, but this is better for now.
444 * Org writer: Prevent unintended creation of ordered list items (#7132,
445 Albert Krewinkel). Adjust line wrapping if default wrapping would cause
446 a line to be read as an ordered list item.
448 * JATS templates: support 'equal-contrib' attrib for authors (Albert
449 Krewinkel). Authors who contributed equally to a paper may be marked
450 with `equal-contrib`.
452 * reveal.js template: replace JS comment with HTML (#7154, Florian Kohrt).
454 * Text.Pandoc.Logging: Add `DuplicateAttribute` constructor to `LogMessage`.
455 [API change]
457 * Use `-j4` for linux release build. This speeds up the build dramatically
458 on arm.
460 * cabal.project: remove ghcoptions. Move flags to top level, so they can
461 be set differently on the command line.
463 * Require latest texmath, skylighting, citeproc, jira-wiki-markup.
464 (The latest skylighting fixes a bad bug with Haskell syntax highlighting.)
465 Narrow version bounds for texmath, skylighting, and citeproc, since
466 the test output depend on them.
468 * Use doclayout 0.3.0.2. This significantly reduces the time and memory
469 needed to compile pandoc.
471 * Use `foldl'` instead of `foldl` everywhere.
473 * Update bounds for random (#7156, Alexey Kuleshevich).
475 * Remove uses of some partial functions.
477 * Don't bake in a larger stack size for the executable.
479 * Test improvements:
481 + Use `getExecutablePath` from base, avoiding the dependency on
482 `executable-path`.
483 + Factor out `setupEnvironment` in Helpers, to avoid code duplication.
484 + Fix finding of data files by setting teh `pandoc_datadir` environment
485 variable when we shell out to pandoc. This avoids the need to use
486 `--data-dir` for the tests, which caused problems finding `pandoc.lua`
487 when compiling without the `embed_data_files` flag (#7163).
489 * Benchmark improvements:
491 + Build `+RTS -A8m -RTS` into default ghc-options for benchmark.
492 This is necessary to get accurate benchmark results; otherwise we
493 are largely measuring garbage collecting, some not related to the
494 current benchmark.
495 + Allow specifying BASELINE file in 'make bench' for comparison
496 (otherwise the latest benchmark is chosen by default).
497 + Force `readFile` in benchmarks early (Bodigrim).
499 * CONTRIBUTING: suggest using a `cabal.project.local` file (#7153,
500 Albert Krewinkel).
502 * Add ghcid-test to Makefile. This loads the test suite in ghcid.
505## pandoc 2.12 (2021-03-08)
507 * `--resource-path` now accumulates if specified multiple
508 times (#6152). Resource paths specified later on the command line are
509 prepended to those specified earlier. Thus,
510 `--resource-path foo --resource-path bar:baz` is equivalent to
511 `--resource-path bar:bas:foo`. (The previous behavior was
512 for the last `--resource-path` to replace all the rest.)
513 `resource-path` in defaults files behaves the same way: it
514 will be prepended to the resource path set by earlier
515 command line options or defaults files. This change
516 facilitates the use of multiple defaults files: each can
517 specify a directory containing resources it refers to
518 without clobbering the resource paths set by the others.
520 * Allow defaults files to refer to the home directory, the
521 user data directory, and the directory containing the defaults file
522 itself (#5871, #5982, #5977). In fields that expect file paths
523 (and only in these fields),
525 + `${VARIABLE}` will expand to the value of the environment variable
526 `VARIABLE` (and in particular `${HOME}` will expand to the path
527 of the home directory). A warning will be raised for undefined
528 variables.
529 + `${USERDATA}` will expand to the path of the user data
530 directory in force when the defaults file is being processed.
531 + `${.}` will expand to the directory containing the defaults file.
532 (This allows default files to be placed in a directory containing
533 resources they make use of.)
535 * When downloading content from URL arguments, be sensitive to
536 the character encoding (#5600). We can properly handle UTF-8 and latin1
537 (ISO-8859-1); for others we raise an error. Fall back to latin1 if
538 no charset is given in the mime type and UTF-8 decoding fails.
540 * Allow abbreviations that don't end in a period to be
541 specified using `--abbreviations` (#7124).
543 * Add new unexported module Text.Pandoc.XML.Light, as well
544 as Text.Pandoc.XML.Light.Types, Text.Pantoc.XML.Light.Proc,
545 Text.Pandoc.XML.Light.Output. (Closes #6001, #6565, #7091).
547 This module exports definitions of `Element` and `Content`
548 that are isomorphic to xml-light's, but with Text
549 instead of String. This allows us to keep most of the code in existing
550 readers that use xml-light, but avoid lots of unnecessary allocation.
552 We also add versions of the functions from xml-light's
553 Text.XML.Light.Output and Text.XML.Light.Proc that operate on our
554 modified XML types, and functions that convert xml-light types to our
555 types (since some of our dependencies, like texmath, use xml-light).
557 We export functions that use xml-conduit's parser to produce an
558 `Element` or `[Content]`. This allows existing pandoc code to use
559 a better parser without much modification.
561 The new parser is used in all places where xml-light's parser was
562 previously used. Benchmarks show a significant performance improvement
563 in parsing XML-based formats (with docbook, opml, jats, and docx
564 almost twice as fast, odt and fb2 more than twice as fast).
566 In addition, the new parser gives us better error reporting than
567 xml-light. We report XML errors, when possible, using the new
568 `PandocXMLError` constructor in `PandocError`.
570 These changes revealed the need for some changes in the tests. The
571 docbook-reader.docbook test lacked definitions for the entities it used;
572 these have been added. And the docx golden tests have been updated,
573 because the new parser does not preserve the order of attributes.
575 * DocBook reader:
577 + Avoid expensive tree normalization step, as it is not necessary
578 with the new XML parser.
579 + Support `informalfigure` (#7079) (Nils Carlson).
581 * Docx reader:
583 + Use Map instead of list for Namespaces. This gives a speedup of
584 about 5-10%. With this and the XML parsing changes, the docx reader
585 is now about twice as fast as in the previous release.
587 * HTML reader:
589 + Small performance tweaks.
590 + Also, remove exported class `NamedTag(..)` [API change]. This was just
591 intended to smooth over the transition from String to Text and is no
592 longer needed.
593 + As a result, the functions `isInlineTag` and `isBlockTag`
594 are no longer polymorphic; they apply to a `Tag Text` [API change].
595 + Do a lookahead to find the right parser to use. This takes
596 benchmarks from 34ms to 23ms, with less allocation.
597 + Fix bad handling of empty `src` attribute in `iframe` (#7099).
598 If `src` is empty, we simply skip the `iframe`.
599 If `src` is invalid or cannot be fetched, we issue a warning
600 nd skip instead of failing with an error.
602 * JATS reader:
604 + Avoid tree normalization, which is no longer necessary given the
605 new XML parser.
607 * LaTeX reader:
609 + Don't export `tokenize`, `untokenize` [API change]. These are internal
610 implementation details, which were only exported for testing.
611 They don't belong in the public API.
612 + Improved efficiency of the parser. With these changes the reader
613 is almost twice as fast as in the last release in our benchmarks.
614 + Code cleanup, removing some unnecessary things.
615 + Rewrite `withRaw` so it doesn't rely on fragile assumptions
616 about token positions (which break when macros are expanded)
617 (#7092). This requires the addition of `sEnableWithRaw` and
618 `sRawTokens` in `LaTeXState`, and a new combinator `disablingWithRaw`
619 to disable collecting of raw tokens in certain contexts.
620 Add `parseFromToks` to Text.Pandoc.Readers.LaTeX.Parsing.
621 Fix parsing of single character tokens so it doesn't mess
622 up the new raw token collecting. These changes slightly increase
623 allocations and have a small performance impact.
624 + Handle some bibtex/biblatex-specific commands that used to be
625 dealt with in pandoc-citeproc (#7049).
626 + Optimize `satisfyTok`, avoiding unnecessary macro expansion steps.
627 Benchmarks after this change show 2/3 of the run time and 2/3 of the
628 allocation of the Feb. 10 benchmarks.
629 + Removed `sExpanded` in state. This isn't actually needed and checking
630 it doesn't change anything.
631 + Improve `braced'`. Remove the parameter, have it parse the
632 opening brace, and make it more efficient.
633 + Factor out pieces of the LaTeX reader to make the module smaller.
634 This reduces memory demands when compiling. Created
635 Text.Pandoc.Readers.{LaTeX,Math,Citation,Table,Macro,Inline}.
636 Changed Text.Pandoc.Readers.LaTeX.SIunitx to export a command map
637 instead of individual commands.
638 + Handle table cells containing `&` in `\verb` (#7129).
640 * Make Text.Pandoc.Readers.LaTeX.Types an unexported module [API change].
642 * Markdown reader:
644 + Improved handling of mmd link attributes in references (#7080).
645 Previously they only worked for links that had titles.
646 + Improved efficiency of the parser (benchmarks show a 15% speedup).
648 * OPML reader:
650 + Avoid tree normalization, which is no longer necessary with the
651 new XML parser.
653 * ODT reader:
655 + Finer-grained errors on parse failure (#7091).
656 + Give more information if the zip container can't be unpacked.
658 * Org reader:
660 + Support `task_lists` extension (Albert Krewinkel, #6336).
661 + Fix bug in org-ref citation parsing (Albert Krewinkel, #7101).
662 The org-ref syntax allows to list multiple citations separated by
663 comma. Previously commas were accepted as part of the citation id,
664 so all citation lists were parsed as one single citation.
666 * RST reader:
668 + Use `getTimestamp` instead of `getCurrentTime` to fetch timestamp.
669 Setting `SOURCE_DATE_EPOCH` will allow reproducible builds.
670 + RST reader: fix handling of header in CSV tables (#7064).
671 The interpretation of this line is not affected by the delim option.
673 * Jira reader:
675 + Modified the Doc parser to skip leading blank lines. This fixes
676 parsing of documents which start with multiple blank lines (Albert
677 Krewinkel, #7095).
678 + Prevent URLs within link aliases to be treated as autolinks (Albert
679 Krewinkel, #6944).
681 * Text.Pandoc.Shared
683 + Remove formerly exported functions that are no longer used in the
684 code base: `splitByIndices`, `splitStringByIndicies`, `substitute`,
685 and `underlineSpan` (which had been deprecated in April 2020)
686 [API change].
687 + Export `handleTaskListItem` (Albert Krewinkel) [API change].
688 + Change `defaultUserDataDirs` to `defaultUserDataDir` [API
689 change]. We determine what is the default user data directory
690 by seeing whether the XDG directory and/or legacy
691 directory exist.
693 * BibTeX writer:
695 + BibTeX writer: use doclayout and doctemplate. This change allows
696 bibtex/biblatex output to wrap as other formats do,
697 depending on the settings of `--wrap` and `--columns` (#7068).
699 * CSL JSON writer:
701 + Output `[]` if no references in input, instead of raising a
702 PandocAppError as before.
704 * Docx writer:
706 + Use `getTimestamp` instead of `getCurrentTime` for timestamp.
707 Setting `SOURCE_DATE_EPOCH` will allow reproducible builds.
709 * EPUB writer:
711 + Use `getTimestamp` instead of `getCurrentTime` for timestamp.
712 Setting `SOURCE_DATE_EPOCH` will allow reproducible builds (#7093).
713 This does not suffice to fully enable reproducible in EPUB, since
714 a unique id is still being generated for each build.
715 + Support `belongs-to-collection` metadata (#7063) (Nick Berendsen).
717 * JATS writer:
719 + Escape special chars in reference elements (Albert Krewinkel).
720 Prevents the generation of invalid markup if a citation element
721 contains an ampersand or another character with a special meaning
722 in XML.
724 * Jira writer:
726 + Use Span identifiers as anchors (Albert Krewinkel).
727 + Use `{noformat}` instead of `{code}` for unknown languages (Albert
728 Krewinkel). Code blocks which are not marked as a language supported
729 by Jira are rendered as preformatted text via `{noformat}` blocks.
731 * LaTeX writer:
733 + Adjust hypertargets to beginnings of paragraphs (#7078).
734 Use `\vadjust pre` so that the hypertarget takes you to the beginning
735 of the paragraph rather than one line down.
736 This makes a particular difference for links to citations using
737 `--citeproc` and `link-citations: true`.
738 + Change BCP47 lang tag from `jp` to `ja` (Mauro Bieg, #7047).
739 + Use function instead of map for accent lookup (should be
740 more efficient).
741 + Split the module to make it easier to compile on low-memory
742 systems: added Text.Pandoc.Writers.LaTeX.{Util,Citation,Lang}.
744 * Markdown writer:
746 + Handle math right before digit. We insert an HTML comment to
747 avoid a `$` right before a digit, which pandoc will not recognize
748 as a math delimiter.
749 + Split the module to make it easier to compile on low-memory
750 systems: added Text.Pandoc.Writers.Markdown.{Types,Inline}.
752 * ODT writer:
754 + Use `getTimestamp` instead of `getCurrentTime` for timestamp.
755 Setting `SOURCE_DATE_EPOCH` will allow reproducible builds.
756 + Update default ODT style (Lorenzo). Previously, the "First paragraph"
757 style inherited from "Standard" but not from "Text body." Now
758 it is adjusted to inherit from "Text body", to avoid some ugly
759 spacing issues. It may be necessary to update a custom `reference.odt`
760 in light of this change.
762 * Org writer:
764 + Support `task_lists` extension (Albert Krewinkel, #6336).
766 * Pptx writer:
768 + Use `getTimestamp` instead of `getCurrentTime` for timestamp.
769 Setting `SOURCE_DATE_EPOCH` will allow reproducible builds.
771 * JATS templates: tag `author.name` as `string-name` (Albert Krewinkel).
772 The partitioning the components of a name into surname, given names,
773 etc. is not always possible or not available. Using `author.name`
774 allows to give the full name as a fallback to be used when
775 `author.surname` is not available.
777 * Add default templates for bibtex and biblatex, so that
778 the variables `header-include`, `include-before`, `include-after`
779 (or alternatively the command line options
780 `--include-in-header`, `--include-before-body`, `--include-after-body`)
781 may be used.
783 * LaTeX template:
785 + Update to iftex package (#7073) (Andrew Dunning)
786 + Wrap url colours in braces (#7121) (Loïc Grobol).
788 * revealjs template: Add 'center' option for vertical slide centering.
789 (maurerle, #7104).
791 * Text.Pandoc.XML: Improve efficiency of `fromEntities`.
793 * Text.Pandoc.MIME
795 + Add exported function `getCharset` [API change].
797 * Text.Pandoc.UTF8: change IO functions to return Text, not String
798 [API change]. This affects `readFile`, `getContents`, `writeFileWith`,
799 `writeFile`, `putStrWith`, `putStr`, `putStrLnWith`, `putStrLn`.
800 `hPutStrWith`, `hPutStr`, `hPutStrLnWith`, `hPutStrLn`, `hGetContents`.
801 This avoids the need to uselessly create a linked list of characters
802 when emiting output.
804 * Text.Pandoc.App
806 + Add `parseOptionsFromArgs` [API change, new exported function].
807 + Add fields for CSL options to `Opt` [API change]:
808 `optCSL`, `optbibliography`, `optCitationAbbreviations`.
810 * Text.Pandoc.Citeproc.BibTeX
812 + `Text.Pandoc.Citeproc.writeBibTeXString` now returns
813 `Doc Text` instead of `Text` (#7068).
814 + Correctly handle `pages` (= `page` in CSL) (#7067).
815 + Correctly handle BibLaTeX `langid` (= `language` in CSL, #7067).
816 + In BibTeX output, protect foreign titles since there's no language
817 field (#7067).
818 + Clean up BibTeX parsing (#7049). Previously there was a messy code
819 path that gave strange results in some cases, not passing through raw
820 tex but trying to extract a string content. This was an artefact of
821 trying to handle some special bibtex-specific commands in the BibTeX
822 reader. Now we just handle these in the LaTeX reader and simplify
823 parsing in the BibTeX reader. This does mean that more raw tex will
824 be passed through (and currently this is not sensitive to the
825 `raw_tex` extension; this should be fixed).
827 * Text.Pandoc.Citeproc.MetaValue
829 + Correctly parse "raw" date value in markdown references metadata.
830 (See jgm/citeproc#53.)
832 * Text.Pandoc.Citeproc
834 + Use https URLs for links (Salim B, #7122).
836 * Text.Pandoc.Class
838 + Add `getTimestamp` [API change]. This attempts to read the
839 `SOURCE_DATE_EPOCH` environment variable and parse a UTC time
840 from it (treating it as a unix date stamp, see
841 https://reproducible-builds.org/specs/source-date-epoch/). If the
842 variable is not set or can't be parsed as a unix date stamp, then the
843 function returns the current date.
845 * Text.Pandoc.Error
847 + Add `PandocUnsupportedCharsetError` constructor for
848 `PandocError` [API change].
849 + Export `renderError` [API change].
850 + Refactor `handleError` to use `renderError`. This allows us render
851 error messages without exiting.
853 * Text.Pandoc.Extensions
855 + `Ext_task_lists` is now supported by org (and turned
856 on by default) (Albert Krewinkel, #6336).
857 + Remove `Ext_fenced_code_attributes` from allowed commonmark attributes
858 (#7097). This attribute was listed as allowed, but it didn't actually
859 do anything. Use `attributes` for code attributes and more.
861 * Lua subsystem:
863 + Always load built-in Lua scripts from default data-dir (Albert
864 Krewinkel). The Lua modules `pandoc` and `pandoc.List` are now always
865 loaded from the system's default data directory. Loading from a
866 different directory by overriding the default path, e.g. via
867 `--data-dir`, is no longer supported to avoid unexpected behavior
868 and to address security concerns.
869 + Add module "pandoc.path" (Albert Krewinkel, #6001, #6565).
870 The module allows to work with file paths in a convenient and
871 platform-independent manner.
872 + Use strict evaluation when retrieving AST value from the stack
873 (Albert Krewinkel, #6674).
875 * Text.Pandoc.PDF
877 + Disable `smart` extension when building PDF via LaTeX.
878 This is to prevent accidental creation of ligatures like
879 `` ?` `` and `` !` `` (especially in languages with quotations like
880 German), and similar ligature issues. (See jgm/citeproc#54.)
882 * Text.Pandoc.CSV:
884 + Fix parsing of unquoted values (#7112). Previously we didn't allow
885 unescaped quotes in unquoted values, but they are allowed
886 in CSV.
888 * Test suite:
890 + Use a more robust method for testing the executable. Many
891 of our tests require running the pandoc executable. This
892 is problematic for a few different reasons. First,
893 cabal-install will sometimes run the test suite after
894 building the library but before building the executable,
895 which means the executable isn't in place for the tests.
896 One can work around that by first building, then building
897 and running the tests, but that's fragile. Second, we
898 have to find the executable. So far, we've done that using
899 a function `findPandoc` that attempts to locate it
900 relative to the test executable (which can be located
901 using findExecutablePath). But the logic here is delicate
902 and work with every combination of options. To solve both
903 problems, we add an `--emulate` option to the
904 `test-pandoc` executable. When `--emulate` occurs as the
905 first argument passed to `test-pandoc`, the program simply
906 emulates the regular pandoc executable, using the rest of
907 the arguments (after `--emulate`). Thus, `test-pandoc
908 --emulate -f markdown -t latex` is just like `pandoc -f
909 markdown -t latex`. Since all the work is done by library
910 functions, implementing this emulation just takes a couple
911 lines of code and should be entirely reliable. With this
912 change, we can test the pandoc executable by running the
913 test program itself (locatable using `findExecutablePath`)
914 with the `--emulate` option. This removes the need for the
915 fragile `findPandoc` step, and it means we can run our
916 integration tests even when we're just building the
917 library, not the executable. [Note: part of this change
918 involved simplifying some complex handling to set
919 environment variables for dynamic library paths. I have
920 tested a build with `--enable-dynamic-executable`, and it
921 works, but further testing may be needed.]
922 + Print accurate location if a test fails (Albert
923 Krewinkel). Ensures that tasty-hunit reports the location
924 of the failing test instead of the location of the helper
925 `test` function.
927 * Documentation: Update URLs and use `https` where possible (#7122,
928 Salim B).
930 * Add `doc/libraries.md`, a description of libraries that support pandoc.
932 * MANUAL.txt
934 + MANUAL: block-level formatting is not allowed in line blocks (#7107).
935 + Clarify `tex_math_dollars` extension. Note that no blank lines
936 are allowed between the delimiters in display math.
937 + Add MANUAL section on reproducible builds.
938 + Document no template fallback for absolute path (#7077, Nixon
939 Enraght-Moony.)
940 + Improve docs for cite-method.
941 + Update README and man page.
943 * Makefile: in `make bench`, create CSV files for comparison and compare
944 against previous benchmark run. Add timestamp to CSV filenames.
946 * cabal.project: don't explicitly set -trypandoc.
947 If we do, this can't be overridden on the cabal command line.
949 * doc/lua-filters.md: improve documentation for
950 `pandoc.mediabag.insert`, `pandoc.mediabag.fetch`,
951 `directory`, `normalize` (Albert Krewinkel).
953 * Allow base64-bytestring-1.2.* (Dmitrii Kovanikov)
955 * Require jira-wiki-markup 1.3.3 (Albert Krewinkel)
957 * Require citeproc 0.3.0.8, which correctly titlecases when titles
958 contain non-ASCII characters.
960 * Use skylighting 0.10.4. This version of skylighting uses xml-conduit
961 rather than hxt. This speeds up parsing of XML syntax definitions
962 fourfold, and removes four packages from pandoc's dependency graph:
963 hxt-charproperties, hxt-unicode, hxt-regex-xmlschema, hxt.
965 * Add script `tools/parseTimings.pl` to help pin down which
966 modules take the most time and memory to compile.
968 * Avoid unnecessary use of NoImplicitPrelude pragma (#7089) (Albert
969 Krewinkel)
971 * Benchmarks
973 + Use the lighter-weight tasty-bench instead of criterion.
974 + Run writer benchmarks for binary formats too.
975 + Alphabetize benchmarks.
976 + Don't run benchmarks for bibliography formats
977 (yet; we need a special input for them).
978 + Show allocation data
979 + Clean up benchmark code.
980 + Allow specifying patterns using `-p blah'.
982 * trypandoc: add 2 second timeout.
984 * Use `-split-sections` in creating linux release binary.
985 This reduces executable size significantly (by about 30%).
987 * Remove `weigh-pandoc`. It's not really useful any more, now that our
988 regular benchmarks include data on allocation.
990 * Improve linux package build process and add script to
991 automate building an arm64 binary package.
994## pandoc 2.11.4 (2021-01-22)
996 * Add `biblatex`, `bibtex` as output formats (closes #7040).
998 * Recognize more extensions as markdown by default (#7034):
999 `mkdn`, `mkd`, `mdwn`, `mdown`, `Rmd`.
1001 * Implement defaults file inheritance (#6924, David Martschenko).
1002 Allow defaults files to inherit options from other defaults files by
1003 specifying them with the following syntax:
1004 `defaults: [list of defaults files or single defaults file]`.
1006 * Fix infinite HTTP requests when writing epubs from URL source (#7013).
1007 Due to a bug in code added to avoid overwriting the cover image
1008 if it had the form `fileX.YYY`, pandoc made an endless sequence
1009 of HTTP requests when writing epub with input from a URL.
1011 * Org reader:
1013 + Allow multiple pipe chars in todo sequences (Albert Krewinkel, #7014).
1014 Additional pipe chars, used to separate "action" state from "no further
1015 action" states, are ignored. E.g., for the following sequence, both
1016 `DONE` and `FINISHED` are states with no further action required:
1017 `#+TODO: UNFINISHED | DONE | FINISHED`.
1018 + Restructure output of captioned code blocks (Albert Krewinkel, #6977).
1019 The Div wrapper of code blocks with captions now has the class
1020 "captioned-content". The caption itself is added as a Plain block
1021 inside a Div of class "caption". This makes it easier to write filters
1022 which match on captioned code blocks. Existing filters will need to be
1023 updated.
1024 + Mark verbatim code with class `verbatim` (Dimitri Sabadie, #6998).
1026 * LaTeX reader:
1028 + Handle `filecontents` environment (#7003).
1029 + Put contents of unknown environments in a Div when `raw_tex` is not
1030 enabled (#6997). (When `raw_tex` is enabled, the whole environment is
1031 parsed as a raw block.) The class name is the name of the environment.
1032 Previously, we just included the contents without the surrounding Div,
1033 but having a record of the environment's boundaries and name can be
1034 useful.
1036 * Mediawiki reader:
1038 + Allow space around storng/emph delimiters (#6993).
1040 * New module Text.Pandoc.Writers.BibTeX, exporting
1041 writeBibTeX and writeBibLaTeX. [API change]
1043 * LaTeX writer:
1045 + Revert table line height increase in 2.11.3 (#6996).
1046 In 2.11.3 we started adding `\addlinespace`, which produced less dense
1047 tables. This wasn't an intentional change; I misunderstood a comment in
1048 the discussion leading up to the change. This commit restores the earlier
1049 default table appearance. Note that if you want a less dense table, you
1050 can use something like `\def\arraystretch{1.5}` in your header.
1052 * EPUB writer:
1054 + Adjust internal links to identifiers defined in raw HTML sections
1055 after splitting into chapters (#7000).
1056 + Recognize `Format "html4"`, `Format "html5"` as raw HTML.
1057 + Adjust internal links to images, links, and tables after splitting into
1058 chapters. Previously we only did this for Div and Span and Header
1059 elements (see #7000).
1061 * Ms writer:
1063 + Don't justify text inside table cells.
1065 * JATS writer:
1067 + Use `<element-citation>` if `element_citations`
1068 extension is enabled (Albert Krewinkel).
1069 + Fix citations (Albert Krewinkel, #7018). By default
1070 we use formatted citations.
1071 + Ensure that `<disp-quote>` is always wrapped in `<p>` (#7041).
1073 * Markdown writer:
1075 + Cleaned up raw formats. We now react appropriately
1076 to `gfm`, `commonmark`, and `commonmark_x` as raw formats.
1078 * RST writer:
1080 + Fix bug with dropped content from inside spans with a class in
1081 some cases (#7039).
1083 * Docx writer:
1085 + Handle table header using styles (#7008). Instead of hard-coding
1086 the border and header cell vertical alignment, we now let this
1087 be determined by the Table style, making use of Word's
1088 "conditional formatting" for the table's first row. For
1089 headerless tables, we use the tblLook element to tell Word
1090 not to apply conditional first-row formatting.
1092 * Commonmark writer:
1094 + Implement start number on ordered lists (#7009). Previously they always
1095 started at 1, but according to the spec the start number is respected.
1097 * HTML writer:
1099 + Fix implicit_figure at end of footnotes (#7006).
1101 * ConTeXt template: Remove `\setupthinrules` from default template.
1102 The width parameter this used is not actually supported,
1103 and the command didn't do anything.
1105 * Text.Pandoc.Extensions:
1107 + Add `Ext_element_citations` constructor (Albert Krewinkel).
1109 * Text.Pandoc.Citeproc.BibTeX: New unexported function
1110 `writeBibtexString`.
1112 * Text.Pandoc.Citeproc:
1114 + Use finer grained imports (Albert Krewinkel).
1115 + Factor out and export `getStyle` [API change].
1116 + Export `getReferences` [API change, #7106].
1117 + Factor out getLang.
1119 * Text.Pandoc.Parsing: modify `gridTableWith'` for headerless tables.
1120 If the table lacks a header, the header row should be an empty
1121 list. Previously we got a list of empty cells, which caused
1122 an empty header to be emitted instead of no header. In LaTeX/PDF
1123 output that meant we got a double top line with space between.
1125 * ImageSize: use `viewBox` for SVG if no length, width attributes (#7045).
1126 This change allows pandoc to extract size information from more SVGs.
1128 * Add simple default.nix.
1130 * Use commonmark 0.1.1.3.
1132 * Use citeproc 0.3.0.5.
1134 * Update default CSL to use latest chicago-author-date.csl.
1136 * CONTRIBUTING.md: add note on GNU xargs.
1138 * MANUAL.txt:
1140 + Update description of `-L`/`--lua-filter`.
1141 + Document use of citations in note styles (#6828).
1143## pandoc 2.11.3.2 (2020-12-29)
1145 * HTML reader: use renderTags' from Text.Pandoc.Shared (Albert Krewinkel).
1146 A side effect of this change is that empty `<col>` elements are written
1147 as self-closing tags in raw HTML blocks.
1149 * Asciidoc writer: Add support for writing nested tables (#6972, timo-a).
1150 Asciidoc supports one level of nesting. If deeper tables are to be
1151 written, they are omitted and a warning is issued.
1153 * Docx writer: fix nested tables with captions (#6983).
1154 Previously we got unreadable content, because docx seems
1155 to want a `<w:p>` element (even an empty one) at the end of
1156 every table cell.
1158 * Powerpoint writer: allow arbitrary OOXML in raw inline elements
1159 (Albert Krewinkel). The raw text is now included verbatim in the
1160 output. Previously is was parsed into XML elements, which prevented
1161 the inclusion of partial XML snippets.
1163 * LaTeX writer: support colspans and rowspans in tables (#6950,
1164 Albert Krewinkel). Note that the multirow package is needed for
1165 rowspans. It is included in the latex template under a variable,
1166 so that it won't be used unless needed for a table.
1168 * HTML writer: don't include p tags in CSL bibliography entries
1169 (#6966). Fixes a regression in 2.11.3.
1171 * Add `meta-description` variable to HTML templates (#6982). This
1172 is populated by the writer by stringifying the `description`
1173 field of metadata (Jerry Sky). The `description` meta tag will
1174 make the generated HTML documents more complete and SEO-friendly.
1176 * Citeproc: fix handling of empty URL variables (`DOI`, etc.).
1177 The `linkifyVariables` function was changing these to links
1178 which then got treated as non-empty by citeproc, leading
1179 to wrong results (e.g. ignoring nonempty URL when empty DOI is present).
1180 See jgm/citeproc#41.
1182 * Use citeproc 0.3.0.3. Fixes an issue in author-only citations when
1183 both an author and translator are present, and an issue with
1184 citation group delimiters.
1186 * Require texmath 0.12.1. This improves siunitx support in math,
1187 fixes bugs with `\*mod` family operators and arrays, and avoids
1188 italicizing symbols and operator names in docx output.
1190 * Ensure that the perl interpreter used for filters with `.pl`
1191 extension (wuffi).
1193 * MANUAL: note that textarea content is never parsed as Markdown
1194 (Albert Krewinkel).
1197## pandoc 2.11.3.1 (2020-12-18)
1199 * Added some missing files to extra-source-files and data
1200 files, so they are included in the sdist tarball. Closes #6961.
1201 Cleaned up some extraneous data and test files, and added
1202 a CI check to ensure that the test and data files included
1203 in the sdist match what is in the git repository.
1205 * Use citeproc 0.3.0.1, which avoids removing nonbreaking
1206 space at the end of the `initialize-with` attribute. (Some
1207 journals require nonbreaking space after initials, and this
1208 makes that possible.)
1210## pandoc 2.11.3 (2020-12-17)
1212 * With `--bibliography` (or `bibliography` in metadata), a
1213 URL may now be provided, and pandoc will fetch the resource.
1214 In addition, if a file path is provided and it is not
1215 found relative to the working directory, the resource
1216 path will be searched (#6940).
1218 * Add `sourcepos` extension for `commonmark`, `gfm`, `commonmark_x`
1219 (#4565). With the `sourcepos` extension set set, `data-pos`
1220 attributes are added to the AST by the commonmark reader. No other
1221 readers are affected. The `data-pos` attributes are put on elements
1222 that accept attributes; for other elements, an enlosing Div or Span
1223 is added to hold the attributes.
1225 * Change extensions for `commonmark_x`: replace `auto_identifiers`
1226 with `gfm_auto_identifiers` (#6863). `commonmark_x` never actually
1227 supported `auto_identifiers` (it didn't do anything), because the
1228 underlying library implements gfm-style identifiers only. Attempts
1229 to add the `auto_identifiers` extension to `commonmark` will now
1230 fail with an error.
1232 * HTML reader:
1234 + Split module into several submodules (Albert Krewinkel). Reducing
1235 module size should reduce memory use during compilation.
1236 + Support advanced table features (Albert Krewinkel):
1237 block level content in captions, row and colspans,
1238 body headers, row head columns, footers, attributes.
1239 + Disable round-trip testing for tables. Information for cell
1240 alignment in a column is not preserved during round-trips (Albert
1241 Krewinkel).
1242 + Allow finer grained options for tag omission (Albert Krewinkel).
1243 + Simplify list attribute handling (Albert Krewinkel).
1244 + Pay attention to `lang` attributes on body element (#6938).
1245 These (as well as `lang` attributes on the html element) should update
1246 lang in metadata.
1247 + Retain attribute prefixes and avoid duplicates (#6938).
1248 Previously we stripped attribute prefixes, reading `xml:lang` as
1249 `lang` for example. This resulted in two duplicate `lang`
1250 attributes when `xml:lang` and `lang` were both used. This commit
1251 causes the prefixes to be retained, and also avoids invald
1252 duplicate attributes.
1254 * Commonmark reader:
1256 + Refactor `specFor`.
1257 + Set input name to `""` to avoid clutter in sourcepos output.
1259 * Org reader:
1261 + Parse `#+LANGUAGE` into `lang` metadata field (#6845, Albert
1262 Krewinkel).
1263 + Preserve targets of spurious links (#6916, Albert
1264 Krewinkel). Links with (internal) targets that the reader doesn't
1265 know about are converted into emphasized text. Information on the
1266 link target is now preserved by wrapping the text in a Span of class
1267 `spurious-link`, with an attribute `target` set to the link's
1268 original target. This allows to recover and fix broken or unknown
1269 links with filters.
1271 * DocBook reader:
1273 + Table text width support (#6791, Nils Carlson).
1274 Table width in relation to text width is not natively supported
1275 by docbook but is by the docbook `fo` stylesheets through an XML
1276 processing instruction, `<?dbfo table-width="50%"?>`.
1278 * LaTeX reader:
1280 + Improve parsing of command options (#6869, #6873).
1281 In cases where we run into trouble parsing inlines til the
1282 closing `]`, e.g. quotes, we return a plain string with the
1283 option contents. Previously we mistakenly included the brackets
1284 in this string.
1285 + Preserve center environment (#6852, Igor Pashev).
1286 The contents of the `center` environment are put in a `Div`
1287 with class `center`.
1288 + Don't parse `\rule` with width 0 as horizontal rule. These are
1289 sometimes used as spacers in LaTeX.
1290 + Don't apply theorem default styling to a figure inside (#6925).
1291 If we put an image in italics, then when rendering to Markdown
1292 we no longer get an implicit figure.
1294 * Dokuwiki reader:
1296 + Handle unknown interwiki links better (#6932).
1297 DokuWiki lets the user define his own Interwiki links. Previously
1298 pandoc reacted to these by emitting a google search link, which is
1299 not helpful. Instead, we now just emit the full URL including the
1300 wikilink prefix, e.g. `faquk>FAQ-mathml`. This at least gives users
1301 the ability to modify the links using filters.
1303 * Markdown writer:
1305 + Properly handle boolean values in writing YAML metadata (#6388).
1306 + Ensure that a new csl-block begins on a new line (#6921).
1307 This just looks better and doesn't affect the semantics.
1309 * RST writer:
1311 + Better image handling (#6948). An image alone in its paragraph
1312 (but not a figure) is now rendered as an independent image, with an
1313 `alt` attribute if a description is supplied. An inline image that
1314 is not alone in its paragraph will be rendered, as before, using a
1315 substitution. Such an image cannot have a "center", "left", or
1316 "right" alignment, so the classes `align-center`, `align-left`, or
1317 `align-right` are ignored. However, `align-top`, `align-middle`,
1318 `align-bottom` will generate a corresponding `align` attribute.
1320 * Docx writer:
1322 + Keep raw openxml strings verbatim (#6933, Albert Krewinkel).
1323 + Use Content instead of Element. This allows us to inject
1324 raw OpenXML into the document without reparsing it into an
1325 Element, which is necessary if you want to inject an open
1326 tag or close tag.
1327 + Fix bullets/lists indentation, so that the first level is slightly
1328 indented to the right instead of right on the margin (cholonam).
1329 + Support bold and italic in "complex script" (#6911).
1330 Previously bold and italics didn't work properly in LTR
1331 text. This commit causes the w:bCs and w:iCs attributes
1332 to be used, in addition to w:b and w:i, for bold and
1333 italics respectively.
1335 * ICML writer:
1337 + Fix image bounding box for custom widths/heighta (Mauro Bieg, #6936).
1339 * LaTeX writer:
1341 + Improve table spacing (#6842, #6860).
1342 Remove the `\strut` that was added at the end of minipage
1343 environments in cells. Replace `\tabularnewline` with
1344 `\\ \addlinespace`.
1345 + Improve calculation of column spacing (#6883).
1346 + Extract table handling into separate module (Albert Krewinkel).
1347 + Fix bug with nested `csl-` display Spans (#6921).
1348 + Improve longtable output (#6883). Don't create minipages for
1349 regular paragraphs. Put width and alignment information in the
1350 longtable column descriptors.
1352 * OpenDocument writer:
1354 + Support for table width as a percentage of text width
1355 (#6792, Nils Carson).
1356 + Implement Div and Span ident support (#6755, Nils Carson).
1357 Spans and Divs containing an ident in the Attr will become bookmarks
1358 or sections with idents in OpenDocument format.
1359 + Add two extensions, `xrefs_name` and `xrefs_number` (#6774, Nils
1360 Carlson). Links to headings, figures and tables inside the
1361 document are substituted with cross-references that will use the
1362 name or caption of the referenced item for `xrefs_name` or the
1363 number for `xrefs_number`. For the `xrefs_number` to be useful
1364 heading numbers must be enabled in the generated document and
1365 table and figure captions must be enabled using for example the
1366 `native_numbering` extension. In order for numbers and reference
1367 text to be updated the generated document must be refreshed.
1369 * JATS writer:
1371 + Support advanced table features (Albert Krewinkel).
1372 + Support author affiliations (#6687, Albert Krewinkel).
1374 * Docbook writer:
1376 + Use correct id attribute consistently (Jan Tojnar).
1377 DocBook5 should always use `xml:id` instead of `id`.
1378 + Handle admonition titles better (Jan Tojnar).
1379 Docbook reader produces a `Div` with `title` class for `<title>`
1380 element within an “admonition” element. Markdown writer then turns
1381 this into a fenced div with `title` class attribute. Since fenced
1382 divs are block elements, their content is recognized as a
1383 paragraph by the Markdown reader. This is an issue for Docbook
1384 writer because it would produce an invalid DocBook document from
1385 such AST – the `<title>` element can only contain “inline”
1386 elements. Handle this special case separately by unwrapping
1387 the paragraph before creating the `<title>` element.
1388 + Add XML namespaces to top-level elements (#6923, Jan Tojnar).
1389 Previously, we only added `xmlns` attributes to chapter
1390 elements, even when running with `--top-level-division=section`.
1391 These namespaces are now added to part and section elements too,
1392 when they are the selected top-level divisions.
1393 We do not need to add namespaces to documents produced with
1394 `--standalone` flag, since those will already have xmlns attribute on
1395 the root element in the template.
1397 * HTML writer:
1399 + Fix handling of nested `csl-` display spans (#6921).
1400 Previously inner Spans used to represent CSL display attributes were
1401 not rendered as div tags as intended.
1403 * EPUB writer:
1405 + Include title page in landmarks (#6919).
1406 Note that the toc is also included if `--toc` is specified.
1407 + Add frontmatter type on body element for nav.xhtml (#6918).
1409 * EPUB templates: use preserveAspectRatio="xMidYMid" for cover image (#6895,
1410 Shin Sang-jae). This change affects both the epub2 and the epub3
1411 templates. It avoids distortion of the cover image by requiring that the
1412 aspect ratio be preserved.
1414 * LaTeX template:
1416 + Include `csquotes` package if `csquotes` variable set.
1417 + Put back `amssymb`. We need it for checkboxes in todo lists,
1418 and maybe for other things. In this location it seems compatible
1419 with the cases that prompted #6469 and PR #6762.
1420 + Disable language-specific shorthands in babel (#6817, #6887).
1421 Babel defines "shorthands" for some languages, and these can
1422 produce unexpected results. For example, in Spanish, `1.22`
1423 gets rendered as `122`, and `et~al.` as `etal`.
1424 One would think that babel's `shorthands=off` option (which
1425 we were using) would disable these, but it doesn't. So we
1426 remove `shorthands=off` and add some code that redefines
1427 the shorthands macro. Eventually this will be fixed in babel,
1428 I hope, and we can revert to something simpler.
1430 * JATS template: allow array of persistent institute ids in `pid`
1431 (Albert Krewinkel).
1433 * Text.Pandoc.Parsing: minor code and efficiency improvements.
1435 * Text.Pandoc.Extension:
1437 + Add `Ext_sourcepos` constructor for `Extension` [API change].
1438 + Add `Ext_xrefs_name` and `Ext_xrefs_number` constructors for
1439 `Extension` (Nils Carson) [API change].
1441 * Text.Pandoc.Citeproc:
1443 + Fix truncation of `[Citation]` list in `Cite` inside footnotes (#6890).
1444 This affected author-in-text citations in footnotes. It didn't cause
1445 problems for the printed output, but for filters that expected the
1446 citation id and other information.
1447 + Allow the use of both inline and external references (#6951),
1448 as with pandoc-citeproc. References defined in the document's
1449 metadata take priority over references with the same id defined in
1450 an external bibliography.
1451 + Use `fetchItem` to get external bibliography (#6940).
1452 + Ensure that BCP47 lang codes can be used. We ignore the variants
1453 and just use the base lang code and country code when passing off
1454 to citeproc.
1455 + Citeproc BibTeX parser: revert change in `getRawField`
1456 which was made (for reasons forgotten) when transferring
1457 this code from pandoc-citeproc. The change led to `--` in
1458 URLs being interpreted as en-dashes, which is unwanted (#6874).
1460 * Text.Pandoc.ImageSize:
1462 + Default to DPI 72 if the format specifies DPI of 0 (#6880).
1463 This shouldn't happen, in general, but it can happen with
1464 JPEGs that don't conform to the spec. Having a DPI of 0
1465 will blow up size calculations (division by 0).
1466 + ImageSize: use JuicyPixels to determine size for png, jpeg, and
1467 gif, instead of doing our own binary parsing (#6936). This
1468 gives more reliable results.
1470 * Text.Pandoc.CSS:
1472 + Remove `foldOrElse` (internal module) (Albert Krewinkel).
1474 * Use skylighting 0.10.2 (#6625).
1476 * Use citeproc 0.3. This fixes issues with references with
1477 duplicate ids (jgm/citeproc#36).
1479 * Use doctemplates 0.9. This fixes issues with boolean
1480 metadata values in the Markdown writer (#6388)
1481 and in `meta-json` (#6650). It also fixes
1482 issues with nested for loops in templates.
1484 * Add translations zh-Hans.yaml and zh-Hant.yaml (#6904, #6909,
1485 Kolen Cheung, taotieren).
1487 * Add tests: True to cabal.project.
1488 This fixes some CI failures for cabal.
1490 * Normalize test/tables/*.native (#6888, Kolen Cheung).
1492 * Move executable to `app` directory to avoid problems with cabal repl.
1494 * CONTRIBUTING: add section "How can I help?" (#6892, Albert Krewinkel).
1495 Also adds a paragraph aimed at highlighting the importance of feature
1496 maintenance.
1498 * MANUAL: Document that --number-sections works in `ms` (#6935).
1501## pandoc 2.11.2 (2020-11-19)
1503 * Default to using ATX (`##`-style) headings for Markdown output
1504 (#6662, Aner Lucero). Previously we used Setext (underlined) headings
1505 by default for levels 1--2.
1507 * Add option `--markdown-headings=atx|setext`, and deprecate
1508 `--atx-headers` (#6662, Aner Lucero).
1510 * Support `markdown-headings` in defaults files.
1512 * Fix corner case in YAML metadata parsing (#6823). Previously YAML
1513 metadata would sometimes not get recognized if a field ended with a
1514 newline followed by spaces.
1516 * `--self-contained`: increase coverage (#6854).
1517 Previously we only self-contained attributes for certain tag names
1518 (`img`, `embed`, `video`, `input`, `audio`, `source`, `track`,
1519 `section`). Now we self-contain any occurrence of `src`,
1520 `data-src`, `poster`, or `data-background-image`, on any tag; and
1521 also `href` on `link` tags.
1523 * Markdown reader:
1525 + Fix detection of locators following in-text citations.
1526 Prevously, if we had `@foo [p. 33; @bar]`, the `p. 33` would be
1527 incorrectly parsed as a prefix of `@bar` rather than a suffix of
1528 `@foo`.
1529 + Improve period suppression algorithm for citations in notes
1530 in note citation styles (#6835).
1531 + Don't increment `stateNoteNumber` for example list references.
1532 This helps with #6836 (a bug in which example list references
1533 disturb calculation of citation note number and affect when
1534 `ibid` is triggered).
1536 * LaTeX reader:
1538 + Move `getNextNumber` from Readers.LaTeX to Readers.LaTeX.Parsing.
1539 + Fix negative numbers in siunitx commands. A change in pandoc 2.11
1540 broke negative numbers, e.g. `\SI{-33}{\celcius}` or `\num{-3}`.
1541 This fixes the regression.
1543 * DocBook reader: drop period in formalpara title
1544 and put it in a div with class `formalpara-title`, so that
1545 people can reformat with filters (#6562).
1547 * Man reader: improve handling of `.IP` (#6858). We now better handle
1548 `.IP` when it is used with non-bullet, non-numbered lists, creating a
1549 definition list. We also skip blank lines like groff itself.
1551 * Bibtex reader: fall back on `en-US` if locale for LANG not found.
1552 This reproduces earlier pandoc-citeproc behavior (jgm/citeproc#26).
1554 * JATS writer:
1556 + Wrap all tables (Albert Krewinkel).
1557 All `<table>` elements are put inside `<table-wrap>` elements, as the
1558 former are not valid as immediate child elements of `<body>`.
1559 + Move Table handling to separate module (Albert Krewinkel).
1560 Adds two new unexported modules:
1561 Text.Pandoc.Writers.JATS.Types, Text.Pandoc.Writers.JATS.Table.
1563 * Org writer:
1565 + Replace org #+KEYWORDS with #+keywords (TEC).
1566 As of ~2 years ago, lower case keywords became the standard (though
1567 they are handled case insensitive, as always).
1568 + Update org supported languages and identifiers according to the
1569 current list contained in
1570 <https://orgmode.org/worg/org-contrib/babel/languages/index.html>
1571 (TEC).
1573 * Only use `filterIpynbOutput` if input format is ipynb (#6841).
1574 Before this change content could go missing from divs with class
1575 `output`, even when non-ipynb was being converted.
1577 * When checking reader/writer name, check base name now that we permit
1578 extensions on formats other than markdown.
1580 * Text.Pandoc.PDF: Fix `changePathSeparators` for Windows (#6173).
1581 Previously a path beginning with a drive, like `C:\foo\bar`, was
1582 translated to `C:\/foo/bar`, which caused problems.
1583 With this fix, the backslashes are removed.
1585 * Text.Pandoc.Logging:
1587 + Add constructor `ATXHeadingInLHS` to `LogMessage` [API change].
1588 + Add constructor `EnvironmentVariableUndefined` to
1589 `LogMessage` [API change].
1591 * Fix error that is given when people specify `doc` output (#6834,
1592 gison93).
1594 * LaTeX template: add a `\break` after parbox in `CSLRightInline`.
1595 This should fix spacing problems between entries with numeric styles.
1596 Also fix number of params on `CSLReferences`.
1598 * reveal.js template: Put quotes around `controlsLayout`,
1599 `controlsBackArrows`, and `display`, since these require strings.
1600 Add `showSlideNumber`, `hashOneBasedIndex`, `pause`.
1602 * Use citeproc 0.2. This fixes a bug with title case around parentheses.
1604 * pandoc.cabal: remove 'static' flag.
1605 This isn't really necessary and can be misleading (e.g. on macOS,
1606 where a fully static build isn't possible). cabal's new option
1607 `--enable-executable-static` does the same. On stack you can add
1608 something like this to the options for your executable in package.yaml:
1610 ld-options: -static -pthread
1612 * Remove obsolete bibutils flag setting in `linux/make_artifacts.sh`.
1614 * Manual:
1616 + Correct `link-citation` -> `link-citations`.
1617 + Add a sentence about `pagetitle` for HTML (#6843, Alex Toldaiev).
1619 * INSTALL.md: Remove references to `pandoc-citeproc` (#6857).
1621 * CONTRIBUTING: describe hlint and how it's used (#6840, Albert
1622 Krewinkel).
1624## pandoc 2.11.1.1 (2020-11-07)
1626 * Citeproc: improve punctuation in in-text note citations (#6813).
1627 Previously in-text note citations inside a footnote would sometimes have
1628 the final period stripped, even if it was needed (e.g. on the end of
1629 'ibid').
1631 * Use citeproc 0.1.1.1. This improves the decision about when
1632 to use `ibid` in cases where citations are used inside
1633 a footnote (#6813).
1635 * Support `nocase` spans for `csljson` output.
1637 * Require latest commonmark, commonmark-extensions.
1638 This fixes a bug with `autolink_bare_uris` and commonmark.
1640 * LaTeX reader: better handling of `\\` inside math in table cells (#6811).
1642 * DokuWiki writer: translate language names for code elements
1643 and improve whitespace (#6807).
1645 * MediaWiki writer: use `syntaxhighlight` tag instead of deprecated
1646 `source` for highlighted code (#6810). Also support `startFrom`
1647 attribute and `numberLines`.
1649 * Lint code in PRs and when committing to master (#6790,
1650 Albert Krewinkel).
1652 * doc/filters.md: describe technical details of filter invocations (#6815,
1653 Albert Krewinkel).
1656## pandoc 2.11.1 (2020-11-03)
1658 * DocBook Reader: fix duplicate bibliography bug (#6773, Nils Carlson).
1660 * HTML reader:
1662 + Parse contents of iframes (#6770).
1663 + Parse inline svg as image unless `raw_html` is set in the reader (in
1664 which case the svg is passed through as raw HTML) (#6770).
1666 * LaTeX reader:
1668 + Fix bug parsing macro arguments (#6796). If `\cL` is
1669 defined as `\mathcal{L}`, and `\til` as `\tilde{#1}`, then
1670 `\til\cL` should expand to `\tilde{\mathcal{L}}`, but
1671 pandoc was expanding it to `\tilde\mathcal{L}`. This is
1672 fixed by parsing the arguments in "verbatim mode" when the
1673 macro expands arguments at the point of use.
1674 + Properly support optional (cite) argument for
1675 `\blockquote` from `csquotes` (#6802).
1677 * LaTeX writer: Improved calculation of table column widths.
1678 We now have LaTeX do the calculation, using `\tabcolsep`.
1679 So we should now have accurate relative column widths no
1680 matter what the text width. The default template has been modified to load
1681 the calc package if tables are used.
1683 * HTML writer: Fix duplicate "class" attribute for table
1684 rows (Andy Morris).
1686 * Text.Pandoc.Filter: allow shorter YAML representation of Citeproc
1687 (Albert Krewinkel). The map-based YAML representation of filters expects
1688 `type` and `path` fields. The path field had to be present for all filter
1689 types, but is not used for citeproc filters. The field can now be omitted
1690 when type is "citeproc", as described in the MANUAL.
1692 * Text.Pandoc.Error: Add `PandocBibliographyError` constructor
1693 for `PandocError` [API change]. This ensures that bibliography parsing
1694 errors generate messages that include the bibliography file name --
1695 otherwise it can be quite mysterious where it is coming from.
1697 * Citeproc: properly handle `csl` field with `data:` URI (#6783).
1698 This is used with the JATS writer, so this fixes a regression
1699 in pandoc 2.11 with JATS output and citeproc.
1701 * Allow `citation-abbreviations` in defaults file.
1703 * JATS templates: ensure `jats_publishing` output is valid
1704 (Albert Krewinkel).
1706 * LaTeX template: Fix `CSLRightInline`, so that it does not
1707 run over the right margin.
1709 * HTML template: default CSS tweaks (Mauro Bieg and John
1710 MacFarlane).
1712 - Fix margin before codeblock
1713 - Add `monobackgroundcolor` variable, making the background color
1714 and padding of code optional.
1715 - Ensure that backgrounds from highlighting styles take precedence over
1716 monobackgroundcolor
1717 - Remove list markers from TOC
1718 - Add margin-bottom where needed
1719 - Remove italics from blockquote styling
1720 - Change borders and spacing in tables to be more consistent with other
1721 output formats
1722 - Style h5, h6
1723 - Set font-size for print media to 12pt.
1724 - Reduce interline space.
1725 - Reduce interparagraph space.
1726 - Reduce line width.
1727 - Remove the special `line-height: 1` for table cells.
1728 - Remove the special line-height for pre.
1729 - Ensure that there is a bit more space before a heading
1730 than after.
1731 - Slightly reduced space after title header.
1732 - Add CSS example to MANUAL
1734 * man template: Change comment that triggers `tbl` from
1735 `.\"t` to `'\" t`, as specified in groff_man(7) (#6803).
1737 * Use latest commonmark, commonmark-extensions.
1738 This fixes a bug with nested blocks in footnotes with the
1739 `footnote` extension to `commonmark`. See jgm/commonmark-hs#63.
1741 * Citeproc: use comma for in-text citations inside footnotes.
1742 When an author-in-text citation like `@foo` occurs in a footnote,
1743 we now render it with: `AUTHOR NAME + COMMA + SPACE + REST`.
1744 Previously we rendered: `AUTHOR NAME + SPACE + "(" + REST + ")"`.
1745 This gives better results. Note that normal citations are still
1746 rendered in parentheses.
1748 * Use latest citeproc:
1750 + citeproc no longer capitalizes notes, so we do it
1751 in pandoc when appropriate.
1752 + Closes #6783.
1754 * Clarify manual on `--track-changes` (#6801).
1756 * Add `doc/jats.md` to document pandoc's handling of JATS
1757 (#6794, Albert Krewinkel).
1759 * Fix code example in lua-filters.md (#6795).
1761## pandoc 2.11.0.4 (2020-10-21)
1763 * Commonmark writer: fix regression with fenced divs (#6768).
1764 Starting with 2.10.1, fenced divs no longer render with
1765 HTML div tags in commonmark output. This is a regression
1766 due to our transition from cmark-gfm. This commit fixes it.
1768 * Use released version of citeproc. (This fixes a mis-step
1769 in the 2.11.0.3 release, which is now deprecated.)
1771 * Use latest sylighting, with support for `groovy`.
1773 * Document that --html-q-tags requires the smart extension on the reader
1774 (#6766).
1776## pandoc 2.11.0.3 (2020-10-20)
1778 * Use latest citeproc (closes #6765). This fixes a problem with
1779 author-in-text citations for references including both an author
1780 and an editor. Previously, both were included in the text, but only
1781 the author should be.
1783 * With `--citeproc`, ensure that the final period is removed when
1784 citations that occur in notes in note-based styles get put in
1785 parentheses. See jgm/citeproc#20.
1787 * Normalize rewritten image paths with `--extract-media` (#6761).
1788 This change will avoid mixed paths like this one when
1789 `--extract-media` is used with a Word file:
1790 `![](C:\Git\TIJ4\Markdown/media/image30.wmf)`. Instead we'll get
1791 `![](C:\Git\TIJ4\Markdown`media`image30.wmf)`.
1793 * Modify `--version` output. Use space more efficiently and report the
1794 citeproc and ipynb versions, along with skylighting, texmath, and
1795 pandoc-types. Drop the word "default" before "user data directory."
1797 * DocBook reader: bibliomisc and anchor support (#6754, Nils Carlson).
1798 Also ensure that bibliodiv without a title no longer results in
1799 an empty Header.
1801 * ConTeXt template: adds `\setupinterlinespace` to fonts larger
1802 than normal (#6763, Denis Maier).
1804 * LaTeX template: Do not load amssymb if not needed (#6469, Angelo Peronio).
1805 See <https://tex.stackexchange.com/a/549938>.
1807 * Relax upper bound on hslua, allow hslua-1.3.* (Albert Krewinkel).
1809 * MANUAL:
1811 + Improve explanation of "indent" variable (#6767, Cyrus Yip).
1812 + Remove org from list of input formats supporting raw_tex (#6753,
1813 Nick Fleisher).
1816## pandoc 2.11.0.2 (2020-10-15)
1818 * Fix handling of `xdata` in bibtex/biblatex bibliographies (#6752).
1820 * Fix some small typos in the API documentation (#6751, Michael Hoffmann).
1822 * Require citeproc 0.1.0.2. This fixes a regression from pandoc-citeproc
1823 involving spacing between components of a reference in certain styles
1824 (e.g. `cell.csl`).
1826 * Fix typos in comments, doc strings, error messages, and tests
1827 (Albert Krewinkel, #6738).
1829## pandoc 2.11.0.1 (2020-10-13)
1831 * LaTeX reader: support more acronym commands (#6746):
1832 `\acl`, `\aclp`, and capitalized versions of already
1833 supported commands.
1835 * Commonmark reader: add `pipe_table` extension *after* defaults (#6739).
1836 Otherwise we get bad results for non-table, non-paragraph
1837 lines containing pipe characters.
1839 * Markdown writer: Fix autolinks rendering for gfm (#6740).
1840 Previously, autolinks rendered as raw HTML, due to the
1841 `class="uri"` added by pandoc's markdown reader.
1843 * LaTeX writer:
1845 + Escape option values in lstlistings environment (#6742).
1846 + Fix handling of `lang` `pt-BR` (#2953). For polyglossia we now
1847 use `\setmainlanguage[variant=brazilian]{portuguese}` and for babel
1848 `\usepackage[shorthands=off,main=brazilian]{babel}`.
1850 * Depend on latest citeproc (0.1.0.1).
1852 + This fixes the citation number issue with ieee.csl and other
1853 styles that do not explicitly sort bibliographies (#6741). (Pandoc
1854 was numbering them by their order in the bibliography file,
1855 rather than the order cited, as required by the CSL spec.)
1856 + Fixes groupin/collapsing with citation items with prefixes.
1858 * default.latex: fix `CSLReference` macro definition.
1860 * Fix MANUAL.txt CSL JSON conversion examples.
1862 * Fix spelling errors in changelog, MANUAL.txt, `doc/org.md` (#6738).
1865## pandoc 2.11 (2020-10-11)
1867 * Add `--citeproc` (`-C`) option to trigger built-in citation processing.
1868 It is no longer necessary to use the external `pandoc-citeproc`
1869 filter. `--citeproc` behaves like a filter and can be positioned
1870 relative to other filters as they appear on the command line.
1872 The new built-in citation processing uses the citeproc library,
1873 a reimplementation of CSL citation processing that fixes many
1874 of the shortcomings of pandoc-citeproc. In general, citation
1875 processing should work much the same as it did with pandoc-citeproc,
1876 but with greater fidelity to CSL styles and better performance.
1877 (The tests from the pandoc-citeproc package have been carried
1878 over to pandoc.) The following differences should be noted:
1880 - At this point, only some of the writers (HTML, ms, LaTeX) properly
1881 interpret CSL display styles. You should get decent output in
1882 all formats (at least as good as with pandoc-citeproc), but
1883 indentation and block-alignment may not be right.
1885 - pandoc-citeproc searches the `~/.csl` directory for `.csl`
1886 styles. Pandoc instead searches the `csl` subdirectory of
1887 the pandoc user data directory (e.g., `~/.pandoc/csl` or
1888 `~/.local/share/pandoc/csl`). Users who already keep
1889 CSL styles in `~/.csl` may find it convenient to add a
1890 symlink.
1892 - Some of the bibliography formats supported by pandoc-citeproc (via
1893 hs-bibutils) are no longer supported: Copac, EndNote,
1894 ISI, MEDLINE, MODS, and RIS. If you use one of these formats,
1895 you may use the `bibutils` utility to convert to BibLaTeX.
1896 We now support only BibTeX, BibLaTeX, CSL JSON,
1897 and pandoc's YAML/Markdown analogue of CSL JSON.
1899 - pandoc-citeproc would always retrieve the independent parent
1900 of a dependent style by doing an HTTP request. pandoc will
1901 now first seek the independent parent locally (in the resource
1902 path or in the `csl` subdirectory of the pandoc user data
1903 directory) before resorting to HTTP. In addition, you may
1904 omit the `.csl` extension, e.g. `--csl zoology`.
1906 - Using the `--bibliography` option (or including
1907 `bibliography` in YAML metadata) no longer triggers
1908 citation processing implicitly: one must always use the
1909 `--citeproc` option if citation processing is wanted.
1911 * Add `csljson` as and input and output format. This allows pandoc
1912 to convert between `csljson` and other bibliography formats
1913 (e.g. `-f csljson -t markdown -s` or `-f bibtex -t csljson`),
1914 and to generate formatted versions of CSL JSON bibliographies
1915 (e.g., `pandoc -f csljson --citeproc pl.json -o pl.pdf`).
1917 * Added `bibtex`, `biblatex` as input formats. This allows pandoc
1918 to convert between BibLaTeX and BibTeX and other bibliography formats,
1919 and to generated formatted versions of BibTeX/BibLaTeX bibliographies
1920 (e.g., `pandoc -f biblatex --citeproc pl.bib -o pl.pdf`).
1922 * Raise informative errors when YAML metadata parsing fails (#6730).
1923 Previously the command would succeed, returning empty metadata,
1924 with no errors or warnings.
1926 * Sort languages in `--list-highlight-languages` output (#6718,
1927 Albert Krewinkel). Languages were previously sorted by their
1928 long name, which leads to unexpected results).
1930 * Add CSS to default HTML template (#6601, Mauro Bieg). This
1931 greatly improves the default typography in pandoc's HTML
1932 output. The CSS is sensitive to a number of variables
1933 (e.g. `mainfont`, `fontsize`, `linestretch`): see the manual for
1934 details. To restore the earlier, more spartan output, you can
1935 disable this with `-M document-css=false`.
1937 * Support `--toc-depth` option for ODT writer (#6696, niszet).
1939 * Fix issues with Windows UNC paths with some options (#5127).
1941 * Remove `fenced_code_blocks` and `backtick_code_blocks` from allowed
1942 `commonmark` and `gfm` extensions. These shouldn't really be counted
1943 as extensions, because they can't be disabled in commonmark.
1944 Adjust markdown writer to check for the commonmark variant in addition
1945 to extensions.
1947 * Add these extensions to `gfm` and `commonmark`:
1948 `fenced_code_blocks`, `backtick_code_blocks`, `fenced_code_attributes`.
1949 These can't really be disabled in the reader, but they need to be enabled
1950 in the writer or we just get indented code.
1952 * Make sure proper set of extensions is recognized for `commonmark_x`.
1954 * Allow `gfm_auto_identifiers`, `ascii_identifiers` extensions for `docx`.
1956 * Markdown reader:
1958 + Add `Maybe FilePath` parameter to `yamlToMeta` [API change].
1959 + Export `yamlToRefs` [API change], a version of `yamlToMeta`
1960 specialized to references.
1961 + Set `citationNoteNum` accurately in citations.
1962 + Revise abbreviation support. Don't insert a nonbreaking space after a
1963 potential abbreviation if it comes right before a note or citation.
1964 This causes problems for citeproc's moving of note citations.
1966 * LaTeX reader:
1968 + Support missing siunitx commands (#6658).
1969 + Support `squared`, `cubed`, `tothe` in siunitx (#6657).
1970 + Improved uncertainty handling in slunitx.
1971 + Factored out siunitx stuff into separate unexposed module.
1972 + Fix improper empty cell filtering (#6689, Christian Despres).
1973 + Fix parsing of "show name" in `\newtheorem` (#6734).
1974 Previously we were just treating it as a string and
1975 ignoring accents and formatting.
1976 + Prevent wrong nesting of `\multirow` and `\multicolumn` table
1977 cells (#6603, Laurent P. René de Cotret).
1978 + Table cell parser not consuming spaces correctly (#6596,
1979 Laurent P. René de Cotret).
1980 + Change `SIRange` to `SIrange` (#6617, Emerson Harkin).
1981 + Allow blank lines inside `\author` (#6324).
1983 * DocBook reader:
1985 + Don't squelch space at end of emphasis and other inline elements;
1986 instead, move it outside the element (#6719).
1987 + Implement table cell alignment (#6698, Nils Carlson).
1988 + Implement column span support for tables (#6492, Nils Carlson).
1989 + Update list of block level tags (#6610).
1992 * JATS reader:
1994 + Don't squelch space at end of emphasis and other inline elements;
1995 instead, move it outside the element (#6719).
1997 * RST reader:
1999 + Apply `.. class::` directly to following Header rather than creating
2000 a surrounding Div (#6699).
2002 * Docx reader:
2004 + Allow empty dates in comments and tracked changes (#6726, Diego
2005 Balseiro).
2007 * Markdown writer:
2009 + Be less aggressive about using quotes for YAML values,
2010 allowing e.g. a quotation mark or bracket as long as it's not at the
2011 beginning of the line.
2012 + Use double quotes for YAML metadata (#6727).
2013 + Sort YAML metadata keys in Markdown output case-insensitive.
2016 * Asciidoc writer:
2018 + Support asciidoctor's block figures (#6538, argent0).
2020 * LaTeX writer:
2022 + Fix spacing issue with list in definition list.
2023 When a list occurs at the beginning of a definition list definition,
2024 it can start on the same line as the label, which looks bad.
2025 Fix that by starting such lists with an `\item[]`.
2027 * HTML writer:
2029 + Support intermediate table headers (#5314, Albert Krewinkel).
2030 + Support attributes on all table elements (Albert Krewinkel).
2031 + Render table footers if present (#6314, Albert Krewinkel).
2032 + Fix addition of `doc-biblioentry` role.
2033 + Support colspans and rowspans in HTML tables (#6312, Albert Krewinkel).
2035 * ICML writer:
2037 + Support internal document links (#5541, Leonard Rosenthol).
2038 + Changed default link state to invisible (#6676, Leonard Rosenthol).
2040 * Docx writer:
2042 + Better handle list items whose contents are lists (#5948, Michael
2043 Hoffmann). If the first element of a bulleted or ordered list is
2044 another list, then that first item would previously disappear if the
2045 target format is docx.
2046 + Separate adjacent tables (#4315). Word combines adjacent tables,
2047 so to prevent this we insert an empty paragraph between two
2048 adjacent tables.
2050 * Org writer:
2052 + Don't force blank line after headings (#6554).
2054 * OpenDocument writer:
2056 + Implement table cell alignment (#6700 Nils Carson, Mauro Bieg).
2057 + New table cell support with row and column spans (#6682, Nils Carson).
2058 + Syntax highlighting for inline code (#6711, niszet).
2060 * Add Text.Pandoc.Citeproc module, exporting `processCitations`
2061 [API change]. This depends on several other, unexported
2062 modules under Text.Pandoc.Citeproc.
2064 * Add module Text.Pandoc.Writers.CslJson, exporting `writeCslJson`.
2065 [API change]
2067 * Add module Text.Pandoc.Readers.CslJson, exporting `readCslJson`.
2068 [API change]
2070 * Add module Text.Pandoc.Readers.BibTeX, exporting `readBibTeX` and
2071 `readBibLaTeX`. [API change]
2073 * Text.Pandoc.Filter: Add `CiteprocFilter` constructor to Filter.
2074 [API change] This runs the processCitations transformation.
2075 We need to treat it like a filter so it can be placed
2076 in the sequence of filter runs (after some, before others).
2077 In FromYAML, this is parsed from `citeproc` or `{type: citeproc}`,
2078 so this special filter may be specified either way in a defaults file
2079 (or by `citeproc: true`, though this gives no control of positioning
2080 relative to other filters).
2082 * Add new exported module Text.Pandoc.Writers.AnnotatedTable [API change]
2083 (#6655, Christian Despres). This module (which should generally
2084 be imported qualified to avoid name conflicts) provides a
2085 `Table` type that mirrors the structure of a pandoc `Table`,
2086 but with added inferred information so that the writers do not have to
2087 lay out tables themselves. The `toTable` and `fromTable` functions convert
2088 between an annotated `Table` and a regular pandoc `Table`. In addition to
2089 producing a `Table` with coherent and well-formed annotations, the
2090 `toTable` function also normalizes its input table like the table
2091 builder does. Tests ensure that `toTable` normalizes tables exactly
2092 like the table builder, and that its annotations are coherent.
2094 * Text.Pandoc.Logging:
2096 + Remove unused `CouldNotParseYamlMetadata` constructor for `LogMessage`
2097 [API change].
2098 + Add `CiteprocWarning` constructor to `LogMessage` [API change].
2100 * Text.Pandoc.Readers.Metadata: export `yamlBsToRefs` [API change].
2101 These allow specifying an id filter so we parse only references
2102 that are used in the document.
2104 * Text.Pandoc.Parsing:
2106 + Export ParseError [API change].
2107 + Add `stateInNote` and `stateNoteNumber` to `ParserState`
2108 [API change]. These are used to populate note numbers for citation
2109 processing.
2111 * Fix apparent typos in sample.lua (#6729, William Lupton).
2112 Also make the writer less aggressive in escaping quotes.
2114 * Text.Pandoc.Options:
2116 + `defaultMathJaxURL`: use `tex-chtml-full` instead of `tex-mml-chtml`
2117 (#6599, Kolen Cheung). This drops the MathML support (which we
2118 don't need for HTML math rendering) and includes the full JavaScript,
2119 which makes it possible to use `--self-contained` (though there may
2120 still be issues if the required math fonts aren't available). This
2121 change should also reduce latency in pages with lots of formulas.
2122 + Add `/tex-chtml-full.js` to `defaultMathJaxURL` (#6593) Previously we
2123 added this in processing command line options, but not in processing
2124 defaults files, which was inconsistent.
2126 * epub.css: Fix cover page selectors and add note explaining their use
2127 (#6649, a-vrma).
2129 * Add data files needed for Text.Pandoc.Citeproc: these include
2130 `default.csl` in the data directory and a `citeproc` directory that
2131 is only used at compile-time for biblatex localizations. Note that we've
2132 added `file-embed` as a mandatory rather than a conditional
2133 dependency, because of the biblatex localization files.
2135 * Lua filters:
2137 + Add SimpleTable for backwards compatibility (#6575, Albert Krewinkel).
2138 A new type `SimpleTable` is made available to Lua filters. It is
2139 similar to the `Table` type in pandoc versions before 2.10;
2140 conversion functions from and to the new Table type are provided.
2141 Old filters using tables now require minimal changes and can use, e.g.,
2143 if PANDOC_VERSION > {2,10,1} then
2144 pandoc.Table = pandoc.SimpleTable
2145 end
2147 and
2149 function Table (tbl)
2150 tbl = pandoc.utils.to_simple_table(tbl)
2151 …
2152 return pandoc.utils.from_simple_table(tbl)
2153 end
2155 to work with the current pandoc version.
2157 + Make `attr` argument optional in `Table` constructor (Albert Krewinkel).
2158 This changes the Lua API. It is highly unlikely for this change to affect
2159 existing filters, since the documentation for the new Table constructor
2160 (and type) was incomplete and partly wrong before. The Lua API is now
2161 more consistent, as all constructors for elements with attributes now
2162 take attributes as the last parameter.
2164 * MANUAL.txt:
2166 * Add a dedicated Citations section which consolidates the information
2167 the manual used to contain about citation processing, and incorporates
2168 some information formerly found in the pandoc-citeproc man page.
2169 + Add note about lualatex using `selnolig`.
2170 + Remove duplicate `seriespage` (#6568, Blake Eryx).
2171 + Remove lists of support extensions for markdown variants (#6604).
2172 Instead, offer the advice to use `--list-extensions=FORMAT`.
2173 + Fix position of attributes in header (Albert Krewinkel).
2174 + Delete obsolete section on compact and loose lists (#6684).
2177 * doc/lua-filters.md:
2179 + Add info on how to debug Lua filters (#6732, Ian Max Andolina).
2180 + Document Underline type and constructor (Albert Krewinkel).
2181 + Document `body` field (Albert Krewinkel).
2182 + Add missing header attribute
2183 + Add missing Link.title field (Albert Krewinkel).
2184 + Make the setting-the-date example conditional (the-solipsist).
2185 This makes the example a bit more realistic.
2186 + Remove outdated link table example.
2188 * doc/org.md:
2190 + Add section on tables (Albert Krewinkel).
2191 + Add section on handling of unknown directives (Albert Krewinkel).
2193 * CONTRIBUTING.md: fix typo (#6584, Dmitry Volodin).
2195 * Use golden test framework for command tests. This means that
2196 `--accept` can be used to update expected output.
2198 * Use the `smart` extension when generating pandoc's man page (#6613).
2200 * Release-candidate: don't build windows i386.
2201 So far we haven't been able to figure out how to get
2202 stack to use a 32-bit ghc.
2204 * Use `null` instead of deprecated `Builder.isNull`.
2206 * Makefile:
2208 + Fix macospkg target to fetch target from S3 artifacts.
2209 + Fix pandoc-templates target to include all partials.
2211 * Remove duplicated dependency in pandoc.cabal (#6591, Felix Yan).
2213 * Sort build depends in pandoc.cabal alphabetically (#6691,
2214 Albert Krewinkel).
2216 * Add .travis.yml for macos release candidate build (#6622).
2217 We need to build the release candidate on Travis rather
2218 than GitHub actions, because GH has macos 10.15, and
2219 binaries compiled on that OS will not work with 10.13.
2220 This build is only triggered on `rc/*` branches.
2222 * Remove instructions for building pandoc-citeproc from CI and
2223 release binary build instructions. We will no longer distribute
2224 pandoc-citeproc.
2226 * Fix math rendering in trypandoc (this broke after
2227 commit d8ad766d17603784b86fc5c2e1b22864125d04d1).
2229 * Use latest versions of skylighting, commonmark (#6589),
2230 comonmark-extensions, commonmark-pandoc, texmath.
2232 * Relax version bounds for hslua, hslua-module-text, bytestring.
2234 * Use released pandoc-types 1.22. This changes the JSON
2235 encoding slightly for the new table types introduced
2236 in 1.21, so they're more consistent with the rest.
2237 Developers of libraries for pandoc filters will want
2238 to take note.
2240 * Fix hlint suggestions, update hlint.yaml (#6680, Christian Despres).
2242 * Code cleanup (#6678, Joseph C. Sible).
2244 * Add haddocks to functions in Text.Pandoc.Writers.Shared (Albert
2245 Krewinkel).
2247 * Remove duplicate `tshow` definition.
2249 * Linux release candidate build: use ghc-musl container. This simplifies
2250 our build process (over using a customized alpine container).
2253## pandoc 2.10.1 (2020-07-23)
2255 * Add `commonmark_x` output format. This is `commonmark` with a number
2256 of useful pandoc extensions enabled.
2258 * Many more extensions now work with `commonmark` and `gfm`.
2260 * Add generic `attributes` extension. This allows attributes to
2261 be added to any block or inline element in a uniform way. Since
2262 the Pandoc AST doesn't include attributes on each element type,
2263 the attributes will sometimes be added by creating a surrounding
2264 Div or Span container. Currently this extension is only
2265 compatible with the `commonmark` and `gfm` readers.
2267 To add an attribute to a block-level element, e.g. a paragraph,
2268 put it before the block:
2269 ```
2270 {#mypara}
2271 This is a paragraph.
2272 ```
2273 Multiple attributes may be used and will be combined:
2274 ```
2275 {#mypara}
2276 {.blue .warning key="val"}
2277 This is a paragraph.
2278 ```
2279 To add an attribute to an inline-level element, put it
2280 immediately after the element:
2281 ```
2282 *emphasized text*{.special}
2283 ```
2285 * Support `--number-sections` for docx output (#1413).
2287 * LaTeX reader:
2289 + Support `\SIRange` reader (#6418, Emerson Harkin).
2290 + Support table col-span and row-span (#6311, Laurent P. René de Cotret).
2291 Supports `\multirow` and `\multicolumn`.
2292 + Support amsthm: `\newtheorem`, `\theoremstyle`, and theorem and
2293 proof environments, including labels and references. The only thing
2294 that is unsupported is the second optional argument, which causes
2295 numbering to be reset after the specified series is incremented.
2296 + Moved some code to T.P.LaTeX.Parsing. We need to reduce the size
2297 of the LaTeX reader to ease compilation on resource-limited systems.
2299 * RST reader:
2301 + Fix csv tables with multiline cells (#6549).
2302 + Fix spurious newlines in some attributes from directives.
2303 + Avoid extra newline in included code blocks.
2305 * Commonmark reader:
2307 + Switch from cmark-gfm to commonmark-hs for commonmark and gfm
2308 parsing. This avoids depending on a C library
2309 and allows us to support more pandoc extensions for
2310 `commonmark` and `gfm`.
2312 * DocBook reader:
2314 + Parse releaseinfo as metadata (#6542).
2316 * Docx reader:
2318 + Only use `bCs/iCs` on runs with `rtl` or `cs` property (#6514, Nikolay
2319 Yakimov).
2320 + Code cleanup/refactoring (Nikolay Yakimov).
2322 * Org reader (Albert Krewinkel):
2324 + Respect export setting which disables entities
2325 MathML-like entities, e.g., `\alpha`, can be disabled with the
2326 `#+OPTION: e:nil` export setting (Albert Krewinkel).
2327 + Respect export setting disabling footnotes. Footnotes can be removed
2328 from the final document with the `#+OPTION: f:nil` export setting.
2329 + Respect tables-excluding export setting. Tables can be removed from
2330 the final document with the `#+OPTION: |:nil` export setting.
2332 * Markdown writer:
2334 + Move `asciify` out of `escapeString`. Otherwise `unsmartify`
2335 doesn't catch quotes that have already been turned to entities.
2336 + Add `writeCommonmark` (new exported function, API change).
2337 + Use unicode super/subscript characters when possible if the
2338 `superscript` or `subscript` extension or `raw_html` aren't available.
2339 + Render caption as following paragraph when `table_caption` extension
2340 is not enabled.
2341 + Use numerical labels for reference links that are longer
2342 than 999 characters or contain square brackets, for conformity
2343 with commonmark (#6560).
2345 * Commonmark writer:
2347 + Instead of using cmark-gfm, use `writeCommonmark` from the
2348 Markdown writer. This function calls the markdown writer
2349 with appropriate extensions and a few small modifications
2350 (e.g. not requiring backslashes before spaces inside
2351 super/subscripts). With this change `comonmark` and
2352 `gfm` output can be used with a wider selection of
2353 extensions.
2355 * Jira writer: keep image caption as alt attribute (#6529, Albert
2356 Krewinkel).
2358 * HTML writer:
2360 + Improve alt-text/caption handling for HTML5 (#6491, Albert Krewinkel).
2361 Screen readers read an image's `alt` attribute and the figure caption,
2362 both of which come from the same source in pandoc. The figure caption is
2363 hidden from screen readers with the `aria-hidden` attribute. This
2364 improves accessibility. For HTML4, where `aria-hidden` is not allowed,
2365 pandoc still uses an empty `alt` attribute to avoid duplicate contents.
2367 * Ms writer:
2369 + Fix code highlighting with blank lines. Previously blank lines
2370 were simply omitted from highlighted code.
2371 + Escape starting periods in ms writer code blocks (#6505, Michael
2372 Hoffmann). If a line of ms code block output starts with a period (.),
2373 it should be prepended by `\&` so that it is not interpreted as a roff
2374 command.
2376 * Text.Pandoc.Extensions:
2378 + Add `raw_markdown` extension (which only affects `ipynb`
2379 input).
2380 + Trim down `githubMarkdownExtensions`.
2381 Previously it included all of the following, which make
2382 sense for the legacy `markdown_github` but not for `gfm`,
2383 since they are part of base commonmark and thus
2384 can't be turned off in `gfm`:
2386 - `Ext_all_symbols_escapable`
2387 - `Ext_backtick_code_blocks`
2388 - `Ext_fenced_code_blocks`
2389 - `Ext_space_in_atx_header`
2390 - `Ext_intraword_underscores`
2391 - `Ext_lists_without_preceding_blankline`
2392 - `Ext_shortcut_reference_links`
2394 These have been removed from `githubMarkdownExtensions`, though
2395 they're still turned on for legacy `markdown_github`.
2396 + Add `Ext_attributes` constructor for `Extension` [API change].
2398 * LaTeX template: use selnolig to selectively suppress ligatures with
2399 lualatex (#6534).
2401 * Benchmark bytestring readers (Nikolay Yakimov).
2403 * Documentation:
2405 + Update using-the-pandoc-api.md (favonia).
2406 + Fix Typos in lua-filters.md (tajmone).
2407 + Rewrite Raw HTML/TeX section in MANUAL.txt to avoid duplicate
2408 headings for the extensions.
2409 + Fix typo in MANUAL.txt (Benjamin Wuethrich).
2410 + Remove duplicate 'titlepage' in MANUAL.txt (Blake Eryx).
2411 + CONTRIBUTING.md: Advertise the official nightlies in GitHub actions.
2412 Replaces #6500, thanks to @ickc.
2416## pandoc 2.10 (2020-06-29)
2418 * Use pandoc-types 1.21. This adds two things:
2420 + A native Underline constructor for Inline (#6277, Vaibhav Sagar).
2421 + More expressive types for tables (#1024, Christian Despres).
2422 Tables can now take attributes; and rowspans and colspans,
2423 column headers, multiple row headers, table head and foot
2424 can all be represented. (Note, however, that reader and
2425 writer support for these features is still lacking, so
2426 most users won't see any differences in table conversion
2427 yet. These changes just lay the foundation for further
2428 improvements.)
2430 * Support new Underline element in readers and writers (#6277,
2431 Vaibhav Sagar).
2433 * Support new Table type (Christian Despres).
2434 The Builder.simpleTable now only adds a row to the TableHead
2435 when the given header row is not null. This uncovered an
2436 inconsistency in the readers: some would unconditionally
2437 emit a header filled with empty cells, even if the header
2438 was not present. Now every reader has the conditional
2439 behaviour. Only the XWiki writer depended on the header row
2440 being always present; it now pads its head as necessary.
2442 * Add an option to disable certificate validation (#6156, Cédric Couralet,
2443 Cécile Chemin, Juliette Fourcot). This commit adds the option
2444 `--no-check-certificate`, which disables certificate checking when
2445 resources are fetched by HTTP.
2447 * Unify defaults and markdown metadata parsers (#6328, Nikolay
2448 Yakimov). Clean up code in Text.Pandoc.Readers.Metadata and
2449 properly handle errors in `yamlToMeta`. This fixes parsing
2450 of Boolean fields in metadata withinin defaults files and reduces
2451 code duplication.
2453 * Docbook reader:
2455 + Implement `<procedure>` (#6442, Mathieu Boespflug).
2456 + Implement `<phrase>` (#6438, Mathieu Boespflug).
2457 + Treat envar and systemitem like code (#6435, Mathieu Boespflug).
2458 + Implement `<replaceable>` (#6437, Mathieu Boespflug)
2459 + Map `<simplesect>` to unnumbered section (#6436, Mathieu Boespflug).
2461 * JATS reader:
2463 + Handle "label" element in section title (#6288).
2464 + Parse abstract element into metadata field of same name
2465 (#6480, Albert Krewinkel).
2467 * Jira reader (Albert Krewinkel):
2469 + Resolve multiple parsing problems, including issues with empty
2470 table cells, faulty recognition of closing emphasis characters, and
2471 parsing of image attributes (#6212, #6219, #6220).
2472 + Two consecutive markup chars are now parsed verbatim (#6343);
2473 styled text must not be empty.
2474 + Newlines are no longer allowed within styled text (#6325).
2475 + Links to anchors are now parsed as links (#6407).
2476 + Retain image attributes (#6234). Jira images attributes as in
2477 `!image.jpg|align=right!` are retained as key-value pairs. Thumbnail
2478 images, such as `!example.gif|thumbnail!`, are marked by a
2479 `thumbnail` class in their attributes.
2480 + Use Underline for inserted text (#6237). Previously, the span was
2481 marked with the non-standard class `inserted`.
2482 + Improve icon conversion for `(/)`, `(x)`, `(!)`, `(?)`
2483 `(+)`, `(-)`, `(off)`, `(*)`. (#6236, #6264).
2484 + Support citations, attachment links, and user links (#6231, #6238,
2485 #6239).
2486 + Resolve parsing issues of blockquote, color (#6233, #6235).
2488 * HTML reader:
2490 + Parse attributes into table attributes.
2491 + Support `<bdo>` (#5794, Tristan de Cacqueray).
2492 + Add `summary` to list of block-level HTML tags (#6385).
2493 This improves support for summary/details inside Markdown.
2494 NOTE: you need to include a blank line before the closing
2495 `</details>`, if you want the last part of the content to
2496 be parsed as a paragraph.
2497 + Fix parsing unclosed th elements in a table (#6247).
2499 * Commonmark reader: Implement `implicit_figures` extension (#6350).
2501 * Markdown Reader:
2503 + Fix inline code in lists (#6284, Nikolay Yakimov).
2504 Previously inline code containing list markers was sometimes
2505 parsed incorrectly.
2506 + Don't require blank line after grid table (#6481).
2507 This allows grid tables to be enclosed in fenced divs with no
2508 intervening blank lines.
2510 * LaTeX reader:
2512 + Don't parse beyond `\end{document}` (#6380).
2513 This required some internal changes to `\subfile` handling.
2514 + Better handling of `\lettrine`. SmallCaps instead of Span
2515 for the part after the initial capital. Ensure that both
2516 arguments are parsed, so that in Markdown both
2517 are treated as raw LateX. (Closes #6258.)
2519 * Org reader (Albert Krewinkel):
2521 + Recognize images with uppercase extensions (#6472).
2522 + Keep unknown keyword lines as raw org. The lines of unknown
2523 keywords, like `#+SOMEWORD: value` are no longer read as metadata,
2524 but kept as raw `org` blocks. This ensures that more information
2525 is retained when round-tripping org-mode files; additionally,
2526 this change makes it possible to support non-standard org
2527 extensions via filters.
2528 + Unify keyword handling. Handling of export settings and other
2529 keywords (like `#+LINK`) has been combined and unified.
2530 + Support `LATEX_HEADER_EXTRA` and `HTML_HEAD_EXTRA`
2531 settings. These export settings are treated like their non-extra
2532 counterparts, i.e., the values are added to the `header-includes`
2533 metadata list.
2534 + Allow multiple `#+SUBTITLE` export settings. The values of all
2535 lines are read as inlines and collected in the `subtitle`
2536 metadata field.
2537 + Read `#+INSTITUTE` values as text with markup. The value is
2538 stored in the `institute` metadata field and used in the
2539 default beamer presentation template.
2540 + The behavior of the `#+AUTHOR` and `#+KEYWORD` export
2541 settings has changed: Org now allows multiple such lines
2542 and adds a space between the contents of each line. Pandoc
2543 now always parses these settings as meta inlines; setting
2544 values are no longer treated as comma-separated lists.
2545 Note that a Lua filter can be used to restore the previous
2546 behavior.
2547 + Read description lines as inlines (#6485). `#+DESCRIPTION` lines
2548 are now treated as text with markup. If multiple such
2549 lines are given, then all lines are read and separated by soft
2550 linebreaks.
2551 + Honor tex export option (#4070). The `tex` export option can be set
2552 with `#+OPTION: tex:nil` and allows three settings:
2553 `t` (the default) causes LaTeX fragments to be parsed as TeX or added
2554 as raw TeX. `nil` removes all LaTeX fragments from the document.
2555 `verbatim` treats LaTeX as text.
2558 * RST reader:
2560 + Pass arbitrary attributes through in code blocks (#6465).
2561 Exceptions: name (which becomes the id), class (which becomes the
2562 classes), and number-lines (which is treated specially to fit
2563 with pandoc highlighting).
2564 + Handle `date::` directive (#6276).
2566 * Textile reader: support `pre.` for code blocks (#6454).
2568 * Ipynb reader:
2570 + Implement `raw_markdown` extension (#5408). Specifying
2571 `-f ipynb+raw_markdown` will cause Markdown cells
2572 to be represented as raw Markdown blocks, instead of being
2573 parsed. This is not what you want when going from `ipynb`
2574 to other formats, but it may be useful when going from `ipynb`
2575 to Markdown or to `ipynb`, to avoid semantically insignificant
2576 changes in the contents of the Markdown cells that might
2577 otherwise be introduced.
2578 + Handle application/pdf output as image (#6430).
2579 + Properly handle image/svg+xml as an image (#6430).
2581 * Docx reader:
2583 + Distinguish between docx parsing and docx container unpacking errors.
2585 * MediaWiki reader:
2587 + Fix `gfm_auto_identifiers` so that `-` is not replaced by `_` (#6335).
2589 * Vimwiki reader:
2591 + Add nested syntax highlighting (#6256, Vlad Hanciuta).
2592 Nested syntaxes are specified like this:
2593 ```
2594 {{{sql
2595 SELECT * FROM table
2596 }}}
2597 ```
2598 The preformatted code block parser has been extended to check if the
2599 first attribute of the block is not a `key=value` pair, and in that
2600 case it will be considered as a class.
2603 * Jira writer (Albert Krewinkel):
2605 + Always escape braces (#6478). Braces are now always escaped, even
2606 within words or when surrounded by whitespace. Jira and
2607 Confluence treat braces specially.
2608 + Convert Underline to inserted text (`+inserted+`).
2609 + Add image attributes (#6234). Image attributes are added
2610 to the output as image parameters. If the image has a
2611 class "thumbnail", then a thumbnail image is generated;
2612 all other attributes are discarded in this case.
2614 * LaTeX writer:
2616 + Ensure that `-M csquotes` works even in fragment mode (#6265).
2617 + Escape `^` specially for listings (#6460).
2618 + Create hypertarget for links with identifier (#6360).
2619 + Distinguish between single and double quotes when using enquote
2620 package (#6457, dbecher-ito).
2621 + Add support for customizable alignment of columns in beamer (#6331,
2622 andrebauer).
2623 + Add support for customizable alignment of columns in beamer
2624 (#4805, #4150, andrebauer).
2626 * HTML writer:
2628 + Use CSS in favor of `<br>` for display math (#6372)
2629 Some CSS to ensure that display math is
2630 displayed centered and on a new line is now included
2631 in the default HTML-based templates; this may be
2632 overridden if the user wants a different behavior.
2634 * Org writer:
2636 + Clean-up Div handling (Albert Krewinkel).
2638 * Docx writer:
2640 + Enable column and row bands for tables (#6371).
2641 This change will not have any effect with the default style.
2642 However, it enables users to use a style (via a reference.docx)
2643 that turns on row and/or column bands.
2645 * OpenDocument (and ODT) writer:
2647 + Add custom-style "Abstract" in metadata abstract.
2648 This ensures that the abstract is rendered with style Abstract.
2649 + Enable custom-style attribute on a Div.
2650 This allows you to apply a custom style to contained paragraphs.
2652 * DocBook writer:
2654 + Add id of figure to enclosed image.
2655 + Add personname element to docbook author (#6244).
2657 * FB2 writer:
2659 + Properly handle cover-image containing spaces (#6391).
2661 * Markdown writer:
2663 + Ensure consistent padding for pipe tables (#6240).
2664 + Avoid unnecessary escapes before intraword `_` when
2665 `intraword_underscores` extension is enabled (#6296).
2667 * RST writer:
2669 + Properly handle images with same alt text (#6194).
2670 Previously we created duplicate references for these in rendering RST.
2672 * AsciiDoc writer:
2674 + Add blank line after Div (#6308).
2676 * Haddock Writer:
2678 + Support Haddock tables (Joe Hermaszewski).
2679 See this PR on Haddock for details on the table format:
2680 <https://github.com/haskell/haddock/pull/718>.
2682 * PowerPoint writer (Jesse Rosenthal):
2684 + Write math input verbatim in speaker notes (#6301).
2685 OMML in speaker notes would lead to corrupt PowerPoint output. We now
2686 output the OMML verbatim as LaTeX in the speaker notes.
2688 * LaTeX template: Make polyglossia package options list-aware
2689 (#6444, Frederik Elwert).
2691 * Reveal.js template:
2693 + Update template for reveal.js 4.0.0 (#6390, Salim B).
2694 + Update template with newly available options (#6347, Jake Zimmerman).
2695 + Use CDN version of revealjs v4 by default (#6408).
2697 * opendocument template: Add abstract and subtitle to opendocument
2698 template (#6369).
2700 * reference.odt: clean up styles. Add Abstract.
2701 Change Author, Date to centered paragraphs with no character
2702 styling.
2704 * epub.css: wrap overlong lines in highlighted code blocks (#6242).
2705 This fixes a problem in iBooks v2.4 with our earlier
2706 horizontally scrolling code blocks. The problem seems to
2707 be a bug in iBooks, not pandoc, but since iBooks is a major
2708 target we're changing pandoc's default behavior so that
2709 pandoc-produced epubs work on that platform.
2711 * Text.Pandoc.PDF:
2713 + Use `--enable-local-file-access` in invoking `wkhtmltopdf` (#6474).
2714 `wkhtmltopdf` changed in recent versions to require this for
2715 access to local files. This fixes PDF via HTML5 with `--css`.
2716 + Send verbose output to stderr, not stdout (#6483).
2718 * Text.Pandoc.MIME: Fix MIME type for TrueType fonts in EPUBs
2719 (#6464, Michael Reed).
2721 * Text.Pandoc.Shared:
2723 + `makeSections`: omit number attribute when unnumbered class
2724 is present (#6339). Previously the attribute was included but given
2725 an empty value, and this caused the table of contents creation
2726 functions in Text.Pandoc.Writers.Shared to think these items had
2727 numbers, which meant that they were included in the TOC even if the
2728 `unlisted` class was used.
2729 + Deprecate `underlineSpan` in Shared in favor of
2730 `Text.Pandoc.Builder.underline` (Vaibhav Sagar).
2731 + `renderTags'`: use self-closing tag for col element (#6295).
2733 * Text.Pandoc.UUID: Fix `getRandomUUID`, which previously would
2734 return the same value twice in a row. Make `getRandomUUID`
2735 polymorphic in PandocMonad. Remove `getUUID` (#6228, Joseph C. Sible).
2737 * Text.Pandoc.Class: Generalize `PandocIO` functions to `MonadIO`.
2739 * Fixed Katex standalone script (#6399, Lucas Escot).
2740 Global macros are now persistent when using the HTML Writer with the
2741 `--katex` option.
2743 * Lua subsystem (Albert Krewinkel):
2745 + Use new type PandocLua for all pandoc Lua operations (API change).
2746 The new type `PandocLua` is an instance of the `PandocMonad` typeclass
2747 and can thus be used in a way similar to `PandocIO`.
2748 + Use PandocError for exceptions in Lua subsystem (API change).
2749 The PandocError type is used throughout the Lua subsystem. All Lua
2750 functions throw an exception of this type if an error occurs. The
2751 `LuaException` type is removed and no longer exported from
2752 `Text.Pandoc.Lua`. In its place, a new constructor `PandocLuaError`
2753 is added to PandocError.
2755 * Lua filters: improve error messages for failing filters (#6332,
2756 Albert Krewinkel). Print the Lua error properly instead of
2757 displaying their `show` string.
2759 * Use latest skylighting. This fixes a bug with lua multiline
2760 comments (and may improve handling of other syntaxes as well).
2761 IT also adds `aria-hidden="true"` to the empty a elements, which
2762 helps people who use screen readers.
2764 * Use latest texmath.
2766 * Require latest doctemplates 0.8.2.
2767 This adds support for template pipes `first`, `rest`,
2768 `last`, `allbutlast`.
2770 * Revert 0e48a02 and dependency on base-noprelude, which hasn't
2771 been updated for ghc 8.10 (see #6187).
2773 * Dependency adjustments:
2775 + Allow haddock-library 1.9.x.
2776 + Allow hslua 1.1 (#6243, Felix Yan).
2777 + Allow base64-bytestring 1.1.
2778 + Use latest jira-wiki-markup.
2779 + Allow http-client 0.7.
2780 + Allow tasty 1.3.x.
2781 + Allow aeson 1.5 (#6400, Felix Yan).
2782 + Remove unused dependency `vector` (#6462, Laurent P. René de Cotret).
2783 + Bump QuickCheck upper bound.
2785 * Significant code cleanup and simplification (Joseph C. Sible, #6223,
2786 #6209, #6225, #6229, #6226, #6340).
2788 * Remove unnecessary hlint ignores (#6341, Joseph C. Sible).
2790 * Remove obsolete RelaxedPolyRec extension (#6487, Nikolay Yakimov).
2792 * trypandoc improvements (Mike Tzou):
2794 + Add standalone option to the command text (#6210).
2795 + Update third party libraries.
2797 * MANUAL.txt:
2799 + Clarify template partial naming (#6476, Mauro Bieg).
2800 + Describe `jira` as "Jira/Confluence wiki markup" (#6351, Albert
2801 Krewinkel). In the past, Jira's wiki markup was also used by -- and
2802 could be imported into -- Atlassian Confluence.
2803 + Add link to print-css.rocks (#6272, Mauro Bieg).
2804 + Clarify pipe table column width adjustment (#6254).
2805 + Fix ATX header syntax.
2806 + Fix misleading note about image size conversions (#6353).
2807 + Update links to reveal.js documentation (#6386, Salim B).
2808 + Separate adjacent verbatim code blocks (#6307, tom-audm).
2810 * org.md:
2812 + Document behavior of `smart` extension (#4387, Albert Krewinkel).
2813 + Describe all supported export options in detail.
2815 * lua-filters.md:
2817 + Fix description of BulletList Lua type (Levi Gruspe).
2818 + Use pandoc.system module in TikZ example (Albert
2819 Krewinkel). Showcase temporary directory handling with
2820 `with_temporary_directory` and `with_working_directory`.
2822 * INSTALL.md: fix FreeBSD port link (#6422, Mo).
2823 The FreeBSD port was renamed from pandoc to hs-pandoc in 2010.
2824 The old pandoc port is still at version 1.5.1.1
2826 * Propagate `(DY)LD_LIBRARY_PATH` in tests (#6376, Lila).
2828 * Bump `cabal-version` to 2.2 (#6377).
2830 * Make it possible to compile using Stack on NixOS (#6439, Mathieu
2831 Boespflug).
2833 * CI action to check for commit message length (Nikolay Yakimov, #6398).
2836## pandoc 2.9.2.1 (2020-03-23)
2838 * Markdown reader: Fix table alignment when heading begins with t (#6153).
2839 Due to a typo (`t` instead of `\t`) we were center aligning column
2840 headings that begin with a lowercase `t`!
2842 * Text.Pandoc.Readers.Roff:
2844 + Fix parsing of `\.` in man/ms readers (#6175).
2845 Previously due to a typo it was being parsed as `` ` ``.
2846 + Fix parsing of `\'` in man/ms readers (#6175). It was being parsed
2847 as a backtick.
2849 * Jira reader (Albert Krewinkel):
2851 + Fix parsing of tables without preceding blankline (#6198).
2852 A bug was fixed which caused faulty parsing if a table was not
2853 preceded by a newline and the first table cell had no space
2854 after the initial `|` characters.
2855 + Fix parsing of strikeout, emphasis (#6196). A bug was fixed which
2856 caused non-emphasized text containing digits and/or non-special
2857 symbols (like dots) to sometimes be parsed incorrectly.
2858 + Support colored inline text, indented lists (#6183, #6184).
2860 * Ms writer:
2862 + Fix definition lists so indent even when paragraph indent is
2863 set to 0 (as is the default). Also ensure indent for display math
2864 that falls back to TeX.
2865 + Use `.QS/.QE` instead of `.RS/.RE` for block quotes.
2867 * EPUB writer: fix regression on detection of front/back/bodymatter
2868 (#6170). This bug caused sections with epub:type `dedication` to be
2869 misplaced in bodymatter instead of frontmatter as specified
2870 in the manual. The same problem would affect other epub:types.
2871 The pattern matching needed to be changed with the use of
2872 `makeSection`.
2874 * AsciiDoc writer: remove redundant `otherwise` guard in
2875 `inlineToAsciiDoc` (#6146, Ryan Scott).
2877 * Text.Pandoc.Class:
2879 + Fix missing import when data files are not embedded (Albert Krewinkel).
2880 + Subdivide Text.Pandoc.Class into small unexported modules
2881 and ensure that all functions have Haddock documentation (#6106,
2882 Albert Krewinkel).
2883 + Finer grained imports of Text.Pandoc.Class submodules (#6203, Albert
2884 Krewinkel).
2886 * Text.Pandoc.XML: Add to list of HTML5 attributes:
2887 `allow`, `autocapitalize`, `decoding`, `enterkeyhint`,
2888 `imagesizes`, `imagesrcset`, `loading`.
2890 * Use implicit Prelude (#6187, Albert Krewinkel).
2891 The previous behavior was introduced as a fix for #4464. It seems that
2892 this change alone did not fix the issue, and `stack ghci` and `cabal
2893 repl` only work with GHC 8.4.1 or newer, as no custom Prelude is loaded
2894 for these versions. Given this, it seems cleaner to revert to the
2895 implicit Prelude.
2897 * Always use custom prelude (#6187, Albert Krewinkel).
2898 Previously, the custom prelude was used only with older GHC versions, as
2899 a workaround for problems with ghci. The ghci problems are resolved by
2900 replacing package `base` with `base-noprelude`, allowing for consistent
2901 use of the custom prelude across all GHC versions.
2903 * Remove outdated checks for no longer supported base versions
2904 (Albert Krewinkel).
2906 * PDF via wkhtmltopdf: put user-specified options last (#6171).
2907 Certain options (e.g. `cover`) need to come after flags on
2908 the command line.
2910 * Text.Pandoc.App: set resource path at the beginning so it can affect
2911 things like include-in-header (#5982).
2913 * Change macOS release candidate CI process so that notarized
2914 packages can be produced (#6169).
2916 * Make MANUAL more explicit about nonbreaking space handling by
2917 `all_symbols_escapable` (#6154, Fabien Schurter).
2919 * trypandoc (Mike Tzou):
2921 + Add checkbox for standalone option (#6189).
2922 + Use strict mode for JavaScript code (#6188).
2923 + Fetch resources over https (#6188).
2924 + Remove unnecessary attributes on style, script elements (#6188).
2926 * Use details tag to make GitHub releases changelog collapsible.
2928 * Update filter code in doc/filters.md so it works with latest pandoc
2929 (#6185).
2931 * linux/Dockerfile: upgrade to alpine 3.11 (#6180, Albert Krewinkel).
2932 This is used to build the static linux binaries.
2935## pandoc 2.9.2 (2020-02-15)
2937 * Add `csv` as an input format (#6100). The CSV table is converted into a
2938 pandoc simple table. A new module Text.Pandoc.Readers.CSV
2939 exports `readCSV` [API change].
2941 * Introduce new format variants for JATS writer (#6014, Albert Krewinkel):
2943 - `jats_archiving` for the "Archiving and Interchange Tag Set",
2944 - `jats_publishing` for the "Journal Publishing Tag Set", and
2945 - `jats_articleauthoring` for the "Article Authoring Tag Set."
2947 The `jats` output format is now an alias for `jats_archiving`.
2948 The module Text.Pandoc.Writers.JATS now exports
2949 `writeJatsArchiving`, `writeJatsPublishing`, and
2950 `writeJatsArticleAuthoring`, as well as the legacy
2951 `writeJATS` [API change].
2953 * `--defaults`: Support `bibliography` and `csl` fields.
2954 Move `addMeta` from Text.Pandoc.App.CommandLineOptions to
2955 Text.Pandoc.App.Opt (internal change).
2957 * Add timing info for filters in `--verbose` mode (#6112).
2958 When verbose mode is specified (verbosity == INFO), print a
2959 notice when running a filter and when a filter completes (including
2960 timing).
2962 * LaTeX reader:
2964 + Allow `&` in LaTeX citation keys (#6110).
2965 + Improve caption and label parsing.
2966 + Don't emit empty Span elements for labels.
2967 + Put tables with labels in a surrounding Div.
2968 + Resolve `\ref` to table numbers (#6137).
2969 + Skip comments in more places where this is needed (#6114).
2970 + Allow beamer overlays for all commands in all raw tex (#6043).
2971 This affects parsing of raw tex in LaTeX and in Markdown and
2972 other formats.
2973 + Improve parsing of raw environments (#6034). If parsing fails
2974 in a raw environment (e.g. due to special characters like unescaped
2975 `_`), try again as a verbatim environment, which is less sensitive to
2976 special characters. This allows us to capture special environments
2977 that change catcodes as raw tex when `-f latex+raw_tex` is used.
2979 * RST reader:
2981 + Add highlight directive (#6140, Lucas Escot).
2983 * MediaWiki writer:
2985 + Prevent triple `[[[` which confuses MediaWiki (#6119).
2987 * HTML reader:
2989 + Don't parse `data-id` as `id` attribute. And similarly don't
2990 parse any `data-X` as `X` when `X` is a valid HTML attribute.
2992 * Org reader:
2994 + Simplify parsing of sub- and superscripts (#6127, Albert Krewinkel).
2995 Speeds up parsing of single-word, markup-less sub- and superscripts.
2997 * LaTeX writer:
2999 + Group biblatex citations even with prefix and suffix (#5849, Ethan
3000 Riley). Previously biblatex citations were only grouped if there
3001 was no prefix. This patch allows them to be grouped in subgroups split
3002 by prefixes and suffixes, which allows better citation sorting.
3003 + Fix regression in handling of columns in beamer slides (#6033).
3004 Columns in title slides were causing problems with
3005 slide division.
3006 + Fix duplicate frame classes in LaTeX/Beamer output (#6107).
3008 * HTML writer:
3010 + Fix duplicate attributes on headings (#6062), regression from 2.7.x.
3011 + Fix `--number-offset` with HTML TOC. Eventually it would be worth
3012 adding a parameter to `makeSections` so this could be done at that
3013 level; then it would also affect other writers that construct
3014 TOC manually.
3015 + reveal.js: restore old behavior for 2D nesting (#6032).
3016 The fix to #6030 actually changed behavior, so that the
3017 2D nesting occurred at slide level N-1 and N, instead of
3018 at the top-level section. This commit restores the v2.7.3 behavior.
3019 If there are more than 2 levels, the top level is horizontal
3020 and the rest are collapsed to vertical.
3021 + reveal.js: ensure that pauses work even in title slides (#5819).
3023 * Markdown writer:
3025 + Fix regression: spurious dots in markdown_mmd metadata output (#6133).
3027 * Docx writer:
3029 + Fix regression with Compact style on tight lists (#6072).
3030 Starting in 2.8, the docx writer no longer distinguishes between tight
3031 and loose lists, since the Compact style is omitted. This is a
3032 side-effect of the fix to #5670, as explained in the changelog. This
3033 patch fixes the problem by extending the exception currently offered to
3034 Plain blocks inside tables to Plain blocks inside list items.
3036 * Jira writer:
3038 + Fix output of table headers (Albert Krewinkel, #6035).
3040 * Add Text.Pandoc.Image with unexported svgToPng.
3042 * Text.Pandoc.XML: Export `html5Attributes`, `html4Attributes`,
3043 `rdfaAttributes` (formerly unexported in Text.Pandoc.Writers.HTML).
3044 [API change]
3046 * Text.Pandoc.Shared: Export a new function `findM` (#6125,
3047 Joseph C. Sible).
3049 * Text.Pandoc.Logging: Add `RunningFilter`, `FilterCompleted`
3050 constructors to LogMessage [API change].
3052 * Text.Pandoc.CSV: fix bug in CSV parser; previously an extra blank record
3053 would sometimes be inserted at the end.
3055 * LaTeX template: add space option to xeCJK with PassOptionsToPackage
3056 (#6002). Otherwise we can get a clash with documentclasses that
3057 already load the package.
3059 * Lua filters:
3061 + Allow filtering of element lists (#6038, Albert Krewinkel). Lists of
3062 Inline and Block elements can now be filtered via `Inlines` and
3063 `Blocks` functions, respectively. This is helpful if a filter
3064 conversion depends on the order of elements rather than a single
3065 element. For example, the following filter can be used to remove all
3066 spaces before a citation:
3068 function isSpaceBeforeCite (spc, cite)
3069 return spc and spc.t == 'Space'
3070 and cite and cite.t == 'Cite'
3071 end
3073 function Inlines (inlines)
3074 for i = #inlines-1,1,-1 do
3075 if isSpaceBeforeCite(inlines[i], inlines[i+1]) then
3076 inlines:remove(i)
3077 end
3078 end
3079 return inlines
3080 end
3082 + Add methods `insert`, `remove`, and `sort` to pandoc.List
3083 (Albert Krewinkel). Example of use:
3085 local numbers = pandoc.List {2, 3, 1}
3086 numbers:sort() -- numbers is now {1, 2, 3}
3087 + Make `pandoc.List` a callable constructor (Albert Krewinkel).
3088 It is now possible to construct a new List via
3089 `pandoc.List()` instead of `pandoc.List:new()`.
3090 + Add tests for pandoc.List module (Albert Krewinkel).
3092 * Text.Pandoc.App.CommandLineOptions: Change `setVariable` to use `Text`
3093 instead of `String`. This avoids some unnecessary unpacking.
3095 * Use versioned directory for windows release zipfile.
3096 Also remove old `make-windows-installer.bat`, superseded by GitHub
3097 actions workflow, and modify `pandoc.wxs` for new paths.
3099 * Extensive code cleanup (#6141, #6128, #6129, #6130, #6123,
3100 #6105, 6102, #6117, #6124, #6115, #6116, #6111, Joseph C. Sible).
3102 * Fix hlint warnings (Albert Krewinkel).
3104 * Use latest doclayout, doctemplates (#6031). The new version of
3105 doclayout fixes a memory leak that affected `--include-in-header` with
3106 large files (and possibly other cases involving extremely long lines).
3108 * Use latest texmath.
3110 * Use latest skylighting and fix test suite (#6086).
3112 * sample.lua: Fix typo in descriptive comments (#6136, Caleb Maclennan).
3113 Fix typo in error message (#6135).
3115 * Add Docker and GH Actions instructions/links to INSTALL.md.
3117 * Update filter documentation (#6065). Improve cabal v2 instructions.
3118 Remove example using pandoc API directly (we have other
3119 docs for that and it was outdated).
3121 * Lua filter docs:
3123 + Cross-link constructors and types (Albert Krewinkel).
3124 Thanks to @bpj for the idea.
3125 + Sort pandoc.List methods alphabetically (Albert Krewinkel).
3126 + Unify, fix anchors and internal links (#6061, Albert Krewinkel).
3127 Links and anchors now follow consistent conventions, like
3128 lowercase-only anchor names. This breaks some links to specific
3129 sections in the document, but will make it much easier to link
3130 documentation in the future.
3131 + Clarify filter function execution order (#6059, Albert Krewinkel).
3133 * In docs, update URLs and use `https:` wherever possible (#6090,
3134 Salim B).
3136## pandoc 2.9.1.1 (2020-01-05)
3138 * Markdown reader:
3140 + Fix parsing bug affected indented code after raw HTML (#6009, #5360).
3142 * LaTeX writer:
3144 + Fix regression in beamer slide structure with certain slide levels
3145 (#6030).
3146 + Allow framebreaks for beamer's TOC (Heiko Schlittermann, #6012)
3147 + Properly handle unnumbered headings level 4+ (#6018).
3148 Previously the `\paragraph` command was used instead of
3149 `\paragraph*` for unnumbered level 4 headings.
3151 * HTML writer:
3153 + Fix revealjs slide structure regression with certain slide levels
3154 (#6030).
3155 + Add newlines to make slide show output more readable.
3157 * Org writer:
3159 + Remove extra spaces from table cells (Albert Krewinkel, #6024).
3161 * JATS template: Update JATS dtd (Arfon Smith, #6020). Use the archiving
3162 and interchange DTD rather than the more restrictive journal publishing
3163 DTD (which doesn't permit ext-link as a valid child).
3165 * Text.Pandoc.PDF: Fix `runTeXProgram` so that the input source is always
3166 overwritten (#6027). Previously it wasn't overridden if the file already
3167 existed, which led to bad results on subsequent runs when
3168 `pdf-engine-opt=-output-directory=` was used to specify an explicit temp
3169 dir.
3171 * Text.Pandoc.BCP47: Change `getLang` to handle block-level contents
3172 (#6008). Some readers (e.g. RST) will populate the `lang` metadata field
3173 with block-level content. `getLang` has been modified to handle this.
3174 Previously in these cases the LaTeX writer would not properly set the
3175 "main language" of the document.
3177 * Fix `test/tables.org` (Albert Krewinkel).
3179 * Use HTTPS in copyright message (Felix Yan, #6010)
3182## pandoc 2.9.1 (2019-12-23)
3184 * Add Jira reader (Albert Krewinkel, #5556).
3186 * Jira writer: use jira-wiki-markup renderer (Albert Krewinkel,
3187 #5926). The following improvements are included in this change:
3189 + non-jira raw blocks are fully discarded instead of showing
3190 as blank lines;
3191 + table cells can contain multiple blocks;
3192 + unnecessary blank lines are removed from the output;
3193 + markup chars within words are properly surrounded by
3194 braces;
3195 + preserving soft linebreaks via `--wrap=preserve` is
3196 supported.
3198 Note that backslashes are rendered as HTML entities, as there
3199 appears no alternative to produce a plain backslash if it is
3200 followed by markup. This may cause problems when used with
3201 confluence, where rendering seems to fail in this case.
3203 * Fix regression with `--number-sections`. Starting with 2.8,
3204 `--number-sections` also had the effect of `--section-divs`,
3205 even if `--section-divs` was not specified.
3207 * Improved table of contents generation in markdown, RTF,
3208 commonmark, better handling cases where section headings are
3209 enclosed in divs.
3211 * Ensure that later default file values for `variable` replace
3212 earlier ones (5988).
3214 * HTML reader: Add `nav` to list of block-level tags.
3216 * Org reader (Albert Krewinkel):
3218 + Wrap named table in Div, using name as id (#5984).
3219 Tables which are given a name via `#+NAME:` or `#+LABEL:`
3220 are wrapped in an additional Div, with the name set as the
3221 Div's ID.
3222 + Report parsing errors properly.
3223 + Fix parsing problem for colons in headline (#5993).
3225 * Text.Pandoc.PDF: Ensure UTF8 when printing source in
3226 `--verbose` mode, avoiding an error on platforms that
3227 default to something other than UTF-8 (#5997).
3229 * Text.Pandoc.Templates: Strip directory before trying to find
3230 partial in data files (#5987).
3232 * Text.Pandoc.Shared: Improve `makeSections` so we don't get
3233 doubled "number" attributes in EPUB output (or anywhere
3234 else) (#5986).
3236 * Added tests for `--toc` and `--section-divs`.
3238 * Text.Pandoc.MIME: Added glsl MIME type for WebGL maps (#6000,
3239 Jared Lander).
3241 * MANUAL: A bit clearer explanation for `--base-header-level`.
3242 We now say exactly how to translate between the deprecated
3243 `--base-header-level` and `--shift-heading-level-by`.
3245 * lua-filters.md:
3247 + Remove spurious dot in title (#5996, Mauro Bieg).
3248 + Replace metadata example with image centering (#6004,
3249 Albert Krewinkel). Thanks to @efx for proposing this filter.
3252## pandoc 2.9 (2019-12-11)
3254 * Text.Pandoc.Templates [API change]
3256 + Add Monad wrappers `WithDefaultPartials` and `WithPartials`.
3257 Wrapping these around an instance of `PandocMonad` gives
3258 us different instances of `TemplateMonad`, with different
3259 search behavior in retrieving partials.
3260 To compile a template and limit partial search to pandoc's
3261 data files, use `runWithDefaultPartials (compileTemplate ...)`.
3262 To compile a template and allow partials to be found locally
3263 (either on the file system or via HTTP, in the event that
3264 the main template has an absolute URL), ue
3265 `runWithPartials (compileTemplate ...)`.
3266 + Export `getTemplate`, which seeks a template locally,
3267 or via HTTP if the template has an absolute URL, falling
3268 back to the data files if not found.
3269 + Export `compileDefaultTemplate` -- does `getDefaultTemplate`
3270 and compiles the result, raising an error on failure.
3272 * Text.Pandoc.Class [API change]
3274 + Remove `TemplateMonad` instances for `PandocIO` and `PandocPure`.
3275 These were too limiting and caused a bug whereby a local
3276 partial could be used even when the default template was requested.
3277 We now rely on instances provided in the Templates module.
3279 * Text.Pandoc.App.OutputSettings: Simplify template retrieval code.
3281 * ConTeXt template: Adjust to title formatting (#5949, Denis Maier).
3282 Add `\setupinterlinespace` to `title`, `subtitle`, `date` and `author`
3283 elements: otherwise longer titles that run over multiple lines will look
3284 squashed as `\tfd` etc. won't adapt the line spacing to the font size.
3286 * reveal.js template: Add title-slide-attributes variable (#5981,
3287 Frederik Elwert).
3289 * More informative JSON parse error (#5973).
3291 * Use external emojis package (forked from pandoc). Removed emoji data
3292 in Text.Pandoc.Emoji.
3294 * Fix regression in `makeSections` (#5965).
3295 Previously `hierarchicalize` (the ancestor of `makeSections`) would put
3296 header attributes on the containing Div. In 2.8 this behavior changed,
3297 which broke some tools depending on pandoc. Here we roll back this change,
3298 so that attributes again migrate from the header to the containing Div when
3299 `makeSections` is run. Note that attributes are retained on the header as
3300 well (unlike before) -- with the exception of the `id` attribute, which of
3301 course cannot be duplicated.
3303 * Fix `--toc-depth` regression in 2.8 (#5967).
3305 * Use doctemplates 0.8. Rename template 'filters' as 'pipes'
3306 to avoid confusion with the other notion of filter used by pandoc.
3308 * Fix README.md so that relative links from manual become absolute.
3309 Previously they'd be broken links when viewed on GitHub or Hackage.
3310 So we add the base URL for the pandoc manual.
3312 * Document display math syntax in manual.
3314## pandoc 2.8.1 (2019-12-05)
3316 * Add `ascii_identifiers` as a supported extension for `markdown`.
3317 This fixes a regression in 2.8.
3319 * Fix regression with behavior of `--variable` (#5962).
3320 Previously `-Vfoo=1 -Vfoo=2` would produce a list value for foo;
3321 with 2.8 it produced just `2`. This commit restores the earlier
3322 behavior.
3324 * Roll back part of of `--shift-heading-level-by` change (#5957).
3325 With positive heading shifts, starting in 2.8 this option
3326 caused metadata titles to be removed and changed to regular
3327 headings. This behavior is incompatible with the old
3328 behavior of `--base-header-level` and breaks old workflows,
3329 so we have rolled back the change. Note that there is now an
3330 asymmetry in positive and negative heading level shifts:
3331 With positive shifts, the metadata title stays the same and
3332 does not get changed to a heading in the body, while with
3333 negative shifts, a heading can be converted into the
3334 metadata title.
3336 * Text.Pandoc.Shared: Fix `makeSections` so it doesn't turn
3337 column Divs into sections.
3339 * HTML writer: add task-list class to ul if all elements are
3340 task list items. This will allow styling unordered task
3341 lists in a way that omits the bullet.
3343 * HTML-based templates: Add CSS to suppress bullet on unordered task lists.
3345 * ConTeXt template: Fix `\startcslreferences` and use ConTeXt syntax
3346 conventions (#5945, Denis Maier). The old version had a too large
3347 a skip at the beginning of the reference list.
3349 * LaTeX template: keep the `\author{}` command even if author is not
3350 specified (#5961, Yihui Xie). Avoids a LaTeX warning.
3352 * Generate Emoji module with TH.
3354 + Add Text.Pandoc.Emoji.TH.
3355 + Replace long literal list in Text.Pandoc.Emoji with one-liner
3356 generating it from `emoji.json` using TH.
3357 + Add Makefile target to download `emoji.json`.
3358 + Remove `tools/emoji.hs`.
3360 * Increase GC allocation space for compilation in cabal.project.
3362 * Clean up manual on PDF generation backend options (#5940).
3364 * Update release checklist to include code signing step and update
3365 Windows release-candidate builds (#5950).
3368## pandoc 2.8.0.1 (2019-11-26)
3370 * List `pdf` in `--list-output-formats`.
3371 * EPUB writer: Fix regression with `--css` (#5937). In 2.8 `--css`
3372 would not have an effect on EPUB output.
3373 * RST writer: Use grid tables for one-column tables, since
3374 simple tables clash with heading syntax in this case (#5936).
3375 * Add unexported module Text.Pandoc.Readers.Metadata (see #5914).
3376 * Use doctemplates 0.7.2, which adds the `nowrap` filter to
3377 templates.
3378 * Update default man template using `nowrap` for .TH heading (#5929).
3379 * HTML templates: Add support for `toc-title` variable (#5930,
3380 Alexandre Franke).
3381 * Remove `grffile` (LaTeX package) requirement in MANUAL.txt
3382 (#5927, Ian Max Andolina).
3383 * Use skylighting 0.8.3.
3385## pandoc 2.8 (2019-11-22)
3387 * Improvements in templates system (from doctemplates):
3389 + Pandoc templates now support a number of new features that
3390 have been added in doctemplates: notably, `elseif`, `it`,
3391 partials, filters, and syntax to control nesting and reflowing of
3392 text. These changes make pandoc more suitable out of the
3393 box for generating plain-text documents from data in YAML
3394 metadata. It can create enumerated lists and even tabular
3395 structures.
3396 + We now used templates parameterized on doclayout Doc types.
3397 The main impact of this change is better reflowing of
3398 content interpolated into templates. Previously,
3399 interpolated variables were rendered independently and
3400 interpolated as strings, which could lead to overly long
3401 lines. Now the templates interpolated as Doc values which
3402 may include breaking spaces, and reflowing occurs after
3403 template interpolation rather than before.
3404 + Remove code from the LaTeX, Docbook, and JATS writers that
3405 looked in the template for strings to determine whether it
3406 is a book or an article, or whether csquotes is used. This
3407 was always kludgy and unreliable.
3408 + Change template code to use new API for doctemplates.
3410 * Add `--defaults`/`-d` option. This adds the ability to specify
3411 a collection of default values for options in a YAML file. For
3412 example, one might define a set of defaults for letters,
3413 and then do `pandoc -d letter myletter.md -o myletter.pdf`.
3414 See the documentation of this feature in MANUAL.txt.
3416 * Raise error on unsupported extensions (#4338).
3418 * The `--list-extensions[=FORMAT]` option now lists only
3419 extensions that affect the given FORMAT.
3421 * Add `-L` option as shortcut for `--lua-filter`.
3423 * Add `--shift-heading-level-by` option and deprecate
3424 `--base-heading-level` (#5615). The new option does
3425 everything the old one does, but also allows negative shifts.
3426 It also promotes the document metadata (if not null) to a
3427 level-1 heading with a +1 shift, and demotes an initial
3428 level-1 heading to document metadata with a -1 shift. This
3429 supports converting documents that use an initial level-1
3430 heading for the document title.
3432 * Allow `--metadata-file` to be used repeatedly to include
3433 multiple metadata files (Owen McGrath, #5702). Values in
3434 files specified first will be overridden by those in later
3435 files.
3437 * `--ascii` now uses numerical hex character references (#5718).
3439 * Allow PDF output to stdout (#5751). PDF output now behaves like other
3440 binary formats: it will not be output to the terminal, but can be
3441 sent to stdout using either `-o -` or a pipe. The intermediate format
3442 will be determined based on the setting of `--pdf-engine`.
3444 * Make some writers sensitive to 'unlisted' class on headings (#1762).
3445 If this is present on a heading with the 'unnumbered' class,
3446 the heading won't appear in the TOC. This class has no
3447 effect if 'unnumbered' is not also specified. This affects HTML-based
3448 writers (including slide shows and EPUB), LateX (including beamer), RTF,
3449 and PowerPoint. Other writers do not yet support `unlisted`.
3451 * Fix `gfm_auto_identifiers` behavior with emojis (#5813). Note that
3452 we also now use emoji names for emojis when `ascii_identifiers`
3453 is enabled.
3455 * When `--ipynb-output` is used with the default "best" format, strip
3456 ANSI escape codes for non-ipynb output (#5633). These cause problems
3457 in many formats, including LaTeX.
3459 * Don't look for template files remotely for remote input (#5579).
3460 Previously pandoc would look for the template at a remote URL when a
3461 URL was used for the input file, instead of taking it from the
3462 data directory.
3464 * Allow combining `-Vheader-includes` and `--include-in-header` (#5904).
3465 Previously `header-includes` set as a variable would be
3466 clobbered by material included using `--include-in-header`.
3468 * Change merge behavior for metadata. Previously, if a document
3469 contained two YAML metadata blocks that set the same field, the
3470 conflict would be resolved in favor of the first. Now it is resolved
3471 in favor of the second (due to a change in pandoc-types).
3472 This makes the behavior more uniform with other things in pandoc
3473 (such as reference links and `--metadata-file`).
3475 * Don't add a newline to fragment output if there's already one.
3477 * Change exit codes and document in MANUAL.txt:
3479 + `PandocAppError` was 1, is now 4
3480 + `PandocOptionError` was 2, is now 6
3481 + `PandocMakePDFError` was 65, is now 66
3483 * Switch to new pandoc-types and use Text instead of String [API change].
3484 (Christian Despres, #5884).
3486 * HTML reader:
3488 + Better handling of `<q>` with cite attribute (#5798, Ole Martin Ruud).
3489 If a `<q>` tag has a `cite` attribute, we interpret it as a Quoted
3490 element with an inner Span.
3491 + Add support for HTML `<samp>` element (#5792, Amogh Rathore).
3492 The `<samp>` element is parsed as Code with class `sample`.
3493 + Add support for HTML `<var>` element (#5799, Amogh Rathore).
3494 The `<var>` element is parsed as Code with class `variable`.
3495 + Add support for `<mark>` elements (Florian B, #5797). Parse
3496 `<mark>` elements from HTML as Spans with class `mark`.
3497 + Add support for `<kbd>` elements, parsing them as Span with class
3498 `kbd` (Daniele D'Orazio, #5796).
3499 + Add support for `<dfn>`, parsing this as a Span with class `dfn`
3500 (#5882, Florian Beeres).
3502 * Markdown reader:
3504 + Headers: don't parse content over newline boundary (#5714).
3505 + Handle inline code more eagerly within lists (Brian Leung, #5627).
3506 + Removed some needless lookaheads.
3507 + Don't parse footnote body unless extension enabled.
3508 + Fix small super/subscript issue (#5878). Superscripts and subscripts
3509 cannot contain spaces, but newlines were previously allowed
3510 (unintentionally). This led to bad interactions in some cases
3511 with footnotes. With this change newlines are also not allowed inside
3512 super/subscripts.
3513 + Use `take1WhileP` for `str`, table row. This yields a small but
3514 measurable performance improvement.
3517 * LaTeX reader:
3519 + Fix parsing of optional arguments that contain braced text (#5740).
3520 + Don't try to parse includes if `raw_tex` is set (#5673).
3521 When the `raw_tex` extension is set, we just carry through
3522 `\usepackage`, `\input`, etc. verbatim as raw LaTeX.
3523 + Properly handle optional arguments for macros (#5682).
3524 + Fix `\\` in `\parbox` inside a table cell (#5711).
3525 + Improve `withRaw` so it can handle cases where the token string is
3526 modified by a parser (e.g. accent when it only takes part of a Word
3527 token) (#5686). This fixes a bug that caused the ends of
3528 certain documents to be dropped.
3529 + Handle `\passthrough` macro used by latex writer (#5659).
3530 + Support tex `\tt` command (#5654).
3531 + Search for image with list of extensions like latex does, if an
3532 extension is not provided (#4933).
3533 + Handle `\looseness` command values better (#4439).
3534 + Add `mbox` and `hbox` handling (Vasily Alferov, #5586).
3535 When `+raw_tex` is enabled, these are passed through literally.
3536 Otherwise, they are handled in a way that emulates LaTeX's behavior.
3537 + Properly handle `\providecommand` and `\provideenvironment` (#5635).
3538 They are now ignored if the corresponding command or environment
3539 is already defined.
3540 + Support epigraph command in LaTeX Reader (oquechy, #3523).
3541 + Ensure that expanded macros in raw LaTeX end with a space
3542 if the original did (#4442).
3543 + Treat `ly` environment from lilypond as verbatim (Urs Liska, #5671).
3544 + Add `tikzcd` to list of special environments (Eigil Rischel).
3545 This allows it to be processed by filters, in the same way that
3546 one can do for `tikzpicture`.
3548 * Roff reader:
3550 + Better support for `while`.
3551 + More improvements in parsing conditionals.
3552 + Fix problem parsing comments before macro.
3553 + Improve handling of groups.
3554 + Better parsing of groups (#5410). We now allow groups
3555 where the closing `\\}` isn't at the beginning of a line.
3557 * RST reader:
3559 + Keep `name` property in `imgAttr` (Brian Leung, #5619).
3560 + Fixed parsing of indented blocks (#5753). We were requiring
3561 consistent indentation, but this isn't required by RST.
3562 + Use title, not admonition-title, for admonition title.
3563 This puts RST reader into alignment with docbook reader.
3564 + Don't strip final underscore from absolute URI (#5763).
3565 + Avoid spurious warning when resolving links to internal anchors
3566 ending with `_` (#5763).
3568 * Org reader:
3570 + Accept `ATTR_LATEX` in block attributes (Albert Krewinkel, #5648).
3571 Attributes for LaTeX output are accepted as valid block attributes;
3572 however, their values are ignored.
3573 + Modify handling of example blocks (Brian Leung, #5717).
3574 + Allow the `-i` switch to ignore leading spaces (Brian Leung).
3575 + Handle awkwardly-aligned code blocks within lists (Brian Leung).
3576 Code blocks in Org lists must have their `#+BEGIN_` aligned in a
3577 reasonable way, but their other components can be
3578 positioned otherwise.
3579 + Fix parsing of empty comment lines (#5856, Albert Krewinkel).
3580 Comment lines in Org-mode can be completely empty.
3582 * Muse reader (Alexander Krotov):
3584 + Add RTL support (#5551).
3585 + Do not allow closing asterisks to be followed by `*`.
3586 + Do not split series of asterisks into symbols and emphasis (#5821).
3587 + Do not terminate emphasis on `*` not followed by space.
3589 * DokuWiki reader:
3591 + Parse markup inside monospace ('') (#5916, Alexander Krotov).
3593 * Docx reader:
3595 + Move style-parsing-specific code to a new unexported module,
3596 Text.Pandoc.Readers.Docx.Parse.Styles (Nikolay Yakimov).
3597 + Move StyleMap to docx writer (Nikolay Yakimov).
3598 + Only use LTR when it is overriding BiDi setting (#5723, Jesse
3599 Rosenthal). The left-to-right direction setting in docx is used
3600 in the spec only for overriding an explicit right-to-left setting.
3601 We only process it when it happens in a paragraph set with BiDi.
3602 This is especially important for docs exported from Google Docs,
3603 which explicitly (and unnecessarily) set `rtl=0` for every paragraph.
3604 + Fix list number resumption for sublists (#4324).
3605 The first list item of a sublist should not resume numbering
3606 from the number of the last sublist item of the same level,
3607 if that sublist was a sublist of a different list item.
3609 * Docbook reader:
3611 + Richer parse for admonitions (Michael Peyton Jones, #1234).
3612 Instead of parsing admonitions as blockquotes, we now parse
3613 them as Divs with an appropriate class. We also handle titles
3614 for admonitions as a nested Div with the "title" class.
3615 + Fix nesting of chapters and sections (#5864, Florian Klink,
3616 Félix Baylac-Jacqué).
3617 + Fix bug with entities in mathphrase element (#5885).
3619 * MediaWiki reader:
3621 + Skip optional `{{table}}` template (#5757).
3623 * LaTeX reader:
3625 + Fix dollar-math parsing to ensure that space is left between a
3626 control sequence and a following letter (#5836).
3627 + In `untokenize`, ensure space between control sequence
3628 and following letter (#5836).
3629 + Don't omit macro definitions defined in the preamble.
3630 These were formerly omitted (though they still affected macro
3631 resolution if `latex_macros` was set). Now they are included in
3632 the document body.
3633 + Parse macro definitions as raw LaTeX when `latex_macros` is
3634 disabled. (When `latex_macros` is enabled, we omit them, since
3635 pandoc is applying the macros itself.)
3636 + Fix a hang/memory leak in certain circumstances (#5845).
3637 + Text.Pandoc.Readers.LaTeX.Parsing: add `[Tok]` parameter to
3638 `rawLaTeXParser`. This allows us to repeat retokenizing
3639 unnecessarily in e.g. `rawLaTeXBlock`.
3640 + Add KOMA-Script metadata commands (#5910, Andrew Dunning).
3641 Add all titling commands to existing definition for `\dedication`.
3642 + Parse `\micro` siunitx unit command (#5921, Jose Luis Duran).
3644 * Markdown writer:
3646 + Ensure proper nesting when we have long ordered list markers (#5705).
3647 + Make `plain` output plainer (#5741). Previously we used the following
3648 Project Gutenberg conventions for plain output: extra space before and
3649 after level 1 and 2 headings, all-caps for strong emphasis,
3650 underscores surrounding regular emphasis. Now these
3651 conventions are used only when the `gutenberg` extension is
3652 enabled. By default, Strong and Emph are rendered without
3653 special formatting, and headings are rendered without
3654 special formatting, and with only one blank line following.
3655 To restore the former behavior, use `-t plain+gutenberg`.
3656 + Prefer using raw_attribute when enabled (#4311).
3657 The `raw_attribute` will be used to mark raw bits, even HTML
3658 and LaTeX, and even when `raw_html` and `raw_tex` are
3659 enabled, as they are by default. To get the old behavior,
3660 disable `raw_attribute` in the writer.
3661 + Prefer `pipe_tables` to raw HTML even when we must
3662 lose width information (#2608, #4497).
3663 + Improve escaping in list items (#5918).
3665 * AsciiDoc writer:
3667 + Don't include `+` in code blocks for regular asciidoc.
3668 This is asciidoctor-specific.
3669 + Handle admonitions (#5690).
3671 * LaTeX writer:
3673 + Add thin space when needed in LaTeX quote ligatures (#5684).
3674 + Use `\hspace{0pt}` for 0-width space U+200B (#5756).
3675 + Use `cslreferences` environment for csl bibliographies.
3676 This allows bibliographies to receive special formatting.
3677 The template now contains definition of this environment (enabled
3678 only when CSL is used). It also defines a `\cslhangindent` length.
3679 This is set to 2em by default when the bibliography style specifies
3680 a hanging indent. To override the length, you can use e.g.
3681 `\setlength{\cslhangindent}{7em}` in header-includes.
3682 See jgm/pandoc-citeproc#410.
3683 + Strip off `{}` around locator for biblatex/natbib output (#5722).
3684 + Fix line breaks at start of paragraph (#3324).
3685 Previously we just omitted these. Now we render them
3686 using `\hfill\break` instead of `\\`. This is a revision
3687 of a PR by @sabine (#5591) who should be credited with the idea.
3688 + We no longer look in the template or header-includes to see if a
3689 book or article documentclass is used, or to see whether the
3690 `csquotes` package is used. To use `csquotes` for LaTeX, set
3691 `csquotes` in your variables or metadata. To specify a book
3692 style, use the `documentclass` variable or
3693 `--top-level-division`.
3694 + Fix horizontal rule (#5801). We change to use 0.5pt rather than
3695 `\linethickness`, which apparently only ever worked "by accident"
3696 and no longer works with recent updates to texlive.
3698 * ConTeXt writer:
3700 + Add option to include source files in ConTeXt PDFs (Tristan
3701 Stenner, #5578). The metadata field or variable
3702 (`includesource`) can be set to attach the source documents
3703 to the resulting PDF.
3704 + Customizable type of PDF/A for the ConTeXt writer (Karl
3705 Pettersson, #5608). The `pdfa` variable may now be set in metadata.
3706 Also updated color profile settings in accordance with ConTeXt wiki,
3707 and made ICC profile and output intent for PDF/A customizable
3708 using `pdfaiccprofile` and `pdfaintent`.
3709 + Unit tests: adjust code property to avoid an irrelevant
3710 failure involving inline code with two consecutive newlines.
3711 + Set `csl-hanging-indent` variable if needed.
3712 + Use special environment for CSL references.
3713 + Use braces, not start/stop, for inline language tags.
3714 This prevents unwanted gobbling of spaces.
3716 * HTML writer:
3718 + Use numeric character references with `--ascii` (#5718).
3719 Previously we used named character references with html5 output.
3720 But these aren't valid XML, and we aim to produce html5 that is
3721 also valid XHTML (polyglot markup). (This is also needed for epub3.)
3722 + Ensure that line numbers in code blocks get id-prefix (#5650).
3723 + Ensure TeX formulas are rendered correctly (Philip Pesca,
3724 #5658). The web service passed in to `--webtex` may render
3725 formulas using inline or display style by default.
3726 Prefixing formulas with the appropriate command ensures
3727 they are rendered correctly.
3728 + Render inline formulas correctly with `--webtex` (Philip
3729 Pesca, #5655). We add `\textstyle` to the beginning of the
3730 formula to ensure it will be rendered in inline style.
3731 + Pass through `aria-` attributes to HTML5 (#5642).
3732 + Render a Quoted element with an inner Span with
3733 `cite` attribute using a `<q>` tag (#5798, Ole Martin Ruud).
3734 + Render a Span with class `mark` using the `<mark>` element
3735 (Florian Beeres, #5797).
3736 + Render Span with class `dfn` using `<dfn>` element
3737 (Florian Beeres, #5882).
3738 + Render Span with class `kbd` using `<kbd>` element (Daniele
3739 D'Orazio, #5796).
3740 + Render Code with class `variable` using `<var>` element
3741 (Amogh Rathore, #5799).
3742 + Render Code with class `sample` using `<samp>` element
3743 (Amogh Rathore, #5799).
3745 * EPUB writer:
3747 + Improve splitting into chapters (#5761), using `makeSection`.
3748 + Avoid issuing warning multiple times when title not set (see #5760).
3749 + Use svg tag wrapper for cover image (#5638). In addition, the
3750 code generating the image has been moved to the template, to make it
3751 more customizable. NOTE: Those who use custom EPUB
3752 templates will need to adjust their templates, adding the
3753 code to generate the cover image. (Previously this was just
3754 inserted into 'body'.)
3755 + Improve toChapters, making it work better if there are Divs
3756 around sections.
3757 + Add support for EPUB2 covers (blmage, #3992).
3758 + Do not override existing "fileN" medias when writing to EPUB format
3759 (blmage, #4206).
3760 + Ensure that `lang` variable is set on all chapters (so that it
3761 will add an `xml:lang` attribute on the `html` element).
3763 * RST writer:
3765 + Removed remnants of `admonition-title`.
3766 + Fix handling of `:align:` on figures and images (#4420).
3767 When the image has the `align-right` (etc.) class, we now use
3768 an `:align:` attribute.
3769 + Improve spacing for tables with no width information (#5899).
3770 If a simple table would be too wide, we use a grid table.
3771 + Fix backslash escaping after strings (Albert Krewinkel, #5906).
3772 The check whether a complex inline element following a string must
3773 be escaped, now depends on the last character of the string instead
3774 of the first.
3775 + Ensure there's a blank line before tables (#5898).
3777 * Dokuwiki writer:
3779 + Handle mixed lists without HTML fallback (#5107).
3781 * XWiki writer:
3783 + Fix multiline table (Zihang Chen, #5683).
3785 * Muse writer:
3787 + Add RTL support (Alexander Krotov, #5551).
3789 * Man writer:
3791 + Suppress non-absolute link URLs (#5770). Absolute URLs are
3792 still printed in parentheses following the link text, but relative
3793 URLs are suppressed (just as internal links starting with '#'
3794 always have been).
3795 + Improved definition list term output. Now we boldface code but
3796 not other things. This matches the most common style in man pages
3797 (particularly option lists).
3799 * Ms writer:
3801 + Use `.LP` instead of `.PP` for line block (#5588).
3802 + Use boldface for definition terms in DefinitionLists.
3804 * JATS writer:
3806 + Do not emit empty `<fn-group>` (Mauro Bieg, #5595).
3807 + Update template to v1.1dtd (#5632, Arfon Smith).
3808 + Update `data/jats.csl` to avoid commas between editor
3809 name-part elements. (#5629)
3810 + Add `abstract` to template (Mauro Bieg).
3812 * TEI writer:
3814 + Don't strip hash from internal links (#5922).
3816 * Jira writer:
3818 + Remove escapeStringForJira for code blocks (Jan-Otto Kröpke).
3819 + Remove extraneous newline after single-line block quotes
3820 (#5858, Albert Krewinkel).
3821 + Improve escaping of special characters, using backslash escapes
3822 instead of HTML entities (#5858, Albert Krewinkel).
3824 * OpenDocument writer:
3826 + Avoid duplicate attributes (#4634). We use the innermost
3827 attribute in nested cases.
3828 + If `native_numbering` extension is set, use native OpenDocument
3829 enumeration for figures and tables (Nils Carlson).
3830 + Place caption before table (#5681, Dmitry Pogodin).
3832 * ODT writer:
3834 + Add a test for MathML formulas in ODT documents (blmage).
3835 + Improve the parsing of frames in ODT documents (blmage).
3837 * Docx writer:
3839 + Make handling of styles more robust in localized versions
3840 of Word (Nikolay Yakimov, #5523, #5052, #5074). We now use
3841 style names, not ids, for assigning semantic meaning, since
3842 the ids can change depending on the locale. Style name
3843 comparisons are case-insensitive, since those are
3844 case-insensitive in Word. Since docx style names can have
3845 spaces in them, and pandoc-markdown classes can't, anywhere
3846 when style name is used as a class name, spaces are
3847 replaced with ASCII dashes `-`. Code styles, i.e. "Source
3848 Code" and "Verbatim Char" now honor style inheritance. Docx
3849 Reader now honours "Compact" style (used in
3850 Pandoc-generated docx). The side-effect is that "Compact"
3851 style no longer shows up in docx+styles output. Styles
3852 inherited from "Compact" will still show up.
3853 + Re-use Readers.Docx.Parse for StyleMap (#5766, Nikolay Yakimov).
3854 + Internal improvements and code simplification (Nikolay Yakimov).
3855 + Preserve built-in styles in DOCX with custom style (Ben Steinberg,
3856 #5670). This change prevents custom styles on divs and spans
3857 from overriding styles on certain elements inside them, like
3858 headings, blockquotes, and links. On those elements, the
3859 "native" style is required for the element to display correctly.
3860 This change also allows nesting of custom styles; in order to do so,
3861 it removes the default "Compact" style applied to Plain blocks,
3862 except when inside a table.
3863 + Add `proofState` to list of elements carried over from
3864 settings.xml in the reference.docx (Krystof Beuermann, #5703).
3865 + Change order of `ilvl` and `numId` in `document.xml` (Agustín
3866 Martín Barbero, #5645). Also, make list para properties go first.
3867 This reordering of properties shouldn't be necessary but
3868 it seems Word Online does not understand the docx correctly otherwise.
3870 * PowerPoint writer:
3872 + Code formatting is now context dependent (Jeroen de Haas, #5573).
3873 This commit alters the way in which the Powerpoint writer treats
3874 inline code and code blocks. Inline code is now formatted at
3875 the same size as the surrounding text. Code blocks are now given
3876 a margin and font size according to their level.
3877 Furthermore this commit allows changing the font with which code is
3878 formatted via the `monofont` option.
3879 + Start numbering at appropriate numbers (Jesse Rosenthal, #5709).
3880 Starting numbers for ordered lists were previously ignored. Now
3881 we specify the number if it is something other than 1.
3883 * Text.Pandoc.Parsing:
3885 + Add `manyChar`, `many1Char`, `manyTillChar`, `many1TillChar`,
3886 `many1Till`, `manyUntil`, `mantyUntilChar`: these are like their
3887 unsuffixed counterparts but pack some or all of their output
3888 (Christian Despres, #5884).
3889 + Add `stateAllowLineBreaks` to `ParserState` [API change].
3890 + Fix inline parsing in grid table cells (#5708).
3891 + Change type of `setLastStrPos` so it takes a `Maybe SourcePos`
3892 rather than a `SourcePos` [API change].
3893 + Make `parseFromString'` and `gridTableWith` and
3894 `gridTableWith'` polymorphic in the parser state,
3895 constraining it with `HasLastStrPosition` [API change].
3896 + `parseFromString'`: reset `stateLastStrPos` to `Nothing` before parse.
3897 + Rename takeWhileP -> take1WhileP and clean it up.
3898 (It doesn't match the empty sequence.)
3900 * Text.Pandoc.PDF:
3902 + For PDFs via HTML, ensure temp file is deleted even if the pdf
3903 program is not found (#5720).
3904 + Better detection of a Cygwin environment (#5451).
3905 + Don't assume tex log file is UTF8-encoded (#5872).
3906 Fall back to latin1 if it can't be read as UTF-8.
3908 * Text.Pandoc.Extensions:
3910 + Export new function `getAllExtensions`, which returns the
3911 extensions that affect a given format (whether enabled by default
3912 or not) [API change].
3913 + Change type of `parseFormatSpec` from
3914 `Either ParseError (String, Extensions -> Extensions)`
3915 to `Either ParseError (String, [Extension], [Extension])`
3916 [API change].
3917 + Add `Ext_gutenberg` constructor to `Extension` [API change].
3918 + Add `Ext_native_numbering` constructor to `Extension` [API change]
3919 (Nils Carlson).
3921 * Text.Pandoc.Readers, Text.Pandoc.Writers:
3923 + Change type of `getReader` and `getWriter` so they return
3924 a value in the PandocMonad instance rather than an Either
3925 [API change]. Exceptions for unknown formats and unsupported
3926 extensions are now raised by these functions.
3928 * Text.Pandoc.App
3930 + Change `optMetadataFile` type from `Maybe FilePath` to `[FilePath]`
3931 (Owen McGrath, #5702) [API change].
3933 * Text.Pandoc.Logging:
3935 + Add `CouldNotDeduceFormat` constructor to `LogMessage` [API change].
3936 Issue this warning when we're falling back to markdown or
3937 html because we don't recognize the extension of the input or
3938 output files.
3939 + Clarify warning for missing title (#5760).
3940 + Add `UnusualConversion` constructor to `LogMessage` [API change]
3941 (Mauro Bieg, #5736). Emit warning on `-f latex -o out.pdf`.
3943 * Lua filters:
3945 + Improve function documentation (Albert Krewkinkel).
3946 + Traverse nested blocks and inlines in correct order (Albert
3947 Krewinkel, #5667). Traversal methods are updated to use the new
3948 Walk module so that sequences with nested Inline (or Block) elements
3949 are traversed in the order in which they appear in the linearized
3950 document.
3951 + New unexported module `Text.Pandoc.Lua.Walk` (Albert Krewinkel).
3952 Lua filters must be able to traverse sequences of AST
3953 elements and to replace elements by splicing sequences back
3954 in their place. Special `Walkable` instances can be used for
3955 this; those are provided in a new module
3956 `Text.Pandoc.Lua.Walk`.
3957 + `Attr` values can now be given as normal Lua tables (Albert
3958 Krewinkel, #5744). This can be used as a convenient alternative
3959 to constructing `Attr` values with `pandoc.Attr`. Identifiers
3960 are taken from the `id` field, classes must be given as
3961 space separated words in the `class` field. All remaining fields
3962 are included as attributes. With this change, the following lines
3963 now create equal elements:
3964 ```
3965 pandoc.Span('test', {id = 'test', class = 'a b', check = 1})
3966 pandoc.Span('test', pandoc.Attr('test', {'a','b'}, {check = 1}))
3967 ```
3968 This also works when using the *attr* setter:
3969 ```
3970 local span = pandoc.Span 'text'
3971 span.attr = {id = 'test', class = 'a b', check = 1}
3972 ```
3973 Furthermore, the *attributes* field of AST elements can now be a
3974 plain key-value table even when using the `attributes` accessor:
3975 ```
3976 local span = pandoc.Span 'test'
3977 span.attributes = {check = 1} -- works as expected now
3978 ```
3979 + Export `make_sections`, remove `hierarchicalize`. Lua filters that
3980 use `hierarchicalize` will need to be rewritten to use
3981 `make_sections`.
3982 + Add a `clone()` method to all AST elements (Albert Krewinkel, #5568).
3983 + Fix Lua function names in pandoc.system (niszet). Change
3984 `get_current_directory` to `get_working_directory` and
3985 `with_temp_directory` to `with_temporary_directory`, to
3986 conform to the manual.
3988 * Text.Pandoc.Error:
3990 + Add constructors `PandocUnknownReaderError`,
3991 `PandocUnknownWriterError`, `PandocUnsupportedExtensionError`.
3992 [API change].
3993 + Better message for `PandocShouldNeverHappenError`.
3994 + Better message for `PandocTemplateError`.
3996 * Text.Pandoc.Emoji:
3998 + Update emoji list (#5666). Done using new `tools/emojis.hs`,
3999 which uses the list from the gem GitHub uses. Future updates
4000 can be done with this tool.
4002 * Text.Pandoc.PDF:
4004 + Pass value of `--dpi` to `rsvg-convert` when converting SVG to PDF
4005 in the process of creating a PDF (#5721).
4007 * Text.Pandoc.Shared:
4009 + Replace `Element` and `makeHierarchical` with `makeSections`.
4010 Now that we have Divs, we can use them to represent the
4011 structure of sections, and we don't need a special Element type.
4012 `makeSections` reorganizes a block list, adding Divs with class
4013 `section` around sections, and adding numbering if needed.
4014 This change also fixes some longstanding issues recognizing section
4015 structure when the document contains Divs (#3057, see also #997).
4016 + Remove `Element` type [API change]
4017 + Remove `makeHierarchicalize` [API change]
4018 + Add `makeSections` [API change]
4019 + Export `deLink` [API change]
4020 + Make `filterIpynbOutput` strip ANSI escapes from code in output
4021 for non-ipynb formats, when the default "best" option is used with
4022 `--ipynb-output` (#5633).
4023 + Fix `camelCaseToHyphenated` so it handles `ABCDef` better.
4024 + Improve `isTight` (#5857). If a list has an empty item,
4025 this should not count against its being a tight list.
4026 + Export `htmlSpanLikeElements` [API change] (Daniele D'Orazio, #5796).
4027 This is a mapping of HTML span-like elements that are internally
4028 represented as a Span with a single class.
4029 + Change the implementation of `htmlSpanLikeElements` to retain
4030 classes and attributes (#5882, Florian Beeres).
4032 * Text.Pandoc.Slides: recognize content in Divs when determining
4033 slide level.
4035 * Text.Pandoc.SelfContained:
4037 + Omit content-type on type attribute for `<style>` (#5725).
4038 It doesn't seem to be valid for HTML5, and as a result Chrome
4039 ignores the style element.
4041 * Text.Pandoc.Pretty has been removed [API change].
4042 We now use the new external doclayout module instead.
4044 * Text.Pandoc.Writers.Shared:
4046 + Remove `metaToJSON`, `metaToJSON'` [API change].
4047 + Modify `addVariablesToContext`, `defField`, `setField`, `getField`,
4048 `resetField` to work with Context rather than JSON values. [API change]
4049 + Export new function `endsWithPlain` [API change].
4050 + Change `gridTables` so it does better at keeping the widths of
4051 columns (#4320) and does better at figuring out column widths
4052 when no widths are given (#5899).
4054 * Text.Pandoc.Options
4056 + Change type of `writerTemplate` to `Maybe Template` instead
4057 of `Maybe String`.
4058 + Change To/FromJSON instances for `HTMLMathMethod`, `CiteMethod`,
4059 `ObfuscationMethod`, `TrackChanges`, `WrapOption`,
4060 `TopLevelDivision`, `ReferenceLocation`, `HTMLSlideVariant` (#5790).
4061 In each case we use lowercase (or hyphenated lowercase) for
4062 constructors to line up more closely with command-line option
4063 values. This is a breaking change for those who manually decode or
4064 encode JSON for these data types (e.g. for `ReaderOptions` or
4065 `WriterOptions`).
4067 * Text.Pandoc.Filters:
4069 + Add `FromYAML` instance for `Filter`.
4070 + `applyFilters`: Add and apply filters in order (not reversed)
4071 This changes `applyFilters` from Text.Pandoc.Filter so
4072 that it does a left fold rather than a right fold, applying
4073 the filters in the order listed.
4075 * Text.Pandoc.XML:
4077 + Change `toEntities` to emit numerical hex character references
4078 (#5718).
4080 * Text.Pandoc.Highlighting:
4082 + Add additional listings languages (Wandmalfarbe).
4084 * Text.Pandoc.MediaBag:
4086 + Some of the types using Strings were switched to use FilePath instead
4087 (Christian Despres, #5884).
4089 * Text.Pandoc.Templates:
4091 + Don't import/export `varListToJSON` [API change]. It is removed in
4092 doctemplates >= 0.3.
4093 + Change type of `renderTemplate'` [API change]. Return value is
4094 now Text rather than being polymorphic. This makes room for
4095 upcoming removal of the `TemplateTarget` class from doctemplates.
4097 * Text.Pandoc.App.Opt [API changes]:
4099 + More convenient To/FromJSON instances. Make the field names
4100 like `strip-empty-paragraphs` rather than `optStripEmptyParagraphs`.
4101 Anyone who is using JSON serialization of Opt will need to adjust
4102 things accordingly.
4103 + Change `optHighlightStyle` to a `Maybe String` instead of
4104 `Maybe Style`. Do the parsing/loading of themes later, after
4105 option parsing.
4106 + Remove `optBaseHeaderLevel` from `Opt`. We now just use
4107 `optShiftHeadingLevelBy`, to avoid redundancy.
4108 + Change `optShiftHeadingLevel` to `optShiftHeadingLevelBy` to
4109 match the option.
4110 + Custom FromJSON instance for `LineEnding`, so either `CRLF`
4111 or `crlf` will work.
4112 + Change `optVariables` from `[(String, String)]` to `Context Text`.
4113 + Change `optMetadata` to `Meta`, to allow structured values.
4114 The current behavior of the `--metadata` option stays the same.
4115 + Rename `optReader`, `optWriter` as `optFrom`, `optTo`.
4116 + Add `FromYAML` instances to `Opt` and to all subsidiary types.
4117 + Rename `optMetadataFile` to `optMetadataFiles`.
4118 + Rename `optPDFEngineArgs` to `optPDFEngineOpts`.
4119 + Rename `optWrapText` to `optWrap`.
4120 + Add `IpynbOutput` enumerated type: use this instead of
4121 a string for `optIpynbOutput`.
4122 + Change optInputFiles to a `Maybe [FilePath]` (#5888) [API change].
4123 `Nothing` means: nothing specified.
4124 `Just []` means: an empty list specified (e.g. in defaults).
4125 + List fields in Opt so they aren't reversed (#5881) [API change].
4126 Previously `optIncludeInHeader`, etc. were in reverse order.
4127 + The `sourcefile` variable is now always a list. It used to be
4128 sometimes a string, sometimes a list (when there was more than one).
4130 * Template changes:
4132 + default.latex: added code for `cslreferences` environment,
4133 to be used for pandoc-citeproc references. A `csl-hanging-indent`
4134 variable (set automatically if there is a `hanging-ident`
4135 class on the references Div) controls whether contents of this
4136 environment receive a hanging indent.
4137 + default.latex: Add `space` as default option for xeCJK, so that
4138 spaces between words are preserved (#5855, jeongminkim-islab).
4139 This is necessary for Korean.
4140 + default.latex: Remove include of `grffile` (#5848).
4141 This package used to be needed for proper handling of image filenames
4142 containing periods (in addition to the period before the extension).
4143 It no longer works with the latest LaTeX kernel and graphicx,
4144 so we have removed it. Future versions of graphicx will handle
4145 these filenames without the need for `grffile`.
4146 + default.context: add a saner default for page numbers.
4147 Previously they appeared centered at the top of the page;
4148 now we put them centered at the bottom, unless the `pagenumbering`
4149 variable is set.
4150 + default.context: define a start-stop-pair `cslreferences` to
4151 allow for hanging indents in the bibliography (#5875, Denis Maier).
4152 + default.ms: update defaults. Use Palatino font, use slightly
4153 wider interparagraph space, don't indent paragraphs,
4154 and put page numbers on the bottom. This brings ms output
4155 closer to default LaTeX output.
4156 + default.revealjs: add navigationMode (Mauro Bieg, #5657).
4157 + default.muse: handle multiple authors better.
4158 + docbook4, docbook5 templates: add indentation to body.
4159 + HTML-based templates: use `styles.html` partial to avoid
4160 code duplication.
4161 + HTML-based templates: change indentation of styles in template.
4163 * reference.docx (#5820):
4165 + Change Block Text (block quote) style so that the same font
4166 is used as in the body text, and the block text is indented
4167 left and right.
4168 + All headings now have a uniform color.
4169 + Level-1 headings no longer set `w:themeShade="B5"`.
4170 + Level-2 headings are now 14 point rather than 16 point.
4171 + Level-3 headings are now 12 point rather than 14 point.
4172 + Level-4 headings are italic rather than bold.
4174 * epub.css: Add CSS for hanging-indent div to support pandoc-citeproc's
4175 new hanging indents.
4177 * pandoc.cabal:
4179 + Repeat ghc-options in all stanzas.
4180 + Remove conditionals for ghc < 8 (Albert Krewinkel, #5693).
4181 + Compile with `-Wcpp-undef` and `-fhide-source-paths` when possible
4182 (Albert Krewinkel).
4183 + Add cabal.project to extra-source-files (Albert Krewinkel).
4184 + Add dependency on skylighting-core (#5729). Even though it shouldn't
4185 be needed, some tools require it.
4186 + Require latest pandoc-types, texmath, skylighting, haddock-library.
4187 + Ensure TemplateHaskell is added to other-extensions when it is
4188 used (Vanessa McHale, #5728).
4189 + Remove `derive_json_via_th` flag; always use TH. This cuts down
4190 on code duplication and reduces the chance for errors. See #4083.
4192 * Makefile:
4194 + Add ghci target.
4195 + Add ghcid target.
4196 + Remove references to obsolete flag (#5694).
4198 * Benchmarks: fix failure on ipynb.
4200 * Use MathJax 3 (zorkow).
4202 * KaTeX math: respect `classoption=fleqn` variable,
4203 bump KaTeX version to 0.11.1 (#5815, Mauro Bieg).
4205 * Fix redundant constraint compiler warnings (Pete Ryland, #5625).
4207 * Use throwError instead of fail when appropriate.
4209 * Use Prelude.fail to avoid ambiguity with fail from GHC.Base.
4211 * Add `diff-zip.sh` to tools (John MacFarlane, Agustín Martín Barbero).
4212 This is intended to make it easier to test differences in zip
4213 containers, like epub, docx, or odt.
4215 * Add `.gitattributes` (#5747). This ensures that the golden files
4216 in `test/fb2/reader/` don't have newlines converted. This should fix
4217 a test failure on GitHub CI with Windows.
4219 * Reorder options in `--help`.
4221 * Revise code for HsYAML-0.2.0.0 (@vijayphoenix, #5704).
4223 * Remove blank line in code example in Haddocks (Leif Metcalf, #5679).
4225 * Fix trypandoc with `getReader`/`getWriter` changes.
4227 * Allow building pandoc with GHC 8.8.
4229 * linux tarball: add architecture `-amd64` to filename.
4230 Now it will be: `pandoc-VERSION-linux-ARCH.tar.gz`.
4232 * MANUAL.txt:
4234 + Add section for exit codes.
4235 + Document some pptx limitations in slide show section:
4236 No incremental display (#5689). No pause with `. . .` (#5701).
4237 + reveal.js flags (Mauro Bieg, #5653).
4238 + Document addition of `data-` prefix to unknown attributes in HTML5.
4239 + Link to YAML spec (Mauro Bieg, #5687).
4240 + Fix capitalization of "Linux" (#5859, Marcus Stollsteimer).
4241 + Use a table for exit codes.
4242 + Put all template variable docs into one section.
4243 + Use ATX headers consistently.
4244 + Add fuller documentation of templates (#5779), including
4245 new template syntax, partials, etc.
4246 + Add documentation for the variable `hyperrefoptions` (Wandmalfarbe).
4247 + Clarify when macro definitions are passed as raw latex.
4248 In Markdown input, they are always passed through. In LaTeX, only if
4249 `latex_macros` is disabled.
4250 + Clarify that `--dpi` provides a default and doesn't override
4251 dpi values specified in the images themselves (#5721).
4252 + Document how to use custom writers with `--standalone` (#5866).
4253 + Clarify `--preserve-tabs` default.
4255 * INSTALL.md:
4257 + Fix instructions for libicu.
4258 + Add Void Linux instructions (Volodymyr Kozachnyskyi).
4260 * CONTRIBUTING.md:
4262 + Add information on tests (Agustín Martín Barbero, #5652).
4263 + Add information about command test naming to CONTRIBUTING (Florian B).
4265 * Fix typos in changelog and comments (#5896, Brian Wignall).
4267 * doc/lua-filters.md:
4269 + Fix mistakes in mediabag module docs (#5851, Albert Krewinkel).
4270 + Improve metadata replacement example in lua-filters doc (#5851).
4271 + Mention which Lua version is shipped with pandoc (Albert Krewinkel,
4272 #5892).
4274## pandoc 2.7.3 (2019-06-11)
4276 * Add `jira` (Atlassian's Jira wiki markup) as output format (#2497,
4277 Albert Krewinkel).
4279 * Add `tex_math_dollars` to `multimarkdownExtensions` (#5512).
4280 This form is now supported in multimarkdown,
4281 in addition to `tex_math_double_backslash`.
4283 * Fix `--self-contained` so it works when output format has extensions.
4284 Previously if you used `--self-contained` with `html-smart` or
4285 `html+smart`, it wouldn't work.
4287 * Add template variable `curdir` with working directory
4288 from which pandoc is run (#5464).
4290 * Markdown reader: don't create implicit reference for empty header
4291 (#5549).
4293 * Muse reader: allow images inside link descriptions (Alexander Krotov).
4295 * HTML reader: epub related fixes.
4297 + With epub extensions, check for `epub:type` in addition to `type`.
4298 + Fix problem with noteref parsing which caused block-level
4299 content to be eaten with the noteref.
4300 + Rename `pAnyTag` to `pAny`.
4301 + Refactor note resolution.
4302 + Trim definition list terms (Alexander Krotov).
4304 * LaTeX reader:
4306 + Add braces when resolving `\DeclareMathOperator`
4307 (#5441). These seem to be needed for xelatex but not pdflatex.
4308 + Allow newlines in `\mintinline`.
4309 + Pass through unknown listings language as class (#5540).
4310 Previously if the language was not in the list of languages supported
4311 by listings, it would not be added as a class, so highlighting
4312 would not be triggered.
4313 + `rawLaTeXInline`: Include trailing `{}`s in raw latex commands (#5439).
4314 This change affects the markdown reader and other readers that allow raw
4315 LaTeX. Previously, trailing `{}` would be included for unknown
4316 commands, but not for known commands. However, they are sometimes used
4317 to avoid a trailing space after the command. The chances that a `{}`
4318 after a LaTeX command is not part of the command are very small.
4320 * MediaWiki reader: handle multiple attributes in table row (#5471,
4321 chinapedia).
4323 * Docx reader: Add support for `w:rtl` (#5545). Elements with this
4324 property are put into Span inlines with `dir="rtl"`.
4326 * DocBook reader: Issue `IgnoredElement` warnings.
4328 * Org reader (Albert Krewinkel):
4330 + Fix planning elements in headers level 3 and higher
4331 (#5494). Planning info is now always placed before
4332 the subtree contents. Previously, the planning info was placed after
4333 the content if the header's subtree was converted to a list, which
4334 happens with headers of level 3 and higher per default.
4335 + Omit, but warn about unknown export options. Unknown export
4336 options are properly ignored and omitted from the output.
4337 + Prefer plain symbols over math symbols (#5483).
4338 Symbols like `\alpha` are output plain and unemphasized, not as math.
4339 + Recognize emphasis after TODO/DONE keyword (#5484).
4341 * FB2 reader:
4343 + Skip unknown elements rather than throwing errors (#5560).
4344 Sometimes custom elements are used (e.g. `id` element
4345 inside `author`); previously the reader would halt with an error.
4346 Now it skips the element and issues an `IgnoredElement` warning.
4347 + Parse notes (#5493, Alexander Krotov).
4348 + Internal improvements (Alexander Krotov).
4350 * OpenDocument writer: Roll back automatic figure/table numbering
4351 (#5474). This was added in pandoc 2.7.2, but it makes it impossible
4352 to use pandoc-crossref. So this has been rolled back for now,
4353 until we find a good solution to make this behavior optional
4354 (or a creative way to let pandoc-crossref and this feature
4355 to coexist).
4357 * New module Text.Pandoc.Writers.Jira, exporting `writeJira` [API
4358 change] (Albert Krewinkel).
4360 * EPUB writer:
4362 + Don't include 'landmarks' if there aren't any.
4363 Previously we could get an empty ol element, which caused
4364 validation errors with epubcheck.
4365 + Ensure unique ids for styleesheets in content.opf (#5463).
4366 + Make stylesheet link compatible with kindlegen (#5466,
4367 Eric Schrijver). Pandoc omitted `type="text/css"` from both
4368 `<style>` and `<rel="stylesheet">` elements in all templates, which
4369 is valid according to the spec. However, Amazon’s kindlegen software
4370 relies on this attribute on `<link>` elements when detecting
4371 stylesheets to include.
4373 * HTML writer:
4375 + Output video and audio elements depending on file
4376 extension of the image path (Mauro Bieg).
4377 + Emit empty alt tag in figures (#5518, Mauro Bieg).
4378 The same text is already in the <figcaption> and
4379 screen-readers would read it twice, see #4737.
4380 + Don't add variation selector if it's already there.
4381 This fixes round-trip failures.
4382 + Prevent gratuitous emojification on iOS (#5469).
4383 iOS chooses to render a number of Unicode entities, including '↩', as
4384 big colorful emoji. This can be defeated by appending Unicode
4385 VARIATION SELECTOR-15'/'VARIATION SELECTOR-16'. So we now append this
4386 character when escaping strings, for both '↩' and '↔'. If other
4387 characters prove problematic, they can simply be added to
4388 `needsVariationSelector`. + Add `class="heading"` to level 7+ Headers
4389 rendered as `<p>` elements (#5457).
4391 * RST writer: treat Span with no attributes as transparent (#5446).
4392 Previously an Emph inside a Span was being treated as
4393 nested markup and ignored. With this patch, the Span
4394 is just ignored.
4396 * LaTeX writer:
4398 + Include inline code attributes with `--listings` (#5420).
4399 + Don't produce columns environment unless beamer (#5485).
4400 + Fix footnote in image caption. Regression: the fix for #4683 broke
4401 this case.
4402 + Don't highlight code in headings (#5574). This causes
4403 compilation errors.
4404 + Use `\mbox` to get proper behavior inside `\sout` (#5529).
4406 * EPUB writer: Fix document section assignments (#5546).
4407 For example, introduction should go in bodymatter, not frontmatter, and
4408 epigraph, conclusion, and afterward should go in bodymatter, not
4409 backmatter. For the full list of assignments, see the manual.
4411 * Markdown writer:
4413 + Add backslashes to avoid unwanted interpretation of
4414 definition list terms as other kinds of block (#554).
4415 + Ensure the code fence is long enough (#5519).
4416 Previously too few backticks were used when the code block
4417 contained an indented line of backticks. (Ditto tildes.)
4418 + Handle labels with integer names (Jesse Rosenthal, #5495).
4419 Previously if labels had integer names, it could produce a conflict
4420 with auto-labeled reference links. Now we test for a conflict and
4421 find the next available integer. This involves adding a new state
4422 variable `stPrevRefs` to keep track of refs used in other document
4423 parts when using `--reference-location=block|section`
4425 * Textile writer: fix closing tag for math output (Albert Krewinkel).
4426 Opening and closing tag for math output match now.
4428 * Org writer: always indent src blocks content by 2 spaces (#5440, Albert
4429 Krewinkel). Emacs always uses two spaces when indenting the content of
4430 src blocks, e.g., when exiting a `C-c '` edit-buffer. Pandoc used to
4431 indent contents by the space-equivalent of one tab, but now always uses
4432 two spaces, too.
4434 * Asciidoc writer:
4436 + Use `` `+...+` `` form for inline code.
4437 The old `` `a__b__c` `` yields emphasis inside code in asciidoc.
4438 To get a pure literal code span, use `` `+a__b__c+` ``.
4439 + Use proper smart quotes with asciidoctor (#5487).
4440 Asciidoctor has a different format for smart quotes.
4441 + Use doubled ## when necessary for spans (#5566).
4442 + Ensure correct nesting of strong/emph (#5565): strong
4443 must be the outer element.
4445 * JATS writer:
4447 + Wrap elements with p when needed (#5570). The JATS spec restricts
4448 what elements can go inside `fn` and `list-item`. So we wrap other
4449 elements inside `<p specific-use="wrapper">` when needed.
4450 + Properly handle footnotes (#5511) according to "best practice."
4451 (Group them at the end in `<fn-group>` and use `<xref>` elements
4452 to link them.)
4453 + Fix citations with PMID so they validate (#5481). This includes
4454 an update to data/jats.csl.
4455 + Ensure validity of `<pub-date>` by parsing the date and
4456 extracting year, month, and day, as expected. Also add an
4457 iso-8601-date attribute automatically.
4458 + Don't use `<break>` element for LineBreak. It is only
4459 allowed in a few special contexts, and not in `<p>` elements.
4460 + Don't make `<string-name>` a child of `<string>`, which is illegal.
4462 * FB2 writer:
4464 + Do not wrap note references into `<sup>` and brackets
4465 (Alexander Krotov). Existing FB2 readers, such as FBReader, already
4466 display links with type="note" as a superscript.
4467 + Use genre metadata field (#5478).
4469 * Muse writer: do not escape empty line after `<br>` (Alexander Krotov).
4471 * Add unicode code point in "Missing character" warning (#5538).
4472 If the character isn't in the console font, the message is pretty useless,
4473 so we show the code point for anything non-ASCII.
4475 * Lua: add Version type to simplify comparisons (Albert Krewinkel).
4476 Version specifiers like `PANDOC_VERSION` and `PANDOC_API_VERSION` are
4477 turned into `Version` objects. The objects simplify version-appropriate
4478 comparisons while maintaining backward-compatibility.
4479 A function `pandoc.types.Version` is added as part of the newly
4480 introduced module `pandoc.types`, allowing users to create version
4481 objects in scripts.
4483 * pandoc lua module (Albert Krewinkel):
4485 - Fix deletion of nonexistent attributes (#5569).
4486 - Better tests for Attr and AttributeList.
4488 * pandoc.mediabag lua module (Albert Krewinkel):
4490 + Add function `delete` for deleting a single item.
4491 + Add function `empty` for removing all entries.
4492 + Add function `items` for iterating over mediabag.
4494 * Text.Pandoc.Class: Fix handling of `file:` URL scheme in
4495 `downloadOrRead` (#5517, Mauro Bieg). Previously `file:/`
4496 URLs were handled wrongly and pandoc attempted to make HTTP
4497 requests, which failed.
4499 * Text.Pandoc.MIME: add `mediaCategory` [API change] (Mauro Bieg).
4501 * Text.Pandoc.Shared:
4503 + Add `onlySimpleTableCells` [API change]
4504 (Mauro Bieg) and use this to consolidate simple-table detection
4505 (#5524). This fixes an inconsistency in the HTML reader, which did not
4506 treat tables with `<p>` inside cells as simple.
4507 + `metaToJSON`: treat digits starting with 0 as a string, not a number
4508 (#5479). This fixes a regression in YAML metadata in pandoc 2.7.2.
4510 * Text.Pandoc.Logging: Add `IgnoredElement` constructor for
4511 `LogMessage`. `SkippedConetnt` doesn't work for some XML-based
4512 readers which don't have access to parsec source positions.
4514 * Text.Pandoc.Asciify: Add Turkish undotted-i (#5433, Mauro Bieg).
4516 * Improve output of Lua tests (#5499, Albert Krewinkel).
4517 This makes use of tasty-lua, a package to write tests in Lua
4518 and integrate the results into Tasty output. Test output becomes
4519 more informative: individual tests and test groups become visible
4520 in test output. Failures are reported with helpful error messages.
4522 * Lua: add `pandoc.system` module (#5468, Albert Krewinkel).
4523 The `system` Lua module provides utility functions to interact with the
4524 operating- and file system. E.g.
4525 `print(pandoc.system.get_current_directory())`
4526 or
4527 ```lua
4528 pandoc.system.with_temporary_directory('tikz', function (dir)
4529 -- write and compile a TikZ file with pdflatex
4530 end)
4531 ```
4533 * LaTeX template: Add pdflang to hypersetup if lang is set (#5443).
4535 * beamer template: Fix using Beamer with geometry (#5505, Daniel Maslowski).
4536 Beamer already loads geometry, so we need to use the `\geometry`
4537 command to set geometry options.
4539 * EPUB2/3 templates: Move inline styles to default epub.css (#5466).
4540 NOTE: Those who use a custom CSS stylesheet with EPUB should
4541 add these lines:
4543 code{ white-space: pre-wrap; }
4544 span.smallcaps{ font-variant: small-caps; }
4545 span.underline{ text-decoration: underline; }
4546 q { quotes: "“" "”" "‘" "’"; }
4547 div.column{ display: inline-block; vertical-align: top; width: 50%; }
4549 * reveal.js template:
4551 + Updates for revealjs 3.8.0 (#5435, ebiim).
4552 + Remove reference to head.min.js (#5448, Winnie Hellmann).
4553 NOTE: users will need to update reveal.js to at least 3.8.0
4554 for their presentations generated with this version of pandoc
4555 to work correctly.
4557 * Text.Pandoc.PDF:
4559 + Replace `</>` with literal `/` (#5451).
4560 We use forward-slash for a directory separator in tmpDir,
4561 even on Windows (because that's what tex likes). So we
4562 should not put a backslash between the tmpDir and the
4563 filename on Windows. This is harmless enough in normal
4564 Windows setups, but it breaks on Cygwin.
4565 Thanks to @cc2x for noticing and diagnosing the problem.
4566 + Allow use of `-output-directory` in `--pdf-engine-opt` (#5462).
4567 This is currently possible with `mklatex` and `-outdir`, but
4568 was not yet possible with xelatex and `-output-directory`.
4569 + For PDF via ms/pdfroff, make TOC appear at beginning and in
4570 PDF bookmarks (#5553). Previously the TOC appeared at the end
4571 of the document, and was not bookmarked. To keep it at the end,
4572 add `--pdf-engine-opt=--no-toc-relocation` to your command line.
4574 * Fix broken links in documents (#5473, Shim Myeongseob).
4575 Also, use absolute links to pandoc.org when possible, so that
4576 the links can be followed by people viewing these documents
4577 on GitHub.
4579 * Improved sample lua tikz filter in lua-filters docs (#5445,
4580 Matthew Doty). There are three changes:
4582 + It only processes elements which begin with `\begin{tikzpicture}`
4583 + It uses pdf2svg instead of imagemagick to preserve fidelity
4584 + The images produced have transparent backgrounds
4586 * MANUAL.txt:
4588 + Add note about `title-meta`, `author-meta`, `date-meta` (#5486).
4589 + Fix typo (#5489, Christian Krause).
4591 * add test/tables.xwiki to git and pandoc.cabal (#5498, Mauro Bieg).
4593 * Disable missing-home-modules warning in `stack.yaml`.
4594 Otherwise `stack ghci` fails.
4597## pandoc 2.7.2 (2019-04-05)
4599 * Add XWiki writer (#1800, Derek Chen-Becker).
4600 Add `Text.Pandoc.Writers.XWiki`, exporting `writeXWiki` [API change].
4602 * Dokuwiki Reader: parse single curly brace (#5416, Mauro Bieg).
4604 * Vimwiki reader: improve handling of internal links (#5414).
4605 We no longer append `.html` to link targets, and we add a title
4606 `wikilink`. This mirrors behavior of other wiki readers. Generally
4607 the `.html` extension is not wanted. It may be important for output
4608 to HTML in certain circumstances, but it can always be added using a
4609 filter that matches on links with title `wikilink`.
4611 If your workflow requires the current behavior, here is a lua filter
4612 that will add the `.html` extension:
4614 ```lua
4615 function Link(el)
4616 if el.title == 'wikilink' then
4617 el.target = el.target .. ".html"
4618 end
4619 return el
4620 end
4621 ```
4622 * ipynb reader:
4624 + Use format `ipynb` for raw cell where no format given.
4625 + Avoid introducing spurious `.0` on integers in metadata.
4627 * Markdown reader: fenced div takes priority over setext header.
4629 * HTML reader: read `data-foo` attribute into `foo` (#5392).
4630 The HTML writer adds the `data-` prefix for HTML5 for nonstandard
4631 attributes. But the attributes are represented in the AST without
4632 the `data-` prefix, so we should strip this when reading HTML.
4634 * LaTeX reader: Improve autolink detection (#5340).
4636 * PowerPoint writer (Jesse Rosenthal):
4638 + Expand builtin reference doc to model all layouts.
4639 The previous built-in reference doc had only title and content
4640 layouts. Add in a section-header slide and a two-content slide, so
4641 users can more easily modify it to build their own templates.
4642 + Always open up in slide view. When editing a
4643 template/reference-doc, the user might be in Master view, but when
4644 producing a slide show, it is assumed that slide view will be
4645 desired.
4646 + Remove `handoutsMasterList` from template presentation.xml
4647 + Fix numerous errors in templating (#5402). Previously, some templates
4648 produced by Office 365 (MacOS) would not render with `--reference-doc`
4649 correctly. We now apply correct shapes for content, and build
4650 shape trees correctly.
4651 + Make default placeholder type for template lookup.
4652 + Apply speaker notes to metadata slide if applicable.
4653 + Test for speaker notes after breaking header.
4654 + Correctly handle notes after section-title header.
4655 Previously, if notes came after a section-title header (ie, a level-1
4656 header in a slide-level=2 presentation), they would go on the next
4657 slide. This keeps them on the slide with the header.
4658 + Internal improvements.
4660 * ipynb writer:
4662 + Use format `ipynb` for raw cell where no format given.
4663 According to nbformat docs, this is supposed to render in every
4664 format. We don't do that, but we at least preserve it as a raw
4665 block in markdown, so you can round-trip.
4666 + Consolidate adjacent raw blocks. Sometimes pandoc creates two
4667 HTML blocks, e.g. one for the open tag and one for a close tag.
4668 If these aren't consolidated, only one will show up in output cell.
4669 + Fixed carry-over of nbformat from metadata.
4670 + Preserve `nbformat_minor` if it's given. This helps with round-tripping.
4672 * LaTeX writer:
4674 + Avoid inadvertently creating ?` or !` ligatures (#5407).
4675 These are upside down ? and !, resp.
4676 + Fix footnotes in table caption and cells (#5367). This fixes a
4677 bug wherein footnotes appeared in the wrong order, and with
4678 duplicate numbers, when in table captions and cells.
4679 We now use regular `\footnote` commands, even in the table
4680 caption and the minipages containing cells. Apparently
4681 longtable knows how to handle this.
4683 * HTML writer: Don't add data- prefix to RDFa attributes (#5403).
4685 * JATS writer: Ensure that plain strings go inside `<pub-id>` tag (#5397).
4687 * Markdown writer:
4689 + Better rendering of numbers (#5398). If the number is integral,
4690 we render it as an integral not a float.
4691 + Proper rendering of empty map in YAML metadata (#5398). Should
4692 be `{}`, not empty string.
4693 + Properly escape attributes in Markdown writer (#5369).
4694 + Be sure implicit figures work in list contexts (#5368).
4695 Previously they would sometimes not work: e.g., when they
4696 occurred in final paragraphs in lists that were originally
4697 parsed as Plain and converted later using PlainToPara.
4699 * Docx writer: Use `w:br` without attributes for line breaks (#5377).
4700 We previously added the attribute `type="textWrapping"`, but
4701 this causes problems on Word Online.
4703 * LaTeX template (Andrew Dunning):
4705 + Ensure correct heading/table order (#5365). Improve workaround
4706 (#1658) for tables following headings. The new solution works whether
4707 or not the `indent` variable is enabled.
4708 + Remove `subparagraph` variable. The default is now to use run-in
4709 style for level 4 and 5 headings (`\paragraph` and `\subparagraph`).
4710 To get the previous default behavior (where these were formatted as
4711 blocks, like `\subsubsection`), set the `block-headings` variable.
4712 + Add pandoc to PDF metadata (#5388).
4713 + Group graphics-related code (#5389).
4714 + Move `\setstretch` after front matter (#5179). Ensures that
4715 `\maketitle`, `\tableofcontents`, and so forth are not affected by
4716 changes to line spacing.
4718 * Update data/jats.csl to avoid commas between name-part elements
4719 (#5397).
4721 * Add support for golang (`go`) with `--listings` (#5427).
4723 * Text.Pandoc.Shared - improve `metaToJSON` behavior with numbers.
4724 We now do a better job marshalling numbers from MetaString
4725 or MetaInlines into JSON Number.
4727 * Text.Pandoc.Writers.Shared: `metaValueToJSON`: use Number Values for
4728 integers. Pandoc's MetaValue doesn't have a distinguished number type,
4729 so numbers are put in MetaStrings. If the MetaString consists
4730 entirely of digits, we convert it to a Number. We should probably
4731 consider adding a MetaNumber constructor to MetaValue, for better
4732 round-tripping with JSON etc. This change aids round-tripping in
4733 ipynb metadata fields, like `toc_depth`.
4735 * Text.Pandoc.Class: `fetchItem`: don't treat UNC paths as
4736 protocol-relative URLs (#5127). These are paths beginning `//?/UNC/...`.
4738 * Text.Pandoc.ImageSize: Improve `pdfSize` so it handles
4739 a wider range of PDFs (#4322, with help from Richard Davis).
4741 * Text.Pandoc.Pretty: avoid stack overflow by using strict sum (#5401).
4743 * Fix harmless error in file-scope code (#5422).
4745 * MANUAL.txt:
4747 + Improve 'header' and 'heading' usage (#5423, Andrew
4748 Dunning). The term 'header' was being used where 'heading'
4749 is more appropriate.
4750 + Add paragraph on options affecting markdown in ipynb.
4752 * stack.yaml - remove -Wmissing-home-modules
4753 This seems to cause problems with stack ghci. Remove RTS options.
4755 * Add ghc-options to cabal.project.
4757 * appveyor.yml - use ghc 8.6.4. Fixes segfault issues on Windows (#5037).
4759 * linux build process: Remove clone of pandoc-citeproc (#5366).
4760 It wasn't being used; cabal.project specifies the version to use.
4762## pandoc 2.7.1 (2019-03-14)
4764 * Add tectonic as an option for --pdf-engine (#5345, Cormac Relf).
4765 Runs tectonic on STDIN instead of a temporary .tex file, so that it
4766 looks in the working directory for `\include` and `\input` like the rest
4767 of the engines. Allows overriding the output directory
4768 args with `--pdf-engine-opt=--outdir --pdf-engine-opt="$DIR"`.
4770 * Allow `-o/--output` to be used with `--print-default-data-file`,
4771 `--print-highlighting-style`, `--print-default-template`.
4772 Note that `-o` must occur BEFORE the `--print*` command on the command
4773 line (this is documented, #5357).
4775 * LaTeX reader:
4777 + Support `\underline`, `\ul`, `\uline` (#5359, Paul
4778 Tilley). These are parsed as a Span with class `underline`, as
4779 with other readers.
4780 + Ensure that `\Footcite` and `\Footcites` get put in a note.
4782 * ipynb reader:
4784 + Remove sensitivity to `raw_html`, `raw_tex` extensions.
4785 We now include every output format. Pruning is handled by
4786 `--ipynb-output`.
4787 + Better handling of cell metadata. We now include even complex cell
4788 metadata in the Div's attributes (as JSON, in complex cases, or
4789 as plain strings in simple cases).
4791 * ipynb writer:
4793 + Recurse into native divs for output cell data (#5354).
4794 + Render cell metadata fields from div attributes.
4796 * Docx writer: avoid extra copy of abstractNum and num elements
4797 in numbering.xml. This caused pandoc-produced docx files to
4798 be uneditable using Word Online (#5358).
4800 * Markdown writer: improve handling of raw blocks/inline.
4801 We now emit raw content using `raw_attribute` when no more
4802 direct method is available. Use of `raw_attribute` can be
4803 forced by disabling `raw_html` and `raw_tex`.
4805 * LaTeX writer: Add classes for frontmatter support (#5353, Andrew Dunning)
4806 and remove frontmatter from `scrreprt`.
4808 * LaTeX template:
4810 + Improve readability (#5363, Andrew Dunning).
4811 + Robust section numbering removal (#5351, Andrew Dunning).
4812 Ensures that section numbering does not reappear with custom
4813 section levels. See <https://tex.stackexchange.com/questions/473653/>.
4814 + Better handling of front/main/backmatter (#5348).
4815 In pandoc 2.7 we assumed that every class with chapters would accept
4816 `\frontmatter`, `\mainmatter`, and `\backmatter`. This is not so (e.g.
4817 report does not). So pandoc 2.7 breaks on report class by including an
4818 unsupported command. Instead of the `book-class` variable, we use two
4819 variables, `has-chapters` and `has-frontmatter`, and set these
4820 intelligently in the writer.
4822 * Text.Pandoc.Shared: Improve `filterIpynbOutput`. Ensure that
4823 images are prioritized over text. `best` should include everything
4824 for ipynb.
4826 * Tests.Old: specify `--data-dir=../data` to ensure tests can find
4827 data files even if they haven't been installed. Remove old
4828 `pandoc_datadir` environment variable, which hasn't done anything for a
4829 long time.
4831 * MANUAL.txt: Add recommendation to use `raw_attribute` with ipynb (#5354).
4833 * Use cmark-gfm-hs 0.1.8 (note that 0.1.7 is buggy).
4835 * Use latest pandoc-citeproc, texmath.
4838## pandoc 2.7 (2019-03-03)
4840 * Use XDG data directory for user data directory (#3582). Instead of
4841 `$HOME/.pandoc`, the default user data directory is now
4842 `$XDG_DATA_HOME/pandoc`, where `XDG_DATA_HOME` defaults to
4843 `$HOME/.local/share` but can be overridden by setting the
4844 environment variable. If this directory is missing, then
4845 `$HOME/.pandoc` is searched instead, for backwards compatibility.
4846 However, we recommend moving local pandoc data files from
4847 `$HOME/.pandoc` to `$HOME/.local/share/pandoc`. On Windows the
4848 default user data directory remains the same.
4850 * Slide show formats behavior change: content under headers
4851 less than slide level is no longer ignored, but included in
4852 the title slide (for HTML slide shows) or in a slide after
4853 the title slide (for beamer). This change makes possible
4854 2D reveal.js slideshows with content in the top slide on
4855 each stack (#4317, #5237).
4857 * Add command line option `--ipynb-output=all|none|best` (#5339).
4858 Output cells in ipynb notebooks often contain several different
4859 versions of an output, with different MIME types, e.g. an HTML
4860 table and a plain-text fallback. Specifying `--ipynb-output=best`
4861 (the default) ensures that the best version for the output format
4862 is used. `all` includes all versions, and `none` suppresses them
4863 all, leaving output cells empty.
4865 * `asciidoctor` is now an output format separate from `asciidoc`,
4866 to accommodate some minor implementation-specific differences
4867 (currently just in the treatment of display math).
4869 * Add `latexmk` as an option for `--pdf-engine` (#3195).
4870 Note that you can use `--pdf-engine-opt=-outdir=bar` to specify
4871 a persistent temp directory.
4873 * Markdown reader:
4875 + Improve tight/loose list handling (#5285). Previously the
4876 algorithm allowed list items with a mix of Para and Plain, which
4877 is never wanted.
4878 + Add newline when parsing blocks in YAML (#5271). Otherwise last
4879 block gets parsed as a Plain rather than a Para. This is a
4880 regression in pandoc 2.x. This patch restores pandoc 1.19
4881 behavior.
4882 + Make `yamlToMeta` respect extensions (#5272, Mauro Bieg).
4883 This adds a `ReaderOptions` parameter to `yamlToMeta` [API change].
4884 + Fix bug parsing fenced code blocks (#5304). Previously parsing
4885 would break if the code block contained a string of backticks of
4886 sufficient length followed by something other than end of line.
4888 * LaTeX reader: don't let `\egroup` match `{`. `braced` now actually
4889 requires nested braces. Otherwise some legitimate command and
4890 environment definitions can break.
4892 * Docx reader (Jesse Rosenthal):
4894 + Rename `getDocumentPath` as `getDocumentXmlPath`.
4895 + Use field notation for setting `ReaderEnv`.
4896 + Figure out `document.xml` path once at the beginning of parsing, and
4897 add it to the environment, so we can avoid repeated lookups.
4898 + Dynamically determine main document xml path (#5277).
4899 The desktop Word program places the main document file in
4900 `word/document.xml`, but the online word places it in
4901 `word/document2.xml`. This file path is actually stated in the root
4902 `_rels/.rels` file, in the `Relationship` element with an
4903 `http://../officedocument` type.
4904 + Fix paths in archive to prevent Windows failure (#5277).
4905 Some paths in archives are absolute (have an opening slash) which, for
4906 reasons unknown, produces a failure in the test suite on MS
4907 Windows. This fixes that by removing the leading slash if it exists.
4908 + Add comments to aid code readability.
4909 + Trim space inside the last inline (#5273).
4910 + Unwrap sdt elements in footnotes and comments (#5302).
4912 * Muse reader (Alexander Krotov):
4914 + Test that block level markup does not break `<verbatim>`.
4915 + Add secondary note support.
4917 * ipynb reader: handle images referring to attachments. Previously
4918 we didn't strip off the attachment: prefix, so even though the
4919 attachment was available in the mediabag, pandoc couldn't find it.
4921 * JATS reader:
4923 + Fix parsing of figures (#5321). This ensures that a figure
4924 containing a single image is parsed as a pandoc "implicit
4925 figure" (i.e., a Para with a single Image whose title attribute
4926 begins with `fig:`). More complex figures will still be parsed
4927 as divs.
4928 + Support `fig-group` block element (#5317).
4929 + Handle citations with multiple references (#5310). The `rid`
4930 attribute can have a space-separated list of ids.
4932 * AsciiDoc Writer: Add `writeAsciiDoctor` [API change, Tarik Graba].
4933 Handle display math appropriately for Asciidoctor.
4935 * JATS writer: wrap figure caption in `<p>` to fix validation (#5290,
4936 Mauro Bieg).
4938 * HTML writer:
4940 + Implement WAI-ARIA roles for (end)notes, citations, and
4941 bibliography (#4213). Note that doc-biblioref is only used when
4942 link-citations produces links, since it belongs on links.
4943 + Include content (including speaker notes) in title slides
4944 (#4317, #5237).
4946 * ipynb writer:
4948 + Ensure final newline.
4949 + Only include metadata under `jupyter` field.
4950 + Don't create attachments for images with absolute URIs,
4951 including data: URIs (#5303).
4952 + Keep plain text fallbacks in output even if a richer format is
4953 included (#5293). We don't know what output format will be needed.
4954 See the `--ipynb-output` command line option for a way to control
4955 what formats are included in the output.
4957 * Markdown writer: use `markdown="1"` when appropriate for Divs:
4958 when `native_divs` and `markdown_in_html_blocks` are disabled
4959 but `raw_html` and `markdown_attribute` are enabled.
4961 * LaTeX writer:
4963 + Use right fold for `escapeString`. This is more elegant than
4964 the explicit recursive code we were using.
4965 + Avoid `{}` after control sequences when escaping.
4966 `\ldots{}.` doesn't behave as well as `\ldots.` with the latex
4967 ellipsis package. This patch causes pandoc to avoid emitting
4968 the `{}` when it is not necessary. Now `\ldots` and other
4969 control sequences used in escaping will be followed by either
4970 a `{}`, a space, or nothing, depending on context.
4971 + For beamer, include contents under headers superordinate to
4972 slidelevel (#4317). Currently we keep the fancy title slide, and
4973 add a new slide with the same title and whatever content was
4974 under the header.
4976 * Powerpoint writer (Jesse Rosenthal): support underlines.
4977 Use span with single class "underline" as in docx writer.
4979 * Muse writer: escape secondary notes (Alexander Krotov).
4981 * FB2 writer: add section identifiers support (#5229, John KetzerX).
4983 * Make `--fail-if-warnings` work for PDF output (#5343).
4985 * Lua filters (Albert Krewinkel):
4987 + Load module `pandoc` before calling `init.lua` (#5287). The file
4988 `init.lua` in pandoc's data directory is run as part of pandoc's
4989 Lua initialization process. Previously, the `pandoc` module was
4990 loaded in `init.lua`, and the structure for marshaling was
4991 set up after. This allowed simple patching of element
4992 marshaling, but made using `init.lua` more difficult. Now, all
4993 required modules are now loaded before calling `init.lua`. The
4994 file can be used entirely for user customization. Patching
4995 marshaling functions, while discouraged, is still possible via
4996 the `debug` module.
4997 + All Lua modules bundled with pandoc, i.e., `pandoc.List`,
4998 `pandoc.mediabag`, `pandoc.utils`, and `text` are re-exported from the
4999 `pandoc` module. They are assigned to the fields `List`, `mediabag`,
5000 `utils`, and `text`, respectively.
5002 * Text.Pandoc.Lua (Albert Krewinkel):
5004 + Split `StackInstances` into smaller Marshaling modules.
5005 + Get `CommonState` from Lua global. This allows more control over
5006 the common state from within Lua scripts.
5008 * LaTeX template:
5010 + Support the `subject` metadata variable (#5289, Pascal Wagler).
5011 + Add `\frontmatter`, `\mainmatter`, `\backmatter`
5012 for book classes (#5306).
5014 * epub3 template: Add titlepage class to section (#5269).
5016 * HTML5 template: Add ARIA role `doc-toc` for table of contents (#4213).
5018 * Make `--metadata-file` use selected extensions (#5279, #5272, Mauro Bieg).
5020 * Text.Pandoc.Shared:
5022 + Remove `withTempDir` [API change].
5023 + Add new exported function `defaultUserDataDirs` [API change].
5024 + Add `filterIpynbOutput` [API change].
5025 + `compactify`: Avoid lists with a mix of Plain and Para elements
5026 (#5285).
5028 * Text.Pandoc.Translations: reorder alphabetically and remove `Author`
5029 (#5334, Mauro Bieg).
5031 * Text.Pandoc.Extensions:
5033 + More carefully groom ipynb default extensions.
5034 + Add `all_symbols_escapable` to `githubMarkdownExtensions`.
5036 * Text.Pandoc.PDF:
5038 + Use system temp directory when possible (#1192). Previously we
5039 created temp dirs in the working directory, partly (a) because
5040 there were problems using the system temp directory on Windows,
5041 when their pathnames included tildes, and partly (b) because
5042 programs like `epstopdf.pl` would not be allowed to write to
5043 directories outside the working directory in restricted mode. We
5044 now (a) use the system temp dir except when the path includes
5045 tildes, and (b) set `TEXMFOUTPUT` when creating the PDF, so that
5046 subsidiary programs can use the system temp directory. This
5047 addresses problems that occurred when pandoc was used in a
5048 synced directory (such as Dropbox).
5049 + Change types of subsidiary functions to PandocIO, to allow
5050 warnings to be threaded through (#5343).
5052 * Text.Pandoc.MIME: add WebP (#5267, Mauro Bieg).
5054 * Tests: avoid calling `findPandoc` multiple times.
5056 * Old tests: remove need for temp files by using `pipeProcess`.
5058 * Added simple ipynb reader/writer tests (#5274).
5060 * Rearrange `--help` output in a more rational way, with common
5061 options at the beginning and options grouped by function (#5336).
5063 * trypandoc: Add JATS and other missing formats (Arfon Smith, #5291).
5065 * Add missing copyright notices and remove license boilerplate (#4592,
5066 Albert Krewinkel).
5068 * Use latest basement/foundation on 32bit windows.
5070 * Use latest skylighting (#5328). Custom syntax definitions no
5071 longer try to load `language.dtd`.
5073 * Require texmath 0.11.2.1
5075 * Use latest pandoc-citeproc (0.16.1.1).
5077 * MANUAL.txt:
5079 + Clarify variable substitution indentation in templates (#5338,
5080 Agustín Martín Barbero).
5081 + Reorder custom-styles section (#5324, Mauro Bieg).
5083## pandoc 2.6 (2019-01-30)
5085 * Support ipynb (Jupyter notebook) as input and output format.
5087 + Add `ipynb` as input and output format (extension `.ipynb`).
5088 + Added Text.Pandoc.Readers.Ipynb [API change].
5089 + Added Text.Pandoc.Writers.Ipynb [API change].
5090 + Add `PandocIpynbDecodingError` constructor to Text.Pandoc.Error.Error
5091 [API change].
5092 + Depend on ipynb library.
5093 + Note: there is no template for ipynb.
5095 * Add DokuWiki reader (#1792, Alexander Krotov). This adds
5096 Text.Pandoc.Readers.DokuWiki [API change], and adds `dokuwiki`
5097 as an input format.
5099 * Implement task lists (#3051, Mauro Bieg). Added `task_lists`
5100 extension. Task lists are supported from markdown and gfm input.
5101 They should work, to some degree, in all output formats, though in
5102 most formats you'll get a bullet list with a unicode character for
5103 the box. In HTML, you get checkboxes and in LaTeX/PDF output, a
5104 box is used as the list marker. API changes:
5106 + Added constructor `Ext_task_lists` to `Extension`.
5107 + Added `taskListItemFromAscii` and `taskListItemToAscii` to
5108 Text.Pandoc.Shared.
5110 * Allow some command line options to take URL in addition to FILE.
5111 `--include-in-header`, `--include-before-body`, `--include-after-body`.
5113 * HTML reader:
5115 + Handle empty `start` attribute (see #5162).
5116 + Treat `textarea` as a verbatim environment (#5241) and preserve
5117 spacing.
5119 * RST reader:
5121 + Change treatment of `number-lines` directive (Brian Leung,
5122 #5207). Directives of this type without numeric inputs should
5123 not have a `startFrom` attribute; with a blank value, the
5124 writers can produce extra whitespace.
5125 + Removed superfluous `sourceCode` class on code blocks (#5047).
5126 + Handle `sourcecode` directive as synonynm for `code` (#5204).
5128 * Markdown reader:
5130 + Remove `sourceCode` class for literate Haskell code blocks
5131 (#5047). Reverse order of `literate` and `haskell` classes on
5132 code blocks when parsing literate Haskell, so `haskell` is
5133 first.
5134 + Treat `<textarea>` as a verbatim environment (#5241).
5136 * Org reader:
5138 + Handle `minlevel` option differently (#5190, Brian Leung).
5139 When `minlevel` exceeds the original minimum level observed in
5140 the file to be included, every heading should be shifted
5141 rightward.
5142 + Allow for case of `:minlevel == 0` (#5190).
5143 + Fix treatment of links to images (#5191, Albert Krewinkel).
5144 Links with descriptions which are pointing to images are no
5145 longer parsed as inline images, but as links.
5146 + Add support for #+SELECT_TAGS (Brian Leung).
5147 + Separate filtering logic from conversion function (Brian Leung).
5149 * TWiki reader: Fix performance issue with underscores (#3921).
5151 * MediaWiki reader: use `_` instead of `-` in auto-identifiers (#4731).
5152 We may not still be exactly matching mediawiki's algorithm.
5154 * LaTeX reader:
5156 + Remove `sourceCode` class for literate Haskell code blocks
5157 (#5047). Reverse order of `literate` and `haskell` classes on
5158 code blocks when parsing literate Haskell, so `haskell` is
5159 first.
5160 + Support `\DeclareMathOperator` (#5149).
5161 + Support `\inputminted` (#5103).
5162 + Support `\endinput` (#5233).
5163 + Allow includes with dots like `cc_by_4.0`. Previously the `.0`
5164 was interpreted as a file extension, leading pandoc not to add
5165 `.tex` (and thus not to find the file). The new behavior matches
5166 tex more closely.
5168 * Man reader:
5170 + Use `mapLeft` from Shared instead of defining own.
5172 * Docx reader (Jesse Rosenthal):
5174 + Handle level overrides (#5134).
5176 * Docx writer:
5178 + Support custom properties (#3024, #5252, Agustín Martín Barbero).
5179 Also supports additional core properties: `subject`, `lang`,
5180 `category`, `description`.
5181 + Make Level into a real type, instead of an alias for a tuple
5182 (Jesse Rosenthal).
5184 * ICML writer (Mauro Bieg):
5186 + Support custom-styles (#5137, see #2106).
5187 + Support unnumbered headers (#5140).
5189 * Texinfo writer: Use header identifier for anchor if present (#4731).
5190 Previously we were overwriting an existing identifier with a new one.
5192 * Org writer: Preserve line-numbering for example and code blocks
5193 (Brian Leung).
5195 * Man/Ms writers: Don't escape `-` as `\-`. The `\-` gets rendered
5196 in HTML and PDF as a unicode minus sign.
5198 * Ms writer: Ensure we have a newline after .EN in display math (#5251).
5200 * RST writer: Don't wrap simple table header lines (#5128).
5202 * Asciidoc writer: Shorter delimiters for tables, blockquotes
5203 (#4364). This matches asciidoctor reference docs.
5205 * Dokuwiki writer: Remove automatic `:` prefix before internal image
5206 links (#5183, Damien Clochard). This prevented users from making
5207 relative image links.
5209 * Zimwiki writer: remove automatic colon prefix before internal
5210 images (#5183, Damien Clochard).
5212 * MediaWiki writer: fix caption, use 'thumb' instead of 'frame'
5213 (#5105). Captions used to have the word 'caption' prepended; this
5214 has been removed. Also, 'thumb' is used instead of 'frame' to
5215 allow images to be resized.
5217 * reveal.js writer:
5219 + Ensure that we don't get > 2 levels of section nesting,
5220 even with slide level > 2 (#5168).
5221 + If slide level == N but there is no N-level header, make
5222 sure the next header with level > N gets treated as a slide
5223 and put in a section, rather than remaining loose (#5168).
5225 * Markdown writer:
5227 + Make `plain` RawBlocks pass through in `plain` output.
5228 + Include needed whitespace after HTML figure (#5121).
5229 We use HTML for a figure in markdown dialects that can't
5230 represent it natively.
5232 * Commonmark writer:
5234 + Fix handling of SoftBreak with `hard_line_breaks` (#5195).
5235 + Implement `--toc` (`writerTableOfContents`)
5236 in commonmark/gfm writers (#5172).
5238 * EPUB writer:
5240 + Ensure that picture transforms are done on metadata too.
5241 + Small fixes to `nav.xhtml`:
5242 Add 'landmarks' id attribute to the landmarks nav.
5243 Replace old default CSS removing numbers from ol.toc li
5244 with new rules that match `nav#toc ol, nav#landmarks ol`.
5245 We keep the `toc` class on `ol` for backwards compatibility.
5247 * LaTeX writer:
5249 + Make raw content marked `beamer` pass through in `beamer`
5250 output (pandoc/lua-filters#40).
5251 + Beamer: avoid duplicated `fragile` property in some cases
5252 (#5208).
5253 + Add `#` special characters for listings (#4939).
5254 This character needs special handling in `\lstinline`.
5256 * RTF writer: use `toTableOfContents` from Shared to replace
5257 old duplicated code.
5259 * Pptx writer:
5261 + Support custom properties. Also supports additional core
5262 properties: `subject`, `category`, `description` (#5252,
5263 Agustín Martín Barbero).
5264 + Use `toTableOfContents` from Shared to replace old duplicated code.
5266 * ODT writer (Augustín Martín Barbero):
5268 + Fix typo in custom properties (#2839).
5269 + Improve standard properties, including the following core
5270 properties: `generator` (Pandoc/VERSION), `description`, `subject`,
5271 `keywords`, `initial-creator` (from authors), `creation-date`
5272 (actual creation date) (#5252).
5274 * Custom writers:
5276 + Allow '-' in filenames for custom lua writers (#5187).
5277 + sample.lua: add `SingleQuoted`, `DoubleQuoted` (#5104).
5278 + sample.lua: Add a missing `>` (MichaWiedenmann).
5280 * reveal.js template: Add `zoomKey` config (#4249).
5282 * HTML5 template: Remove unnecessary type="text/css" on style and
5283 link for HTML5 (#5146).
5285 * LaTeX template (Andrew Dunning, except where noted):
5287 + Prevent fontspec from scaling `mainfont` to match the default
5288 font, Latin Modern. A main font set to 12pt could
5289 previously appear between 11pt to 13pt depending on its design.
5290 To return to the earlier rendering, use `-V
5291 mainfontoptions="Scale=MatchLowercase"` (#5212, #5218).
5292 + Display monospaced fonts without TeX ligatures when using
5293 `--pdf-engine=lualatex`. It now matches the behaviour of other
5294 engines (#5212, #5218).
5295 + Remove the deprecated `romanfont` variable. The functionality of
5296 `mainfont` is identical (#5218).
5297 + Render `\subtitle` with the standard document classes.
5298 Previously, `subtitle` only appeared when using the KOMA-Script
5299 classes or Beamer (#5213, #5244).
5300 + Use Babel instead of Polyglossia for LuaLaTeX. This avoids
5301 several language selection problems, notably with retaining
5302 French spacing conventions when switching to a verbatim
5303 environment or another language; and in printing Greek text
5304 without hyphenation (#5193).
5305 + Use the [`xurl`](https://ctan.org/pkg/xurl) package if
5306 available, improving the appearance of URLs by allowing them to
5307 break at additional points (#5193).
5308 + Use [`bookmark`](https://ctan.org/pkg/bookmark) if available
5309 to correct heading levels in PDF bookmarks: see the [KOMA-Script
5310 3.26 release notes](https://komascript.de/release3.26) (#5193).
5311 + Require the [`xcolor`](https://ctan.org/pkg/xcolor) package to
5312 avoid a possible error when using additional packages alongside
5313 footnotes in tables (#5193, closes #4861).
5314 + Remove obsolete `fixltx2e` package, which has no functionality
5315 with TeX Live 2015 or later (#5193).
5316 + Allow multiple `fontfamilies.options` (#5193, closes #5194).
5317 + Restrict `institute` variable to Beamer (#5219).
5318 + Use [`footnotehyper`](https://ctan.org/pkg/footnotehyper)
5319 package if available to make footnotes in tables compatible
5320 with `hyperref` (#5234).
5321 + Number parts and chapters in book classes only if the
5322 `numbersections` variable is set, for consistency with other
5323 output formats. To return to the previous behaviour, use
5324 `-V numbersections -V secnumdepth=0` (#5235).
5325 + Reindent file (#5193).
5326 + Use built-in parskip handling with KOMA-Script classes (#5143, Enno).
5327 + Set default listings language for lua, assembler (#5227, John
5328 MacFarlane). Otherwise we get an error when trying to compile code
5329 with lua or assembler code. To change the default dialect
5330 (currently 5.3 for lua and x86masm for assembler), you can use
5331 `--include-in-header` to inject something like
5332 `\lstset{defaultdialect=[5.2]Lua}`.
5334 * Text.Pandoc.Readers: Changed types of `readJSON`; it now runs
5335 in an instance of PandocMonad, like the other readers and
5336 writers. [API change]
5338 * Text.Pandoc.Writers: Changed types of `writeJSON`; it now runs
5339 in an instance of PandocMonad, like the other readers and
5340 writers. [API change]
5342 * Text.Pandoc.Error: Added `PandocUTF8DecodingError` constructor
5343 for `PandocError`. [API change]
5345 * Text.Pandoc.Writers.Shared - add `toTableOfContents`. [API change]
5346 This is refactored out from the Markdown writer.
5347 It can be used in other writers to create a table of contents.
5349 * Improve error messages for UTF-8 decoding errors. Now we give
5350 the filename and byte offset (#4765).
5352 * Text.Pandoc.XML: Strip out illegal XML characters in
5353 `escapeXMLString` (#5119).
5355 * Text.Pandoc.Process: update `pipeProcess` (Albert Krewinkel).
5356 The implementation of `pipeProcess` was rewritten to fix sporadic
5357 failures caused by prematurely closed pipes.
5359 * Use `safeRead` instead of `read` everywhere in the code
5360 (John MacFarlane, Mauro Bieg, #5162, #5180).
5362 * Text.Pandoc.SelfContained: Decompress `.svgz` when
5363 converting to `data:` URI (#5163, Alexander Krotov).
5365 * Text.Pandoc.Parsing: Remove unused `HasHeaderMap`
5366 (#5175, Alexander Krotov). [API change]
5368 * Normalize Windows paths to account for change in ghc 8.6 (#5127).
5369 When pandoc is compiled with ghc 8.6, Windows paths are treated
5370 differently, and paths beginning `\\server` no longer work.
5371 This commit rewrites such patsh to `\\?\UNC\server` which works.
5372 The change operates at the level of argument parsing, so it
5373 only affects the command line program.
5375 * Simplify/fix reading of `--metadata` values on command line
5376 to avoid problems relating to hvr/HsYAML#7 (#5177).
5378 * data/pandoc.lua: auto-fix nested constructor arguments (Albert
5379 Krewinkel). Incorrect types to pandoc element constructors are
5380 automatically converted to the correct types when possible. This was
5381 already done for most constructors, but conversions are now also done
5382 for nested types (like lists of lists).
5384 * Removed custom Setup.hs, use build-type: simple. The only thing we
5385 gained from the custom build was automatic installation of the man
5386 page when using 'cabal install'. But custom builds cause problems,
5387 e.g., with cross-compilation. Installation of the man page is
5388 better handled by packagers. Note to packagers (e.g. Debian): it
5389 may be necessary to add a step installing the man page with the
5390 next release.
5392 * Allow latest http-client, tasty, zip-archive, Glob.
5394 * Require skylighting >= 0.7.5, adding support for sml, J,
5395 typescript.
5397 * Tests: Cleaned up `findPandoc` in `Tests.Helpers`, so it
5398 works well with cabal v2.
5400 * INSTALL.md:
5402 + Use button for installer links (John MacFarlane, Mauro Bieg,
5403 #5167).
5404 + Fix links and bump required stack version (max).
5405 + Improve installation notes on associated software (Andrew
5406 Dunning). Includes explanation of how to install related tools
5407 with package managers (since the method of installing
5408 `rsvg-convert` is not obvious).
5410 * doc/org.md: improve documentation of org features (Albert
5411 Krewinkel).
5413 * doc/lua-filters.md: use 3rd level headers for module fields.
5415 * MANUAL:
5417 + Clarify automatic identifiers (#5201). We remove
5418 non-alphanumerics. This includes, e.g., emojis.
5419 + Fix example for Div with id (Geoffrey Ely).
5420 + Update list of LaTeX packages used.
5421 + Make it clear that `hard_line_breaks` works in `gfm` (see #5195).
5422 + Mention `raw_attribute` in documentation for `raw_html` and
5423 `raw_tex` (#5240, thanks to @eiro).
5424 + Clarify that `$sep$` must come right before `$endfor$` in templates
5425 (#5243, Lev Givon).
5426 + Document metadata support for docx, odt, pptx writers (Agustín
5427 Martín Barbero).
5428 + Reorganize template variables (#5249, Andrew Dunning).
5429 Add additional headings to categorize variables, and
5430 alphabetize when there is large number; add more examples.
5431 + Document `date-meta` template variable (#5260, Tristan Stenner).
5433 * trypandoc: Fix CSS and viewport.
5435## pandoc 2.5 (2018-11-27)
5437 * Text.Pandoc.App: split into several unexported submodules (Albert
5438 Krewinkel): Text.Pandoc.App.FormatHeuristics,
5439 Text.Pandoc.App.Opt, Text.Pandoc.App.CommandLineOptions,
5440 Text.Pandoc.App.OutputSettings. This is motivated partly by the
5441 desire to reduce recompilations when something is modified,
5442 since App previously depended on virtually every other module.
5444 * Text.Pandoc.Extensions
5446 + Semantically, `gfm_auto_identifiers` is now a modifier of
5447 `auto_identifiers`; for identifiers to be set, `auto_identifiers` must
5448 be turned on, and then the type of identifier produced depends on
5449 `gfm_auto_identifiers` and `ascii_identifiers` are set. Accordingly,
5450 `auto_identifiers` is now added to `githubMarkdownExtensions` (#5057).
5451 + Remove `ascii_identifiers` from `githubMarkdownExtensions`.
5452 GitHub doesn't seem to strip non-ascii characters any more.
5454 * Text.Pandoc.Lua.Module.Utils (Albert Krewinkel)
5456 + Test AST object equality via Haskell (#5092). Equality of Lua
5457 objects representing pandoc AST elements is tested by unmarshalling
5458 the objects and comparing the result in Haskell.
5459 A new function `equals` which performs this test has been added to the
5460 `pandoc.utils` module.
5461 + Improve stringify. Meta value strings (MetaString)
5462 and booleans (MetaBool) are now converted to the literal string and the
5463 lowercase boolean name, respectively. Previously, all values of these
5464 types were converted to the empty string.
5466 * Text.Pandoc.Parsing: Remove Functor and Applicative constraints where Monad
5467 already exists (Alexander Krotov).
5469 * Text.Pandoc.Pretty: Don't render BreakingSpace at end of line
5470 or beginning of line (#5050).
5472 * Text.Pandoc.Readers.Markdown
5474 + Fix parsing of citations, quotes, and underline emphasis
5475 after symbols. Starting with pandoc 2.4, citations, quoted inlines,
5476 and underline emphasis were no longer recognized after certain
5477 symbols, like parentheses (#5099, #5053).
5478 + In pandoc 2.4, a soft break after an abbreviation would be
5479 relocated before it to allow for insertion of a nonbreaking
5480 space after the abbreviation. This behavior is here reverted.
5481 A soft break after an abbreviation will remain, and no nonbreaking
5482 space will be added. Those who care about this issue should take care not
5483 to end lines with an abbreviation, or to insert nonbreaking spaces
5484 manually.
5486 * Text.Pandoc.Readers.FB2: Do not throw error for unknown elements in
5487 `<body>` (Alexander Krotov). Some libraries include custom elements
5488 in their FB2 files.
5490 * Text.Pandoc.Readers.HTML
5492 + Allow `tfoot` before body rows (#5079).
5493 + Parse `<small>` as a Span with class "small" (#5080).
5494 + Allow thead containing a row with `td` rather than `th` (#5014).
5496 * Text.Pandoc.Readers.LaTeX
5498 + Cleaned up handling of dimension arguments. Allow decimal points,
5499 preceding space.
5500 + Don't allow arguments for verbatim, etc.
5501 + Allow space before bracketed options.
5502 + Allow optional arguments after `\\` in tables.
5503 + Improve parsing of `\tiny`, `\scriptsize`, etc. Parse as raw,
5504 but know that these font changing commands take no arguments.
5506 * Text.Pandoc.Readers.Muse
5508 + Trim whitespace before parsing grid table cells (Alexander Krotov).
5509 + Add grid tables support (Alexander Krotov).
5511 * Text.Pandoc.Shared
5513 + For bibliography match Div with id `refs`, not class `references`.
5514 This was a mismatch between pandoc's docx, epub, latex, and markdown
5515 writers and the behavior of pandoc-citeproc, which actually looks for a
5516 div with id `refs` rather than one with class `references`.
5517 + Exactly match GitHub's identifier generating algorithm (#5057).
5518 + Add parameter for `Extensions` to `uniqueIdent` and
5519 `inlineListToIdentifier` (#5057). [API change]
5520 This allows these functions to be sensitive to the settings of
5521 `Ext_gfm_auto_identifiers` and `Ext_ascii_identifiers`, and allows us to
5522 use `uniqueIdent` in the CommonMark reader, replacing custom code. It
5523 also means that `gfm_auto_identifiers` can now be used in all formats.
5525 * Text.Pandoc.Writers.AsciiDoc
5527 + Use `.`+ as list markers to support nested ordered lists (#5087).
5528 + Support list number styles (#5089).
5529 + Render Spans using `[#id .class]#contents#` (#5080).
5531 * Text.Pandoc.Writers.CommonMark
5533 + Respect `--ascii` (#5043, quasicomputational).
5534 + Make sure `--ascii` affects quotes, super/subscript.
5536 * Text.Pandoc.Writers.Docx
5538 + Fix bookmarks to headers with long titles (#5091).
5539 Word has a 40 character limit for bookmark names. In addition, bookmarks
5540 must begin with a letter. Since pandoc's auto-generated identifiers may
5541 not respect these constraints, some internal links did not work. With
5542 this change, pandoc uses a bookmark name based on the SHA1 hash of the
5543 identifier when the identifier isn't a legal bookmark name.
5544 + Add bookmarks to code blocks (Nikolay Yakimov).
5545 + Add bookmarks to images (Nikolay Yakimov).
5546 + Refactor common bookmark creation code into a function (Nikolay Yakimov).
5548 * Text.Pandoc.Writers.EPUB: Handle calibre metadata (#5098).
5549 Nodes of the form
5551 <meta name="calibre:series" content="Classics on War and Politics"/>
5553 are now included from an epub XML metadata file. You can also include
5554 this information in your YAML metadata, like so:
5556 calibre:
5557 series: Classics on War and Policitics
5559 In addition, ibooks-specific metadata can now be included via an XML
5560 file. (Previously, it could only be included via YAML metadata, see
5561 #2693.)
5563 * Text.Pandoc.Writers.HTML: Use plain `"` instead of `&quot;` outside of
5564 attributes.
5566 * Text.Pandoc.Writers.ICML: Consolidate adjacent strings, inc. spaces.
5567 This avoids splitting up the output unnecessarily into separate elements.
5569 * Text.Pandoc.Writers.LaTeX: Don't emit `[<+->]` unless beamer output, even
5570 if `writerIncremental` is True (#5072).
5572 * Text.Pandoc.Writers.Muse (Alexander Krotov).
5574 + Output tables as grid tables if they have multi-line cells.
5575 + Indent simple tables only on the top level.
5576 + Output tables with one column as grid tables.
5577 + Add support for `--reference-location`.
5578 + Internal improvements.
5580 * Text.Pandoc.Writers.OpenDocument: Fix list indentation (Nils Carlson,
5581 #5095). This was a regression in pandoc 2.4.
5583 * Text.Pandoc.Writers.RTF: Fix warnings for skipped raw inlines.
5585 * Text.Pandoc.Writers.Texinfo: Add blank line before `@menu` section (#5055).
5587 * Text.Pandoc.XML: in `toHtml5Entities`, prefer shorter entities
5588 when there are several choices for a particular character.
5590 * data/abbreviations
5592 + Add additional abbreviations (Andrew Dunning)
5593 Many of these borrowed from the Chicago Manual of Style 10.42,
5594 'Scholarly abbreviations'.
5596 * Templates
5598 + Asciidoc template: add :lang: to title header is lang is set in
5599 metadata (#5088).
5601 * pandoc.cabal: Add cabal flag `derive_json_via_th` (Albert Krewinkel)
5602 Disabling the flag will cause derivation of ToJSON and FromJSON
5603 instances via GHC Generics instead of Template Haskell. The flag is
5604 enabled by default, as deriving via Generics can be slow (see #4083).
5606 * trypandoc:
5608 + Tweaked drop-down lists.
5609 + Put link to site in footer.
5610 + Preselect output format.
5611 + Update on change of in or out format.
5612 + Add man input format.
5614 * MANUAL.txt:
5616 + Fix outdated description of latex_macros extension.
5617 + Clarified placement of bibliography.
5618 + Added "A note on security."
5619 + Fix note on curly brace syntx for locators.
5620 + Document new explicit syntax for citeproc locators.
5621 + Remove confusing cross-links for some extensions.
5622 + Don't put pandoc in code ticks in heading.
5623 + Document that `--ascii` works for gfm and commonmark too.
5624 + Add `man` to `--from` options.
5626 * doc/customizing-pandoc.md: various improvements (Mauro Bieg).
5629## pandoc 2.4 (2018-11-03)
5631### New features
5633 * New input format `man` (Yan Pashkovsky, John MacFarlane).
5635### Behavior changes
5637 * `--ascii` is now implemented in the writers, not in Text.Pandoc.App,
5638 via the new `writerPreferAscii` field in `WriterOptions`.
5639 Now the `write*` functions for Docbook, HTML, ICML, JATS, LaTeX,
5640 Ms, Markdown, and OPML are sensitive to `writerPreferAscii`.
5641 Previously the to-ascii translation was done in Text.Pandoc.App,
5642 and thus not available to those using the writer functions
5643 directly.
5645 * `--ascii` now works with Markdown output. HTML5 character reference
5646 entities are used.
5648 * `--ascii` now works with LaTeX output. 100% ASCII output can't be
5649 guaranteed, but the writer will use commands like `\"{a}` and `\l`
5650 whenever possible, to avoid emitting a non-ASCII character.
5652 * For HTML5 output, `--ascii` now uses HTML5 character reference
5653 entities rather than numerical entities.
5655 * Improved detection of format based on extension (in Text.Pandoc.App).
5656 We now ensure that if someone tries to convert a file for a
5657 format that has a pandoc writer but not a reader, it won't just
5658 default to markdown.
5660 * Add viz. to abbreviations file (#5007, Nick Fleisher).
5662 * AsciiDoc writer: always use single-line section headers,
5663 instead of the old underline style (#5038). Previously the single-line
5664 style would be used if `--atx-headers` was specified, but
5665 now it is always used.
5667 * RST writer: Use simple tables when possible (#4750).
5669 * CommonMark (and gfm) writer: Add plain text fallbacks. (#4528,
5670 quasicomputational). Previously, the writer would unconditionally
5671 emit HTML output for subscripts, superscripts, strikeouts (if the
5672 strikeout extension is disabled) and small caps, even with
5673 `raw_html` disabled. Now there are plain-text (and, where
5674 possible, fancy Unicode) fallbacks for all of these corresponding
5675 (mostly) to the Markdown fallbacks, and the HTML output is only
5676 used when `raw_html` is enabled.
5678 * Powerpoint writer: support raw openxml (Jesse Rosenthal, #4976).
5679 This allows raw openxml blocks and inlines to be used in the pptx
5680 writer. Caveats: (1) It's up to the user to write
5681 well-formed openxml. The chances for corruption, especially with
5682 such a brittle format as pptx, is high. (2) Because of
5683 the tricky way that blocks map onto shapes, if you are using
5684 a raw block, it should be the only block on a slide
5685 (otherwise other text might end up overlapping it). (3) The
5686 pptx ooxml namespace abbreviations are different from the
5687 docx ooxml namespaces. Again, it's up to the user to get it
5688 right. Unzipped document and ooxml specification should be
5689 consulted.
5691 * With `--katex` in HTML formats, do not use the autorenderer (#4946).
5692 We no longer surround formulas with `\(..\)` or `\[..\]`. Instead,
5693 we tell katex to convert the contents of span elements with
5694 class "math". Since math has already been identified, this
5695 avoids wasted time parsing for LaTeX delimiters. Note, however,
5696 that this may yield unexpected results if you have span elements
5697 with class "math" that don't contain LaTeX math.
5698 Also, use latest version of KaTeX by default (0.9.0).
5700 * The man writer now produces ASCII-only output, using groff escapes,
5701 for portability.
5703 * ODT writer:
5705 + Add title, author and date to metadata; any remaining
5706 metadata fields are added as `meta:user-defined` tags.
5707 + Implement table caption numbering (#4949, Nils Carlson).
5708 Captioned tables are numbered and labeled with format "Table 1:
5709 caption", where "Table" is replaced by a translation, depending
5710 on the value of `lang` in metadata. Uncaptioned tables are not
5711 enumerated.
5712 + OpenDocument writer: Implement figure numbering in captions (#4944,
5713 Nils Carlson). Figure captions are now numbered 1, 2, 3, ...
5714 The format in the caption is "Figure 1: caption" and so on
5715 (where "Figure" is replaced by a translation, depending on the
5716 value of `lang` in the metadata). Captioned figures are numbered
5717 consecutively and uncaptioned figures are not enumerated. This
5718 is necessary in order for LibreOffice to generate an
5719 Illustration Index (Table of Figures) for included figures.
5721 * RST reader: Pass through fields in unknown directives as div attributes
5722 (#4715). Support `class` and `name` attributes for all directives.
5724 * Org reader: Add partial support for `#+EXCLUDE_TAGS` option. (#4284,
5725 Brian Leung). Headers with the corresponding tags should not
5726 appear in the output.
5728 * Log warnings about missing title attributes now include a
5729 suggestion about how to fix the problem (#4909).
5731 * Lua filter changes (Albert Krewinkel):
5733 + Report traceback when an error occurs. A proper Lua traceback is
5734 added if either loading of a file or execution of a filter
5735 function fails. This should be of help to authors of Lua filters
5736 who need to debug their code.
5738 + Allow access to pandoc state (#5015). Lua filters and custom
5739 writers now have read-only access to most fields of pandoc's
5740 internal state via the global variable `PANDOC_STATE`.
5742 + Push ListAttributes via constructor (Albert Krewinkel).
5743 This ensures that ListAttributes, as present in OrderedList elements,
5744 have additional accessors (viz. `start`, `style`, and `delimiter`).
5746 + Rename ReaderOptions fields, use snake_case. Snake case is used
5747 in most variable names, using camelCase for these fields was an
5748 oversight. A metatable is added to ensure that the old field
5749 names remain functional.
5751 + Iterate over AST element fields when using `pairs`. This makes
5752 it possible to iterate over all ield names of an AST element by
5753 using a generic `for` loop with pairs`:
5755 for field_name, field_content in pairs(element) do
5756 ...
5757 end
5759 Raw table fields of AST elements should be considered an
5760 implementation detail and might change in the future. Accessing
5761 element properties should always happen through the fields
5762 listed in the Lua filter docs.
5764 Note that the iterator currently excludes the `t`/`tag` field.
5766 + Ensure that MetaList elements behave like Lists. Methods usable
5767 on Lists can also be used on MetaList objects.
5769 + Fix MetaList constructor (Albert Krewinkel). Passing a MetaList
5770 object to the constructor `pandoc.MetaList` now returns the
5771 passed list as a MetaList. This is consistent with the
5772 constructor behavior when passed an (untagged) list.
5774 * Custom writers: Custom writers have access to the global variable
5775 `PANDOC_DOCUMENT`(Albert Krewinkel, #4957). The variable contains
5776 a userdata wrapper around the full pandoc AST and exposes two
5777 fields, `meta` and `blocks`. The field content is only
5778 marshaled on-demand, performance of scripts not accessing the
5779 fields remains unaffected.
5781### API changes
5783 * Text.Pandoc.Options: add `writerPreferAscii` to `WriterOptions`.
5785 * Text.Pandoc.Shared:
5787 + Export `splitSentences`. This was previously duplicated in the Man and
5788 Ms writers.
5789 + Add `ToString` typeclass (Alexander Krotov).
5791 * New exported module Text.Pandoc.Filter (Albert Krewinkel).
5793 * Text.Pandoc.Parsing
5795 + Generalize `gridTableWith` to any `Char` Stream (Alexander Krotov).
5796 + Generalize `readWithM` from `[Char]` to any `Char` Stream
5797 that is a `ToString` instance (Alexander Krotov).
5799 * New exposed module Text.Pandoc.Filter (Albert Krewinkel).
5801 * Text.Pandoc.XML: add `toHtml5Entities`.
5803 * New exported module Text.Pandoc.Readers.Man (Yan Pashkovsky, John
5804 MacFarlane).
5806 * Text.Pandoc.Writers.Shared
5808 + Add exported functions `toSuperscript` and
5809 `toSubscript` (quasicomputational, #4528).
5810 + Remove exported functions `metaValueToInlines`,
5811 `metaValueToString`. Add new exported functions
5812 `lookupMetaBool`, `lookupMetaBlocks`, `lookupMetaInlines`,
5813 `lookupMetaString`. Use these whenever possible for uniformity
5814 in writers (Mauro Bieg, #4907). (Note that
5815 removed function `metaValueToInlines` was in previous
5816 released versions.)
5817 + Add `metaValueToString`.
5819 * Text.Pandoc.Lua
5821 + Expose more useful internals (Albert Krewinkel):
5823 - `runFilterFile` to run a Lua filter from file;
5824 - data type `Global` and its constructors; and
5825 - `setGlobals` to add globals to a Lua environment.
5827 This module also contains `Pushable` and `Peekable` instances
5828 required to get pandoc's data types to and from Lua. Low-level
5829 Lua operation remain hidden in Text.Pandoc.Lua.
5831 + Rename `runPandocLua` to `runLua` (Albert Krewinkel).
5833 + Remove `runLuaFilter`, merging this into Text.Pandoc.Filter.Lua's
5834 `apply` (Albert Krewinkel).
5836### Bug fixes and under-the-hood improvements
5838 * Text.Pandoc.Parsing
5840 + Make `uri` accept any stream with Char tokens (Alexander Krotov).
5841 + Rewrite `uri` without `withRaw` (Alexander Krotov).
5842 + Generalize `parseFromString` and `parseFromString'` to any
5843 streams with Char token (Alexander Krotov)
5844 + Rewrite `nonspaceChar` using `noneOf` (Alexander Krotov)
5846 * Text.Pandoc.Shared: Reimplement `mapLeft` using `Bifunctor.first`
5847 (Alexander Krotov).
5849 * Text.Pandoc.Pretty: Simplify `Text.Pandoc.Pretty.offset`
5850 (Alexander Krotov).
5852 * Text.Pandoc.App
5854 + Work around HXT limitation for --syntax-definition with windows
5855 drive (#4836).
5856 + Always preserve tabs for man format. We need it for tables.
5857 + Split command line parsing code into a separate unexported
5858 module, Text.Pandoc.App.CommandLineOptions (Albert Krewinkel).
5860 * Text.Pandoc.Readers.Roff: new unexported module for tokenizing
5861 roff documents.
5863 * New unexported module Text.Pandoc.RoffChar, provided character
5864 escape tables for roff formats.
5866 * Text.Pandoc.Readers.HTML: Fix `htmlTag` and `isInlineTag` to
5867 accept processing instructions (#3123, regression since 2.0).
5869 * Text.Pandoc.Readers.JATS: Use `foldl'` instead of `maximum` to
5870 account for empty lists (Alexander Krotov).
5872 * Text.Pandoc.Readers.RST: Don't allow single-dash separator in
5873 headerless table (#4382).
5875 * Text.Pandoc.Readers.Org: Parse empty argument array in inline src
5876 blocks (Brian Leung).
5878 * Text.Pandoc.Readers.Vimwiki:
5880 + Get rid of `F`, `runF` and `stateMeta'` in favor of `stateMeta`
5881 (Alexander Krotov).
5882 + Parse `Text` without converting to `[Char]` (Alexander Krotov).
5884 * Text.Pandoc.Readers.Creole: Parse `Text` without converting to
5885 `[Char]` (Alexander Krotov).
5887 * Text.Pandoc.Readers.LaTeX
5889 + Allow space at end of math after `\` (#5010).
5890 + Add support for `nolinkurl` command (#4992, Brian Leung).
5891 + Simplified type on `doMacros'`.
5892 + Tokenize before pulling tokens, rather than after (#4408). This
5893 has some performance penalty but is more reliable.
5894 + Make macroDef polymorphic and allow in inline context.
5895 Otherwise we can't parse something like `\lowercase{\def\x{Foo}}`.
5896 I have actually seen tex like this in the wild.
5897 + Improved parsing of `\def`, `\let`. We now correctly parse:
5898 ```
5899 \def\bar{hello}
5900 \let\fooi\bar
5901 \def\fooii{\bar}
5902 \fooi +\fooii
5904 \def\bar{goodbye}
5905 \fooi +\fooii
5906 ```
5907 + Improve parsing of `\def` argspec.
5908 + Skip `\PackageError` commands (see #4408).
5909 + Fix bugs omitting raw tex (#4527). The default is `-raw_tex`,
5910 so no raw tex should result unless we explicitly say `+raw_tex`.
5911 Previously some raw commands did make it through.
5912 + Moved `isArgTok` to Text.Pandoc.Readers.LaTeX.Parsing.
5913 + Moved `babelLangToBCP`, `polyglossiaLangToBCP` to new module,
5914 Text.Pandoc.Readers.LaTeX.Lang (unexported).
5915 + Simplified accent code using unicode-transforms.
5916 New dependency on unicode-transforms package for normalization.
5917 + Allow verbatim blocks ending with blank lines (#4624).
5918 + Support `breq` math environments: `dmath`, `dgroup`, `darray`.
5919 This collects some of the general-purpose code from the LaTeX reader,
5920 with the aim of making the module smaller.
5922 * Text.Pandoc.Readers.Markdown
5924 + Fix awkward soft break movements before abbreviations (#4635).
5925 + Add updateStrPos in a couple places where needed.
5927 * Text.Pandoc.Readers.Docx: Trigger bold/italic with bCs, iCs
5928 (#4947). These are variants for "complex scripts" like Arabic
5929 and are now treated just like b, i (bold, italic).
5931 * Text.Pandoc.Readers.Muse (Alexander Krotov)
5933 + Try to parse lists before trying to parse table.
5934 This ensures that tables inside lists are parsed correctly.
5935 + Forbid whitespace after opening and before closing markup
5936 elements.
5937 + Parse page breaks.
5938 + Simplify `museToPandocTable` to get rid of partial functions.
5939 + Allow footnotes to start with empty line.
5940 + Make sure that the whole text is parsed.
5941 + Allow empty headers. Previously empty headers caused parser to
5942 terminate without parsing the rest of the document.
5943 + Allow examples to be indented with tabs.
5944 + Remove indentation from examples indicated by `{{{` and `}}}`.
5945 + Fix parsing of empty cells.
5946 + Various changes to internals.
5947 + Rewrite some parsers in applicative style.
5948 + Avoid tagsoup dependency.
5949 + Allow table caption to contain `+`.
5951 * Text.Pandoc.Writers.LaTeX
5953 + Add newline if math ends in a comment (#4880). This prevents the
5954 closing delimiter from being swalled up in the comment.
5955 + With `--listings`, don't pass through org-babel attributes (#4889).
5956 + With `--biblatex`, use `\autocite` when possible (#4960).
5957 `\autocites{a1}{a2}{a3}` will not collapse the entries. So, if
5958 we don't have prefixes and suffixes, we use instead
5959 `\autocite{a1,a2,a3}`.
5960 + Fix description lists contining highlighted code (#4662).
5962 * Text.Pandoc.Writers.Man
5964 + Don't wrap `.SH` and `.SS` lines (#5019).
5965 + Avoid unnecessary `.RS`/`.RE` pair in definition lists with
5966 one paragraph definitions.
5967 + Moved common groff functions to Text.Pandoc.Writers.Groff.
5968 * Fix strong/code combination on man (should be `\f[CB]` not
5969 `\f[BC]`, see #4973).
5970 + Man writer: use `\f[R]` instead of `\f[]` to reset font
5971 (Alexander Krotov, #4973).
5972 + Move `splitSentences` to Text.Pandoc.Shared.
5974 * Text.Pandoc.Writers.Docx
5976 + Add framework for custom properties (#3034). So far, we don't
5977 actually write any custom properties, but we have the
5978 infrastructure to add this.
5980 + Handle tables in table cells (#4953). Although this is not
5981 documented in the spec, some versions of Word require a `w:p`
5982 element inside every table cell. Thus, we add one when the
5983 contents of a cell do not already include one (e.g. when a table
5984 cell contains a table).
5986 * Text.Pandoc.Writers.AsciiDoc: Prevent illegal nestings.
5987 Adjust header levels so that n+1 level headers are only
5988 found under n level headers, and the top level is 1.
5990 * Text.Pandoc.Writers.OpenDocument: Improve bullet/numbering
5991 alignment (#4385). This change eliminates the large gap we used
5992 to have between bullet and text, and also ensures that numbers
5993 in numbered lists will be right-aligned.
5995 * Text.Pandoc.Writers.ZimWiki
5997 + Number ordered list items sequentially, rather than always
5998 with 1 (#4962).
5999 + Remove extra indentation on lists (#4963).
6001 * Text.Pandoc.Writers.EPUB: Use metadata field `css` instead of
6002 `stylesheet` (Mauro Bieg, #4990).
6004 * Text.Pandoc.Writers.Markdown: Ensure blank between raw block and
6005 normal content (#4629). Otherwise a raw block can prevent a
6006 paragraph from being recognized as such.
6008 * Text.Pandoc.Writers.Ms
6010 + Removed old `escapeBar`. We don't need this now that we use
6011 `@` for math delim.
6012 + Moved common code to Text.Pandoc.Writers.Roff and to
6013 Text.Pandoc.RoffChar.
6014 + Move `splitSentences` to Text.Pandoc.Shared (to avoid duplication
6015 with the man writer).
6017 * Text.Pandoc.Writers.Muse (Alexander Krotov).
6019 + Add support for grid tables.
6020 + Fix Muse writer style.
6021 + Use `length` instead of `realLength` to calculate definition
6022 indentation. Muse parsers don't take character width into
6023 account when calculating indentation.
6024 + Do not insert newline before lists.
6025 + Use lightweight markup after `</em>` tag.
6027 * New unexported module Text.Pandoc.Writers.Roff, providing functions
6028 useful for all roff format writers (man, ms).
6030 * Text.Pandoc.Lua
6032 + Move globals handling to separate module Text.Pandoc.Lua.Global
6033 (Albert Krewinkel).
6035 + Lua filter internals: push Shared.Element as userdata (Albert
6036 Krewinkel). Hierarchical Elements were pushed to Lua as plain
6037 tables. This is simple, but has the disadvantage that marshaling
6038 is eager: all child elements will be marshaled as part of the
6039 object. Using a Lua userdata object instead allows lazy access
6040 to fields, causing content marshaling just (but also each time)
6041 when a field is accessed. Filters which do not traverse the full
6042 element contents tree become faster as a result.
6044### Default template changes
6046 * LaTeX template:
6048 + Add variable `hyperrefoptions` (#4925, Mathias Walter).
6049 + Add variable `romanfont`, `romanfontoptions` (#4665, OvidiusCicero).
6051 * AsciiDoc template: use single-line style for title.
6053 * revealjs template: Fix typo in the socket.io javascript plugin (#5006,
6054 Yoan Blanc).
6056 * Text.Pandoc.Lua.Util: add missing docstring to `defineHowTo`
6057 (Albert Krewinkel).
6059 * data/pandoc.lua: add datatype ListAttributes (Albert Krewinkel)
6061 * data/sample.lua: replace custom pipe function with pandoc.utils.pipe
6062 (Albert Krewinkel).
6064### Documentation improvements
6066 * INSTALL.md
6068 + Add chromeos install instructions (#4958) (Evan Pratten).
6069 + Add note about TinyTeX.
6071 * MANUAL.txt
6073 + Change `groff` -> `roff`.
6074 + Implement `--ascii` for Markdown writer.
6075 + Clarify LaTeX image dimensions output (Mauro Bieg).
6077 * doc/customizing-pandoc.md: added skeleton (Mauro Bieg, #3288).
6079 * doc/getting-started.md: Added title to test1.md to avoid warning.
6081 * doc/lua-filters.md: merge type references into main document,
6082 fix description of Code.text (Albert Krewinkel).
6084### Build infrastructure improvements
6086 * Makefile
6088 + Makefile: added quick-cabal, full-cabal targets.
6089 + Make .msi download targets insensitive to order of appveyor builds.
6091 * Update benchmarks for ghc 8.6.1.
6093 * pandoc.cabal:
6095 + Enable more compiler warnings (Albert Krewinkel).
6096 + Make base lower bound 4.8.
6097 + Bump upper bound for QuickCheck.
6098 + Bump upper bound for binary.
6099 + Updated version bounds for containers and haddock-library (#4974).
6100 + Added docx/docPropos/custom.xml to cabal data-files.
6101 + Require skylighting 0.7.4 (#4920).
6102 + New dependency on unicode-transforms package for normalization.
6104 * Improved .travis.yml testing and test with GHC 8.6.1 (Albert Krewinkel).
6106 * Added `tools/changelog-helper.sh`.
6108 * Added test/grofftest.sh for testing the man reader on real man pages.
6110## pandoc 2.3.1 (2018-09-28)
6112 * RST reader:
6114 + Parse RST inlines containing newlines (#4912, Francesco Occhipinti).
6115 This eliminates a regression introduced after pandoc 2.1.1, which
6116 caused inline constructions containing newlines not to be recognized.
6117 + Fix bug with internal link targets (#4919). They were gobbling up
6118 indented content underneath.
6120 * Markdown reader: distinguish autolinks in the AST. With this change,
6121 autolinks are parsed as Links with the `uri` class. (The same is true
6122 for bare links, if the `autolink_bare_uris` extension is enabled.)
6123 Email autolinks are parsed as Links with the `email` class. This
6124 allows the distinction to be represented in the AST.
6126 * Org reader:
6128 + Force inline code blocks to honor export options (Brian Leung).
6129 + Parse empty argument array in inline src blocks (Brian Leung).
6131 * Muse reader (Alexander Krotov):
6133 + Added additional tests.
6134 + Do not allow code markup to be followed by digit.
6135 + Remove heading level limit.
6136 + Simplify `<literal>` tag parsers
6137 + Parse Text instead of String. Benchmark shows 7% improvement.
6138 + Get rid of HTML parser dependency.
6139 + Various code improvements.
6141 * ConTeXt writer: change `\` to `/` in Windows image paths (#4918).
6142 We do this in the LaTeX writer, and it avoids problems.
6143 Note that `/` works as a LaTeX path separator on Windows.
6145 * LaTeX writer:
6147 + Add support for multiprenote and multipostnote arguments
6148 with `--biblatex` (Brian Leung, #4930). The multiprenotes occur before
6149 the first prefix of a multicite, and the multipostnotes follow the
6150 last suffix.
6151 + Fix a use of `last` that might take empty list. If you ran with
6152 `--biblatex` and have an empty document (metadata but no blocks),
6153 pandoc would previously raise an error because of the use of
6154 `last` on an empty list.
6156 * RTF writer: Fix build failure with ghc-8.6.1 caused by missing
6157 MonadFail instance (Jonas Scholl).
6159 * ODT Writer: Improve table header row style handling (Nils Carlson).
6160 This changes the way styles for cells in the header row
6161 and normal rows are handled in ODT tables.
6162 Previously a new (but identical) style was generated for
6163 every table, specifying the style of the cells within the table.
6164 After this change there are two style definitions for table cells,
6165 one for the cells in the header row, one for all other cells.
6166 This doesn't change the actual styles, but makes post-processing
6167 changes to the table styles much simpler as it is no longer
6168 necessary to introduce new styles for header rows and there are
6169 now only two styles where there was previously one per table.
6171 * HTML writer:
6173 + Don't add `uri` class to presumed autolinks. Formerly the `uri`
6174 class was added to autolinks by the HTML writer, but it had to
6175 guess what was an autolink and could not distinguish
6176 `[http://example.com](http://example.com)` from
6177 `<http://example.com>`. It also incorrectly recognized
6178 `[pandoc](pandoc)` as an autolink. Now the HTML writer
6179 simply passes through the `uri` attribute if it is present,
6180 but does not add anything.
6181 + Avoid adding extra section nestings for revealjs.
6182 Previously revealjs title slides at level (slidelevel - 1)
6183 were nested under an extra section element, even when
6184 the section contained no additional (vertical) content.
6185 That caused problems for some transition effects.
6186 + Omit unknown attributes in EPUB2 output. For example,
6187 `epub:type` attributes should not be passed through,
6188 or the epub produced will not validate.
6190 * JATS writer: remove 'role' attribute on 'bold' and 'sc' elements (#4937).
6191 The JATS spec does not allow these.
6193 * Textile writer: don't represent `uri` class explicitly
6194 for autolinks (#4913).
6196 * Lua filters (Albert Krewinkel):
6198 + Cleanup filter execution code.
6199 + Better error on test failure.
6201 * HTML, Muse reader tests: reduce time taken by round-trip test.
6203 * Added cabal.project.
6205 * MANUAL: `epub:type` is only useful for epub3 (Maura Bieg).
6207 * Use hslua v1.0.0 (Albert Krewinkel).
6209 * Fix `translations/ru` to use modern Russian orthography
6210 (Ivan Trubach).
6212 * Build Windows binary using ghc 8.6.1 and cabal new-build. This
6213 fixes issues with segfaults in the 32-bit Windows binaries (#4283).
6215## pandoc 2.3 (2018-09-16)
6217 * Add `--metadata-file` option (Mauro Bieg, #1960), which allows
6218 users to specify metadata in a YAML file, regardless of the
6219 input format (#1960).
6221 * Text.Pandoc.Writers.Shared: export `isDisplayMath` (API change).
6223 * Text.Pandoc.Readers.Markdown: export `yamlToMeta` (API change,
6224 Mauro Bieg).
6226 * Text.Pandoc.Readers.LaTeX.Types:
6228 + New type `ArgSpec` (API change).
6229 + Second parameter of `Macro` constructor is now `[ArgSpec]` instead of
6230 `Int` (API change).
6232 * Markdown reader:
6234 + Use `tex` instead of `latex` for raw tex-ish content. We can't
6235 always tell if it's LaTeX, ConTeXt, or plain TeX. Better just to
6236 use `tex` always. Note that if `context` or `latex` specifically
6237 is desired, you can still force that in a markdown document by
6238 using the raw attribute. Note that this change may affect some
6239 filters, if they assume that raw tex parsed by the Markdown reader
6240 will be RawBlock (Format `latex`). In most cases it should be
6241 trivial to modify the filters to accept `tex` as well.
6242 + Refactor and reorganize YAML code (Mauro Bieg).
6243 + Make `example_lists` work for interrupted lists
6244 without `startnum` (#4908).
6246 * HTML reader:
6248 + Parse `<script type="math/tex` tags as math (#4877).
6249 These are used by MathJax in some configurations.
6250 + Extract spaces inside links instead of trimming them
6251 (Alexander Krotov, #4845).
6252 + Added round-trip tests (Alexander Krotov).
6253 + Make parsing sensitive to the `raw_tex` extension (#1126). This now
6254 allows raw LaTeX environments, `\ref`, and `\eqref` to be parsed
6255 (which is helpful for translation HTML documents using MathJaX).
6257 * Org reader (Albert Krewinkel):
6259 + Respect export option `p` for planning info. Inclusion of planning info
6260 (`*DEADLINE*`, `*SCHEDULED*`, and `*CLOSED*`) can be controlled via the
6261 `p` export option: setting the option to `t` will add all planning
6262 information in a *Plain* block below the respective headline.
6263 + Org reader internals: don't rely on RecordWildCards and ViewPatterns
6264 ghc extensions.
6265 + Strip planning info from output. Planning info is parsed, but not
6266 included in the output (as is the default with Emacs Org-mode, #4867).
6268 * LaTeX reader:
6270 + Handle parameter patterns for `\def` (#4768, #4771).
6271 For example: `\def\foo#1[#2]{#1 and #2}`.
6272 + Allow `%` characters in URLs. This affects `\href` and `\url` (#4832).
6273 + Fixed parsing of `\texorpdfstring`. We were returning the wrong
6274 argument as the content.
6275 + Support `blockcquote`, `foreignblockquote`, `foreigncblockquote`,
6276 `hyphenblockquote`, `hyphencblockquote`, `enquote*`, `foreignquote`,
6277 `hyphenquote` from `csquotes` (#4848). Note that `foreignquote`
6278 will be parsed as a regular Quoted inline (not using the quotes
6279 appropriate to the foreign language).
6280 + Support more text-mode accents (#4652). Add support for `\|`, `\b`, `\G`,
6281 `\h`, `\d`, `\f`, `\r`, `\t`, `\U`, `\i`, `\j`, `\newtie`,
6282 `\textcircled`. Also fall back to combining characters when composed
6283 characters are not available.
6284 + Resolve `\ref` for figure numbers.
6285 + Support `mintinline` (#4365, Marc Schreiber).
6286 + Fix siunitx unit commands so they are only recognized in
6287 siunitx contexts (#4842). For example, `\l` outside of an
6288 siunitx context should be l-slash, not l (for liter).
6289 + Fix double `unnumbered` class (#4838). The `unnumbered` class
6290 was being included twice for starred sections.
6292 * RST reader: Don't skip link definitions after comments (#4860).
6294 * Muse reader (Alexander Krotov):
6296 + Close the `</quote>` in indented tag test.
6297 There is already a separate test for unclosed `</quote>`.
6298 + Autonumber sections in the correct order. Parsing now stops
6299 at each section header to ensure the header is registered before
6300 parsing of the next section starts.
6301 + Move duplicate code into `headingStart` function.
6302 + Allow newline after opening `*` or `**`.
6303 + Don't allow digits after closing marker in lightweight markup
6304 This change makes reader more compatible with Emacs Muse.
6305 + Parse `<verse>` tag in one pass instead of using
6306 `parseFromString`. This change makes it possible to have
6307 verbatim `</verse>` tag inside verse.
6309 * ODT reader: deal gracefully with missing `<office:font-face-decls/>`
6310 (#4336). This allows pandoc to parse ODT document produced by KDE's
6311 Calligra.
6313 * Muse writer (Alexander Krotov):
6315 + Output headers without asterisks if not on the top level.
6316 + Never wrap definition list terms.
6317 + Set `envInsideBlock = True` when rendering notes.
6318 + Use `""` instead of `[]` for empty String.
6319 + Check for whitespace in the beginning and end of Str's.
6320 + Escape `-`, `;` and `>` in the beginning of strings.
6321 + Escape list markers in the beginning of notes.
6322 + Normalize inline list before testing if tags should be used.
6323 + Use tags instead of lightweight markup for empty strings.
6324 + Use lightweight markup when possible.
6325 + Escape empty strings. This guarantees that `conditionalEscapeString`
6326 never returns empty string.
6327 + Wrap conditionalEscapeString result into `Muse` type.
6328 This removes the need to pass `envInsideLinkDescription` to it.
6329 + Separate `shouldEscapeString` function.
6330 + Simplify inline list rendering.
6331 + Replace newlines in strings with spaces.
6333 * Docx writer:
6335 + Add MetaString case for abstract, subtitle (#4900, Mauro Bieg).
6336 + Properly handle display math in spans (#4826). This isn't a
6337 complete solution, since other nestings of display math may still
6338 cause problems, but it should work for what is by far the most
6339 common case.
6341 * HTML writer:
6343 + Always output `<dt>` element, even if it is empty (#4883,
6344 Alexander Krotov).
6345 + Don't prefix `epub:` attributes with `data-`.
6347 * Org writer: Don't escape literal `_`, `^` (#4882). Org doesn't
6348 recognize these escapes.
6350 * ODT writer: Fix percentage image scaling (#4881, Nils Carlson).
6351 Image scaling was broken when a width was set to a percentage.
6353 * EPUB writer: set `epub:type` on body element in each chapter,
6354 depending on the `epub:type` of the first section (#4823). This
6355 only affects epub3. See
6356 http://www.idpf.org/epub/profiles/edu/structure/#h.l0bzsloklt10
6358 * FB2 writer: put `coverpage` element between title and date rather than in
6359 `document-info` element (#4854).
6361 * Markdown writer: Escape `~` if strikeout extension enabled (#4840).
6363 * Haddock writer: Use proper format for latex math in haddock (#4571, Joe
6364 Hermaszewski). Inline math in `\(..\)`, display math in `\[..\]`,
6365 tex is now used. Previously we'd "fake it with unicode" and fall
6366 back to tex when that didn't work. But newer haddock versions
6367 support latex math.
6369 * TEI writer:
6371 + Ensure that title element is always present, even if empty (#4839).
6372 + Put author tags in the template, rather than adding them in
6373 the writer (#4839).
6375 * LaTeX writer/template: be sensitive to `filecolor` variable (#4822).
6376 `linkcolor` only affects internal links, and `urlcolor` only
6377 affects linked URLs. For external links, the option to use is
6378 `filecolor`.
6380 * ConTeXt writer: output raw `tex` blocks as well as `context` (#969).
6382 * RST writer:
6384 + Use `.. raw:: latex` for `tex` content.
6385 + Use `.. container` for generic Divs, instead of raw HTML.
6386 + Render Divs with admonition classes as admonitions (#4833).
6387 Also omit Div with class `admonition-title`. These are generated
6388 by the RST reader and should be omitted on round-trip.
6390 * Text.Pandoc.PDF: fix message printed when rsvg-convert is not available
6391 (#4855, Antonio Terceiro).
6393 * HTML5 template: add the `title-block-header` identifier to the
6394 `header` element, to make it easier to style precisely (#4767,
6395 J. B. Rainsberger).
6397 * OpenDocument template: Remove unnecessary indenting of TOC title (#4798,
6398 José de Mattos Neto).
6400 * latex template: Add support for $toc-title$ to LaTeX (and PDF)
6401 (#4853, Wandmalfarbe).
6403 * TEI template: improve `publicationStmt`. Add support for
6404 `publisher`, `address`, `pubPlace`, and `date` variables.
6406 * beamer template: Support "toc-title" (#4835, Cyril Roelandt).
6408 * Text.Pandoc.Extensions: Fix haddock on `Ext_footnotes` (Chris Martin).
6410 * Lua: cleanup Lua utils, remove unused functions (Albert Krewinkel).
6412 * MANUAL.txt:
6414 + Clarify that `--biblatex/--natbib` don't work directly for PDF
6415 (#4904).
6416 + Document `epub:type` attribute (Mauro Bieg, #4901)
6417 + Clarify when `--resource-path` has an effect.
6418 + More detail on customization in syntax highlighting section.
6419 + Document encoding issue with `--listings` (#4871, Damien Clochard).
6420 + Remove docs on removed `--katex-stylesheet` (Mauro Bieg, #4862).
6421 + Use https for context wiki links (#4910).
6423 * CONTRIBUTING.md:
6425 + Link to lua-filters repository (#4874).
6426 + Fix mistake in REPL instructions for stack. (#4849, Brian Leung).
6428 * lua-filters.md: add links to filters, and to lua-filters repository
6429 (#4874).
6431 * INSTALL.md:
6433 + Indicate that cabal >= 2.0 is needed.
6434 + Added chocolatey installation method (#4844, Miodrag Milić).
6436 * Travis: exclude round-trip tests, except for nightly test which can fail.
6438 * Use latest texmath, pandoc-citeproc.
6440 * Use a patched version of foundation until
6441 https://github.com/haskell-foundation/foundation/pull/503
6442 is fixed.
6444 * Clean up appveyor build and Windows package creation.
6445 We now use 64-bit stack and ghc 8.4.3, lts-12 for the 64-bit build. The
6446 WiX-based msi is now 64-bit for 64-bit builds (fixing #4795).
6448 * Remove obsolete RELEASE-CHECKLIST.md.
6450 * Added additional compiler warnings in Makefile and CI builds.
6452## pandoc 2.2.3.2 (2018-08-07)
6454 * Markdown reader: Properly handle boolean values in YAML metadata (#4819).
6455 This fixes a regression in 2.2.3, which cause boolean values to
6456 be parsed as MetaInlines instead of MetaBool.
6458 We here record another undocumented (but desirable) change in 2.2.3:
6459 numerical metadata fields are now parsed as MetaInlines rather than
6460 MetaString.
6462## pandoc 2.2.3.1 (2018-08-06)
6464 * Markdown reader: Fix parsing of embedded mappings in YAML metadata
6465 (#4817). This fixes a regression in 2.2.3 which caused embedded
6466 mappings (e.g. mappings in sequences) not to work in YAML metadata.
6468## pandoc 2.2.3 (2018-08-05)
6470 * RST reader: improve parsing of inline interpreted text roles (#4811).
6472 + Use a Span with class "title-reference" for the default
6473 title-reference role.
6474 + Use `B.text` to split up contents into `Space`s, `SoftBreak`s,
6475 and `Str`s for `title-reference`.
6476 + Use Code with class "interpreted-text" instead of Span and Str for
6477 unknown roles. (The RST writer has also been modified to round-trip
6478 this properly.)
6479 + Disallow blank lines in interpreted text.
6480 + Backslash-escape now works in interpreted text.
6481 + Backticks followed by alphanumerics no longer end interpreted text.
6482 + Remove support for nested inlines (Francesco Occhipinti).
6483 RST does not allow nested emphasis, links, or other inline
6484 constructs. This fixes several bugs (#4581, #4561, #4792).
6486 * Org reader: fix parsers relying on `parseFromString` (#4784, Albert
6487 Krewinkel). Emphasis was not parsed when it followed directly after
6488 some block types (e.g., lists).
6490 * Markdown reader: Allow unquoted numbers and booleans as YAML mapping
6491 keys. Previously in 2.2.2 you could not do
6492 ```
6493 ---
6494 0: bar
6495 ...
6496 ```
6497 but only
6498 ```
6499 ---
6500 '0': bar
6501 ...
6502 ```
6503 With this change, both forms work.
6505 * DocBook reader: metadata handling improvements.
6506 Now we properly parse title and subtitle elements that are direct
6507 children of book and article (as well as children of bookinfo,
6508 articleinfo, or info). We also now use the `subtitle` metadata
6509 field for subtitles, rather than tacking the subtitle on to the
6510 title.
6512 * RST writer:
6514 + Allow images to be directly nested within links (#4810, Francesco
6515 Occhipinti).
6516 + Use `titleblock` instead of `title` variable for title block (#4803,
6517 Francesco Occhipinti). `titleblock` contains a properly formatted
6518 title and subtitle (using top-level headers). `title` and
6519 `subtitle` variables are still available and just contain the
6520 title and subtitle text. Note that this change will require an
6521 update to custom rst templates.
6522 + Render Code with class "interpreted-text" as interpreted text role.
6524 * MediaWiki writer: Avoid extra blank line in tables with empty cells
6525 (#4794). Note that the old output is semantically identical, but the
6526 new output looks better.
6528 * Lua Utils module: add function `blocks_to_inlines` (#4799, Albert
6529 Krewinkel). Exposes a function converting which flattenes a list of
6530 blocks into a list of inlines. An example use case would be the
6531 conversion of Note elements into other inlines.
6533 * RST template: use `titleblock` instead of `title`. Users of
6534 custom RST templates will want to update this.
6536 * LaTeX template: Moved some beamer code in default.latex template.
6537 This change allows beamer themes to change the template and font (as
6538 Metropolis does) (#4450).
6540 * Better error message on `-t pdf -o out.pdf` (#1155, Mauro Bieg).
6542 * Added test case for #4669 to repository.
6544 * INSTALL.md: Fix broken link for cabal-install (#4806, ChanHoHo).
6546 * MANUAL.txt:
6548 + Add beamer info for slide backgrounds (#4802, John Muccigrosso).
6549 + Clarify when `csquotes` is used in LaTeX writer (#4514).
6550 + Add `commonmark` to list of output formats where `raw_tex` has an
6551 effect (see #4527).
6554## pandoc 2.2.2.1 (2018-07-19)
6556 * Fix regression finding templates in user data directory (#4777).
6557 Under version 2.2.1 and prior pandoc found latex templates in the
6558 templates directory under the data directory, but this broke in 2.2.2.
6560 * Fix for bug in parsing `\input` in `rawLaTeXBlock` and
6561 `rawLaTeXInline` (#4781). (This primarily affects the markdown
6562 reader, and other readers that accept raw tex.)
6563 Starting in 2.2.2, everything after an `\input` (or `\include`)
6564 in a markdown file would be parsed as raw LaTeX.
6566 * MANUAL:
6568 + Clarify `gfm` vs `markdown_github` (#4783, Mauro Bieg).
6569 * Use `keywords` instead of `tags` in YAML metadata example (#4779).
6570 Unlike `tags`, `keywords` is used in some of the writers
6571 and default templates.
6573 * Add missing `rollingLinks` option to revealjs template (#4778,
6574 Igor Khorlo).
6576## pandoc 2.2.2 (2018-07-16)
6578 * Use HsYAML instead of yaml for translations and YAML metadata (#4747).
6579 yaml wraps a C library; HsYAML is pure Haskell. Advances #4535.
6581 Note: HsYAML implements YAML 1.2, in which the valid true
6582 values are `true`, `True`, `TRUE`. This means a change in
6583 the semantics of YAML metadata that could affect users:
6584 `y`, `yes`, and `on` no longer count as true values.
6586 * Fix regression: make `--pdf-engine` work with full paths (#4681, Mauro
6587 Bieg).
6589 * CommonMark reader: Handle `ascii_identifiers` extension (#4742,
6590 Anders Waldenborg). Non-ascii characters were not stripped from
6591 identifiers even if the `ascii_identifiers` extension was
6592 enabled (which is is by default for gfm).
6594 * TikiWiki reader: Improve list parsing (#4722, Mauro Bieg).
6595 Remove trailing Space from list items. Parse lists that have no space
6596 after marker.
6598 * LaTeX reader:
6600 + Treat `lilypond` as a verbatim environment (#4725).
6601 + Parse figure label into Image id (#4700, Mauro Bieg).
6602 + Beamer: Allow "noframenumbering" option (#4696, Raymond Ehlers).
6603 + Allow spaces around `\graphicspath` arguments (#4698).
6604 + Handle includes without surrounding blanklines (#4553).
6605 In addition, `\input` can now be used in an inline context,
6606 e.g. to provide part of a paragraph, as it can in LaTeX.
6607 + In `rawLaTeXBlock`, handle macros that resolve to a
6608 `\begin` or `\end` (#4667).
6609 + In `rawLaTeXBlock`, don't expand macros in macro definitions (#4653).
6610 Note that this only affected LaTeX in markdown.
6611 + Tighten up reading of beamer overlay specifications (#4669).
6612 Ideally we'd turn these on only when reading beamer, but currently
6613 beamer is not distinguished from latex as an input format.
6614 This commit also activates parsing of overlay specifications
6615 after commands in general (e.g. `\item`), since they can occur
6616 in many contexts in beamer.
6617 + Parse more siunitx unit commands (#4296, #4773).
6618 + Be more forgiving in key/value option parsing (#4761).
6620 * Markdown reader:
6622 + Allow empty code spans, e.g. `` ` ` ``.
6623 + Emojis are now wrapped in Spans with class `emoji` and
6624 attribute `data-emoji` (Anders Waldenborg, #4743).
6625 This allows the writer to handle them in a special way
6626 (e.g. using a special font, or just rendering the
6627 emoji name).
6629 * Muse reader (Alexander Krotov, except where indicated):
6631 + Get rid of non-exhaustive pattern match warning (Mauro Bieg).
6632 + Add support for floating images.
6633 + Add support for images with specified width.
6634 + Parse image URLs without "guard" and "takeExtension".
6635 + Split link and image parsing into separate functions.
6636 + Parse links starting with "URL:" explicitly instead of trying to strip
6637 "URL:" prefix after parsing.
6639 * Texinfo writer: Use `@sup` and `@sub` instead of custom macros (#4728,
6640 Alexander Krotov).
6642 * Markdown writer: Preserve `implicit_figures` with attributes, even if
6643 `implicit_attributes` is not set, by rendering in raw HTML (#4677).
6645 * Markdown and commonmark/github writers now respect the `emoji`
6646 extension. So, `-f markdown+emoji -t markdown+emoji` now leaves
6647 `:smile:` as `:smile:` rather than converting it to a smile
6648 character.
6650 * Docx writer: Be sensitive to `toc` in YAML metadata (#4645).
6652 * ODT/OpenDocument writer: Make internal links work (#4358).
6653 This adds proper bookmarks to the headers with non-null IDs.
6655 * EPUB writer: Properly escape pagetitle. Previously we weren't
6656 escaping `&` and other XML characters in the pagetitle, so a title
6657 containing a `&` would be invalid.
6659 * AsciiDoc Writer: Eescape square brackets at start of line (#4545,
6660 Mauro Bieg).
6662 * RST writer:
6664 + Don't treat 'example' as a syntax name (#4748).
6665 This fixes conversions from org with example blocks.
6666 + Support `--number-sections` via the `section-numbering`
6667 directive in standalone output.
6669 * reveal.js writer and template: reuse mathjax URL
6670 provided by the argument to `--mathjax` or the normal pandoc default,
6671 rather than a hard-coded one in the template (#4701).
6673 * LaTeX writer:
6675 + Properly handle footnotes in table captions (#4683).
6676 Refactored code from figure captions to use in both places.
6677 + In beamer output, fix single digit column percentage (#4690, Mauro
6678 Bieg).
6680 * FB2 writer (Alexander Krotov):
6682 + Convert Plain to Para in annotation (#2424).
6683 + Fix order of items in title-info (#2424).
6685 * Custom writer: fix error message on script failure (Albert Krewinkel).
6686 Error messages produced by Lua were not displayed by Pandoc.
6688 * Text.Pandoc.Emoji now exports `emojiToInline`, which returns a Span
6689 inline containing the emoji character and some attributes with metadata
6690 (class `emoji`, attribute `data-emoji` with emoji name). (API change,
6691 Anders Waldenborg, #4743).
6693 * Text.Pandoc.PDF:
6695 + Revert fix for #4484 (only compress images on last run, #4755).
6696 This will mean some increase in the time it takes to
6697 produce an image-heavy PDF with xelatex, but it will
6698 make tables of contents correct, which is more important.
6699 + Fix logic error in `runTeXProgram`. We were running the tex program
6700 one more time than requested. This should speed up PDF production.
6702 * Allow `--template` to take a URL as argument.
6704 * Text.Pandoc.Highlighting: Add missing re-export of `breezeDark`
6705 highlighting style (#4687, Adrian Sieber, API change).
6707 * Clarify macOS install in INSTALL.md (#4661). Make the binary package
6708 installer the recommended method, and note that on some older versions of
6709 macOS, homebrew installs from source and takes a lot of disk space
6710 (#4664, Ian).
6712 * MANUAL:
6714 + Clarify EPUB linked media (#4756, Mauro Bieg)
6715 + Update manual for "true" YAML values. Now that we're using HsYAML and
6716 YAML 1.2, the valid true values are `true`, `True`, `TRUE`. NOTE!
6717 `y`, `yes`, `on` no longer count as true values.
6718 + Document `-F` as alias for `--filter` (thanks to Gandalf Saxe).
6719 + Update manual on how math is rendered in LaTeX.
6720 + Add proxy description (#4131, Mauro Bieg).
6721 + Clarify that `--toc` requires `--standalone` (#4703).
6722 + Update citation styles link (#4699, wiefling).
6724 * In API docs, clarify how `Ext_east_asian_line_breaks` extension works
6725 (kaizshang91). Note that it will not take effect when readers/writers
6726 are called as libraries (#4674).
6728 * Improved translations/fr (#4766, lux-lth).
6730 * Removed inadvertently added `.orig` files from repository (#4648).
6732 * Remove `network-uri` flag and use 'Network.Socket'.
6733 This removes a compiler warning. There is no need for the old
6734 `network-uri` flag, since network 2.6 was released in 2014.
6736 * Add stack.lts10.yaml, stack.lts11.yaml. use lts-12 in stack.yaml.
6738 * Bump upper bounds for dependent packages.
6740 * Exclude foundation 0.0.21 for ghc 7.10. Otherwise cabal gets
6741 confused because of the way ghc 7.10 is excluded in foundation's
6742 cabal file. This can be removed when haskell-foundation/foundation#500
6743 is fixed.
6745 * Require cabal-version >= 2.0. This is needed for haddock-library.
6750## pandoc 2.2.1 (2018-05-10)
6752 * Restored and undeprecated gladtex for HTML math (#4607).
6754 + Added `GladTeX` constructor to `Text.Pandoc.Options.HTMLMathMethod`
6755 [API change, reverts removal in v2.2]
6756 + Restored and undeprecated `--gladtex` option, removed in v2.2.
6758 * LaTeX reader: Handle `$` in `/text{..}` inside math (#4576).
6760 * Org reader: Fix image filename recognition (Albert Krewinkel).
6761 Use a function from the filepath library to check whether a string is a
6762 valid file name. The custom validity checker that was used before gave
6763 wrong results (e.g. for absolute file paths on Windows,
6764 kawabata/ox-pandoc#52).
6766 * FB2 reader: Replace some errors with warnings (Alexander Krotov).
6768 * HTML writer:
6770 + Strip links from headers when creating TOC (#4340).
6771 Otherwise the TOC entries will not link to the sections.
6772 + Fix regression with tex math environments in HTML + MathJax (#4639).
6774 * Muse writer (Alexander Krotov): Add support for left-align and
6775 right-align classes (#4542).
6777 * Docx writer: Support underline (#4633).
6779 * Text.Pandoc.Parsing: Lookahead for non-whitespace after
6780 `singleQuoteStart` and `doubleQuoteStart` (#4637).
6782 * `test-pandoc-utils.lua`: more robust testing on both windows
6783 and \*nix. Previously the pipe tests were only run if
6784 `\bin/false` and `/bin/sed` were present, which they aren't
6785 in default MacOS and Windows systems. Fixed by using `tr`
6786 and `false`, which should always be in the path on a \*nix
6787 system, and `find` and `echo` for Windows.
6789 * Text.Pandoc.Shared: add `uriPathToPath`.
6790 This adjusts the path from a file: URI in a way that is sensitive
6791 to Windows/Linux differences. Thus, on Windows,
6792 `/c:/foo` gets interpreted as `c:/foo`, but on Linux,
6793 `/c:/foo` gets interpreted as `/c:/foo`. See #4613.
6795 * Use `uriPathToPath` with file: URIs (#4613).
6797 * Revert piping HTML to pdf-engine (Mauro Bieg, #4413). Use a temp
6798 file as before.
6800 * Text.Pandoc.Class: Catch IO errors when writing media files
6801 and issue a warning, rather than an error (Francesco Occhipinti, #4559).
6803 * Don't lowercase custom writer filename (Alexander Krotov, #4610).
6805 * MANUAL (Mauro Bieg):
6807 + Clarify truthiness in template variables (#2281).
6808 + Clarify pipe table width calculation (#4520).
6810 * ConTeXt template: New Greek fallback typeface (Pablo Rodríguez, #4405).
6811 CMU Serif gives better typographic results than the previous
6812 Greek fallback DejaVu Serif.
6814 * Make HTML template polyglot (#4606, OvidiusCicero), by making
6815 `<link rel="stylesheet" href="$css$">` self-closing.
6817 * Use texmath 0.11, allowing better translation of non-ASCII
6818 characters in math (#4642).
6821## pandoc 2.2 (2018-04-27)
6823 * New input format: `fb2` (FictionBook2) (Alexander Krotov).
6825 * Make `--ascii` work for all XML formats (ICML, OPML, JATS,...),
6826 and for `ms` and `man`.
6828 * Remove deprecated `--latexmathml`, `--gladtex`, `--mimetex`, `--jsmath`, `-m`,
6829 `--asciimathml` options.
6831 * New module Text.Pandoc.Readers.FB2, exporting readFB2 (Alexander
6832 Krotov, API change).
6834 * Markdown reader:
6836 + Allow empty key-value attributes, like `title=""` (#2944).
6837 + Handle table w/o following blank line in fenced div (#4560).
6838 + Remove "fallback" for `doubleQuote` parser. Previously the
6839 parser tried to be efficient -- if no end double quote was found,
6840 it would just return the contents. But this could backfire in a
6841 case `**this should "be bold**`, since the fallback would return
6842 the content `"be bold**` and the closing boldface delimiter
6843 would never be encountered.
6844 + Improve computation of the relative width of the last column in a
6845 multiline table, so we can round-trip tables without constantly
6846 shrinking the last column.
6848 * EPUB reader:
6850 + Fix images with space in file path (#4344).
6852 * LaTeX reader:
6854 + Properly resolve section numbers with `\ref` and chapters (#4529).
6855 + Parse sloppypar environment (#4517, Marc Schreiber).
6856 + Improve handling of raw LaTeX (for markdown etc.) (#4589, #4594).
6857 Previously there were some bugs in how macros were handled.
6858 + Support `\MakeUppercase`, `\MakeLowercase`, `\uppercase`,
6859 `\lowercase`, and also `\MakeTextUppercase` and
6860 `\MakeTextLowercase` from textcase (#4959).
6862 * Textile reader:
6864 + Fixed tables with no body rows (#4513).
6865 Previously these raised an exception.
6867 * Mediawiki reader:
6869 + Improve table parsing (#4508). This fixes detection of table
6870 attributes and also handles `!` characters in cells.
6872 * DocBook reader:
6874 + Properly handle title in `section` element (#4526).
6875 Previously we just got `section_title` for `section` (though `sect1`,
6876 `sect2`, etc. were handled properly).
6877 + Read tex math as output by asciidoctor (#4569, Joe Hermaszewski).
6879 * Docx reader:
6881 + Combine adjacent CodeBlocks with the same attributes into
6882 a single CodeBlock. This prevents a multiline codeblock in
6883 Word from being read as different paragraphs.
6885 * RST reader:
6887 + Allow < 3 spaces indent under directives (#4579).
6888 + Fix anonymous redirects with backticks (#4598).
6890 * Muse reader (Alexander Krotov):
6892 + Add support for Text::Amuse multiline headings.
6893 + Add `<math>` tag support.
6894 + Add support for `<biblio>` and `<play>` tags.
6895 + Allow links to have empty descriptions.
6896 + Require block `<literal>` tags to be on separate lines.
6897 + Allow `-` in anchors.
6898 + Allow verse to be indented.
6899 + Allow nested footnotes.
6900 + Internal improvements.
6902 * Muse writer (Alexander Krotov):
6904 + Escape `>` only at the beginning of a line.
6905 + Escape `]` in image title.
6906 + Escape `]` brackets in URLs as `%5D`.
6907 + Only escape brackets when necessary.
6908 + Escape ordered list markers.
6909 + Do not escape list markers unless preceded by space.
6910 + Escape strings starting with space.
6911 + Escape semicolons and markers after line break.
6912 + Escape `;` to avoid accidental comments.
6913 + Don't break headers, line blocks and tables with line breaks.
6914 + Correctly output empty headings.
6915 + Escape horizontal rule only if at the beginning of the line.
6916 + Escape definition list terms starting with list markers.
6917 + Place header IDs before header.
6918 + Improve span writing.
6919 + Do not join Spans in normalization.
6920 + Don't align ordered list items.
6921 + Remove key-value pairs from attributes before normalization.
6922 + Enable `--wrap=preserve` for all tests by default.
6923 + Reduced `<verbatim>` tags in output.
6924 + Internal changes.
6926 * RST writer:
6928 + Use more consistent indentation (#4563). Previously we
6929 used an odd mix of 3- and 4-space indentation. Now we use 3-space
6930 indentation, except for ordered lists, where indentation must
6931 depend on the width of the list marker.
6932 + Flatten nested inlines (#4368, Francesco Occhipinti).
6933 Nested inlines are not valid RST syntax, so we flatten them following
6934 some readability criteria discussed in #4368.
6936 * EPUB writer:
6938 + Ensure that `pagetitle` is always set, even when structured titles
6939 are used. This prevents spurious warnings about empty title
6940 elements (#4486).
6942 * FB2 writer (Alexander Krotov):
6944 + Output links inline instead of producing notes. Previously all links
6945 were turned into footnotes with unclickable URLs inside.
6946 + Allow emphasis and notes in titles.
6947 + Don't intersperse paragraph with empty lines.
6948 + Convert metadata value `abstract` to book annotation.
6949 + Use `<empty-line />` for `HorizontalRule` rather than `LineBreak`.
6950 FB2 does not have a way to represent line breaks inside paragraphs;
6951 previously we used `<empty-line />` elements, but these are not allowed
6952 inside paragraphs.
6954 * Powerpoint writer (Jesse Rosenthal):
6956 + Handle Quoted Inlines (#4532).
6957 + Simplify code with `ParseXml`.
6958 + Allow fallback options when looking for placeholder type.
6959 + Check reference-doc for all layouts.
6960 + Simplify speaker notes logic.
6961 + Change notes state to a simpler per-slide value.
6962 + Remove `Maybe` from `SpeakerNotes` in `Slide`. `mempty`
6963 means no speaker notes.
6964 + Add tests for improved speaker notes.
6965 + Handle speaker notes earlier in the conversion process.
6966 + Keep notes with related blocks (#4477). Some blocks automatically
6967 split slides (imgs, tables, `column` divs). We assume that any
6968 speaker notes immediately following these are connected to these
6969 elements, and keep them with the related blocks, splitting after them.
6970 + Remove `docProps/thumbnail.jpeg` in data dir (Jesse Rosenthal, #4588).
6971 It contained a nonfree ICC color calibration profile and is not needed
6972 for production of a powerpoint document.
6974 * Markdown writer:
6976 + Include a blank line at the end of the row in a single-row multiline
6977 table, to prevent it from being interpreted as a simple table (#4578).
6979 * CommonMark writer:
6981 + Correctly ignore LaTeX raw blocks when `raw_tex` is not
6982 enabled (#4527, quasicomputational).
6984 * EPUB writer:
6986 + Add `epub:type="footnotes"` to notes section in EPUB3 (#4489).
6988 * LaTeX writer:
6990 + In beamer, don't use format specifier for default ordered lists
6991 (#4556). This gives better results for styles that put ordered list
6992 markers in boxes or circles.
6993 + Update `\lstinline` delimiters (#4369, Tim Parenti).
6995 * Ms writer:
6997 + Use `\f[R]` rather than `\f[]` to reset font (#4552).
6998 + Use `\f[BI]` and `\f[CB]` in headers, instead of `\f[I]` and `\f[C]`,
6999 since the header font is automatically bold (#4552).
7000 + Use `\f[CB]` rather than `\f[BC]` for monospace bold (#4552).
7001 + Create pdf anchor for a Div with an identifier (#4515).
7002 + Escape `/` character in anchor ids (#4515).
7003 + Improve escaping for anchor ids: we now use _uNNN_ instead of uNNN
7004 to avoid ambiguity.
7006 * Man writer:
7008 + Don't escape U+2019 as `'` (#4550).
7010 * Text.Pandoc.Options:
7012 + Removed `JsMath`, `LaTeXMathML`, and `GladTeX` constructors from
7013 `Text.Pandoc.Options.HTMLMathMethod` [API change].
7015 * Text.Pandoc.Class:
7017 + `writeMedia`: unescape URI-escaping in file path. This avoids
7018 writing things like `file%20one.png` to the file system.
7020 * Text.Pandoc.Parsing:
7022 + Fix `romanNumeral` parser (#4480). We previously accepted 'DDC'
7023 as 1100.
7024 + `uri`: don't treat `*` characters at end as part of URI (#4561).
7026 * Text.Pandoc.MIME:
7028 + Use the alias `application/eps` for EPS (#2067).
7029 This will ensure that we retain the eps extension after reading the
7030 image into a mediabag and writing it again.
7032 * Text.Pandoc.PDF:
7034 + Use `withTempDir` in `html2pdf`.
7035 + With `xelatex`, don't compress images til the last run (#4484).
7036 This saves time for image-heavy documents.
7037 + Don't try to convert EPS files (#2067). `pdflatex` converts them
7038 itself, and JuicyPixels can't do it.
7039 + For `pdflatex`, use a temp directory in the working directory.
7040 Otherwise we can have problems with the EPS conversion pdflatex
7041 tries to do, which can't operate on a file above the working
7042 directory without `--shell-escape`.
7044 * Changes to tests to accommodate changes in pandoc-types.
7045 In <https://github.com/jgm/pandoc-types/pull/36> we changed
7046 the table builder to pad cells. This commit changes tests
7047 (and two readers) to accord with this behavior.
7049 * Set default extensions for `beamer` same as `latex`.
7051 * LaTeX template:
7053 + Add `beameroption` variable (#4359, Étienne Bersac).
7054 + Use `pgfpages` package; this is needed for notes on second
7055 screen in beamer (Étienne Bersac).
7056 + Add `background-image` variable (#4601, John Muccigrosso).
7058 * reveal.js template: Add `background-image` variable (#4600,
7059 John Muccigrosso).
7061 * ms template: Fix date. Previously `.ND` was used, but this only
7062 works if you have a title page, which we don't. Thanks to @teoric.
7064 * Removed pragmas for unused extensions (#4506, Anabra).
7066 * Fix bash completion for `--print-default-data-file` (#4549).
7067 Previously this looked in the filesystem, even if pandoc
7068 was compiled with `embed_data_files` (and sometimes it looked
7069 in a nonexistent build directory). Now the bash completion
7070 script just includes a hard-coded list of data file names.
7072 * MANUAL:
7074 + Clarify template vs metadata variables (#4501, Mauro Bieg).
7075 + Fix raw content example (#4479, Mauro Bieg).
7076 + Specify that you use html for raw output in epub.
7077 + Add examples for raw docx blocks (#4472, Tristan Stenner).
7078 The documentation states that the target format name should match
7079 the output format, which isn't the case for `docx`/`openxml` and
7080 some others.
7081 + Don't say that `empty_paragraphs` affects markdown output (#4540).
7082 + Consolidate input/output format documentation (#4577, Mauro Bieg).
7084 * New README template. Take in/out formats from manual.
7086 * Fix example in lua-filters docs (#4459, HeirOfNorton).
7088 * Use the `-threaded` GHC flag when building benchmarks (#4587,
7089 Francesco Occhipinti).
7091 * Bump temporary upper bound to 1.4.
7093 * Use pandoc-citeproc 0.14.3.1.
7095 * Use texmath-0.10.1.2 (fixes escapes in math in ms, #4597).
7097 * Removed old lib directory. This was used for something long ago,
7098 but plays no role now.
7100 * Removed unneeded data file `LaTeXMathML.js`.
7102 * Create 64- and 32-bit versions of Windows binary packages.
7104## pandoc 2.1.3 (2018-03-18)
7106 * Docx reader (Jesse Rosenthal):
7108 + Add tests for nested smart tags.
7109 + Parse nested smart tags.
7110 + Make unwrapSDT into a general `unwrap` function that can unwrap both
7111 nested SDT tags and smartTags. This makes the SmartTags constructor in
7112 the Docx type unnecessary, so we remove it (#4446).
7113 + Remove unused `docxWarnings` (Alexander Krotov).
7115 * RST reader: Allow unicode bullet characters (#4454).
7117 * Haddock reader: Better table handling, using haddock-library's
7118 new table support, if compiled against a version that
7119 includes it. Note that tables with col/rowspans will not
7120 translate well into Pandoc.
7122 * Muse reader (Alexander Krotov):
7124 + Various internal improvements.
7125 + Require closing tag to have the same indentation as opening.
7126 + Do not reparse blocks inside unclosed block tag (#4425).
7127 + Parse `<class>` tag (supported by Emacs Muse).
7128 + Do not produce empty Str element for unindented verse lines.
7130 * LaTeX reader:
7132 + Add support to parse unit string of `\SI` command (closes #4296,
7133 Marc Schreiber).
7135 * Haddock writer: In the writer, we now render tables always as
7136 grid tables, since Haddock supports these.
7138 * DokuWiki writer: rewrite backSlashLineBreaks (#4445, Mauro Bieg).
7140 * Docx writer: Fixed formatting of `DefaultStyle` ordered lists in
7141 docx writer. We want decimal for the top level, not lower roman.
7143 * RST writer:
7145 + Strip whitespace at beginning and ending of inline containers
7146 (#4327, Francesco Occhipinti).
7147 + Filter out empty inline containers (#4434). There is nothing in
7148 RST that corresponds to e.g. `Emph []`, so we just ignore elements
7149 like this (Francesco Occhipinti).
7151 * Muse writer (Alexander Krotov):
7153 + Support spans with anchors.
7154 + Replace smallcaps with emphasis before normalization.
7155 + Output smallcaps as emphasis.
7156 + Expand Cite before list normalization.
7157 + Write empty inline lists as `<verbatim></verbatim>`.
7158 + Remove empty Str from the beginning of inline lists during normalization.
7159 + Escape "-" to avoid creating bullet lists.
7160 + Fix math expansion for more than one expression per paragraph.
7161 + Expand math before inline list normalization.
7163 * Dokuwiki writer: fix LineBreaks in Tables (#4313, Mauro Bieg).
7165 * Ms writer:
7167 + Asciify pdf anchors, since unicode anchors don't work (#4436).
7168 Internal links should be converted automatically, so this shouldn't
7169 affect users directly.
7170 + Don't escape hyphens as `\-`; that's for a minus sign (#4467).
7172 * Beamer writer: put hyperlink after `\begin{frame}` and not in the title
7173 (#4307). If it's in the title, then we get a titlebar on slides with
7174 the `plain` attribute, when the id is non-null. This fixes a regression
7175 in 2.0.
7177 * EPUB writer: Remove notes from TOC in nav.xhtml (#4453, Mauro Bieg).
7179 * JATS writer: Remove extraneous, significant whitespace (#4335,
7180 Nokome Bentley).
7182 * html2pdf: inject base tag with current working directory (#4413, Mauro
7183 Bieg). This helps ensure that linked resources are included.
7185 * Add Semigroup instances for everything for which we defined a
7186 Monoid instance previously (API change):
7188 + Text.Pandoc.Class.FileTree.
7189 + Text.Pandoc.Translations.Translations.
7190 + Text.Pandoc.Extensions.Extensions.
7191 + Text.Pandoc.Readers.Odt.StyleReader.Styles.
7192 + Text.Pandoc.Pretty.Doc.
7193 + Text.Pandoc.MediaBag.MediaBag.
7195 * Add custom Prelude to give clean code for Monoid and Semigroup
7196 that works with ghc 7.10-8.4. The custom Prelude (`prelude/Prelude`)
7197 is used for ghc versions < 8.4. `NoImplicitPrelude` is used
7198 in all source files, and Prelude is explicitly imported
7199 (this is necessary for ghci to work properly with the custom prelude).
7201 * Text.Pandoc.Writers.Shared (Francesco Occhipinti):
7203 + Export `stripLeadingTrailingSpace`.
7204 + Don't wrap lines in grid tables when `--wrap=none` (#4320).
7205 + `gridTable`: Don't wrap lines in tables when `--wrap=none`. Instead,
7206 expand cells, even if it results in cells that don't respect relative
7207 widths or surpass page column width. This change affects RST,
7208 Markdown, and Haddock writers.
7210 * Raise error if someone tries to print docx, odt, etc. template (#4441).
7212 * LaTeX template: Provide `bidi` package's option using
7213 `\PassOptionsToPackage` (#4357, Václav Haisman). This avoid a
7214 clash when `polyglossia` loads it first and then it is loaded again
7215 for XeLaTeX.
7217 * ConTeXt template: Added `pdfa` variable to generate PDF/A (#4294, Henri
7218 Menke). Instructions on how to install the ICC profiles on ConTeXt
7219 standalone can be found in the wiki:
7220 <http://wiki.contextgarden.net/PDFX#ICC_profiles>.
7221 If the ICC profiles are not available the log will contain error
7222 messages.
7224 * Use latest pandoc-types, skylighting
7226 * Use latest pandoc-citeproc in binary package.
7228 * Bump upper bound for time, criterion, haddock-library, exceptions,
7229 http-types, aeson, haddock-library.
7231 * Bump upper bound tasty-quickcheck 0.10 (#4429, Felix Yan).
7233 * pandoc.cabal: fix up other-extensions and language fields.
7234 Language is now consistently `Haskell2010`, and other-extensions
7235 is consistently `NoImplicitPrelude`. Everything else to be specified
7236 in the module header as needed.
7238 * Removed `old-locale` flag and Text.Pandoc.Compat.Time.
7239 This is no longer necessary since we no longer support ghc 7.8.
7241 * Make `weigh-pandoc` into a benchmark program.
7242 Remove `weigh-pandoc` flag. `weigh-pandoc` is now built (and run)
7243 automatically when you build (and run) benchmarks.
7245 * MANUAL: add instructions for background images reveal.js (#4325, John
7246 Muccigrosso).
7248 * appveyor: use VS 2013 environment instead of VS 2015 for Windows builds.
7250## pandoc 2.1.2 (2018-03-02)
7252 * Markdown reader:
7254 + Fix parsing bug with nested fenced divs (#4281). Previously we allowed
7255 "nonindent spaces" before the opening and closing `:::`, but this
7256 interfered with list parsing, so now we require the fences to be flush with
7257 the margin of the containing block.
7259 * Commonmark reader:
7261 + `raw_html` is now on by default. It can be disabled explicitly
7262 using `-f commonmark-raw_html`.
7264 * Org reader (Albert Krewinkel):
7266 + Move citation tests to separate module.
7267 + Allow changing emphasis syntax (#4378). The characters allowed before
7268 and after emphasis can be configured via `#+pandoc-emphasis-pre` and
7269 `#+pandoc-emphasis-post`, respectively. This allows to change which
7270 strings are recognized as emphasized text on a per-document or even
7271 per-paragraph basis. Example:
7273 #+pandoc-emphasis-pre: "-\t ('\"{"
7274 #+pandoc-emphasis-post: "-\t\n .,:!?;'\")}["
7276 * LaTeX reader:
7278 + Fixed comments inside citations (#4374).
7279 + Fix regression in package options including underscore (#4424).
7280 + Make `--trace` work.
7281 + Fixed parsing of `tabular*` environment (#4279).
7283 * RST reader:
7285 + Fix regression in parsing of headers with trailing space (#4280).
7287 * Muse reader (Alexander Krotov):
7289 + Enable `<literal>` tags even if amuse extension is enabled.
7290 Amusewiki disables <literal> tags for security reasons.
7291 If user wants similar behavior in pandoc, RawBlocks and RawInlines
7292 can be removed or replaced with filters.
7293 + Remove space prefix from `<literal>` tag contents.
7294 + Do not consume whitespace while looking for closing end tag.
7295 + Convert alphabetical list markers to decimal in round-trip test.
7296 Alphabetical lists are an addition of Text::Amuse.
7297 They are not present in Emacs Muse and can be ambiguous
7298 when list starts with "i.", "c." etc.
7299 + Allow `<quote>` and other tags to be indented.
7300 + Allow single colon in definition list term.
7301 + Fix parsing of verse in lists.
7302 + Improved parsing efficiency. Avoid `parseFromString`.
7303 Lists are parsed in linear instead of exponential time now.
7304 + Replace ParserState with MuseState.
7305 + Prioritize lists with roman numerals over alphabetical lists.
7306 This is to make sure "i." starts a roman numbered list,
7307 instead of a list with letter "i" (followed by "j", "k", ...").
7308 + Fix directive parsing.
7309 + Parse definition lists with multiple descriptions.
7310 + Parse next list item before parsing more item contents.
7311 + Fixed a bug: headers did not terminate lists.
7312 + Move indentation parsing from `definitionListItem` to `definitionList`.
7313 + Paragraph indentation does not indicate nested quote.
7314 Muse allows indentation to indicate quotation or alignment,
7315 but only on the top level, not within a <quote> or list.
7316 + Require that block tags are on separate lines.
7317 Text::Amuse already explicitly requires it anyway.
7318 + Fix matching of closing inline tags.
7319 + Various internal changes.
7320 + Fix parsing of nested definition lists.
7321 + Require only one space for nested definition list indentation.
7322 + Do not remove trailing whitespace from `<code>`.
7323 + Fix parsing of trailing whitespace. Newline after whitespace now
7324 results in softbreak instead of space.
7326 * Docx reader (Jesse Rosenthal, except where noted):
7328 + Handle nested sdt tags (#4415).
7329 + Don't look up dependant run styles if `+styles` is enabled.
7330 + Move pandoc inline styling inside custom-style span.
7331 + Read custom styles (#1843). This will read all paragraph and
7332 character classes as divs and spans, respectively. Dependent styles
7333 will still be resolved, but will be wrapped with appropriate style
7334 tags. It is controlled by the `+styles` extension (`-f docx+styles`).
7335 This can be used in conjunction with the `custom-style` feature in the
7336 docx writer for a pandoc-docx editing workflow. Users can convert from
7337 an input docx, reading the custom-styles, and then use that same input
7338 docx file as a reference-doc for producing an output docx file. Styles
7339 will be maintained across the conversion, even if pandoc doesn't
7340 understand them.
7341 + Small change to Fields hyperlink parser. Previously, unquoted string
7342 required a space at the end of the line (and consumed it). Now we
7343 either take a space (and don't consume it), or end of input.
7344 + Pick table width from the longest row or header (Francesco Occhipinti,
7345 #4360).
7347 * Muse writer (Alexander Krotov):
7349 + Change verse markup: `> ` instead of `<verse>` tag.
7350 + Remove empty strings during inline normalization.
7351 + Don't indent nested definition lists.
7352 + Use unicode quotes for quoted text.
7353 + Write image width specified in percent in Text::Amuse mode.
7354 + Don't wrap displayMath into `<verse>`.
7355 + Escape nonbreaking space (`~~`).
7356 + Join code with different attributes during normalization.
7357 + Indent lists inside Div.
7358 + Support definitions with multiple descriptions.
7360 * Powerpoint writer (Jesse Rosenthal):
7362 + Use table styles This will use the default table style in the
7363 reference-doc file. As a result they will be easier when using
7364 in a template, and match the color scheme.
7365 + Remove empty slides. Because of the way that slides were split, these
7366 could be accidentally produced by comments after images. When animations
7367 are added, there will be a way to add an empty slide with either
7368 incremental lists or pauses.
7369 + Implement syntax highlighting. Note that background colors can't
7370 be implemented in PowerPoint, so highlighting styles that require
7371 these will be incomplete.
7372 + New test framework for pptx. We now compare the output of the
7373 Powerpoint writer with files that we know to (a) not be corrupt,
7374 and (b) to show the desired output behavior (details below).
7375 + Add `notesMaster` to `presentation.xml` if necessary.
7376 + Ignore links and (end)notes in speaker notes.
7377 + Output speaker notes.
7378 + Read speaker note templates conditionally. If there are speaker
7379 notes in the presentation, we read in the notesMasters templates
7380 from the reference pptx file.
7381 + Fix deletion track changes (#4303, Jesse Rosenthal).
7383 * Markdown writer: properly escape @ to avoid capture as citation
7384 (#4366).
7386 * LaTeX writer:
7388 + Put hypertarget inside figure environment (#4388).
7389 This works around a problem with the endfloat package and
7390 makes pandoc's output compatible with it.
7391 + Fix image height with percentage (#4389). This previously caused
7392 the image to be resized to a percentage of textwidth, rather than
7393 textheight.
7395 * ConTeXt writer (Henri Menke):
7397 + New section syntax and support `--section-divs` (#2609).
7398 `\section[my-header]{My Header}` ->
7399 `\section[title={My Header},reference={my-header}]`.
7400 The ConTeXt writer now supports the `--section-divs` option to
7401 write sections in the fenced style, with `\startsection` and
7402 `\stopsection`.
7403 + xtables: correct wrong usage of caption (Henri Menke).
7405 * Docx writer:
7407 + Fix image resizing with multiple images (#3930, Andrew Pritchard).
7408 + Use new golden framework (Jesse Rosenthal).
7409 + Make more deterministic to facilitate testing (Jesse Rosenthal).
7410 - `getUniqueId` now calls to the state to get an incremented digit,
7411 instead of calling to P.uniqueHash.
7412 - we always start the PRNG in mkNumbering/mkAbstractNum with the same
7413 seed (1848), so our randoms should be the same each time.
7414 + Fix ids in comment writing (Jesse Rosenthal). Comments from
7415 `--track-changes=all` were producing corrupt docx, because the
7416 writer was trying to get id from the `(ID,_,_)` field of
7417 the attributes, and ignoring the "id" entry in the key-value pairs. We
7418 now check both.
7420 * Ms writer: Added papersize variable.
7422 * TEI writer:
7424 + Use `height` instead of `depth` for images (#4331).
7425 + Ensure that id prefix is always used.
7426 + Don't emit `role` attribute; that was a leftover from the
7427 Docbook writer.
7428 + Use 'xml:id', not 'id' attribute (#4371).
7430 * AsciiDoc writer:
7432 + Do not output implicit heading IDs (#4363, Alexander
7433 Krotov). Convert to `asciidoc-auto_identifiers` for old behaviour.
7435 * RST writer:
7437 + Remove `blockToRST'` moving its logic into `fixBlocks`
7438 (Francesco Occhipinti).
7439 + Insert comment between lists and quotes (#4248, Francesco Occchipinti).
7441 * RST template: remove definition of 'math' role as raw.
7442 This used to be needed prior to v 0.8 of docutils, but
7443 now math support is built-in.
7445 * Slides: Use divs to set incremental/non-incremental (#4381,
7446 Jesse Rosenthal). The old method (list inside blockquote) still
7447 works, but we are encouraging the use of divs with class
7448 `incremental` or `nonincremental`.
7450 * Text.Pandoc.ImageSize:
7452 + Make image size detection for PDFs more robust (#4322).
7453 + Determine image size for PDFs (#4322).
7454 + EMF Image size support (#4375, Andrew Pritchard).
7456 * Text.Pandoc.Extensions:
7458 + Add `Ext_styles` (Jesse Rosenthal, API change). This will be used in
7459 the docx reader (defaulting to off) to read pargraph and character
7460 styles not understood by pandoc (as divs and spans, respectively).
7461 + Made `Ext_raw_html` default for `commonmark` format.
7463 * Text.Pandoc.Parsing:
7465 + Export `manyUntil` (Alexander Krotov, API change).
7466 + Export improved `sepBy1` (Alexander Krotov).
7467 + Export list marker parsers: `upperRoman`, `lowerRoman`,
7468 `decimal`, `lowerAlpha`, `upperAlpha` (Alexander Krotov, API change).
7470 * Tests/Lua: fix tests on windows (Albert Krewinkel).
7472 * Lua: register script name in global variable (#4393). The name of the Lua
7473 script which is executed is made available in the global Lua variable
7474 `PANDOC_SCRIPT_FILE`, both for Lua filters and custom writers.
7476 * Tests: Abstract powerpoint tests out to OOXML tests (Jesse Rosenthal).
7477 There is very little pptx-specific in these tests, so we abstract out
7478 the basic testing function so it can be used for docx as well. This
7479 should allow us to catch some errors in the docx writer that slipped
7480 by the roundtrip testing.
7482 * Lua filters: store constructors in registry (Albert Krewinkel). Lua
7483 functions used to construct AST element values are stored in the Lua
7484 registry for quicker access. Getting a value from the registry is much
7485 faster than getting a global value (partly to idiosyncrasies of hslua);
7486 this change results in a considerable performance boost.
7488 * Documentation:
7490 + `doc/org.md` Add draft of Org-mode documentation (Albert Krewinkel).
7491 + `doc/lua-filters.md`: document global vars set for filters
7492 (Albert Krewinkel).
7493 + INSTALL.md: mention Stack version. (#4343, Adam Brandizzi).
7494 + MANUAL: add documentation on custom styles (Jesse Rosenthal).
7495 + MANUAL.txt: Document incremental and nonincremental divs (Jesse
7496 Rosenthal). Blockquoted lists are still described, but fenced divs are
7497 presented in preference.
7498 + MANUAL.txt: document header and footer variables (newmana).
7499 + MANUAL.txt: self-contained implies standalone (#4304, Daniel Lublin).
7500 + CONTRIBUTING.md: label was renamed. (#4310, Alexander Brandizzi).
7502 * Require tagsoup 0.14.3 (#4282), fixing HTML tokenization bug.
7504 * Use latest texmath.
7506 * Use latest pandoc-citeproc.
7508 * Allow exceptions 0.9.
7510 * Require aeson-pretty 0.8.5 (#4394).
7512 * Bump blaze-markup, blaze-html lower bounds to 0.8, 0.9 (#4334).
7514 * Update tagsoup to 0.14.6 (Alexander Krotov, #4282).
7516 * Removed ghc-prof-options. As of cabal 1.24, sensible defaults are used.
7518 * Update default.nix to current nixpkgs-unstable for hslua-0.9.5 (#4348,
7519 jarlg).
7521## pandoc 2.1.1 (2018-01-18)
7523 * Markdown reader:
7525 + Don't coalesce adjacent raw LaTeX blocks if they are separated by a
7526 blank line. See lierdakil/pandoc-crossref#160.
7527 + Improved `inlinesInBalancedBrackets` (#4272, jgm/pandoc-citeproc#315).
7528 The change both improves performance and fixes a regression whereby
7529 normal citations inside inline notes and figure captions were not
7530 parsed correctly.
7532 * RST reader:
7534 + Better handling for headers with an anchor (#4240). Instead of creating a
7535 Div containing the header, we put the id directly on the header.
7536 This way header promotion will work properly.
7537 + Add aligned environment when needed in math (#4254). `rst2latex.py`
7538 uses an `align*` environment for math in `.. math::` blocks, so this
7539 math may contain line breaks. If it does, we put the math in an
7540 `aligned` environment to simulate `rst2latex.py`'s behavior.
7542 * HTML reader:
7544 + Fix col width parsing for percentages < 10% (#4262, n3fariox).
7546 * LaTeX reader:
7548 + Advance source position at end of stream.
7549 + Pass through macro defs in `rawLaTeXBlock` even if the `latex_macros`
7550 extension is set (#4246). This reverts to earlier behavior and is
7551 probably safer on the whole, since some macros only modify things in
7552 included packages, which pandoc's macro expansion can't modify.
7553 + Fixed pos calculation in tokenizing escaped space.
7554 + Allow macro definitions inside macros (#4253). Previously we went into
7555 an infinite loop with
7556 ```
7557 \newcommand{\noop}[1]{#1}
7558 \noop{\newcommand{\foo}[1]{#1}}
7559 \foo{hi}
7560 ```
7561 + Fix inconsistent column widths (#4238). This fixes a bug whereby column
7562 widths for the body were different from widths for the header in some
7563 tables.
7565 * Docx reader (Jesse Rosenthal):
7567 + Parse hyperlinks in `instrText` tags (#3389, #4266). This was a form of
7568 hyperlink found in older versions of word. The changes introduced for
7569 this, though, create a framework for parsing further fields in MS Word
7570 (see the spec, ECMA-376-1:2016, §17.16.5, for more on these fields).
7571 We introduce a new module, `Text.Pandoc.Readers.Docx.Fields` which
7572 contains a simple parsec parser. At the moment, only simple hyperlink
7573 fields are accepted, but that can be extended in the future.
7575 * Muse reader (Alexander Krotov):
7577 + Parse `~~` as non-breaking space in Text::Amuse mode.
7578 + Refactor list parsing.
7580 * Powerpoint writer (Jesse Rosenthal):
7582 + Change reference to `notesSlide` to `endNotesSlide`.
7583 + Move image sizing into `picProps`.
7584 + Improve table placement.
7585 + Make our own `_rels/.rels` file.
7586 + Import reference-doc images properly.
7587 + Move `Presentation.hs` out of `PandocMonad`.
7588 + Refactor into separate modules. T.P.W.Powerpoint.Presentation
7589 defines the Presentation datatype and goes Pandoc->Presentation;
7590 T.P.W.Pandoc.Output goes Presentation->Archive.
7591 Text.Pandoc.Writers.Powerpoint a thin wrapper around the two modules.
7592 + Avoid overlapping blocks in column output.
7593 + Position images correctly in two-column layout.
7594 + Make content shape retrieval environment-aware.
7595 + Improve image handling. We now determine image and caption placement
7596 by getting the dimensions of the content box in a given layout.
7597 This allows for images to be correctly sized and positioned in a
7598 different template. Note that images without captions and headers are
7599 no longer full-screened. We can't do this dependably in different
7600 layouts, because we don't know where the header is (it could be to
7601 the side of the content, for example).
7602 + Read presentation size from reference file. Our presentation size is
7603 now dependent on the reference/template file we use.
7604 + Handle (sub)headers above slidelevel correctly. Above the slidelevel,
7605 subheaders will be printed in bold and given a bit of extra space
7606 before them. Note that at the moment, no distinction is made between
7607 levels of headers above the slide header, though that can be changed.
7608 + Check for required files. Since we now import from reference/dist
7609 file by glob, we need to make sure that we're getting the files we
7610 need to make a non-corrupt Powerpoint. This performs that check.
7611 + Improve templating using `--reference-doc`. Templating should work
7612 much more reliably now.
7613 + Include Notes slide in TOC.
7614 + Set notes slide header to slide-level.
7615 + Add table of contents. This is triggered by the `--toc` flag. Note
7616 that in a long slide deck this risks overrunning the text box. The user
7617 can address this by setting `--toc-depth=1`.
7618 + Set notes slide number correctly.
7619 + Clean up adding metadata slide. We want to count the slide numbers
7620 correctly if it's in there.
7621 + Add anchor links. For anchor-type links (`[foo](#bar)`) we produce
7622 an anchor link. In powerpoint these are links to slides, so we keep
7623 track of a map relating anchors to the slides they occur on.
7624 + Make the slide number available to the blocks. For anchors,
7625 block-processing functions need to know what slide number
7626 they're in. We make the `envCurSlideId` available to blocks.
7627 + Move `curSlideId` to environment.
7628 + Allow setting `toc-title` in metadata.
7629 + Link notes to endnotes slide.
7631 * Markdown writer:
7633 + Fix cell width calculation (#4265). Previously we could get
7634 ever-lengthening cell widths when a table was run repeatedly through
7635 `pandoc -f markdown -t markdown`.
7637 * LaTeX writer:
7639 + Escape `&` in lstinline (Robert Schütz).
7641 * ConTeXt writer:
7643 + Use xtables instead of Tables (#4223, Henri Menke).
7644 Default to xtables for context output. Natural Tables are used
7645 if the new `ntb` extension is set.
7647 * HTML writer:
7649 + Fixed footnote backlinks with `--id-prefix` (#4235).
7651 * `Text.Pandoc.Extensions`: Added `Ext_ntb` constructor (API change,
7652 Henri Menke).
7654 * `Text.Pandoc.ImageSize`: add derived `Eq` instance to `Dimension`
7655 (Jesse Rosenthal, API change).
7657 * Lua filters (Albert Krewinkel):
7659 + Make `PANDOC_READER_OPTIONS` available.
7660 The options which were used to read the document are made available to
7661 Lua filters via the `PANDOC_READER_OPTIONS` global.
7662 + Add lua module `pandoc.utils.run_json_filter`, which runs a JSON filter
7663 on a Pandoc document.
7664 + Refactor filter-handling code into `Text.Pandoc.Filter.JSON`,
7665 `Text.Pandoc.Filter.Lua`, and `Text.Pandoc.Filter.Path`.
7666 + Improve error messages. Provide more context about the task
7667 which caused an error.
7669 * data/pandoc.lua (Albert Krewinkel):
7671 + Accept singleton inline as a list. Every constructor which accepts a
7672 list of inlines now also accepts a single inline element for
7673 convenience.
7674 + Accept single block as singleton list. Every constructor which accepts
7675 a list of blocks now also accepts a single block element for
7676 convenience. Furthermore, strings are accepted as shorthand for
7677 `{pandoc.Str "text"}` in constructors.
7678 + Add attr, listAttributes accessors. Elements with
7679 attributes got an additional `attr` accessor. Attributes were
7680 accessible only via the `identifier`, `classes`, and `attributes`,
7681 which was in conflict with the documentation, which indirectly states
7682 that such elements have the an `attr` property.
7683 + Drop `_VERSION`. Having a `_VERSION` became superfluous, as this
7684 module is closely tied to the pandoc version, which is available via
7685 `PANDOC_VERSION`.
7686 + Fix access to Attr components. Accessing an Attr value (e.g.,
7687 ` Attr().classes`) was broken; the more common case of accessing it via
7688 an Inline or Block element was unaffected by this.
7690 * Move `metaValueToInlines` to from Docx writer to
7691 `Text.Pandoc.Writers.Shared`, so it can be used by other writers
7692 (Jesse Rosenthal).
7694 * MANUAL.txt:
7696 + Clarify otherlangs in LaTeX (#4072).
7697 + Clarify `latex_macros` extension.
7698 + Recommend use of `raw_attribute` extension in header includes (#4253).
7700 * Allow latest QuickCheck, tasty, criterion.
7702 * Remove custom prelude and ghc 7.8 support.
7704 * Reduce compiler noise (exact paths for compiled modules).
7706## pandoc 2.1 (2018-01-07)
7708 * Allow filters and lua filters to be interspersed (#4196). Previously
7709 we ran all lua filters before JSON filters. Now we run filters in
7710 the order they are presented on the command line, whether lua or JSON.
7711 There are two incompatible API changes: The type of `applyFilters`
7712 has changed, and `applyLuaFilters` has been removed. `Filter` is
7713 also now exported.
7715 * Use latest skylighting and omit the `missingIncludes` check, fixing
7716 a major performance regression in earlier releases of the 2.x series
7717 (#4226). Behavior change: If you use a custom syntax definition that
7718 refers to a syntax you haven't loaded, pandoc will now complain when
7719 it is highlighting the text, rather than doing a check at the start.
7720 This change dramatically speeds up invocations of pandoc on short
7721 inputs.
7723 * Text.Pandoc.Class: make `FileTree` opaque (don't export
7724 `FileTree` constructor). This forces users to interact with it using
7725 `insertInFileTree` and `getFileInfo`, which normalize file names.
7727 * Markdown reader:
7729 + Rewrite `inlinesInBalancedBrackets`. The rewrite is much more
7730 direct, avoiding `parseFromString`. And it performs significantly
7731 better; unfortunately, parsing time still increases exponentially
7732 (see #1735).
7733 + Avoid parsing raw tex unless `\` + letter seen. This seems to
7734 help with the performance problem, #4216.
7736 * LaTeX reader: Simplified a check for raw tex command.
7738 * Muse reader (Alexander Krotov):
7740 + Enable round trip test (#4107).
7741 + Automatically translate `#cover` into `#cover-image`.
7742 Amusewiki uses #cover directive to specify cover image.
7744 * Docx reader (Jesse Rosenthal):
7746 + Allow for insertion/deletion of paragraphs (#3927).
7747 If the paragraph has a deleted or inserted paragraph break (depending
7748 on the track-changes setting) we hold onto it until the next
7749 paragraph. This takes care of accept and reject. For this we introduce
7750 a new state which holds the ils from the previous para if necessary.
7751 For `--track-changes=all`, we add an empty span with class
7752 `paragraph-insertion`/`paragraph-deletion` at the end of the paragraph
7753 prior to the break to be inserted or deleted.
7754 + Remove unused anchors (#3679). Docx produces a lot of anchors with
7755 nothing pointing to them---we now remove these to produce cleaner
7756 output. Note that this has to occur at the end of the process
7757 because it has to follow link/anchor rewriting.
7758 + Read multiple children of `w:sdtContents`.
7759 + Combine adjacent anchors. There isn't any reason to have numerous
7760 anchors in the same place, since we can't maintain docx's
7761 non-nesting overlapping. So we reduce to a single anchor.
7762 + Improved tests.
7764 * Muse writer (Alexander Krotov): don't escape URIs from AST
7766 * Docx writer:
7768 + Removed redundant subtitle in title (Sebastian Talmon).
7769 + `firstRow` table definition compatibility for Word 2016 (Sebastian
7770 Talmon). Word 2016 seems to use a default value of "1" for table
7771 headers, if there is no firstRow definition (although a default
7772 value of 0 is documented), so all tables get the first Row formatted
7773 as header. Setting the parameter to 0 if the table has no header
7774 row fixes this for Word 2016
7775 + Fix custom styles with spaces in the name (#3290).
7777 * Powerpoint writer (Jesse Rosenthal):
7779 + Ignore Notes div for parity with other slide outputs.
7780 + Set default slidelevel correctly. We had previously defaulted to
7781 slideLevel 2. Now we use the correct behavior of defaulting to the
7782 highest level header followed by content. We change an expected test
7783 result to match this behavior.
7784 + Split blocks correctly for linked images.
7785 + Combine adjacent runs.
7786 + Make inline code inherit code size. Previously (a) the code size
7787 wasn't set when we force size, and (b) the properties was set from
7788 the default, instead of inheriting.
7789 + Simplify `replaceNamedChildren` function.
7790 + Allow linked images. The following markdown:
7791 `[![Image Title](image.jpg)](http://www.example.com)`
7792 will now produce a linked image in the resulting PowerPoint file.
7793 + Fix error with empty table cell. We require an empty `<a:p>` tag,
7794 even if the cell contains no paragraphs---otherwise PowerPoint
7795 complains of corruption.
7796 + Implement two-column slides. This uses the columns/column div
7797 format described in the pandoc manual. At the moment, only two
7798 columns (half the screen each) are allowed. Custom widths are not
7799 supported.
7800 + Added more tests.
7802 * OpenDocument/ODT writers: improved rendering of formulas (#4170, oltolm).
7804 * Lua filters (Albert Krewinkel):
7806 + `data/pandoc.lua`: drop 'pandoc-api-version' from Pandoc objects
7807 + The current pandoc-types version is made available to Lua programs in
7808 the global `PANDOC_API_VERSION`. It contains the version as a list of
7809 numbers.
7810 + The pandoc version available as a global `PANDOC_VERSION` (a list
7811 of numbers).
7812 + `data/pandoc.lua`: make `Attr` an `AstElement`.
7813 + `data/pandoc.lua`: make all types subtypes of `AstElement`.
7814 `Pandoc`, `Meta`, and `Citation` were just plain functions and did
7815 not set a metatable on the returned value, which made it difficult
7816 to amend objects of these types with new behavior. They are now
7817 subtypes of AstElement, meaning that all their objects can gain
7818 new features when a method is added to the behavior object
7819 (e.g., `pandoc.Pandoc.behavior`).
7820 + `data/pandoc.lua`: split type and behavior tables. Clearly distinguish
7821 between a type and the behavioral properties of an instance of that
7822 type. The behavior of a type (and all its subtypes) can now be
7823 amended by adding methods to that types `behavior` object, without
7824 exposing the type objects internals. E.g.:
7825 ```lua
7826 pandoc.Inline.behavior.frob = function () print'42' end
7827 local str = pandoc.Str'hello'
7828 str.frob() -- outputs '42'
7829 ```
7830 + `data/pandoc.lua`: fix Element inheritance. Extending all elements
7831 of a given type (e.g., all inline elements) was difficult, as the
7832 table used to lookup unknown methods would be reset every time a
7833 new element of that type was created, preventing recursive property
7834 lookup. This is was changed in that all methods and attributes of
7835 supertypes are now available to their subtypes.
7836 + `data/pandoc.lua`: fix attribute names of Citation (#4222). The
7837 fields were named like the Haskell fields, not like the documented,
7838 shorter version. The names are changed to match the documentation
7839 and Citations are given a shared metatable to enable simple
7840 extensibility.
7841 + `data/pandoc.lua`: drop function `pandoc.global_filter`.
7842 + Bump `hslua` version to 0.9.5. This version fixes a bug that made it
7843 difficult to handle failures while getting lists or a Map from Lua.
7844 A bug in pandoc, which made it necessary to always pass a tag when
7845 using MetaList or MetaBlock, is fixed as a result. Using the pandoc
7846 module's constructor functions for these values is now optional
7847 (if still recommended).
7848 + Stop exporting `pushPandocModule` (API change). The introduction
7849 of `runPandocLua` renders direct use of this function obsolete.
7850 + Update generation of module docs for lua filters.
7851 + `Lua.Module.Utils`: make stringify work on `MetaValues` (John
7852 MacFarlane). I'm sure this was intended in the first place,
7853 but currently only `Meta` is supported.
7855 * Improve benchmarks.
7857 + Set the default extensions properly.
7858 + Improve benchmark argument parsing. You can now say
7859 `make bench BENCHARGS="markdown latex reader"` and both the
7860 markdown and latex readers will be benchmarked.
7862 * MANUAL.txt simplify and add more structure (Mauro Bieg).
7864 * Generate README.md from template and MANUAL.txt.
7865 `make README.md` will generate the README.md after changes
7866 to MANUAL.txt have been made.
7868 * Update copyright notices to include 2018 (Albert Krewinkel).
7870## pandoc 2.0.6 (2017-12-28)
7872 * Added `jats` as an input format.
7874 + Add Text.Pandoc.Readers.JATS, exporting `readJATS` (API
7875 change) (Hamish Mackenzie).
7876 + Improved citation handling in JATS reader. JATS citations
7877 are now converted to pandoc citations, and JATS ref-lists
7878 are converted into a `references` field in metadata, suitable
7879 for use with pandoc-citeproc. Thus a JATS article with embedded
7880 bibliographic information can be processed with pandoc and
7881 pandoc-citeproc to produce a formatted bibliography.
7883 * Allow `--list-extensions` to take an optional FORMAT argument.
7884 This lists the extensions set by default for the selected FORMAT.
7885 The extensions are now alphabetized, and the `+` or `-`
7886 indicating the default setting comes before, rather than after,
7887 the extension.
7889 * Markdown reader:
7891 + Preserve original whitespace between blocks.
7892 + Recognize `\placeformula` as context.
7893 + Be pickier about table captions. A caption starts with a `:` which
7894 can't be followed by punctuation. Otherwise we can falsely interpret
7895 the start of a fenced div, or even a table header line like
7896 `:--:|:--:`, as a caption.
7897 + Always use four space rule for example lists. It would be awkward
7898 to indent example list contents to the first non-space character after
7899 the label, since example list labels are often long. Thanks to
7900 Bernhard Fisseni for the suggestion.
7901 + Improve raw tex parsing. Note that the Markdown reader is also
7902 affected by the `latex_macros` extension changes described below
7903 under the LaTeX reader.
7905 * LaTeX reader:
7907 + `latex_macros` extension changes (#4179). Don't pass through macro
7908 definitions themselves when `latex_macros` is set. The macros
7909 have already been applied. If `latex_macros` is enabled, then
7910 `rawLaTeXBlock` in Text.Pandoc.Readers.LaTeX will succeed in parsing
7911 a macro definition, and will update pandoc's internal macro map
7912 accordingly, but the empty string will be returned.
7913 + Export `tokenize`, `untokenize` (API change).
7914 + Use `applyMacros` in `rawLaTeXBlock`, `rawLaTeXInline`.
7915 + Refactored `inlineCommand`.
7916 + Fix bug in tokenizer. Material following `^^` was
7917 dropped if it wasn't a character escape. This only affected
7918 invalid LaTeX, so we didn't see it in the wild, but it appeared
7919 in a QuickCheck test failure.
7920 + Fix regression in LateX tokenization (#4159). This mainly affects the
7921 Markdown reader when parsing raw LaTeX with escaped spaces.
7922 + Add tests of LaTeX tokenizer.
7923 + Support `\foreignlanguage` from babel.
7924 + Be more tolerant of `&` character (#4208). This allows us to parse
7925 unknown tabular environments as raw LaTeX.
7927 * Muse reader (Alexander Krotov):
7929 + Parse anchors immediately after headings as IDs.
7930 + Require that note references does not start with 0.
7931 + Parse empty comments correctly.
7933 * Org reader (Albert Krewinkel):
7935 + Fix asterisks-related parsing error (#4180).
7936 + Support minlevel option for includes (#4154). The level of headers
7937 in included files can be shifted to a higher level by specifying a
7938 minimum header level via the `:minlevel` parameter. E.g.
7939 `#+include: "tour.org" :minlevel 1` will shift the headers in
7940 tour.org such that the topmost headers become level 1 headers.
7941 + Break-up org reader test file into multiple modules.
7943 * OPML reader:
7945 + Enable raw HTML and other extensions by default for notes
7946 (#4164). This fixes a regression in 2.0. Note that extensions can
7947 now be individually disabled, e.g. `-f opml-smart-raw_html`.
7949 * RST reader:
7951 + Allow empty list items (#4193).
7952 + More accurate parsing of references (#4156). Previously we erroneously
7953 included the enclosing backticks in a reference ID (#4156). This
7954 change also disables interpretation of syntax inside references, as
7955 in docutils. So, there is no emphasis in `` `my *link*`_ ``.
7957 * Docx reader:
7959 + Continue lists after interruption (#4025, Jesse Rosenthal).
7960 Docx expects that lists will continue where they left off after an
7961 interruption and introduces a new id if a list is starting again. So
7962 we keep track of the state of lists and use them to define a "start"
7963 attribute, if necessary.
7964 + Add tests for structured document tags unwrapping (Jesse Rosenthal).
7965 + Preprocess Document body to unwrap `w:sdt` elements (Jesse Rosenthal,
7966 #4190).
7968 * Plain writer:
7970 + Don't linkify table of contents.
7972 * RST writer:
7974 + Fix anchors for headers (#4188). We were missing an `_`.
7976 * PowerPoint writer (Jesse Rosenthal):
7978 + Treat lists inside BlockQuotes as lists. We don't yet produce
7979 incremental lists in PowerPoint, but we should at least treat lists
7980 inside BlockQuotes as lists, for compatibility with other slide formats.
7981 + Add ability to force size. This replaces the more specific
7982 `blockQuote runProp`, which only affected the size of blockquotes. We
7983 can use this for notes, etc.
7984 + Implement notes. This currently prints all notes on a final slide.
7985 Note that at the moment, there is a danger of text overflowing the
7986 note slide, since there is no logic for adding further slides.
7987 + Implement basic definition list functionality to PowerPoint writer.
7988 + Don't look for default template file for Powerpoint (#4181).
7989 + Add pptx to isTextFormat list. This is used to check standalone
7990 and not writing to the terminal.
7991 + Obey slide level option (Jesse Rosenthal).
7992 + Introduce tests.
7994 * Docx writer:
7996 + Ensure that `distArchive` is the one that comes with pandoc
7997 (#4182). Previously a `reference.docx` in `~/.pandoc` (or the user data
7998 dir) would be used instead, and this could cause problems because a
7999 user-modified docx sometimes lacks vital sections that we count
8000 on the `distArchive` to supply.
8002 * Org writer:
8004 + Do not wrap "-" to avoid accidental bullet lists (Alexander Krotov).
8005 + Don't allow fn refs to wrap to beginning of line (#4171, with help from
8006 Alexander Krotov). Otherwise they can be interpreted as footnote
8007 definitions.
8009 * Muse writer (Alexander Krotov):
8011 + Don't wrap note references to the next line (#4172).
8013 * HTML writer:
8015 + Use br elements in line blocks instead of relying on CSS
8016 (#4162). HTML-based templates have had the custom CSS for
8017 `div.line-block` removed. Those maintaining custom templates will want
8018 to remove this too. We still enclose line blocks in a div with class
8019 `line-block`.
8021 * LaTeX writer:
8023 + Use `\renewcommand` for `\textlatin` with babel (#4161).
8024 This avoids a clash with a deprecated `\textlatin` command defined
8025 in Babel.
8026 + Allow fragile=singleslide attribute in beamer slides (#4169).
8027 + Use `\endhead` after `\toprule` in headerless tables (#4207).
8029 * FB2 writer:
8031 + Add cover image specified by `cover-image` meta (Alexander Krotov,
8032 #4195).
8034 * JATS writer (Hamish Mackenzie):
8036 + Support writing `<fig>` and `<table-wrap>` elements
8037 with `<title>` and `<caption>` inside them by using Divs with class set
8038 to one of `fig`, `table-wrap` or `caption` (Hamish Mackenzie). The
8039 title is included as a Heading so the constraint on where Heading can
8040 occur is also relaxed.
8041 + Leave out empty alt attributes on links.
8042 + Deduplicate image mime type code.
8043 + Make `<p>` optional in `<td>` and `<th>` (#4178).
8044 + Self closing tags for empty xref (#4187).
8045 + Improve support for code language.
8047 * Custom writer:
8049 + Use init file to setup Lua interpreter (Albert Krewinkel).
8050 The same init file (`data/init`) that is used to setup the Lua
8051 interpreter for Lua filters is also used to setup the interpreter of
8052 custom writers.lua.
8053 + Define instances for newtype wrapper (Albert Krewinkel). The custom
8054 writer used its own `ToLuaStack` instance definitions, which made
8055 it difficult to share code with Lua filters, as this could result
8056 in conflicting instances. A `Stringify` wrapper is introduced to
8057 avoid this problem.
8058 + Added tests for custom writer.
8059 + Fixed definition lists and tables in `data/sample.lua`.
8061 * Fixed regression: when target is PDF, writer extensions were being
8062 ignored. So, for example, `pandoc -t latex-smart -o file.pdf`
8063 did not work properly.
8065 * Lua modules (Albert Krewinkel):
8067 + Add `pandoc.utils` module, to hold utility functions.
8068 + Create a Haskell module Text.Pandoc.Lua.Module.Pandoc to
8069 define the `pandoc` lua module.
8070 + Make a Haskell module for each Lua module. Move definitions for the
8071 `pandoc.mediabag` modules to a separate Haskell module.
8072 + Move `sha1` from the main `pandoc` module to `pandoc.utils`.
8073 + Add function `pandoc.utils.hierarchicalize` (convert list of
8074 Pandoc blocks into (hierarchical) list of Elements).
8075 + Add function `pandoc.utils.normalize_date` (parses a date and
8076 converts it (if possible) to "YYYY-MM-DD" format).
8077 + Add function `pandoc.utils.to_roman_numeral` (allows conversion
8078 of numbers below 4000 into roman numerals).
8079 + Add function `pandoc.utils.stringify` (converts any AST element
8080 to a string with formatting removed).
8081 + `data/init.lua`: load `pandoc.utils` by default
8082 + Turn pipe, read into full Haskell functions. The `pipe` and `read`
8083 utility functions are converted from hybrid lua/haskell functions
8084 into full Haskell functions. This avoids the need for intermediate
8085 `_pipe`/`_read` helper functions, which have dropped.
8086 + pandoc.lua: re-add missing MetaMap function. This was a bug
8087 introduced in version 2.0.4.
8089 * Text.Pandoc.Class: Add `insertInFileTree` [API change]. This gives
8090 a pure way to insert an ersatz file into a `FileTree`. In addition, we
8091 normalize paths both on insertion and on lookup.
8093 * Text.Pandoc.Shared: export `blocksToInlines'` (API change, Maura Bieg).
8095 * Text.Pandoc.MIME: Add opus to MIME type table as audio/ogg (#4198).
8097 * Text.Pandoc.Extensions: Alphabetical order constructors for
8098 `Extension`. This makes them appear in order in `--list-extensions`.
8100 * Allow lenient decoding of latex error logs, which are not always
8101 properly UTF8-encoded (#4200).
8103 * Update latex template to work with recent versions of beamer.
8104 The old template produced numbered sections with some recent
8105 versions of beamer. Thanks to Thomas Hodgson.
8107 * Updated reference.docx (#4175). Instead of just "Hello, world", the
8108 document now contains exemplars of most of the styles that have an
8109 effect on pandoc documents. This makes it easier to see the effect
8110 of style changes.
8112 * Removed `default.theme` data file (#4096). It is no longer needed now
8113 that we have `--print-highlight-style`.
8115 * Added `stack.lts9.yaml` for building with lts 9 and ghc 8.0.2.
8116 We still need this for the alpine static linux build, since
8117 we don't have ghc 8.2.2 for that yet.
8119 * Removed `stack.pkg.yaml`. We only really need `stack.yaml`; we
8120 can put flag settings for pandoc-citeproc there.
8122 * Makefile: Add 'trypandoc' and 'pandoc-templates' targets to
8123 make releases easier.
8125 * MANUAL.txt:
8127 + Add note on what formats have `+smart` by default.
8128 + Use native syntax for custom-style (#4174, Mauro Bieg).
8129 + Introduce dedicated Extensions section, since some extensions
8130 affect formats other than markdown (Mauro Bieg, #4204).
8131 + Clarify default html output for `--section-divs` (Richard Edwards).
8133 * filters.md: say that Text.Pandoc.JSON comes form pandoc-types.
8134 Closes jgm/pandoc-website#16.
8136 * epub.md: Delete removed `-S` option from command (#4151, Georger Araújo).
8138## pandoc 2.0.5 (2017-12-12)
8140 * Fix a bug in 2.0.4, whereby pandoc could not read the theme files
8141 generated with `--print-highlight-style` (#4133). Improve JSON
8142 serialization of styles.
8144 * Fix CSS issues involving line numbers (#4128).
8145 Highlighted code blocks are now enclosed in a div with class `sourceCode`.
8146 Highlighting CSS no longer sets a generic color for pre and code; we only
8147 set these for class `sourceCode`.
8149 * `--pdf-engine-opt`: fix bug where option order was reversed (#4137).
8151 * Add PowerPoint (pptx) writer (Jesse Rosenthal).
8152 It works following the standard Pandoc conventions for making other
8153 sorts of slides. Caveats:
8155 + Syntax highlighting is not yet implemented. (This is difficult
8156 because there are no character classes in Powerpoint.)
8157 + Footnotes and Definition lists are not yet implemented. (Notes will
8158 usually take the form of a final slide.
8159 + Image placement and auto-resizing has a few glitches.
8160 + Reference powerpoint files don't work dependably from the command
8161 line. This will be implemented, but at the moment users are advised
8162 to change themes from within Powerpoint.
8164 * Create shared Text.Pandoc.Writers.OOXML module (Jesse Rosenthal).
8165 This is for functions used by both Powerpoint and Docx writers.
8167 * Add default pptx data for Powerpoint writer (Jesse Rosenthal).
8169 * Add `empty_paragraphs` extension.
8171 + Deprecate `--strip-empty-paragraphs` option. Instead we now
8172 use an `empty_paragraphs` extension that can be enabled on
8173 the reader or writer. By default, disabled.
8174 + Add `Ext_empty_paragraphs` constructor to `Extension`.
8175 + Revert "Docx reader: don't strip out empty paragraphs."
8176 This reverts commit d6c58eb836f033a48955796de4d9ffb3b30e297b.
8177 + Implement `empty_paragraphs` extension in docx reader and writer,
8178 opendocument writer, html reader and writer.
8179 + Add tests for `empty_paragraphs` extension.
8181 * Markdown reader:
8183 + Don't parse native div as table caption (#4119).
8184 + Improved computation of column widths in pipe tables.
8185 Pipe tables with lines longer than the text width (as set
8186 by `--columns`) are now scaled to text width, with the relative
8187 widths of columns determined by the ratios between the
8188 header lines. Previously we computed column widths using
8189 the ratio of header line lengths to column width, so that
8190 tables with narrow header lines were extremely thin, which
8191 was very rarely the desired result.
8193 * LaTeX reader: fix `\` before newline (#4134). This should be a space,
8194 as long as it's not followed by a blank line. This has been fixed at the
8195 tokenizer level.
8197 * Muse reader (Alexander Krotov):
8199 + Add test for `#disable-tables` directive in Emacs mode.
8200 + Don't allow emphasis to be preceded by letter.
8201 + Add underline support in Emacs Muse mode..
8202 + Support multiline directives in Amusewiki mode
8204 * Man writer: omit internal links (#4136). That is, just print the link
8205 text without the URL.
8207 * Markdown reader: accept processing instructions as raw HTML (#4125).
8209 * Lua filters (Albert Krewinkel):
8211 + Use script to initialize the interpreter. The file `init.lua` is
8212 used to initialize the Lua interpreter which is used in Lua filters.
8213 This gives users the option to require libraries which they want to
8214 use in all of their filters, and to extend default modules.
8215 + Fix package loading for Lua 5.1. The list of package searchers is
8216 named `package.loaders` in Lua 5.1 and LuaJIT, and `package.searchers`
8217 in Lua 5.2 and later.
8218 + Refactor lua module handling. The integration with Lua's package/module
8219 system is improved: A pandoc-specific package searcher is prepended to
8220 the searchers in `package.searchers`. The modules `pandoc` and
8221 `pandoc.mediabag` can now be loaded via `require`.
8222 + Bump lower bound of hslua. The release hslua 0.9.3 contains a new
8223 function which makes using Haskell functions as package loaders much
8224 easier.
8226 * reveal.js template: add title-slide identifier to title slide (#4120).
8227 This allows it to be styled more easily.
8229 * LaTeX template: Added support for `pagestyle` variable (#4135,
8230 Thomas Hodgson)
8232 * Add `-threaded` to ghc-options for executable (#4130, fixes a build
8233 error on linux).
8236## pandoc 2.0.4 (2017-12-03)
8238 * Add `--print-highlight-style` option. This generates a JSON version
8239 of a highlighting style, which can be saved as a `.theme` file, modified,
8240 and used with `--highlight-style` (#4106, #4096).
8242 * Add `--strip-empty-paragraphs` option. This works for any input format.
8243 It is primarily intended for use with docx and odt documents where
8244 empty paragraphs have been used for inter-paragraph spaces.
8246 * Support `--webtex` for `gfm` output.
8248 * Recognize `.muse` file extension.
8250 * Support beamer `\alert` in LaTeX reader. Closes #4091.
8252 * Docx reader: don't strip out empty paragraphs (#2252).
8253 Users who have a conversion pipeline from docx may want to consider adding
8254 `--strip-empty-paragraphs` to the command line.
8256 * Org reader (Albert Krewinkel): Allow empty list items (#4090).
8258 * Muse reader (Alexander Krotov):
8260 + Parse markup in definition list terms.
8261 + Allow definition to end with EOF.
8262 + Make code blocks round trip.
8263 + Drop common space prefix from list items.
8264 + Add partial round trip test.
8265 + Don't interpret XML entities.
8266 + Remove `nested`.
8267 + Parse `~~` as non-breaking space in Emacs mode.
8268 + Correctly remove indentation from notes. Exactly one space is
8269 required and considered to be part of the marker.
8270 + Allow list items to be empty.
8271 + Add ordered list test.
8272 + Add more multiline definition tests.
8273 + Don't allow blockquotes within lists.
8274 + Fix reading of multiline definitions.
8275 + Add inline `<literal>` support.
8276 + Concatenate inlines of the same type
8278 * Docx writer: allow empty paragraphs (#2252).
8280 * CommonMark/gfm writer:
8282 + Use raw html for native divs/spans (#4113). This allows a pandoc
8283 markdown native div or span to be rendered in gfm using raw html tags.
8284 + Implement `raw_html` and `raw_tex` extensions. Note that `raw_html`
8285 is enabled by default for `gfm`, while `raw_tex` is disabled by default.
8287 * Muse writer (Alexander Krotov):
8289 + Test that inline math conversion result is normalized.
8290 Without normalization this test produced
8291 `<em>a</em><em>b</em><em>c</em>`.
8292 + Improve inline list normalization and move to writer.
8293 + Escape hash symbol.
8294 + Escape `----` to avoid accidental horizontal rules.
8295 + Escape only `</code>` inside code tag.
8296 + Additional `<verbatim>` is not needed as `<code>` is verbatim already.
8298 * LaTeX writer:
8300 + Allow specifying just width or height for image size.
8301 Previously both needed to be specified (unless the image was
8302 being resized to be smaller than its original size).
8303 If height but not width is specified, we now set width to
8304 textwidth. If width but not height is specified, we now set
8305 height to textheight. Since we have `keepaspectratio`, this
8306 yields the desired result.
8307 + Escape `~` and `_` in code with `--listings` (#4111).
8309 * HTML writer: export `tagWithAttributes`. This is a helper allowing
8310 other writers to create single HTML tags.
8312 * Let papersizes `a0`, `a1`, `a2`, ... be case-insensitive by
8313 converting the case as needed in LaTeX and ConTeXt writers.
8315 * Change `fixDisplayMath` from `Text.Pandoc.Writers.Shared`
8316 so that it no longer produces empty `Para`'s as an artifact.
8318 * `Text.Pandoc.Shared.blocksToInlines`: rewrote using builder.
8319 This gives us automatic normalization, so we don't get
8320 for example two consecutive Spaces.
8322 * Include default CSS for 'underline' class in HTML-based templates.
8324 * revealjs template: add `tex2jax` configuration for the
8325 math plugin. With the next release of reveal.js, this will
8326 fix the problem of `$`s outside of math contexts being
8327 interpreted as math delimiters (#4027).
8329 * `pandoc.lua` module for use in lua filters (Albert Krewinkel):
8331 + Add basic lua List module (#4099, #4081). The List module is
8332 automatically loaded, but not assigned to a global variable. It can be
8333 included in filters by calling `List = require 'List'`. Lists of blocks,
8334 lists of inlines, and lists of classes are now given `List` as a metatable,
8335 making working with them more convenient. E.g., it is now possible to
8336 concatenate lists of inlines using Lua's concatenation operator `..`
8337 (requires at least one of the operants to have `List` as a metatable):
8339 function Emph (emph)
8340 local s = {pandoc.Space(), pandoc.Str 'emphasized'}
8341 return pandoc.Span(emph.content .. s)
8342 end
8344 The `List` metatable is assigned to the tables which get passed to
8345 the constructors `MetaBlocks`, `MetaInline`, and `MetaList`. This
8346 enables the use of the resulting objects as lists.
8347 + `Lua/StackInstances`: push Pandoc and Meta via constructor.
8348 Pandoc and Meta elements are now pushed by calling the respective
8349 constructor functions of the pandoc Lua module. This makes serialization
8350 consistent with the way blocks and inlines are pushed to lua and allows
8351 to use List methods with the `blocks` value.
8352 + Add documentation for pandoc.List in `lua-filters.md`.
8354 * Use latest tagsoup. This fixes a bug in parsing HTML tags with
8355 `&` (but not a valid entity) following them (#4094, #4088).
8357 * Use skylighting 0.4.4.1, fixing the color of unmarked code text
8358 when `numberLines` is used (#4103).
8360 * Make `normalizeDate` more forgiving (Mauro Bieg, #4101), not
8361 requiring a leading 0 on single-digit days.
8363 * Fix `--help` output for `--highlight-style` to include `FILE` (Mauro
8364 Bieg, #4095).
8366 * Clearer deprecation warning for `--latexmathml, --asciimathml, -m`.
8367 Previously we only mentioned `--latexmathml`, even if `-m` was
8368 used.
8370 * Changelog: fix description of lua filters in 2.0 release
8371 (Albert Krewinkel). Lua filters were initially run *after* conventional
8372 (JSON) filters. However, this was changed later to make it easier to deal
8373 with files in the mediabag. The changelog is updated to describe that
8374 feature of the 2.0 release correctly.
8376 * Change Generic JSON instances to TemplateHaskell (Jasper Van der Jeugt,
8377 #4085). This reduces compile time and memory usage significantly.
8379 * `lua-filters.md`: Added tikz filter example.
8381 * Create alternative zip file for macOS binaries.
8383 * Create alternative zip file for Windows binaries.
8385 * Update INSTALL.md since we now provide zips for binaries.
8387 * Relax `http-types` dependency (Justus Sagemüller, #4084).
8389 * Add `epub.md`, `getting-started.md` to docs. These used to live in
8390 the website repo.
8392 * Add `packages` target to Makefile.
8394 * Bump bounds for binary, http-types, tasty-hunit
8396## pandoc 2.0.3 (2017-11-20)
8398 * Lua filters: preload text module (Albert Krewinkel, #4077).
8399 The `text` module is preloaded in lua. The module contains some UTF-8
8400 aware string functions, implemented in Haskell. The module is loaded on
8401 request only, e.g.:
8403 text = require 'text'
8404 function Str (s)
8405 s.text = text.upper(s.text)
8406 return s
8407 end
8409 * Allow table-like access to attributes in lua filters (Albert Krewinkel,
8410 #4071). Attribute lists are represented as associative lists in Lua. Pure
8411 associative lists are awkward to work with. A metatable is attached to
8412 attribute lists, allowing to access and use the associative list as if
8413 the attributes were stored in as normal key-value pair in table.
8414 Note that this changes the way `pairs` works on attribute lists. Instead
8415 of producing integer keys and two-element tables, the resulting iterator
8416 function now returns the key and value of those pairs. Use `ipairs` to
8417 get the old behavior. Warning: the new iteration mechanism only works if
8418 pandoc has been compiled with Lua 5.2 or later (current default: 5.3).
8420 * Text.Pandoc.Parsing.uri: allow `&` and `=` as word characters (#4068).
8421 This fixes a bug where pandoc would stop parsing a URI with an
8422 empty attribute: for example, `&a=&b=` wolud stop at `a`.
8423 (The uri parser tries to guess which punctuation characters
8424 are part of the URI and which might be punctuation after it.)
8426 * Introduce `HasSyntaxExtensions` typeclass (Alexander Krotov, #4074).
8428 + Added new `HasSyntaxExtensions` typeclass for `ReaderOptions` and
8429 `WriterOptions`.
8430 + Reimplemented `isEnabled` function from `Options.hs` to accept both
8431 `ReaderOptions` and `WriterOptions`.
8432 + Replaced `enabled` from `CommonMark.hs` with new `isEnabled`.
8434 * Add `amuse` extension (Alexander Krotov) to enable Amuse wiki
8435 behavior for `muse`. New `Ext_amuse` constructor for
8436 `Extension`. Note: this is switched on by default; for
8437 Emacs behavior, use `muse-amuse`.
8439 * Muse reader (Alexander Krotov):
8441 + Count only one space as part of list item marker.
8442 + Produce SoftBreaks on newlines. Now wrapping can be preserved
8443 with `--wrap=preserve`.
8444 + Add Text::Amuse footnote extensions. Footnote end is indicated by
8445 indentation, so footnotes can be placed anywhere in the text,
8446 not just at the end of it.
8447 + Accept Emacs Muse definition lists when `-amuse`.
8448 Emacs Muse does not require indentation.
8450 * HTML reader:
8452 + Ensure we don't produce level 0 headers (#4076), even for chapter
8453 sections in epubs. This causes problems because writers aren't set
8454 up to expect these.
8455 + Allow spaces after `\(` and before `\)` with `tex_math_single_backslash`.
8456 Previously `\( \frac{1}{a} < \frac{1}{b} \)` was not parsed as math in
8457 `markdown` or `html` `+tex_math_single_backslash`.
8459 * MANUAL: clarify that math extensions work with HTML.
8460 Clarify that `tex_math_dollars` and `tex_math_single_backslash`
8461 will work with HTML as well as Markdown.
8463 * Creole reader: Fix performance issue for longer lists (Sascha Wilde,
8464 #4067).
8466 * RST reader: better support for 'container' directive (#4066).
8467 Create a div, incorporate name attribute and classes.
8469 * LaTeX reader:
8471 + Support column specs like `*{2}{r}` (#4056). This is equivalent to
8472 `rr`. We now expand it like a macro.
8473 + Allow optional args for parbox (#4056).
8474 + Allow optional arguments on `\footnote` (#4062).
8476 * EPUB writer: Fixed path for cover image (#4069). It was previously
8477 `media/media/imagename`, and should have been `media/imagename`.
8479 * Markdown writer: fix bug with doubled footnotes in grid tables
8480 (#4061).
8482 * LaTeX template: include natbib/biblatex after polyglossia (#4073).
8483 Otherwise we seem to get an error; biblatex wants polyglossia
8484 language to be defined.
8486 * Added examples to lua filters documentation.
8489## pandoc 2.0.2 (2017-11-12)
8491 * Deprecated ancient HTML math methods: `--latexmathml`, `--gladtex`,
8492 `--mimetex`, `--jsmath`.
8494 * Fixed URIs in `data/jats.csl`. They were being rendered twice,
8495 leading to invalid XML in default JATS output with pandoc-citeproc.
8497 * `lua-filters.md`: use real-world man page filter as example.
8499 * Add lua filter functions `walk_inline` and `walk_block`
8500 in the pandoc module, to apply filters inside particular
8501 inline and block elements.
8503 * Refactored some code from `Text.Pandoc.Lua.PandocModule`
8504 into new internal module `Text.Pandoc.Lua.Filter`.
8506 * Markdown reader:
8508 + Allow fenced code blocks to be indented 1-3 spaces (#4011).
8509 This brings our handling of them into alignment with CommonMark's.
8510 + Fix YAML metadata with "chomp" (`|-`). Previously if a
8511 YAML block under `|-` contained a blank line, pandoc would
8512 not parse it as metadata.
8514 * Removed `etc.` from abbreviations file. Often `etc.` ends a
8515 sentence, and we want the period to be treated as a
8516 sentence-ending period.
8518 * Fix regression with `--metadata` (#4054). Values specified with
8519 `--metadata` should replace a metadata value set in the document
8520 itself, rather than creating a list including a new value.
8522 * EPUB writer:
8524 + Fix EPUB OCF structure. #3720 had been improperly implemented.
8525 + Fix modified paths for raw HTML tags (src, poster, etc.)
8526 (#4050, #4055). This had not been updated for the new EPUB
8527 container layout, with a separate text/ subdirectory.
8528 + Fix image paths with empty `--epub-subdirectory`.
8530 * Miscellaneous code cleanup (Alexander Krotov).
8532 * Use pandoc-types 1.17.3, which adds `Walkable` instances
8533 for `[Block] Block` and `[Inline] Inline`.
8535 * Remove obsolete `stack.full.yaml` (#4052).
8537 * Change to using pandoc-citeproc 0.12.1 in binary packages.
8539 * Consolidate math output method documentation (#4049, Mauro Bieg).
8541 * `MANUAL.txt`: fix header level of "Extension: emoji" (Albert Krewinkel).
8543 * Use lua filter to generate man page from `MANUAL.txt`, replacing old
8544 Haskell filters. This is easier and faster.
8546 * Improved `INSTALL.md`.
8548 * Update commands to extract deb archive on Linux (#4043, Salim B).
8551## pandoc 2.0.1.1 (2017-11-04)
8553 * Improved fix to #3989 (parsing of HTML tags containing
8554 `>` in an attribute or comment). The previous fix (in 2.0.1) only
8555 worked in certain cases.
8557 * FB2 writer (Alexander Krotov):
8559 + Add `unrecognised` genre to `<title-info>`
8560 (Alexander Krotov). XML schema requires at least one genre.
8561 + Remove `<annotation>` from `<body>`.
8563 * CommonMark writer: fix strikethrough for `gfm` (#4038).
8565 * Use texmath 0.10, which adds support for a wider range of
8566 symbols and fixes default column alignments in MathML
8567 and OMML.
8569 * Highlighting fixes, using skylighting 0.4.3.2:
8571 + Fix invalid CSS.
8572 + Support `lineAnchors` (or `line-anchors`) in HTML code blocks.
8573 + Ensure that code lines don't get duplicate identifiers (#4031).
8574 The line identifiers are built using the code block's identifier
8575 as a prefix. If the code block has null identifier, we use
8576 `cb1`, `cb2`, etc.
8578 * Added a few abbreviations to `data/abbreviations`,
8579 and sorted the list (#3984, Wandmalfarbe).
8581 * Improved support for columns in HTML writer (#4028).
8583 + Remove `width` attribute from the `div`.
8584 + Remove space between `<div class="column">` elements,
8585 since this prevents columns whose widths sum to 100%
8586 (the space takes up space).
8587 + Move as much as possible of the CSS to the template.
8588 + Ensure that all the HTML-based templates (including epub)
8589 contain the CSS for columns.
8590 + Columns default to 50% width unless they are given a width
8591 attribute. So if you want two equal-width columns, you
8592 can use a div with class `column` and no `width` attribute.
8594 * SelfContained: use `base64` for css links with media attribute (#4026).
8595 This fixes `--self-contained` with S5.
8597 * Improve `pandoc-template-mode.el` (Vaclav Haisman).
8599 * INSTALL.md: MacOS instructions needed xar -f (adam234).
8601 * MANUAL.txt:
8603 + Clarify that --setext-headers doesn't affect gfm output (#4035).
8604 + Clarify what is needed to open and close a div in `fenced_divs`
8605 (#4039, Tristano Ajmone).
8606 + Removed reference to `default.beamer` in docs (#4024).
8607 Also added mention of other templates affecting PDF output
8608 with different settings.
8611## pandoc 2.0.1 (2017-10-31)
8613 * Fixed regression in parsing of HTML comments in markdown and other
8614 non-HTML formats (`Text.Pandoc.Readers.HTML.htmlTag`) (#4019).
8615 The parser stopped at the first `>` character, even if it wasn't
8616 the end of the comment.
8618 * Creole reader (Sascha Wilde):
8620 + Fix some minor typos and formatting.
8621 + Add additional test on nowiki-block after para.
8622 + Fix lists with trailing white space.
8624 * LaTeX reader: handle `%` comment right after command.
8625 For example, `\emph%`.
8627 * Markdown reader: make sure fenced div closers work in lists.
8628 Previously the following failed:
8630 ::: {.class}
8631 1. one
8632 2. two
8633 :::
8635 and you needed a blank line before the closing `:::`.
8637 * Make `fenced_divs` affect the Markdown writer. If `fenced_divs` is
8638 enabled, Divs will be rendered as fenced divs.
8640 * LaTeX/Beamer writer: support "blocks" inside columns and other Divs
8641 (#4016).
8643 * HTML Writer: consistently use dashed class-names (Mauro Bieg, #3556).
8644 Note: this change may require some changes in CSS rules.
8645 `footnoteRef` has become `footnote-ref`, `titleslide` has
8646 become `title-slide`, and `footnoteBack` has become `footnote-back`.
8648 * JATS writer: Properly pass through author metadata (#4020).
8650 * FB2 writer (Alexander Krotov):
8652 + Write blocks outside of `<p>` in definitions.
8653 + Make bullet lists consistent with ordered lists, repeating
8654 the marker for the outer list rather than indenting sublists,
8655 since indentation does not work in readers.
8656 + Add new style FB2 tests.
8658 * `Text.Pandoc.ImageSize`: Add `Millimeter` constructor to `Dimension`
8659 (#4012) [API change]. Now sizes given in 'mm' are no longer converted
8660 to 'cm'.
8662 * Revise documentation of small caps syntax (Andrew Dunning, #4013).
8664 * Fix broken reference links in manual (Andrew Dunning, #4014)
8666 * Fixed example of slide columns structure in changelog (#4015).
8667 Also documented this feature in MANUAL.txt.
8670## pandoc 2.0.0.1 (2017-10-30)
8672 * EPUB writer:
8674 + Fixed filepaths for nonstandard epub-subdirectory values.
8675 + Ensure that epub2 is recognized as a non-text format,
8676 so that a template is used.
8677 + Don't include "prefix" attribute for ibooks for epub2.
8678 It doesn't validate.
8679 + Fix stylesheet paths; previously we had an incorrect
8680 stylesheet path for the cover page and nav page.
8682 * LaTeX reader:
8684 + Insert space when needed in macro expansion (#4007).
8685 Sometimes we need to insert a space after a control sequence
8686 to prevent it merging with a following letter.
8687 + Allow unbraced arguments for macros (#4007).
8688 + Allow body of macro definition to be unbraced (#4007).
8690 * Linux package build: ensure that pandoc-citeproc is statically linked.
8692 * trypandoc: add native, ms.
8695## pandoc 2.0 (2017-10-29)
8697### New features
8699 * New output format `ms` (groff ms). Complete support, including
8700 tables, math, syntax highlighting, and PDF bookmarks. The writer uses
8701 texmath's new eqn writer to convert math to eqn format, so a ms file
8702 produced with this writer should be processed with `groff -ms -e` if
8703 it contains math.
8705 * New output format `jats` (Journal Article Tag Suite). This is an XML
8706 format used in archiving and publishing articles. Note that a
8707 URI-encoded CSL stylesheet (`data/jats.csl`) is added automatically
8708 unless a stylesheet is specified using `--css`.
8710 * New output format `gfm` (GitHub-flavored CommonMark) (#3841).
8711 This uses bindings to GitHub's fork of cmark, so it should parse
8712 gfm exactly as GitHub does (excepting certain postprocessing
8713 steps, involving notifications, emojis, etc.). `markdown_github`
8714 has been deprecated in favor of `gfm`.
8716 * New output format `muse` (Emacs Muse) (Alexander Krotov, #3489).
8718 * New input format `gfm` (GitHub-flavored CommonMark) (#3841).
8719 This uses bindings to GitHub's fork of cmark. `markdown_github`
8720 has been deprecated in favor of `gfm`.
8722 * New input format `muse` (Emacs Muse) reader (Alexander Krotov, #3620).
8724 * New input format `tikiwiki` (TikiWiki markup) (rlpowell, #3800).
8726 * New input format `vimwiki` (Vimwiki markup) (Yuchen Pei, #3705).
8727 Note that there is a new data file, `data/vimwiki.css`, which can
8728 be used to display the HTML produced by this reader and
8729 pandoc's HTML writer in the style of vimwiki's own HTML
8730 export.
8732 * New input format `creole` (Creole 1.0) (#3994, Sascha Wilde).
8734 * New syntax for Divs, with `fenced_divs` extension enabled by
8735 default (#168). This gives an attractive, plain-text way to create
8736 containers for block-level content.
8738 * Added new syntax for including raw content in any output format,
8739 enabled by the `raw_attribute` extension (which is on by default
8740 for `markdown` and `multimarkdown`). The syntax is the same as
8741 for fenced code blocks or code inlines, only with `{=FORMAT}` for
8742 attributes, where `FORMAT` is the name of the output format
8743 (e.g., `ms`, `html`).
8745 * Implement multicolumn support for slide formats (#1710).
8746 The structure expected is:
8748 :::::::::::::: {.columns}
8749 ::: {.column width="40%"}
8750 contents...
8751 :::
8752 ::: {.column width="60%"}
8753 contents...
8754 :::
8755 ::::::::::::::
8757 Support has been added for beamer and all HTML slide formats.
8759 * Allows line comments in templates, beginning with `$--` (#3806).
8760 (Requires doctemplates 0.2.1.)
8762 * Add `--eol=crlf|lf|native` flag and writer option to control line endings
8763 (Stefan Dresselhaus, #3663, #2097).
8765 * Add `--log` option to save log messages in JSON format to a file (#3392).
8767 * Add `--request-header` option, to set request headers when pandoc
8768 makes HTTP requests to fetch external resources. For example:
8769 `--request-header User-Agent:blah`.
8771 * Added lua filters (Albert Krewinkel, #3514). The new `--lua-filter`
8772 option works like `--filter` but takes pathnames of special lua filters
8773 and uses the lua interpreter baked into pandoc, so that no external
8774 interpreter is needed. Note that lua filters are all applied after
8775 regular filters, regardless of their position on the command line.
8776 For documentation of lua filters, see `doc/lua-filters.md`.
8778 * Set `PANDOC_READER_OPTIONS` in environment where filters are run.
8779 This contains a JSON representation of `ReaderOptions`, so filters
8780 can access it.
8782 * Support creation of pdf via groff `ms` and pdfroff.
8783 `pandoc -t ms -o output.pdf input.txt`.
8785 * Support for PDF generation via HTML and `weasyprint` or `prince`
8786 (Mauro Bieg, #3909). `pandoc -t html5 -o output.pdf --pdf-engine=prince`.
8788 * Added `--epub-subdirectory` option (#3720). This specifies the
8789 subdirectory in the OCF container that holds the EPUB specific content.
8790 We now put all EPUB related content in an `EPUB/` subdirectory by default
8791 (later this will be configurable).
8793 ```
8794 mimetype
8795 META-INF/
8796 com.apple.ibooks.display-options.xml
8797 container.xml
8798 EPUB/ <<--configurable-->>
8799 fonts/ <<--static-->>
8800 font.otf
8801 media/ <<--static-->>
8802 cover.jpg
8803 fig1.jpg
8804 styles/ <<--static-->>
8805 stylesheet.css
8806 content.opf
8807 toc.ncx
8808 text/ <<--static-->>
8809 ch001.xhtml
8810 ```
8812 * Added `--resource-path=SEARCHPATH` command line option (#852).
8813 SEARCHPATH is separated by the usual character, depending on OS
8814 (: on unix, ; on windows). Default resource path is just working
8815 directory. However, the working directory must be explicitly
8816 specified if the `--resource-path` option is used.
8818 * Added --abbreviations=FILE option for custom abbreviations file
8819 (#256). Dfault abbreviations file (`data/abbreviations`) contains
8820 a list of strings that will be recognized by pandoc's
8821 Markdown parser as abbreviations. (A nonbreaking space will
8822 be inserted after the period, preventing a sentence space in
8823 formats like LaTeX.) Users can override the default by putting a file
8824 abbreviations in their user data directory (`~/.pandoc` on *nix).
8826 * Allow a theme file as argument to `--highlight-style`.
8827 Also include a sample, `default.theme`, in `data/`.
8829 * Allow `--syntax-definition` option for dynamic loading of syntax
8830 highlighting definitions (#3334).
8832 * Lists in `markdown` by default now use the CommonMark variable
8833 nesting rules (#3511). The indentation required for a block-level
8834 item to be included in a list item is no longer fixed, but is
8835 determined by the first line of the list item. To be included in
8836 the list item, a block must be indented to the level of the first
8837 non-space content after the list marker. Exception: if are 5 or more
8838 spaces after the list marker, then the content is interpreted as an
8839 indented code block, and continuation paragraphs must be indented
8840 two spaces beyond the end of the list marker. See the CommonMark
8841 spec for more details and examples.
8843 Documents that adhere to the four-space rule should, in most cases,
8844 be parsed the same way by the new rules. Here are some examples
8845 of texts that will be parsed differently:
8847 - a
8848 - b
8850 will be parsed as a list item with a sublist; under the four-space
8851 rule, it would be a list with two items.
8853 - a
8855 code
8857 Here we have an indented code block under the list item, even though it
8858 is only indented six spaces from the margin, because it is four spaces
8859 past the point where a continuation paragraph could begin. With the
8860 four-space rule, this would be a regular paragraph rather than a code
8861 block.
8863 - a
8865 code
8867 Here the code block will start with two spaces, whereas under
8868 the four-space rule, it would start with `code`. With the four-space
8869 rule, indented code under a list item always must be indented eight
8870 spaces from the margin, while the new rules require only that it
8871 be indented four spaces from the beginning of the first non-space
8872 text after the list marker (here, `a`).
8874 This change was motivated by a slew of bug reports from people
8875 who expected lists to work differently (#3125, #2367, #2575, #2210,
8876 #1990, #1137, #744, #172, #137, #128) and by the growing prevalance
8877 of CommonMark (now used by GitHub, for example). Those who
8878 prefer the old behavior can use `-f markdown+four_space_rule`.
8880 * Added `four_space_rule` extension. This triggers the old pandoc
8881 parsing rule for content nested under list items (the "four space
8882 rule").
8884 * Added `spaced_reference_links` extension (#2602). It allows whitespace
8885 between the two parts of a reference link: e.g.
8887 [a] [b]
8889 [b]: url
8891 This was previously enabled by default; now it is forbidden by default.
8893 * Add `space_in_atx_header` extension (#3512). This is enabled by default
8894 in pandoc and GitHub markdown but not the other flavors.
8895 This requirse a space between the opening #'s and the header
8896 text in ATX headers (as CommonMark does but many other implementations
8897 do not). This is desirable to avoid falsely capturing things ilke
8899 #hashtag
8901 or
8903 #5
8905 * Add `sourcefile` and `outputfile` template variables (Roland Hieber,
8906 #3431).
8908 * Allow ibooks-specific metadata in epubs (#2693). You can now have
8909 the following fields in your YAML metadata, and it will be treated
8910 appropriately in the generated EPUB:
8912 ```
8913 ibooks:
8914 version: 1.3.4
8915 specified-fonts: false
8916 ipad-orientation-lock: portrait-only
8917 iphone-orientation-lock: landscape-only
8918 binding: true
8919 scroll-axis: vertical
8920 ```
8923### Behavior changes
8925 * Reader functions no longer presuppose that CRs have been
8926 stripped from the input. (They strip CRs themselves, before
8927 parsing, to simplify the parsers.)
8929 * Added support for translations (localization) (#3559).
8930 Currently this only affects the LaTeX reader, for things
8931 like `\figurename`. Translation data files for 46 languages
8932 can be found in `data/translations`.
8934 * Make `--ascii` work with DocBook output too.
8936 * Rename `--latex-engine` to `--pdf-engine`,
8937 and `--latex-engine-opt` to `--pdf-engine-opt`.
8939 * Removed `--parse-raw` and `readerParseRaw`. These were confusing.
8940 Now we rely on the `+raw_tex` or `+raw_html` extension with latex or html
8941 input. Thus, instead of `--parse-raw -f latex` we use `-f latex+raw_tex`,
8942 and instead of `--parse-raw -f html` we use `-f html+raw_html`.
8944 * With `--filter` R filters are now recognized, even if they are
8945 not executable (#3940, #3941, Andrie de Vries).
8947 * Support SVG in PDF output, converting with `rsvg2pdf` (#1793).
8949 * Make epub an alias for epub3, not epub2.
8951 * Removed `--epub-stylesheet`; use `--css` instead (#3472, #847).
8952 Multiple stylesheets may be used. Stylesheets will be taken both from
8953 `--css` and from the `stylesheet` metadata field (which can contain
8954 either a file path or a list of them).
8956 * `--mathml` and MathML in HTMLMathMethod no longer take an argument.
8957 The argument was for a bridge JavaScript that used to be necessary
8958 in 2004. We have removed the script already.
8960 * `--katex` improvements. The latest version is used, and the
8961 autoload script is loaded by default.
8963 * Change MathJax CDN default since old one is shutting down (#3544).
8964 Note: The new URL requires a version number, which we'll have
8965 to update manually in subsequent pandoc releases in order to
8966 take advantage of mathjax improvements.
8968 * `--self-contained`: don't incorporate elements with `data-external="1"`
8969 (#2656). You can leave an external link as it is by adding the attribute
8970 data-external="1" to the element. Pandoc will then not try to
8971 incorporate its content when `--self-contained` is used. This is
8972 similar to a feature already supported by the EPUB writer.
8974 * Allow `--extract-media` to work with non-binary input formats
8975 (#1583, #2289). If `--extract-media` is supplied with a non-binary
8976 input format, pandoc will attempt to extract the contents of all
8977 linked images, whether in local files, data: uris, or external uris.
8978 They will be named based on the sha1 hash of the contents.
8980 * Make `papersize: a4` work regardless of the case of `a4`.
8981 It is converted to `a4` in LaTeX and `A4` in ConTeXt.
8983 * Make `east_asian_line_breaks` affect all readers/writers (#3703).
8985 * Underlined elements are now treated consistently by readers
8986 (#2270, hftf); they are always put in a Span with class `underline`.
8987 This allows the user to treat them differently from other emphasis,
8988 using a filter. Docx, Org, Textile, Txt2Tags, and HTML readers
8989 have been changed.
8991 * Improved behavior of `auto_identifiers` when there are explicit ids
8992 (#1745). Previously only autogenerated ids were added to the list
8993 of header identifiers in state, so explicit ids weren't taken
8994 into account when generating unique identifiers. Duplicated
8995 identifiers could result. This simple fix ensures that explicitly given
8996 identifiers are also taken into account.
8998 * Use `table-of-contents` for contents of toc, make `toc` a boolean
8999 (#2872). Changed markdown, rtf, and HTML-based templates accordingly.
9000 This allows you to set `toc: true` in the metadata; this
9001 previously produced strange results in some output formats.
9002 For backwards compatibility, `toc` is still set to the
9003 toc contents. But it is recommended that you update templates
9004 to use `table-of-contents` for the toc contents and `toc`
9005 for a boolean flag.
9007 * Change behavior with binary format output to stdout.
9008 Previously, for binary formats, output to stdout was disabled
9009 unless we could detect that the output was being piped (and not
9010 sent to the terminal). Unfortunately, such detection is not
9011 possible on Windows, leaving windows users no way to pipe binary
9012 output. So we have changed the behavior in the following way:
9014 + Output to stdout is allowed when it can be determined that
9015 the output is being piped (on non-Windows platforms).
9016 + If the `-o` option is not used, binary output is never sent
9017 to stdout by default; instead, an error is raised.
9018 + If `-o -` is used, binary output is sent to stdout, regardless
9019 of whether it is being piped. This works on Windows too.
9021 * Better error behavior: uses of `error` have been replaced by
9022 raising of `PandocError`, which can be trapped and handled by the
9023 calling program.
9025 * Removed `hard_line_breaks` extension from `markdown_github` (#3594).
9026 GitHub has two Markdown modes, one for long-form documents like READMEs
9027 and one for short things like issue comments. In issue comments, a line
9028 break is treated as a hard line break. In README, wikis, etc., it is
9029 treated as a space as in regular Markdown. Since pandoc is more likely to
9030 be used to convert long-form documents from GitHub Markdown,
9031 `-hard_line_breaks` is a better default.
9033 * Include `backtick_code_blocks` extension in `mardkown_mmd` (#3637).
9035 * Escape `MetaString` values (as added with `-M/--metadata` flag) (#3792).
9036 Previously they would be transmitted to the template without any
9037 escaping. Note that `--M title='*foo*'` yields a different result from
9039 ---
9040 title: *foo*
9041 ---
9043 In the latter case, we have emphasis; in the former case, just
9044 a string with literal asterisks (which will be escaped
9045 in formats, like Markdown, that require it).
9047 * Allow `em`, `cm`, `in` for image height/width in HTML, LaTeX (#3450).
9049 * HTML writer: Insert `data-` in front of unsupported attributes. Thus,
9050 a span with attribute `foo` gets written to HTML5 with `data-foo`, so
9051 it is valid HTML5. HTML4 is not affected. This will allow us to use
9052 custom attributes in pandoc without producing invalid HTML. (With help
9053 from Wandmalfarbe, #3817.)
9055 * Plain writer: improved super/subscript rendering. We now
9056 handle more non-digit characters for which there are
9057 sub/superscripted unicode characters. When unicode
9058 sub/superscripted characters are not available, we use
9059 `_(..)` or `^(..)` (#3518).
9061 * Docbook, JATS, TEI writers: print INFO message when omitting interior
9062 header (#3750). This only applies to section headers inside list items,
9063 e.g., which were otherwise silently omitted.
9065 * Change to `--reference-links` in Markdown writer (#3701). With
9066 `--reference-location` of `section` or `block`, pandoc will now repeat
9067 references that have been used in earlier sections. The Markdown
9068 reader has also been modified, so that *exactly* repeated references
9069 do not generate a warning, only references with the same label but
9070 different targets. The idea is that, with references after every block,
9071 one might want to repeat references sometimes.
9073 * ODT/OpenDocument writer:
9075 + Support `lang` attribute (#1667).
9076 + Added support for `--toc` (#2836). Thanks to @anayrat.
9078 * Docx writer:
9080 + `lang` meta, see #1667 (Mauro Bieg, #3515).
9081 + Change `FigureWithCaption` to `CaptionedFigure` (iandol, #3658).
9082 + Use `Table` rather than `Table Normal` for table style (#3275).
9083 `Table Normal` is the default table style and can't be modified.
9084 + Pass through comments (#2994). We assume that comments are defined as
9085 parsed by the docx reader:
9087 I want <span class="comment-start" id="0" author="Jesse Rosenthal"
9088 date="2016-05-09T16:13:00Z">I left a comment.</span>some text to
9089 have a comment <span class="comment-end" id="0"></span>on it.
9091 We assume also that the id attributes are unique and properly
9092 matched between comment-start and comment-end.
9093 + Bookmark improvements. Bookmark start/end now surrounds content rather
9094 than preceding it. Bookmarks generated for Div with id
9095 (jgm/pandoc-citeproc#205).
9096 + Add `keywords` metadata to docx document properties (Ian).
9098 * RST writer: support unknown interpreted text roles by
9099 parsing them as `Span` with `role` attributes (#3407). This
9100 way they can be manipulated in the AST.
9102 * HTML writer:
9104 + Line block: Use class instead of style attribute (#1623). We now
9105 issue `<div class="line-block">` and include a default definition
9106 for `line-block` in the default templates, instead of hard-coding a
9107 `style` on the div.
9108 + Add class `footnoteBack` to footnote back references (Timm Albers).
9109 This allows for easier CSS styling.
9110 + Render SmallCaps as span with smallcaps class (#1592), rather than
9111 using a style attribute directly. This gives the user more flexibility
9112 in styling small caps in CSS.
9113 + With reveal.js we use `data-src` instead of `src` for images for
9114 lazy loading.
9115 + Special-case `.stretch` class for images in reveal.js (#1291).
9116 Now in reveal.js, an image with class `stretch` in a paragraph
9117 by itself will stretch to fill the whole screen, with no
9118 caption or figure environment.
9120 * Added warnings for non-rendered blocks to writers.
9122 * Writers now raise an error on template failure.
9124 * When creating a PDF via LaTeX, warn if the font is missing some
9125 characters (#3742).
9127 * Remove initial check for PDF-creating program (#3819).
9128 Instead, just try running it and raise the exception if it
9129 isn't found at that point. This improves things for users of Cygwin
9130 on Windows, where the executable won't be found by `findExecutable`
9131 unless `.exe` is added. The same exception is raised as before, but
9132 at a later point.
9134 * Readers issue warning for duplicate header identifiers (#1745).
9135 Autogenerated header identifiers are given suffixes so as not to clash
9136 with previously used header identifiers. But they may still coincide with
9137 an explicit identifier that is given for a header later in the document,
9138 or with an identifier on a div, span, link, or image. We now issue
9139 a warning in this case, so users can supply an explicit identifier.
9141 * CommonMark reader now supports `emoji`, `hard_line_breaks`, `smart`,
9142 and `raw_html` extensions.
9144 * Markdown reader:
9146 + Don't allow backslash + newline to affect block structure (#3730).
9147 Note that as a result of this change, the following, which formerly
9148 produced a header with two lines separated by a line break, will
9149 now produce a header followed by a paragraph:
9151 # Hi\
9152 there
9154 This may affect some existing documents that relied on
9155 this undocumented and unintended behavior. This change makes pandoc
9156 more consistent with other Markdown implementations, and with itself
9157 (since the two-space version of a line break doesn't work inside ATX
9158 headers, and neither version works inside Setext headers).
9161 * Org reader (Albert Krewinkel, unless noted):
9163 + Support `table.el` tables (#3314).
9164 + Support macros (#3401).
9165 + Support the `#+INCLUDE:` file inclusion mechanism (#3510).
9166 Recognized include types are `example`, `export`, `src`, and
9167 normal org file inclusion. Advanced features like line numbers
9168 and level selection are not implemented yet.
9169 + Interpret more meta value as inlines. The values of the following
9170 meta variables are now interpreted using org-markup instead of
9171 treating them as pure strings: `keywords` (comma-separated list of
9172 inlines), `subtitle` (inline values), `nocite` (inline values, can
9173 be repeated).
9174 + Support `\n` export option (#3940). This turns all newlines in the
9175 text into hard linebreaks.
9177 * RST reader:
9179 + Improved admonition support (#223). We no longer add an
9180 `admonition` class, we just use the class for the type of admonition,
9181 `note` for example. We put the word corresponding to the label in
9182 a paragraph inside a `Div` at the beginning of the admonition with
9183 class `admonition-title`. This is about as close as we can get to
9184 RST's own output.
9185 + Initial support of `.. table` directive. This allows adding captions
9186 to tables.
9187 + Support `.. line-block` directive. This is deprecated but may still
9188 be in older documents.
9189 + Support scale and align attributes of images (#2662).
9190 + Implemented implicit internal header links (#3475).
9191 + Support RST-style citations (#853). The citations appear at the end
9192 of the document as a definition list in a special div with id
9193 `citations`. Citations link to the definitions.
9194 + Recurse into bodies of unknown directives (#3432).
9195 In most cases it's better to preserve the content than
9196 to emit it. This isn't guaranteed to have good results;
9197 it will fail spectacularly for unknown raw or verbatim directives.
9198 + Handle chained link definitions (#262). For example,
9200 .. _hello:
9201 .. _goodbye: example.com
9203 Here both `hello` and `goodbye` should link to `example.com`.
9204 + Support anchors (#262). E.g.
9206 `hello`
9208 .. _hello:
9210 paragraph
9212 This is supported by putting "paragraph" in a `Div` with id `hello`.
9213 + Support `:widths:` attribute for table directive.
9214 + Implement csv-table directive (#3533). Most attributes are supported,
9215 including `:file:` and `:url:`.
9216 + Support unknown interpreted text roles by parsing them as Span
9217 with "role" attributes (#3407). This way they can be manipulated in
9218 the AST.
9220 * HTML reader: parse a span with class `smallcaps` as `SmallCaps`.
9222 * LaTeX reader:
9224 + Implemented `\graphicspath` (#736).
9225 + Properly handle column prefixes/suffixes. For example, in
9226 `\begin{tabular}{>{$}l<{$}>{$}l<{$} >{$}l<{$}}`
9227 each cell will be interpreted as if it has a `$`
9228 before its content and a `$` after (math mode).
9229 + Handle komascript `\dedication` (#1845). It now adds a
9230 `dedication` field to metadata. It is up to the user to supply
9231 a template that uses this variable.
9232 + Support all `\textXX` commands, where XX = `rm`, `tt`, `up`, `md`,
9233 `sf`, `bf` (#3488). Spans with a class are used when there is
9234 nothing better.
9235 + Expand `\newenvironment` macros (#987).
9236 + Add support for LaTeX subfiles package (Marc Schreiber, #3530).
9237 + Better support for subfigure package (#3577).
9238 A figure with two subfigures turns into two pandoc
9239 figures; the subcaptions are used and the main caption
9240 ignored, unless there are no subcaptions.
9241 + Add support for `\vdots` (Marc Schreiber, #3607).
9242 + Add basic support for hyphenat package (Marc Schreiber, #3603).
9243 + Add basic `\textcolor` support (Marc Schreiber).
9244 + Add support for `tabularx` environment (Marc Schreiber, #3632).
9245 + Better handling of comments inside math environments (#3113).
9246 This solves a problem with commented out `\end{eqnarray}` inside
9247 an eqnarray (among other things).
9248 + Parse tikzpicture as raw verbatim environment if `raw_tex` extension
9249 is selected (#3692). Otherwise skip with a warning. This is better
9250 than trying to parse it as text!
9251 + Add `\colorbox` support (Marc Schreiber).
9252 + Set identifiers on Spans used for `\label`.
9253 + Have `\setmainlanguage` set `lang` in metadata.
9254 + Support etoolbox's `\ifstrequal`.
9255 + Support `plainbreak`, `fancybreak` et al from the memoir class
9256 (bucklereed, #3833).
9257 + Support `\let`. Also, fix regular macros so they're expanded at the
9258 point of use, and NOT also the point of definition. `\let` macros,
9259 by contrast, are expanded at the point of definition. Added an
9260 `ExpansionPoint` field to `Macro` to track this difference.
9261 + Support simple `\def` macros. Note that we still don't support
9262 macros with fancy parameter delimiters, like `\def\foo#1..#2{...}`.
9263 + Support `\chaptername`, `\partname`, `\abstractname`, etc. (#3559,
9264 obsoletes #3560).
9265 + Put content of `\ref`, `\label`, `\eqref` commands into `Span` with
9266 attributes, so they can be handled in filters (Marc Schreiber, #3639)
9267 + Add Support for `glossaries` and `acronym` package (Marc Schreiber,
9268 #3589). Acronyms are not resolved by the reader, but acronym and
9269 glossary information is put into attributes on Spans so that they
9270 can be processed in filters.
9271 + Use `Link` instead of `Span` for `\ref`. This makes more sense
9272 semantically and avoids unnecessary `Span [Link]` nestings when
9273 references are resolved.
9274 + Rudimentary support for `\hyperlink`.
9275 + Support `\textquoteleft|right`, `\textquotedblleft|right` (#3849).
9276 + Support `\lq`, `\rq`.
9277 + Implement `\newtoggle`, `\iftoggle`, `\toggletrue|false` from etoolbox
9278 (#3853).
9279 + Support `\RN` and `\Rn`, from biblatex (bucklereed, #3854).
9280 + Improved support for `\hyperlink`, `\hypertarget` (#2549).
9281 + Support `\k` ogonek accent.
9282 + Improve handling of accents. Handle ogonek, and fall back correctly
9283 with forms like `\"{}`.
9284 + Better support for ogonek accents.
9285 + Support for `\faCheck` and `\faClose` (Marc Schreiber, #3727).
9286 + Support for `xspace` (Marc Schreiber, #3797).
9287 + Support `\setmainlanguage` or `\setdefaultlanguage` (polyglossia)
9288 and `\figurename`.
9289 + Better handling of `\part` in LaTeX (#1905). Now we parse chapters as
9290 level 0 headers, and parts as level -1 headers. After parsing, we
9291 check for the lowest header level, and if it's less than 1 we bump
9292 everything up so that 1 is the lowest header level. So `\part` will
9293 always produce a header; no command-line options are needed.
9294 + Add block version of `\textcolor` (Marc Schreiber).
9295 + `\textcolor` works as inline and block command (Marc Schreiber).
9296 + `\textcolor` will be parse as span at the beginning of a paragraph
9297 (Marc Schreiber).
9298 + Read polyglossia/babel `\text(LANG){...}` (bucklereed)
9299 + Improved handling of include files in LaTeX reader (#3971).
9300 Previously `\include` wouldn't work if the included file
9301 contained, e.g., a begin without a matching end.
9302 + Support `\expandafter` (#3983).
9303 + Handle `\DeclareRobustCommand` (#3983). Currently it's just treated
9304 as a synonym for `\newcommand`.
9305 + Handle `\lettrine` (Mauro Bieg).
9307 * Math improvements due to updates in texmath:
9309 + Improved handling of accents and upper/lower delimiters.
9310 + Support for output in GNU eqn format (used with *roff).
9311 + Allow `\boldsymbol` + a token without braces, and similarly
9312 with other styling commands.
9313 + Improve parsing of `\mathop` to allow multi-character operator names.
9314 + Add thin space after math operators when "faking it with
9315 unicode."
9317 * `walk` is now used instead of `bottomUp` in the `ToJSONFilter`
9318 instance for `a -> [a]` (pandoc-types). Note that behavior
9319 will be slightly different, since `bottomUp`'s treatment of
9320 a function `[a] -> [a]` is to apply it to each sublist of a
9321 list, while walk applies it only to maximal sublists.
9322 Usually the latter behavior is what is wanted, and the
9323 former can be simulated when needed. But there may be
9324 existing filters that need to be rewritten in light of the
9325 new behavior. Performance should be improved.
9327 * There are some changes to syntax highlighting due to revisions
9328 in the `skylighting` library:
9330 + Support for `powershell` has been added, and many syntax
9331 definitions have been updated.
9332 + Background colors have been added to the `kate` style.
9333 + The way highlighted code blocks are formatted in HTML has
9334 been changed (David Baynard), in ways that may require
9335 changes in hard-coded CSS affecting highlighting.
9336 (If you haven't included hard-coded highlighting CSS in
9337 your template, you needn't change anything.)
9340### API changes
9342 * New module `Text.Pandoc.Class` (Jesse Rosenthal, John MacFarlane).
9343 This contains definitions of the `PandocMonad` typeclass, the
9344 `PandocIO` and `PandocPure` monads, and associated functions.
9346 * Changed types of all writers and readers.
9348 + We now use `Text` instead of `String` in the interface (#3731).
9349 (We have not yet changed the internals of most readers to work
9350 with `Text`, but making this change in the API now opens up a
9351 path to doing that.)
9352 + The result is now of form `m a` with constraint `PandocMonad m`.
9353 Readers and writers can be combined to form monadic values which
9354 can be run using either `runIO` or `runPure`. If `runIO` is used,
9355 then both readers and writers will be able to do IO when needed
9356 (for include files, for example); if `runPure` is used,
9357 then the functions are pure and will not touch IO.
9358 + Where previously you used
9359 `writeRST def (readMarkdown def "[foo](url)")`, now you
9360 would use
9361 `runPure $ readMarkdown def (pack "[foo](url)") >>= writeRST def`.
9363 * New module `Text.Pandoc.Readers` (Albert Krewinkel). This
9364 contains reader helper functions formerly defined in the
9365 top-level `Text.Pandoc` module.
9367 + Changed `StringReader` -> `TextReader`.
9368 + `getReader` now returns a pair of a reader and
9369 `Extensions`, instead of building the extensions into the
9370 reader (#3659). The calling code must explicitly set
9371 `readerExtensions` using the `Extensions` returned. The
9372 point of the change is to make it possible for the calling
9373 code to determine what extensions are being used.
9375 * New module `Text.Pandoc.Writers` (Albert Krewinkel).
9376 This contains writer helper functions formerly defined in the
9377 top-level `Text.Pandoc` module.
9379 + Changed `StringWriter` -> `TextWriter`.
9380 + `getWriter` now returns a pair of a reader and
9381 `Extensions`, instead of building the extensions into the
9382 reader (#3659). The calling code must explicitly set
9383 `readerExtensions` using the `Extensions` returned. The
9384 point of the change is to make it possible for the calling
9385 code to determine what extensions are being used.
9387 * New module `Text.Pandoc.Lua`, exporting `runLuaFilter` (Albert Krewinkel,
9388 #3514).
9390 * New module `Text.Pandoc.App`. This abstracts out the functionality
9391 of the command line program (`convertWithOpts`), so it can be reproduced
9392 e.g. in a desktop or web application. Instead of exiting, we throw errors
9393 (#3548), which are caught (leading to exit) in pandoc.hs, but allow other
9394 users of `Text.Pandoc.App` to recover. `pandoc.hs` is now a 2-liner.
9395 The module also exports some utility functions for parsing options
9396 and running filters.
9398 * New module `Text.Pandoc.Logging` (exported module) (#3392).
9399 This now contains the `Verbosity` definition previously in
9400 `Text.Pandoc.Options`, as well as a new `LogMessage` datatype that will
9401 eventually be used instead of raw strings for warnings. This will enable
9402 us, among other things, to provide machine-readable warnings if desired.
9403 Include ToJSON instance and showLogMessage. This gives us the possibility
9404 of both machine-readable and human-readable output for log messages.
9406 * New module `Text.Pandoc.BCP47`, with `getLang`, `Lang(..)`, `parseBCP47`.
9408 * New module `Text.Pandoc.Translations`, exporting `Term`,
9409 `Translations`, `readTranslations`.
9411 * New module `Text.Pandoc.Readers.LaTeX.Types', exporting `Macro`, `Tok`,
9412 `TokType`, `Line`, `Column`.
9414 * `Text.Pandoc.Error`: added many new constructors for `PandocError`.
9416 * Expose some previously private modules (#3260). These are often
9417 helpful to people writing their own reader or writer modules:
9419 + `Text.Pandoc.Writers.Shared`
9420 + `Text.Pandoc.Parsing`
9421 + `Text.Pandoc.Asciify`
9422 + `Text.Pandoc.Emoji`
9423 + `Text.Pandoc.ImageSize`
9424 + `Text.Pandoc.Highlighting`
9426 * New module `Text.Pandoc.Extensions` (Albert Krewinkel):
9427 Extension parsing and processing functions were defined in the top-level
9428 `Text.Pandoc` module. These functions are moved to the Extensions
9429 submodule as to enable reuse in other submodules.
9431 * Add `Ext_raw_attribute` constructor for `Extension`.
9433 * Add `Ext_fenced_divs` constructor for `Extension'.
9435 * Add `Ext_four_space_rule` constructor in `Extension`.
9437 * Add `Ext_gfm_auto_identifiers` constructor for `Extension`.
9439 * Add `Monoid` instance for `Extensions`.
9441 * Add `Text.Pandoc.Writers.Ms`, exporting `writeMs`.
9443 * Add `Text.Pandoc.Writers.JATS`, exporting `writeJATS`.
9445 * Add `Text.Pandoc.Writers.Muse`, exporting `writeMuse`.
9447 * Add `Text.Pandoc.Readers.Muse`, exporting `readMuse`.
9449 * Add `Text.Pandoc.Readers.TikiWiki`, exporting `readTikiWiki`.
9451 * Add `Text.Pandoc.Readers.Vimwiki`, exporting `readVimwiki`.
9453 * Add `Text.Pandoc.Readers.Creole`, exporting `readCreole`.
9455 * Export `setVerbosity` from `Text.Pandoc`.
9457 * `Text.Pandoc.Pretty`: Add `Eq` instance for `Doc`.
9459 * `Text.Pandoc.XML`: `toEntities`: changed type to `Text -> Text`.
9461 * `Text.Pandoc.UTF8`:
9463 + Export `fromText`, `fromTextLazy`, `toText`, `toTextLazy`.
9464 Define `toString`, `toStringLazy` in terms of them.
9465 + Add new functions parameterized on `Newline`: `writeFileWith`,
9466 `putStrWith`, `putStrLnWith`, `hPutStrWith`, `hPutStrLnWith`.
9468 * `Text.Pandoc.MediaBag`: removed `extractMediaBag`.
9470 * `Text.Pandoc.Highlighting`:
9472 + `highlighting` now returns an Either rather than Maybe.
9473 This allows us to display error information returned by the skylighting
9474 library. Display a warning if the highlighting library throws an error.
9475 + Add parameter for `SyntaxMap` to `highlight`.
9477 * `Text.Pandoc.Writers.Math`:
9479 + Export `defaultMathJaxURL`, `defaultKaTeXURL`. This will ensure that
9480 we only need to update these in one place.
9482 * `Text.Pandoc.SelfContained`:
9484 + Removed `WriterOptions` parameter from `makeSelfContained`.
9485 + Put `makeSelfContained` in PandocMonad instead of IO. This removes
9486 the need to pass MediaBag around and improves exceptions. It also
9487 opens up the possibility of using makeSelfContained purely.
9488 + Export `makeDataURI`.
9490 * `Text.Pandoc.ImageSize`:
9492 + Export `lengthToDim`, new function `scaleDimension`.
9493 + Export `inEm` from ImageSize (#3450).
9494 + Change `showFl` and `show` instance for `Dimension` so
9495 extra decimal places are omitted.
9496 + Added `Em` as a constructor of `Dimension`.
9497 + Add `WriterOptions` parameter to `imageSize` signature (Mauro Bieg).
9499 * `Text.Pandoc.Templates`:
9501 + Change type of `renderTemplate'`. Now it runs in `PandocMonad`
9502 and raises a proper `PandocTemplateError` if there are problems, rather
9503 than failing with uncatchable `error`.
9504 + Change signature of `getDefaultTemplate`. Now it runs in any instance
9505 of `PandocMonad`, and returns a `String` rather than an `Either` value.
9506 And it no longer takes a `datadir` parameter, since this can be
9507 retrieved from `CommonState`.
9509 * `Text.Pandoc.Options`:
9511 + Added `writerEpubSubdirectory` to `WriterOptions` (#3720).
9512 The EPUB writer now takes its EPUB subdirectory from this option.
9513 + In `WriterOptions`, rename `writerLaTeXEngine` to `writerPdfEngine`
9514 and `writerLaTeXArgs` to `writerPdfArgs` (Mauro Bieg, #3909).
9515 + Add `writerSyntaxMap` to `WriterOptions`.
9516 + Removed `writerEpubStylesheet` from `WriterOptions`.
9517 + Remove `writerUserDataDir` from `WriterOptions`. It is now carried
9518 in `CommonState` in `PandocMonad` instances. (And thus it can be used
9519 by readers too.)
9520 + Changed `writerEpubMetadata` to a `Maybe String`.
9521 + Removed `readerApplyMacros` from `ReaderOptions`. Now we just check
9522 the `latex_macros` reader extension.
9523 + FromJSON/ToJSON instances for `ReaderOptions`.
9524 + In `HTMLMathMethod`, the `KaTeX` contsructor now takes only
9525 one string (for the KaTeX base URL), rather than two.
9526 + Removed `writerSourceURL` from `WriterOptions`. We now use
9527 `stSourceURL` in `CommonState`, which is set by `setInputFiles`.
9529 * `Text.Pandoc.Shared`:
9531 + `tabFilter` now takes a `Text`, not `String`.
9532 + `openURL`: Changed type from an Either. Now it will just raise
9533 an exception to be trapped later.
9534 + Remove `normalizeSpaces` (#1530).
9535 + Remove `warn`. (Use `report` from `Text.Pandoc.Class` instead.)
9536 + Export a new function `crFilter`.
9537 + Add `eastAsianLineBreakFilter` (previously in Markdown reader).
9538 + Provide custom `isURI` that rejects unknown schemes.
9539 (Albert Krewinkel, #2713). We also export the set of known
9540 `schemes`. The new function replaces the function of the same name
9541 from `Network.URI`, as the latter did not check whether a scheme is
9542 well-known. All official IANA schemes (as of 2017-05-22) are
9543 included in the set of known schemes. The four non-official schemes
9544 `doi`, `isbn`, `javascript`, and `pmid` are kept.
9545 + Remove `err`.
9546 + Remove `readDataFile`, `readDefaultDataFile`, `getReferenceDocx`,
9547 `getReferenceODT`. These now live in `Text.Pandoc.Class`,
9548 where they are defined in terms of `PandocMonad`
9549 primitives and have different signatures.
9550 + Remove `openURL`. Use `openURL` from `Text.Pandoc.Class` instead.
9551 + Add `underlineSpan`.
9553 * `Text.Pandoc.Readers.HTML`: export new `NamedTag` class.
9555 * `Text.Pandoc.Readers.Markdown`: remove `readDocxWithWarnings`.
9556 With the new API one can simply use `getLog` after running
9557 the reader.
9559 * `Text.Pandoc.Readers.LaTeX`: Changed types for `rawLaTeXInline`
9560 and `rawLaTeXBlock`. (Both now return a `String`, and they are
9561 polymorphic in state.)
9564### Bug fixes and under-the-hood improvements
9566 * TEI writer: Added identifiers on `<div>` elements.
9568 * DokuWiki reader: Better handling for code block in list item (#3824).
9570 * Custom writer: Remove old preprocesesor conditionals (Albert Krewinkel).
9572 * ZimWiki writer: Removed internal formatting from note and table cells,
9573 because ZimWiki does not support it (Alex Ivkin, #3446).
9575 * MediaWiki writer:
9577 + Updated list of syntax highlighting languages (#3461).
9578 Now `r` gets you `<source>` rather than `<code>` (among others).
9579 + Add display attribute on `<math>` tags (#3452). This allows display
9580 math to be rendered properly.
9581 + Remove newline before `</ref>` (#2652).
9582 + Don't softbreak lines inside list items (#3531).
9584 * Org writer:
9586 + Reduce to two spaces after bullets (#3417, Albert Krewinkel).
9587 + Add unit tests (Alexander Krotov).
9588 + Stop using raw HTML to wrap divs (Albert Krewinkel, #3771).
9589 + Do not strip `#` from Org anchor links (Alexander Krotov).
9591 * CommonMark writer:
9593 + Avoid excess blank lines at end of output.
9594 + Prefer pipe tables to HTML tables even if it means losing relative
9595 column width information (#3734).
9596 + Support table, strikethrough extensions, when enabled (as with gfm).
9597 Note that we bypass the commonmark writer from cmark and construct our
9598 own pipe tables, with better results.
9599 + Properly support `--wrap=none`.
9600 + Use smallcaps class for `SmallCaps` (#1592).
9601 + Omit "fig:" prefix in image titles. This is used internally to
9602 indicate internal figures.
9604 * RST writer:
9606 + Properly handle table captions.
9607 + Don't wrap lines in in definition list terms. Wrapping is not allowed.
9608 + Implemented `+/-smart` and improved escaping with `+smart`.
9609 + Add empty comments when needed to avoid including a blockquote
9610 in the indented content of a preceding block (#3675).
9611 + Improve grid table output, fix bug with empty rows (#3516).
9612 Uses the new `gridTable` in Writers.Shared, which is here
9613 improved to better handle 0-width cells.
9614 + Remove space at beginning/end of RST code span (#3496). Otherwise
9615 we get invalid RST. There seems to be no way to escape the space.
9616 + Add header anchors when header has non-standard id (#3937).
9617 + Correctly handle inline code containing backticks, using a `:literal:`
9618 role (#3974).
9619 + Don't backslash-escape word-internal punctuation (#3978).
9621 * Markdown writer:
9623 + Don't include variables in metadata blocks. Previously variables set
9624 on the command line were included in e.g. YAML metadata, contrary to
9625 documentation and intentions.
9626 + Improved escaping with `+smart`.
9627 + Fixed grid tables embedded in grid tables (#2834).
9628 + Use span with class 'smallcaps' for SmallCaps, instead of a style
9629 attribute as before (#1592).
9630 + Escape initial `%` in a paragraph if the `pandoc_title_blocks`
9631 extension is enabled (#3454). Otherwise in a document starting with
9632 a literal `%` the first line is wrongly interpreted as a title.
9633 + Fixed false ordered lists in YAML metadata (#3492, #1685). Now we
9634 properly escape things that would otherwise start ordered lists,
9635 such as
9637 ---
9638 title: 1. inline
9639 ...
9640 + Better handling of tables with empty columns (#3337). We now
9641 calculate the number of columns based on the longest row (or the
9642 length of aligns or widths).
9643 + Escape unordered list markers at beginning of paragraph (#3497), to
9644 avoid false interpretation as a list.
9645 + Escape `|` appropriately.
9646 + Ensure space before list at top level (#3487).
9647 + Avoid spurious blanklines at end of document after tables and list,
9648 for example.
9649 + Fixed bugs in simple/multiline list output (#3384).
9650 Previously we got overlong lists with `--wrap=none`. This is fixed.
9651 Previously a multiline list could become a simple list (and would
9652 always become one with `--wrap=none`).
9653 + Don't emit a simple table if `simple_tables` disabled (#3529).
9654 + Case-insensitive reference links (David A Roberts, #3616).
9655 Ensure that we do not generate reference links whose labels differ only
9656 by case. Also allow implicit reference links when the link
9657 text and label are identical up to case.
9658 + Put space before reference link definitions (Mauro Bieg, #3630).
9659 + Better escaping for links (David A. Roberts, #3619). Previously the
9660 Markdown writer would sometimes create links where there were none
9661 in the source. This is now avoided by selectively escaping bracket
9662 characters when they occur in a place where a link might be created.
9663 + Added missing `\n` (David A. Roberts, #3647).
9664 + Fixed duplicated reference links with `--reference-links`
9665 and `--reference-location=section` (#3674). Also ensure that there
9666 are no empty link references `[]`.
9667 + Avoid inline surround-marking with empty content (#3715).
9668 E.g. we don't want `<strong></strong>` to become `****`.
9669 Similarly for emphasis, super/subscript, strikeout.
9670 + Don't allow soft break in header (#3736).
9671 + Make sure `plain`, `markdown_github`, etc. work for raw.
9672 Previously only `markdown` worked. Note: currently a raw block labeled
9673 `markdown_github` will be printed for any `markdown` format.
9674 + Ensure that `+` and `-` are escaped properly so they don't cause
9675 spurious lists (#3773). Previously they were only
9676 if succeeded by a space, not if they were at end of line.
9677 + Use pipe tables if `raw_html` disabled and `pipe_tables` enabled,
9678 even if the table has relative width information (#3734).
9679 + Markdown writer: don't crash on `Str ""`.
9680 + Make `Span` with null attribute transparent. That is, we don't use
9681 brackets or `<span>` tags to mark spans when there are no attributes;
9682 we simply output the contents.
9683 + Escape pipe characters when `pipe_tables` enabled (#3887).
9684 + Better escaping of `<` and `>`. If `all_symbols_escapable` is set,
9685 we backslash escape these. Otherwise we use entities as before.
9686 + When writing plain, don't use `&nbsp;` to separate list and indented
9687 code. There's no need for it in this context, since this isn't to be
9688 interpreted using Markdown rules.
9689 + Preserve classes in JS obfuscated links (Timm Albers, #2989).
9690 HTML links containing classes originally now preserve them when using
9691 javascript email obfuscation.
9692 + Render `SmallCaps` as a native span when `native_spans` are enabled.
9693 + Always write attributes with `bracketed_spans` (d-dorazio).
9695 * Man writer:
9697 + Fix handling of nested font commands (#3568). Previously pandoc emitted
9698 incorrect markup for bold + italic, for example, or bold + code.
9699 + Avoid error for definition lists with no definitions (#3832).
9701 * DocBook writer:
9703 + Fix internal links with `writerIdentifierPrefix opt`
9704 (#3397, Mauro Bieg).
9706 * Docx writer:
9708 + Don't include bookmarks on headers unless non-null id (#3476).
9709 + Support 9 levels of headers (#1642).
9710 + Allow 9 list levels (#3519).
9711 + Don't take `distArchive` from datadir (#3322). The docx writer takes
9712 components from the distribution's version of `reference.docx` when it
9713 can't find them in a user's custom `reference.docx`. Previously, we
9714 allowed a `reference.docx` in the data directory (e.g. `~/.pandoc`)
9715 to be used as the distribution's reference.docx. This led to a
9716 bizarre situation where pandoc would produce a good docx using
9717 `--template ~/.pandoc/ref.docx`, but if `ref.docx` were moved to
9718 `~/.pandoc/reference.docx`, it would then produce a corrupted docx.
9719 + Fixed handling of soft hyphen (0173) (#3691).
9720 + Better handling of keywords (#3719).
9721 + Cleaner code for handling dir and style attributes for `Div`.
9722 + Use `Set` for dynamic styles to avoid duplicates.
9723 + Removed redundant element from data/docx/word/numbering.xml.
9724 The elements we need are generated when the document is
9725 compiled; this didn't do anything.
9726 + Activate `evenAndOddHeaders` from reference docx (#3901,
9727 Augustín Martín Barbero).
9729 * ODT/OpenDocument writer:
9731 + Calculate aspect ratio for percentage-sized images (Mauro Bieg, #3239).
9732 + Use more widely available bullet characters (#1400). The old
9733 characters weren't available in some font sets. These seem to work
9734 well on Windows and Linux versions of LibreOffice.
9735 + Wider labels for lists (#2421). This avoids overly narrow labels for
9736 ordered lists with `()` delimiters. However, arguably it creates
9737 overly wide labels for bullets. Also, lists now start flush with
9738 the margin, rather than indented.
9739 + Fixed dropped elements in some ordered lists (#2434).
9741 * FB2 writer:
9743 + Don't render `RawBlock` as code.
9744 + Don't fail with an error on interior headers (e.g. in list) (#3750).
9745 Instead, omit them with an INFO message.
9746 + Add support for "lang" metadata (Alexander Krotov, #3625).
9747 + Format `LineBlock` as poem (Alexander Krotov). Previously writer
9748 produced one paragraph with `<empty-line/>` elements, which are not
9749 allowed inside `<p>` according to FB2 schema.
9750 + Replace `concatMap` with `cMap` (Alexander Krotov).
9751 + Write FB2 lists without nesting blocks inside `<p>` (Alexander
9752 Krotov, #4004)
9754 * HTML writer:
9756 + Make sure `html4`, `html5` formats work for raw blocks/inlines.
9757 + Render raw inline environments when `--mathjax` used (#3816).
9758 We previously did this only with raw blocks, on the assumption
9759 that math environments would always be raw blocks. This has changed
9760 since we now parse them as inline environments.
9761 + Ensure we don't get two style attributes for width and height.
9762 + Report when not rendering raw inline/block.
9763 + Issue warning if no title specified and template used (#3473).
9764 + Info message if `lang` is unspecified (#3486).
9765 + Removed unused parameter in `dimensionsToAttributeList`.
9766 + Avoid two class attributes when adding `uri` class (#3716).
9767 + Fix internal links with `writerIdentifierPrefix opt` (#3397, Mauro
9768 Bieg).
9769 + Use revealjs's math plugin for mathjax (#3743). This is a thin
9770 wrapper around mathjax that makes math look better on revealjs.
9771 + Slidy: use h1 for all slides, even if they were originally
9772 level 2 headers (#3566). Otherwise the built-in table of contents
9773 in Slidy breaks.
9775 * LaTeX writer:
9777 + Don't render LaTeX images with data: URIs (#3636). Note that
9778 `--extract-media` can be used when the input contains data: URIs.
9779 + Make highlighted code blocks work in footnotes (Timm Albers).
9780 + Don't use figure inside table cell (#3836).
9781 + Use proper code for list enumerators (#3891). This should fix problems
9782 with lists that don't use arabic numerals.
9783 + Always add hypertarget when there's a non-empty identifier (#2719).
9784 Previously the hypertargets were only added when there was actually
9785 a link to that identifier.
9786 + Use `%` after hypertarget before code block.
9787 + Add `\leavevmode` before hypertarget at start of paragraph (#2704,
9788 fixes formatting problems in beamer citations).
9789 + Don't use `lstinline` in `\item[..]` (#645). If you do, the contents
9790 of item disappear or are misplaced. Use `\texttt` instead.
9791 + Fix problem with escaping in `lstinline` (#1629). Previously the
9792 LaTeX writer created invalid LaTeX when `--listings` was specified and
9793 a code span occurred inside emphasis or another construction.
9794 + Fix error with line breaks after empty content (#2874). LaTeX
9795 requires something before a line break, so we insert a `~` if no
9796 printable content has yet been emitted.
9797 + Use BCP47 parser.
9798 + Fixed detection of otherlangs (#3770). We weren't recursing into
9799 inline contexts.
9800 + Handle language in inline code with `--listings` (#3422).
9801 + Write euro symbol directly in LaTeX (Andrew Dunning, #3801).
9802 The textcomp package allows pdfLaTeX to parse `€` directly, making the
9803 `\euro` command unneeded.
9804 + Fixed footnotes in table captions (#2378). Note that if the table has
9805 a first page header and a continuation page header, the notes will
9806 appear only on the first occurrence of the header.
9807 + In `writeBeamer` output, allow hyperlinks to frames (#3220).
9808 Previously you could link to a header above or below slide level but
9809 not *to* slide level. This commit changes that. Hypertargets are
9810 inserted inside frame titles; technically the reference is to just
9811 after the title, but in normal use (where slides are viewed full
9812 screen in a slide show), this does not matter.
9813 + Remove `\strut` at beginning of table cells (#3436). This fixes a
9814 problem with alignment of lists in table cells. The `\strut` at the
9815 end seems to be enough to avoid the too-close spacing that motivated
9816 addition of the strut in #1573.
9817 + Add partial siunitx Support (Marc Schreiber, #3588).
9819 * ConTeXt writer:
9821 + Refactored to use BCP47 module.
9822 + Remove unnecessary `$` (Alexander Krotov, #3482).
9823 + Use header identifiers for chapters (#3968).
9825 * EPUB writer:
9827 + `title_page.xhtml` is now put in `text/`.
9828 + Don't strip formatting in TOC (#1611).
9830 * Textile reader:
9832 + Fix bug for certain links in table cells (#3667).
9833 + Allow 'pre' code in list item (#3916).
9835 * HTML reader:
9837 + Added warnings for ignored material (#3392).
9838 + Better sanity checks to avoid parsing unintended things as
9839 raw HTML in the Markdown reader (#3257).
9840 + Revise treatment of `li` with `id` attribute (#3596). Previously we
9841 always added an empty div before the list item, but this created
9842 problems with spacing in tight lists. Now we do this: If the list
9843 item contents begin with a `Plain` block, we modify the `Plain`
9844 block by adding a `Span` around its contents. Otherwise, we add a
9845 `Div` around the contents of the list item (instead of adding an
9846 empty `Div` to the beginning, as before).
9847 + Add `details` tag to list of block tags (#3694).
9848 + Removed `button` from block tag list (#3717). It is already in the
9849 `eitherBlockOrInlineTag` list, and should be both places.
9850 + Use `Set`s instead of lists for block tag lookup.
9851 + Rewrote to use `Text` throughout. Effect on memory usage is modest
9852 (< 10%).
9853 + Use the lang value of `<html>` to set the lang meta value (bucklereed,
9854 #3765).
9855 + Ensure that paragraphs are closed properly when the parent block
9856 element closes, even without `</p>` (#3794).
9857 + Parse `<figure>` and `<figcaption>` (Mauro Bieg, #3813).
9858 + Parse `<main>` like `<div role=main>` (bucklereed, #3791).
9859 `<main>` closes `<p>` and behaves like a block element generally
9860 + Support column alignments (#1881). These can be set either
9861 with a `width` attribute or with `text-width` in a `style` attribute.
9862 + Modified state type to be an instance of `HasLogMessages`, so
9863 `registerHeader` can issue warnings.
9864 + `</td>` or `</th>` should close any open block tag (#3991).
9865 + `<td>` should close an open `<th>` or `<td>`.
9866 + `htmlTag` improvements (#3989). We previously failed on cases
9867 where an attribute contained a `>` character. This patch fixes the
9868 bug, which especially affects raw HTML in Markdown.
9870 * Txt2Tags reader:
9872 + Newline is not indentation (Alexander Krotov).
9874 * MediaWiki reader:
9876 + Allow extra hyphens after `|-` in tables (#2649).
9877 + Allow blank line after table start (#2649).
9878 + Fixed more table issues (#2649).
9879 + Ensure that list starts begin at left margin (#2606). Including when
9880 they're in tables or other list items.
9881 + Make smart double quotes depend on `smart` extension (#3585).
9882 + Don't do curly quotes inside `<tt>` contexts (#3585). Even if `+smart`.
9883 + Modified state type to be an instance of `HasLogMessages`, so
9884 `registerHeader` can issue warnings.
9886 * TWiki reader (Alexander Krotov):
9888 + Remove unnecessary `$` (#3597).
9889 + Simplify `linkText` (#3605).
9891 * EPUB reader:
9893 + Minor refactoring, avoiding explicit MediaBag handling.
9894 This all works behind the scenes in CommonState plumbing.
9896 * Docx reader:
9898 + Don't drop smartTag contents (#2242).
9899 + Handle local namespace declarations (#3365). Previously we didn't
9900 recognize math, for example, when the xmlns declaration occurred on
9901 the element and not the root.
9902 + More efficient trimSps (#1530). Replacing `trimLineBreaks`. This
9903 does the work of `normalizeSpaces` as well, so we avoid the need for
9904 that function here.
9905 + Avoid 0-level headers (Jesse Rosenthal, #3830). We used to parse
9906 paragraphs styled with "HeadingN" as "nth-level header." But if a
9907 document has a custom style named "Heading0", this will produce a
9908 0-level header, which shouldn't exist. We only parse this style
9909 if N>0. Otherwise we treat it as a normal style name, and
9910 follow its dependencies, if any.
9911 + Add tests for avoiding zero-level header (Jesse Rosenthal).
9913 * ODT reader:
9915 + Replaced `collectRights` with Rights from `Data.Either`.
9916 + Remove dead code (Albert Krewinkel).
9918 * Org reader (Albert Krewinkel, unless noted).
9920 + Don't allow tables inside list items (John MacFarlane, #3499).
9921 + Disallow tables on list marker lines (#3499).
9922 + Convert markup at beginning of footnotes (John MacFarlane, #3576).
9923 + Allow emphasized text to be followed by `[` (#3577).
9924 + Handle line numbering switch for src blocks.
9925 The line-numbering switch that can be given to source blocks (`-n` with
9926 an start number as an optional parameter) is parsed and translated to a
9927 class/key-value combination used by highlighting and other readers and
9928 writers.
9929 + Stop adding rundoc prefix to src params. Source block parameter names
9930 are no longer prefixed with `rundoc`. This was intended to simplify
9931 working with the rundoc project, a babel runner. However, the rundoc
9932 project is unmaintained, and adding those markers is not the reader's
9933 job anyway. The original language that is specified for a source
9934 element is now retained as the `data-org-language` attribute and only
9935 added if it differs from the translated language.
9936 + Allow multi-word arguments to src block params (#3477). The reader now
9937 correctly parses src block parameter list even if parameter arguments
9938 contain multiple words.
9939 + Avoid creating `nullMeta` by applying `setMeta` directly
9940 (Alexander Krotov).
9941 + Replace `sequence . map` with `mapM`.
9942 + Fix smart parsing behavior. Parsing of smart quotes and special
9943 characters can either be enabled via the `smart` language extension or
9944 the `'` and `-` export options. Smart parsing is active if either the
9945 extension or export option is enabled. Only smart parsing of special
9946 characters (like ellipses and en and em dashes) is enabled by default,
9947 while smart quotes are disabled. Previously, all smart parsing was
9948 disabled unless the language extension was enabled.
9949 + Subject full doc tree to headline transformations (Albert Krewinkel,
9950 #3695). Emacs parses org documents into a tree structure, which is
9951 then post-processed during exporting. The reader is changed to do the
9952 same, turning the document into a single tree of headlines starting
9953 at level 0.
9954 + Fix cite parsing behaviour (Herwig Stuetz). Until now, `org-ref`
9955 cite keys included special characters also at the end. This caused
9956 problems when citations occur right before colons or at the end of
9957 a sentence. With this change, all non alphanumeric characters at
9958 the end of a cite key are ignored. This also adds `,` to the list
9959 of special characters that are legal in cite keys to better mirror
9960 the behaviour of org-export.
9961 + Fix module names in haddock comments. Copy-pasting had lead to
9962 haddock module descriptions containing the wrong module names.
9963 + Recognize babel result blocks with attributes (#3706). Babel
9964 result blocks can have block attributes like captions and names.
9965 Result blocks with attributes were not recognized and were parsed
9966 as normal blocks without attributes.
9967 + Include tags in headlines. The Emacs default is to include tags in the
9968 headline when exporting. Instead of just empty spans, which contain the
9969 tag name as attribute, tags are rendered as small caps and wrapped in
9970 those spans. Non-breaking spaces serve as separators for multiple tags.
9971 + Respect export option for tags (#3713). Tags are appended to
9972 headlines by default, but will be omitted when the `tags` export option
9973 is set to nil.
9974 + Use `tag-name` attribute instead of `data-tag-name`.
9975 + Use `org-language` attribute rather than `data-org-language`.
9976 + Modified state type to be an instance of `HasLogMessages`, so
9977 `registerHeader` can issue warnings.
9978 + End footnotes after two blank lines. Footnotes can not only be
9979 terminated by the start of a new footnote or a header, but also by two
9980 consecutive blank lines.
9981 + Update emphasis border chars (#3933). The org reader was updated to
9982 match current org-mode behavior: the set of characters which are
9983 acceptable to occur as the first or last character in an org emphasis
9984 have been changed and now allows all non-whitespace chars at the
9985 inner border of emphasized text (see `org-emphasis-regexp-components`).
9987 * RST reader:
9989 + Fixed small bug in list parsing (#3432). Previously the parser didn't
9990 handle properly this case:
9992 * - a
9993 - b
9994 * - c
9995 - d
9996 + Handle multiline cells in simple tables (#1166).
9997 + Parse list table directive (Keiichiro Shikano, #3432).
9998 + Make use of `anyLineNewline` (Alexander Krotov, #3686).
9999 + Use `anyLineNewline` in `rawListItem` (Alexander Krotov, #3702).
10000 + Reorganize block parsers for ~20% faster parsing.
10001 + Fixed `..include::` directive (#3880).
10002 + Handle blank lines correctly in line blocks (Alexander Krotov, #3881).
10003 Previously pandoc would sometimes combine two line blocks separated
10004 by blanks, and ignore trailing blank lines within the line block.
10005 + Fix indirect hyperlink targets (#512).
10007 * Markdown reader:
10009 + Allow attributes in reference links to start on next line (#3674).
10010 + Parse YAML metadata in a context that sees footnotes defined in
10011 the body of the document (#1279).
10012 + When splitting pipe table cells, skip tex math (#3481).
10013 You might have a `|` character inside math. (Or for that matter
10014 something that the parser might mistake for raw HTML.)
10015 + Treat span with class `smallcaps` as SmallCaps.
10016 This allows users to specify small caps in Markdown this way:
10017 `[my text]{.smallcaps}` (#1592).
10018 + Fixed internal header links (#2397).
10019 This patch also adds `shortcut_reference_links` to the list
10020 of mmd extensions.
10021 + Treat certain environments as inline
10022 when they occur without space surrounding them (#3309, #2171).
10023 E.g. equation, math. This avoids incorrect vertical space
10024 around equations.
10025 + Optimized `nonindentSpaces`. Makes the benchmark go from 40 to 36 ms.
10026 + Allow latex macro definitions indented 1-3 spaces.
10027 Previously they only worked if nonindented.
10028 + Improved parsing of indented raw HTML blocks (#1841).
10029 Previously we inadvertently interpreted indented HTML as
10030 code blocks. This was a regression. We now seek to determine the
10031 indentation level of the contents of an HTML block, and (optionally)
10032 skip that much indentation. As a side effect, indentation may be
10033 stripped off of raw HTML blocks, if `markdown_in_html_blocks` is
10034 used. This is better than having things interpreted as indented
10035 code blocks.
10036 + Fixed smart quotes after emphasis (#2228). E.g. in `*foo*'s 'foo'`.
10037 + Warn for notes defined but not used (#1718).
10038 + Use `anyLineNewline` (Alexander Krotov).
10039 + Interpret YAML metadata as Inlines when possible (#3755). If
10040 the metadata field is all on one line, we try to interpret it as
10041 Inlines, and only try parsing as Blocks if that fails. If it
10042 extends over one line (including possibly the `|` or `>` character
10043 signaling an indented block), then we parse as Blocks. This was
10044 motivated by some German users finding that `date: '22. Juin 2017'`
10045 got parsed as an ordered list.
10046 + Fixed spurious parsing as citation as reference def (#3840).
10047 We now disallow reference keys starting with `@` if the
10048 `citations` extension is enabled.
10049 + Parse `-@roe` as suppress-author citation (pandoc-citeproc#237).
10050 Previously only `[-@roe]` (with brackets) was recognized as
10051 suppress-author, and `-@roe` was treated the same as `@roe`.
10052 + Fixed parsing of fenced code after list when there is no intervening
10053 blank line (#3733).
10054 + Allow raw latex commands starting with `\start` (#3558). Previously
10055 these weren't allowed because they were interpreted as starting
10056 ConTeXt environments, even without a corresponding `\stop`...
10057 + Added `inlines`, `inlines1`.
10058 + Require nonempty alt text for `implicit_figures` (#2844).
10059 A figure with an empty caption doesn't make sense.
10060 + Removed texmath macro material; now all this is handled
10061 in the LaTeX reader functions.
10062 + Fixed bug with indented code following raw LaTeX (#3947).
10064 * LaTeX reader:
10066 + Rewrote LaTeX reader with proper tokenization (#1390,
10067 #2118, #3236, #3779, #934, #982). This rewrite is primarily
10068 motivated by the need to get macros working properly. A side benefit
10069 is that the reader is significantly faster. We now tokenize the
10070 input text, then parse the token stream. Macros modify the token
10071 stream, so they should now be effective in any context, including
10072 math. Thus, we no longer need the clunky macro processing
10073 capacities of texmath.
10074 + Parse `\,` to `\8198` (six-per-em space) (Henri Werth).
10075 + Allow `\newcommand\foo{blah}` without braces.
10076 + Support `\lstinputlisting` (#2116).
10077 + Issue warnings when skipping unknown latex commands (#3392).
10078 + Include contents of `\parbox`.
10079 + Allow `\hspace` and `\vspace` to count as raw block or inline.
10080 Previously we would refuse to parse anything as raw inline if
10081 it was in the `blockCommands` list. Now we allow exceptions
10082 if they're listed under ignoreInlines in inlineCommands.
10083 This should make it easier e.g. to include an `\hspace`
10084 between two side-by-side raw LaTeX tables.
10085 + Don't drop contents of `\hypertarget`.
10086 + Handle spaces before `\cite` arguments.
10087 + Allow newpage, clearpage, pagebreak in inline contexts as well as
10088 block contexts (#3494).
10089 + Treat `{{xxx}}` the same as `{xxx}` (#2115).
10090 + Use `pMacroDefinition` in macro (for more direct parsing).
10091 Note that this means that `macro` will now parse one
10092 macro at a time, rather than parsing a whole group together.
10093 + Fixed failures on `\ref{}`, `\label{}` with `+raw_tex`. Now these
10094 commands are parsed as raw if `+raw_tex`; otherwise, their argument
10095 is parsed as a bracketed string.
10096 + Don't crash on empty `enumerate` environment (#3707).
10097 + Handle escaped `&` inside table cell (#3708).
10098 + Handle block structure inside table cells (#3709). `minipage` is no
10099 longer required.
10100 + Handle some width specifiers on table columns (#3709). Currently
10101 we only handle the form `0.9\linewidth`. Anything else would have
10102 to be converted to a percentage, using some kind arbitrary assumptions
10103 about line widths.
10104 + Make sure `\write18` is parsed as raw LaTeX. The change is in the
10105 LaTeX reader's treatment of raw commands, but it also affects the
10106 Markdown reader.
10107 + Fixed regression with starred environment names (#3803).
10108 + Handle optional args in raw `\titleformat` (#3804).
10109 + Improved heuristic for raw block/inline. An unknown command at the
10110 beginning of the line that could be either block or inline is
10111 treated as block if we have a sequence of block commands followed by
10112 a newline or a `\startXXX` command (which might start a raw ConTeXt
10113 environment).
10114 + Don't remove macro definitions from the output, even if
10115 `Ext_latex_macros` is set, so that macros will be applied.
10116 Since they're only applied to math in Markdown, removing the macros
10117 can have bad effects. Even for math macros, keeping them should be
10118 harmless.
10119 + Removed `macro`. It is no longer necessary, since the
10120 `rawLaTeXBlock` parser will parse macro definitions. This also avoids
10121 the need for a separate `latexMacro` parser in the Markdown reader.
10122 + Use `label` instead of `data-label` for label in caption (#3639).
10123 + Fixed space after `\figurename` etc.
10124 + Resolve references to section numbers.
10125 + Fix `\let\a=0` case, with single character token.
10126 + Allow `@` as a letter in control sequences. `@` is commonly used
10127 in macros using `\makeatletter`. Ideally we'd make the tokenizer
10128 sensitive to `\makeatletter` and `\makeatother`, but until then this
10129 seems a good change.
10130 + Track header numbers and correlate with labels.
10131 + Allow `]` inside group in option brackets (#3857).
10132 + lstinline with braces can be used (verb cannot be used with braces)
10133 (Marc Schreiber, #3535).
10134 + Fix keyval function: pandoc did not parse options in braces correctly
10135 (Marc Schreiber, #3642).
10136 + When parsing raw LaTeX commands, include trailing space (#1773).
10137 Otherwise things like `\noindent foo` break and turn into
10138 `\noindentfoo`. Affects `-f latex+raw_tex` and `-f markdown` (and other
10139 formats that allow `raw_tex`).
10140 + Don't treat "..." as Quoted (#3958). This caused quotes to be omitted in
10141 `\texttt` contexts.
10142 + Add tests for existing `\includegraphics` behaviour (Ben Firshman).
10143 + Allow space before `=` in bracketd options (Ben Firshman).
10144 + Be more forgiving in parsing command options. This was needed, for
10145 example, to make some minted options work.
10146 + Strip off quotes in `\include` filenames.
10148 * Added `Text.Pandoc.CSV`, simple (unexported) CSV parser.
10150 * `Text.Pandoc.PDF`:
10152 + Got `--resource-path` working with PDF output (#852).
10153 + Fetch images when generating PDF via context (#3380).
10154 To do this, we create the temp directory as a subdirectory
10155 of the working directory. Since context mk IV by default looks
10156 for images in the parent directory, this works.
10157 + Use `report` instead of `warn`, make it sensitive to verbosity settings.
10158 + Use `fillMediaBag` and `extractMedia` to extract media to temp dir.
10159 This reduces code duplication.
10160 + `html2pdf`: use stdin instead of intermediate HTML file
10161 + Removed useless `TEXINPUTS` stuff for `context2pdf`. mkiv context
10162 doesn't use `TEXINPUTS`.
10164 * `Text.Pandoc.Pretty`:
10166 + Simplified definition of `realLength`.
10167 + Don't error for blocks of size < 1. Instead, resize to 1 (see #1785).
10169 * `Text.Pandoc.MIME`:
10171 + Use `application/javascript` (not `application/x-javascript`).
10172 + Added `emf` to mimeTypes with type `application/x-msmetafile` (#1713).
10174 * `Text.Pandoc.ImageSize`:
10176 + Improve SVG image size code (Marc Schreiber, #3580).
10177 + Make `imageSize` recognize basic SVG dimensions (Mauro Bieg, #3462).
10179 * Use `Control.Monad.State.Strict` throughout. This gives 20-30% speedup
10180 and reduction of memory usage in most of the writers.
10182 * Use `foldrWithKey` instead of deprecated `foldWithKey`.
10184 * `Text.Pandoc.SelfContained`:
10186 + Fixed problem with embedded fonts (#3629).
10187 + Refactored getData from `getDataURI` in `SelfContained`.
10188 + Don't use data URIs for script or style (#3423). Instead, just use
10189 script or style tags with the content inside. The old method with
10190 data URIs prevents certain optimizations outside pandoc. Exception:
10191 data URIs are still used when a script contains `</script>` or a
10192 style contains `</`.
10193 + SelfContained: Handle URL inside material retrieved from a URL
10194 (#3629). This can happen e.g. with an @import of a google web font.
10195 (What is imported is some CSS which contains an url reference
10196 to the font itself.) Also, allow unescaped pipe (|) in URL.
10197 + Load resources from `data-src` (needed for lazy loading in
10198 reveal.js slide shows).
10199 + Handle `data-background-image` attribute on section (#3979).
10201 * `Text.Pandoc.Parsing`:
10203 + Added `indentWith` (Alexander Krotov, #3687).
10204 + Added `stateCitations` to `ParserState`.
10205 + Removed `stateChapters` from `ParserState`.
10206 + In `ParserState`, make `stateNotes'` a Map, add `stateNoteRefs`.
10207 + Added `gobbleSpaces` and `gobbleAtMostSpaces`.
10208 + Adjusted type of `insertIncludedFile` so it can be used with token
10209 parser.
10210 + Replace old texmath macro stuff from Parsing. Use Macro from
10211 Text.Pandoc.Readers.LaTeX.Types instead.
10212 + Export `insertIncludedFile`.
10213 + Added `HasLogMessages`, `logMessage`, `reportLogMessages` (#3447).
10214 + Replace partial with total function (Albert Krewinkel).
10215 + Introduce `HasIncludeFiles` type class (Albert Krewinkel). The
10216 `insertIncludeFile` function is generalized to work with all parser
10217 states which are instances of that class.
10218 + Add `insertIncludedFilesF` which returns F blocks (Albert Krewinkel).
10219 The `insertIncludeFiles` function was generalized and renamed
10220 to `insertIncludedFiles'`; the specialized versions are based on that.
10221 + `many1Till`: Check for the end condition before parsing (Herwig
10222 Stuetz). By not checking for the end condition before the first
10223 parse, the parser was applied too often, consuming too much of the
10224 input. This only affects `many1Till p end` where `p` matches on a
10225 prefix of `end`.
10226 + Provide `parseFromString` (#3690). This is a version of
10227 `parseFromString` specialied to ParserState, which resets
10228 `stateLastStrPos` at the end. This is almost always what we want.
10229 This fixes a bug where `_hi_` wasn't treated as emphasis in the
10230 following, because pandoc got confused about the position of the
10231 last word: `- [o] _hi_`.
10232 + Added `takeP`, `takeWhileP` for efficient parsing of `[Char]`.
10233 + Fix `blanklines` documentation (Alexander Krotov, #3843).
10234 + Give less misleading line information with `parseWithString`.
10235 Previously positions would be reported past the end of the chunk.
10236 We now reset the source position within the chunk and report
10237 positions "in chunk."
10238 + Add `anyLineNewline` (Alexander Krotov).
10239 + Provide shared F monad functions for Markdown and Org readers
10240 (Albert Krewinkel). The `F` monads used for delayed evaluation
10241 of certain values in the Markdown and Org readers are based on a
10242 shared data type capturing the common pattern of both `F` types.
10243 + Add `returnF` (Alexander Krotov).
10244 + Avoid parsing `Notes:**` as a bare URI (#3570). This avoids parsing
10245 bare URIs that start with a scheme + colon + `*`, `_`, or `]`.
10246 + Added `readerAbbreviations` to `ParserState`. Markdown reader
10247 now consults this to determine what is an abbreviation.
10248 + Combine grid table parsers (Albert Krewinkel, #3638). The grid table
10249 parsers for markdown and rst was combined into one single
10250 parser `gridTable`, slightly changing parsing behavior of both
10251 parsers: (1) The markdown parser now compactifies block content
10252 cell-wise: pure text blocks in cells are now treated as paragraphs
10253 only if the cell contains multiple paragraphs, and as plain blocks
10254 otherwise. Before, this was true only for single-column tables. (2)
10255 The rst parser now accepts newlines and multiple blocks in header
10256 cells.
10257 + Generalize tableWith, gridTableWith (Albert Krewinkel).
10258 The parsing functions `tableWith` and `gridTableWith` are generalized
10259 to work with more parsers. The parser state only has to be an
10260 instance of the `HasOptions` class instead of requiring a concrete
10261 type. Block parsers are required to return blocks wrapped into a
10262 monad, as this makes it possible to use parsers returning results
10263 wrapped in `Future`s.
10265 * `Text.Pandoc.Shared`:
10267 + Simplify `toRomanNumeral` using guards (Alexander Krotov, #3445)
10268 + `stringify`: handle Quoted better (#3958). Previously we were losing
10269 the quotation marks in Quoted elements.
10271 * `Text.Pandoc.Writers.Shared`:
10273 + Export `metaToJSON'`, `addVariablesToJSON` (#3439).
10274 This allows us to add the variables AFTER using the metadata
10275 to generate a YAML header (in the Markdown writer).
10276 + Added `unsmartify` (previously in RST writer).
10277 Undo literal double curly quotes. Previously we left these.
10278 + Generalize type of `metaToJSON` so it can take a Text. Previously a
10279 String was needed as argument; now any ToJSON instance will do.
10280 + Added `gridTable` (previously in Markdown writer).
10281 + `gridTable`: Refactored to use widths in chars.
10282 + `gridTable`: remove unnecessary extra space in cells.
10283 + Fixed `addVariablesToJSON`. It was previously not allowing multiple
10284 values to become lists.
10285 + Pipe tables: impose minimum cell size (see #3526).
10288### Default template changes
10290 * HTML templates (including EPUB and HTML slide show templates):
10292 + Make default.html5 polyglot markup conformant (John Luke Bentley,
10293 #3473). Polyglot markup is HTML5 that is also valid XHTML. See
10294 <https://www.w3.org/TR/html-polyglot>. With this change, pandoc's
10295 html5 writer creates HTML that is both valid HTML5 and valid XHTML.
10296 + Regularized CSS in html/epub/html slide templates (#3485).
10297 All templates now include `code{white-space: pre-wrap}`
10298 and CSS for `q` if `--html-q-tags` is used. Previously some templates
10299 had `pre` and others `pre-wrap`; the `q` styles were only sometimes
10300 included.
10301 + CSS for `.smallcaps`, (Mauro Bieg, #1592)
10302 + `default.revealjs`: make `history` default to true.
10303 + `default.revealjs`: use lazy loading (#2283).
10304 + `default.revealjs`: add `mathjax` variable and some conditional code
10305 to use the MathJaX plugin.
10306 + `default.slidy` uses `https` instead of `http` (ickc, #3848).
10307 + `default.dzslides`: Load Google Font using HTTPS by default
10308 (Yoan Blanc).
10310 * DocBook5 template: Use `lang` and `subtitle` variables (Jens Getreu,
10311 #3855).
10313 * LaTeX/Beamer template:
10315 + Combine LaTeX/Beamer templates (Andrew Dunning, #3878).
10316 `default.beamer` has been removed; beamer now uses the
10317 `default.latex` template. Beamer-specific parts are conditional
10318 on the `beamer` variable set by the writer. Note that
10319 `pandoc -D beamer` will return this (combined) template.
10320 + Use `xcolor` for `colorlinks` option (Andrew Dunning, #3877).
10321 Beamer loads `xcolor` rather than `color`, and thus the
10322 `dvipsnames` option doesn't take effect. This also provides a wider
10323 range of colour selections with the `svgnames` option.
10324 + Use starred versions of `xcolor` names (Andrew Dunning).
10325 Prevents changes to documents defined using the `dvipsnames` list (e.g.
10326 `Blue` gives a different result with svgnames enabled).
10327 + Load `polyglossia` after header-includes (#3898). It needs to be
10328 loaded as late as possible.
10329 + Use `unicode-math` (Vaclav Haisman). Use `mathspec` with only
10330 XeLaTeX on request.
10331 + Don't load `fontspec` before `unicode-math` (over there).
10332 The `unicode-math` package loads `fontspec` so explicit loading of
10333 `fontspec` before `unicode-math` is not necessary.
10334 + Use `unicode-math` by default in default.latex template. mathspec will
10335 be used in xelatex if the `mathspec` variable is set; otherwise
10336 unicode-math will be used (Václav Haisman).
10337 + Use `dvipsnames` options when `colorlinks` specified (otherwise
10338 we get an error for `maroon`) (Thomas Hodgson).
10339 + Added beamer `titlegraphic` and `logo` variables (Thomas Hodgson).
10340 + Fix typo in fix for notes in tables (#2378, zeeMonkeez).
10341 + Fix `hyperref` options clash (Andrew Dunning, #3847) Avoids an options
10342 clash when loading a package (e.g. `tufte-latex`) that uses
10343 `hyperref` settings different from those in the template.
10344 + Add `natbiboptions` variable (#3768).
10345 + Fix links inside captions in LaTeX output with links-as-notes
10346 (Václav Haisman, #3651). Declare our redefined `\href` robust.
10347 + Load `parskip` before `hyperref` (Václav Haisman, #3654).
10348 + Allow setting Japanese fonts when using LuaLaTeX (Václav Haisman,
10349 #3873). by using the `luatexja-fontspec` and `luatexja-preset`
10350 packages. Use existing `CJKmainfont` and `CJKoptions` template
10351 variables. Add `luatexjafontspecoptions` for `luatexja-fontspec`
10352 and `luatexjapresetoptions` for `luatexja-preset`.
10353 + Added `aspectratio` variable to beamer template (Václav Haisman,
10354 #3723).
10355 + Modified template.latex to fix XeLaTex being used with tables
10356 (lwolfsonkin, #3661). Reordered `lang` variable handling to
10357 immediately before `bidi`.
10359 * ConTeXt template: Improved font handling: `simplefonts` is now
10360 obsolete in ConTeXt (Pablo Rodríguez).
10363### Documentation improvements
10365 * MANUAL.txt:
10367 + Add URL for Prince HTML > PDF engine (Ian, #3919).
10368 + Document that content above slide-level will be omitted in
10369 slide shows. See #3460, #2265.
10370 + Explain `--webtex` SVG url (Mauro Bieg, #3471)
10371 + Small clarification in YAML metadata section.
10372 + Document that html4 is technically XHTML 1.0 transitional.
10373 + Remove refs to highlighting-kate (#3672).
10374 + Document ibooks specific epub metadata.
10375 + Clarify that mathml is used for ODT math.
10376 + Mention limitations of Literate Haskell Support (#3410,
10377 Joachim Breitner).
10378 + Add documentation of limitations of grid tables (Stephen
10379 McDowell, #3864).
10380 + Clarify that meta-json contains transformed values (Jakob Voß,
10381 #3491) Make clear that template variable `meta-json` does not
10382 contain plain text values or JSON output format but field values
10383 transformed to the selected output format.
10385 * COPYRIGHT:
10387 + Clarify that templates are dual-licensed.
10388 + Clarify that pandoc-types is BSD3 licensed.
10389 + List new files not written by jgm (Albert Krewinkel).
10390 + Update dates in copyright notices (Albert Krewinkel). This follows
10391 the suggestions given by the FSF for GPL licensed software.
10392 <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
10394 * INSTALL.md:
10396 + Improved instructions for tests with patterns.
10397 + Put RPM-based distros on separate point (Mauro Bieg, #3449)
10399 * CONTRIBUTING.md:
10401 + Fixed typos (Wandmalfarbe, #3479).
10402 + Add "ask on pandoc-discuss" (Mauro Bieg).
10404 * Add lua filter documentation in `doc/lua-filters.md`. Note that the
10405 end of this document is autogenerated from `data/pandoc.lua`
10406 using `make doc/lua-filters.md`, which uses `tools/ldoc.ltp`
10407 (Albert Krewinkel).
10409 * Add `doc/filters.md`. This is the old scripting tutorial from
10410 the website.
10412 * Add `doc/using-the-pandoc-api.md` (#3289). This gives an introduction
10413 to using pandoc as a Haskell library.
10416### Build infrastructure improvements
10418 * Removed `data/templates` submodule. Templates are now a subtree
10419 in `data/templates`. This removes the need to do `git submodule
10420 update`.
10422 * Renamed `tests` -> `test`.
10424 * Remove `https` flag. Always build with HTTPS support.
10426 * Use `file-embed` instead of `hsb2hs` to embed data files when
10427 `embed_data_files` flag is set. `file-embed` gives us better dependency
10428 tracking: if a data file changes, ghc/stack/cabal know to recompile
10429 the Data module. This also removes `hsb2hs` as a build dependency.
10431 * Add `custom-setup` stanza to pandoc, lowercase field names.
10433 * Add `static` Cabal flag.
10435 * Name change OSX -> MacOS. Add a -MacOS suffix to mac package rather
10436 than -OSX. Changed local names from osx to macos.
10438 * make_macos_package.sh - Use strip to reduce executable size.
10440 * Revised binary linux package. Now a completely static executable
10441 is created, using Docker and alpine. We create both a deb and a
10442 tarball. The old `deb` directory has been replaced with a `linux`
10443 directory. Running `make` in the `linux` directory should
10444 perform the build, putting the binary packages in `artifacts/`.
10446 * `linux/control.in`: add `Replaces:`, so existing pandoc-citeproc and
10447 pandoc-data packages will be uninstalled; this package provides
10448 both (#3822). Add latex packages as 'suggested', update
10449 description.
10451 * Remove cpphs build requirement -- it is no longer needed.
10453 * Replaced `{deb,macos,windows}/stack.yaml` with `stack.pkg.yaml`.
10455 * Name change OSX -> macOS (ickc, #3869).
10457 * Fix casing of Linux, UNIX, and Windows (ickc).
10459 * `.travis.yml`: create a source dist and do cabal build and test there.
10460 That way we catch errors due to files missing from the data
10461 section of pandoc.cabal.
10463 * Makefile:
10465 + Split `make haddock` from `make full`.
10466 + Add BRANCH variable for winpkg.
10467 + Add `lint` target.
10468 + Improve `make full`. Disable optimizations.
10469 Build everything, inc. trypandoc and benchmarks. Use parallel build.
10470 + Allow `make test` to take `TESTARGS`.
10472 * Added new command tests (`Tests.Command`), using small text files
10473 in `test/command/`. Any files added in this directory will be treated
10474 as shell tests (see smart.md for an example). This makes it very easy
10475 to add regression tests etc.
10477 * Test fixes so we can find data files. In old tests & command tests,
10478 we now set the environment variable `pandoc_datadir`. In lua tests,
10479 we set the datadir explicitly.
10481 * Refactored `compareOutput` in docx writer test.
10483 * Consolidated some common functions in `Tests.Helper`.
10485 * Small change to unbalanced bracket test to speed up test suite.
10487 * Speed up Native writer quickcheck tests.
10489 * Use tasty for tests rather than test-framework.
10491 * Add simple Emacs mode to help with Pandoc templates editing.
10492 (Václav Haisman, #3889). `tools/pandoc-template-mode.el`
10495## pandoc 1.19.2.4 (2017-09-10)
10497 * Add dependencies on texmath and skylighting to the executable.
10498 This is needed for dependency version numbers to be available,
10499 with Cabal > 2.
10501## pandoc 1.19.2.3 (2017-09-09)
10503 * Add CPP to Setup.hs so it works with Cabal >= 2 and < 2.
10505## pandoc 1.19.2.2 (2017-09-08)
10507 * Fix build with GHC 8.2.1 (#3876, Peter Simons). Setup.hs does not
10508 compile with Cabal 2.x, so we require an earlier version via
10509 setup-depends. The following packages need newer versions with
10510 GHC 8.2.1 and had their constraints relaxed accordingly:
10511 executable-path, process, syb, and time.
10513## pandoc 1.19.2.1 (2017-01-31)
10515 * Require skylighting >= 0.1.1.4.
10516 * Adjust test output for skylighting version.
10517 * Relax upper bounds on blaze-html and blaze-markup.
10519## pandoc 1.19.2 (2017-01-29)
10521 * Use skylighting library instead of highlighting-kate for syntax
10522 highlighting. Skylighting is faster and more accurate (#3363).
10523 Later we'll be able to add features like warning messages, dynamic
10524 loading of xml syntax definitions, and dynamic loading of themes.
10526 * Added a new highlight style, `breezeDark`.
10528 * Text.Pandoc.Highlighting: Update list of `listings` languages (#3374).
10529 This allows more languages to be used when using the `--listings`
10530 option.
10532 * OpenDocument writer:
10534 + Small refactoring. Removed separate 'parent' parameter in paraStyle.
10535 + Don't profilerate text styles unnecessarily (#3371).
10536 This change makes the writer create only as many temporary
10537 text styles as are absolutely necessary. It also consolidates
10538 adjacent nodes with the same style.
10540 * Org reader (Albert Krewinkel):
10542 + Allow short hand for single-line raw blocks (Albert Krewinkel,
10543 #3366). Single-line raw blocks can be given via `#+FORMAT: raw line`,
10544 where `FORMAT` must be one of `latex`, `beamer`, `html`, or `texinfo`.
10545 + Accept org-ref citations followed by commas (Albert Krewinkel).
10546 Bugfix for an issue which, whenever the citation was immediately
10547 followed by a comma, prevented correct parsing of org-ref citations.
10548 + Ensure emphasis markup can be nested. Nested emphasis markup (e.g.
10549 `/*strong and emphasized*/`) was interpreted incorrectly in that the
10550 inner markup was not recognized.
10551 + Remove pipe char irking the haddock coverage tool (Albert Krewinkel).
10553 * Docx reader: Empty header should be list of lists (Jesse Rosenthal).
10554 In the past, the docx reader wrote an empty header as an empty list. It
10555 should have the same width as a row (and be filled with empty cells).
10557 * MediaWiki reader:
10559 + Improved handling of display math (#3362). Sometimes display math is
10560 indented with more than one colon. Previously we handled these cases
10561 badly, generating definition lists and missing the math.
10562 + Fix quotation mark parsing (#3336, tgkokk). Change MediaWiki reader's
10563 behavior when the smart option is parsed to match other readers'
10564 behavior.
10566 * Markdown reader:
10568 + Fixed `-f markdown_github-hard_line_breaks+escaped_line_breaks`
10569 (#3341). Previously this did not properly enable escaped line breaks.
10570 + Disallow space between inline code and attributes (#3326, #3323,
10571 Mauro Bieg).
10573 * DocBook5 writer: make id attribute xml:id, fixes #3329 (#3330, Mauro Bieg).
10575 * Added some test cases for ODT reader (#3306, #3308, Hubert Plociniczak).
10577 * LaTeX writer: allow tables with empty cells to count as "plain."
10578 This addresses a problem of too-wide tables when empty cells
10579 are used. Thanks to Joost Kremers for reporting the issue.
10581 * Org writer: prefix footnote numbers with `fn:` (Albert Krewinkel).
10582 Unprefixed numbers where used by older org-mode versions, but are no
10583 longer supported.
10585 * HTML writer: don't process pars with empty RawInline, (#1040, #3327,
10586 Mauro Bieg).
10588 * Markdown writer: Fix display math with `--webtex` (#3298).
10590 * Fix sample.lua so it properly handles raw blocks/inlines (#3358,
10591 bumper314).
10593 * Templates:
10595 + default.latex: Moved geometry after hyperref (Václav Haisman).
10596 Otherwise PDF sizes can be wrong in some circumstances.
10597 + Copied a few changes from default.latex to default.beamer
10598 (Wandmalfarbe).
10599 + default.latex, default.beamer: Changed position of `\VerbatimNotes`
10600 and `fancyvrb`. This fixes hyperlinks on footnotes in documents
10601 that contain verbatim in notes (#3361). (Note: the beamer template
10602 was updated to match the LaTeX template, but at this point verbatim
10603 in notes seems not to work in beamer.)
10604 + default.latex: Allow passing `microtypeoptions` to microtype
10605 (Václav Haisman).
10606 + default.latex: Add hyphen option to url package.
10607 + default.docbook5: Fix namespace declarations (Mauro Bieg).
10609 * Moved `make_osx_package.sh` to `osx/` directory.
10611 * Travis continuous integration:
10613 + Fix false positives with dist build.
10614 + Speed improvements (Kolen Cheung, #3304, #3357).
10616 * MANUAL.txt:
10618 + Clarify that blank space is needed around footnotes (#3352).
10619 + Fixed typo (#3351, Alexey Rogechev).
10620 + Note that `--wrap=auto` does not work in HTML output.
10621 + Default `--columns` width is 72, not 80.
10622 + Fixed broken links (#3316, Kolen Cheung).
10623 + Document usage of `@*` in nocite section (#3333, John Muccigrosso).
10625 * INSTALL.md:
10627 + Indent code so it's properly formatted (#3335, Bheesham Persaud).
10628 + Added instructions for extracting binary from OSX, Windows packages.
10630 * CONTRIBUTING.md: Describe labels currently used in issue tracker
10631 (Albert Krewinkel). The labels have changed over time, the list of
10632 labels is updated to reflect the current set of labels used in the
10633 issue tracker.
10635 * Rearrange and extend badges in README (Albert Krewinkel, #3354)
10637 * Bumped version bounds for dependencies.
10640## pandoc 1.19.1 (2016-12-10)
10642 * Set `PANDOC_VERSION` environment variable for filters (#2640).
10643 This allows filters to check the pandoc version that produced
10644 the JSON they are receiving.
10646 * Docx reader: Ensure one-row tables don't have header (#3285,
10647 Jesse Rosenthal). Tables in MS Word are set by default to have
10648 special first-row formatting, which pandoc uses to determine whether
10649 or not they have a header. This means that one-row tables will, by
10650 default, have only a header -- which we imagine is not what people
10651 want. This change ensures that a one-row table is not understood to
10652 be a header only. Note that this means that it is impossible to
10653 produce a header-only table from docx, even though it is legal
10654 pandoc. But we believe that in nearly all cases, it will be an
10655 accidental (and unwelcome) result
10657 * HTML reader:
10659 + Fixed some bad regressions in HTML table parser (#3280).
10660 This regression leads to the introduction of empty rows
10661 in some circumstances.
10662 + Understand `style=width:` as well as `width` in `col` (#3286).
10664 * RST reader:
10666 + Print warnings when keys, substitition, notes not found.
10667 Previously the parsers failed and we got raw text. Now we get a
10668 link with an empty URL, or empty inlines in the case of a note or
10669 substitution.
10671 + Fix hyperlink aliases (#3283).
10673 * Man writer: Ensure that periods are escaped at beginning of line
10674 (#3270).
10676 * LaTeX writer: Fix unnumbered headers when used with `--top-level`
10677 (#3272, Albert Krewinkel). Fix interaction of top-level
10678 divisions `part` or `chapter` with unnumbered headers when
10679 emitting LaTeX. Headers are ensured to be written using
10680 stared commands (like `\subsection*{}`).
10682 * LaTeX template: use comma not semicolon to separate keywords for
10683 `pdfkeywords`. Thanks to Wandmalfarbe.
10685 * Markdown writer: Fixed incorrect word wrapping (#3277).
10686 Previously pandoc would sometimes wrap lines too early due to
10687 this bug.
10689 * Text.Pandoc.Pretty: Added `afterBreak` [API change]. This makes it
10690 possible to insert escape codes for content that needs escaping at the
10691 beginning of a line.
10693 * Removed old MathMLInHTML.js from 2004, which should no longer
10694 be needed for MathML with modern browsers.
10696 * Fixed tests with dynamic linking (#2709).
10698 * Makefile: Use stack instead of cabal for targets. This is just
10699 a convenience for developers.
10701 * Fixed bash completion of filenames with space (#2749).
10703 * MANUAL: improved documentation on how to create a custom
10704 `reference.docx`.
10706 * Fix minor spelling typos in the manual (#3273, Anthony Geoghegan)
10708## pandoc 1.19 (2016-12-01)
10710 * Changed resolution of filter paths.
10712 + We now first treat the argument of `--filter` as a full (absolute
10713 or relative) path, looking for a program there. If it's found, we
10714 run it.
10715 + If not, and if it is a simple program name or a relative path, we
10716 try resolving it relative to `$DATADIR/filters`.
10717 + If this fails, then we treat it as a program name and look in the
10718 user's PATH.
10719 + Removed a hardcoded '/' that may have caused problems with
10720 Windows paths.
10722 Previously if you did `--filter foo` and you had `foo` in your path and
10723 also an executable `foo` in your working directory, the one in the path
10724 would be used. Now the one in the working directory is used.
10726 In addition, when you do `--filter foo/bar.hs`, pandoc will now find a
10727 filter `$DATADIR/filters/foo/bar.hs` -- assuming there isn't a
10728 `foo/bar.hs` relative to the working directory.
10730 * Allow `file://` URIs as arguments (#3196). Also improved default reader
10731 format detection. Previously with a URI ending in .md or .markdown,
10732 pandoc would assume HTML input. Now it treats these as markdown.
10734 * Allow to overwrite top-level division type heuristics (#3258,
10735 Albert Krewinkel). Pandoc uses heuristics to determine the most
10736 reasonable top-level division type when emitting LaTeX or
10737 Docbook markup. It is now possible to overwrite this implicitly set
10738 top-level division via the `top-level-division` command line parameter.
10740 * Text.Pandoc.Options \[API changes\]:
10742 + Removed `writerStandalone` field in `WriterOptions`, made
10743 `writerTemplate` a `Maybe` value. Previously setting
10744 `writerStandalone = True` did nothing unless a template was provided
10745 in writerTemplate. Now a fragment will be generated if
10746 `writerTemplate` is `Nothing`; otherwise, the specified template
10747 will be used and standalone output generated.
10748 + `Division` has been renamed `TopLevelDivision` (#3197). The
10749 `Section`, `Chapter`, and `Part` constructors were renamed to
10750 `TopLevelSection`, `TopLevelChapter`, and
10751 `TopLevelPart`, respectively. An additional `TopLevelDefault`
10752 constructor was added, which is now also the new default value of
10753 the `writerTopLevelDivision` field in `WriterOptions`.
10755 * Improved error if they give wrong arg to `--top-level-division`.
10757 * Use new module from texmath to lookup MS font codepoints in Docx reader.
10758 Removed unexported module Text.Pandoc.Readers.Docx.Fonts. Its code now
10759 lives in texmath (0.9).
10761 * DocBook reader: Fixed xref lookup (#3243). It previously only worked
10762 when the qnames lacked the docbook namespace URI.
10764 * HTML reader:
10766 + Improved table parsing (#3027). We now check explicitly for non-1
10767 rowspan or colspan attributes, and fail when we encounter them.
10768 Previously we checked that each row had the same number of cells,
10769 but that could be true even with rowspans/colspans. And there are
10770 cases where it isn't true in tables that we can handle fine -- e.g.
10771 when a tr element is empty. So now we just pad rows with empty cells
10772 when needed.
10773 + Treat `<math>` as MathML by default unless something else is
10774 explicitly specified in xmlns. Provided it parses as MathML,
10775 of course. Also fixed default which should be to inline math if no
10776 display attribute is used.
10777 + Only treat "a" element as link if it has href (#3226). Otherwise
10778 treat as span.
10780 * Docx reader (Jesse Rosenthal):
10782 + Add a placeholder value for CHART. We wrap `[CHART]` in a
10783 `<span class="chart">`. Note that it maps to inlines because, in
10784 docx, anything in a drawing tag can be part of a larger paragraph.
10785 + Be more specific in parsing images We not only want `w:drawing`,
10786 because that could also include charts. Now we specify
10787 `w:drawing/pic:pic`. This shouldn't change behavior at all, but it's
10788 a first step toward allowing other sorts of drawing data as well.
10789 + Abstract out function to avoid code repetition.
10790 + Update tests for img title and alt (#3204).
10791 + Handle Alt text and titles in images. We use the "description" field
10792 as alt text and the "title" field as title. These can be accessed
10793 through the "Format Picture" dialog in Word.
10794 + Docx reader utils: handle empty namespace in `elemName`. Previously,
10795 if given an empty namespace `(elemName ns "" "foo")` `elemName`
10796 would output a QName with a `Just ""` namespace. This is never what
10797 we want. Now we output a `Nothing`. If someone *does* want a
10798 `Just ""` in the namespace, they can enter the QName
10799 value explicitly.
10801 * ODT reader/writer:
10803 + Inline code when text has a special style (Hubert Plociniczak). When
10804 a piece of text has a text `Source_Text` then we assume that this is
10805 a piece of the document that represents a code that needs to
10806 be inlined. Adapted the writer to also reflect that change.
10807 Previously it was just writing a 'preformatted' text using a
10808 non-distinguishable font style. Code blocks are still not recognized
10809 by the ODT reader. That's a separate issue.
10810 + Infer table's caption from the paragraph (#3224,
10811 Hubert Plociniczak). ODT's reader always put empty captions for the
10812 parsed tables. This commit
10814 1. checks paragraphs that follow the table definition
10815 2. treats specially a paragraph with a style named 'Table'
10816 3. does some postprocessing of the paragraphs that combines tables
10817 followed immediately by captions
10819 The ODT writer used the `TableCaption` style for the caption
10820 paragraph. This commit follows the OpenOffice approach which allows
10821 for appending captions to table but uses a built-in style named
10822 `Table` instead of `TableCaption`. Users of a custom `reference.odt`
10823 should change the style's name from `TableCaption` to `Table`.
10825 * ODT reader: Infer tables' header props from rows (#3199,
10826 Hubert Plociniczak). ODT reader simply provided an empty header list
10827 which meant that the contents of the whole table, even if not empty, was
10828 simply ignored. While we still do not infer headers we at least have to
10829 provide default properties of columns.
10831 * Markdown reader:
10833 + Allow reference link labels starting with `@...` if `citations`
10834 extension disabled (#3209). Example: in
10836 \[link text\]\[@a\]
10838 `link text` isn't hyperlinked because `[@a]` is parsed as
10839 a citation. Previously this happened whether or not the `citations`
10840 extension was enabled. Now it happens only if the `citations`
10841 extension is enabled.
10842 + Allow alignments to be specified in Markdown grid tables. For
10843 example,
10845 +-------+---------------+--------------------+
10846 | Right | Left | Centered |
10847 +=========:+:=================+:=============:+
10848 | Bananas | $1.34 | built-in wrapper |
10849 +-------+---------------+--------------------+
10851 + Allow Small Caps elements to be created using bracketed spans (as
10852 they already can be using HTML-syntax spans) (#3191, Kolen Cheung).
10854 * LaTeX reader:
10856 + Don't treat `\vspace` and `\hspace` as block commands (#3256).
10857 Fixed an error which came up, for example, with `\vspace` inside
10858 a caption. (Captions expect inlines.)
10859 + Improved table handling. We can now parse all of the tables emitted
10860 by pandoc in our tests. The only thing we don't get yet are
10861 alignments and column widths in more complex tables. See #2669.
10862 + Limited support for minipage.
10863 + Allow for `[]`s inside LaTeX optional args. Fixes cases like:
10864 + Handle BVerbatim from fancyvrb (#3203).
10865 + Handle hungarumlaut (#3201).
10866 + Allow beamer-style `<...>` options in raw LaTeX (also in Markdown)
10867 (#3184). This allows use of things like `\only<2,3>{my content}` in
10868 Markdown that is going to be converted to beamer.
10870 * Use pre-wrap for code in dzslides template (Nicolas Porcel). Otherwise
10871 overly long code will appear on every slide.
10873 * Org reader (Albert Krewinkel):
10875 + Respect column width settings (#3246). Table column properties can
10876 optionally specify a column's width with which it is displayed in
10877 the buffer. Some exporters, notably the ODT exporter in org-mode
10878 v9.0, use these values to calculate relative column widths. The org
10879 reader now implements the same behavior. Note that the org-mode
10880 LaTeX and HTML exporters in Emacs don't support this feature yet,
10881 which should be kept in mind by users who use the column
10882 widths parameters.
10883 + Allow HTML attribs on non-figure images (#3222). Images which are
10884 the only element in a paragraph can still be given HTML attributes,
10885 even if the image does not have a caption and is hence not a figure.
10886 The following will add set the `width` attribute of the image to
10887 `50%`:
10889 +ATTR\_HTML: :width 50%
10890 =======================
10892 \[\[file:image.jpg\]\]
10894 + Support `ATTR_HTML` for special blocks (#3182). Special
10895 blocks (i.e. blocks with unrecognized names) can be prefixed with an
10896 `ATTR_HTML` block attribute. The attributes defined in that
10897 meta-directive are added to the `Div` which is used to represent the
10898 special block.
10899 + Support the `todo` export option. The `todo` export option allows to
10900 toggle the inclusion of TODO keywords in the output. Setting this to
10901 `nil` causes TODO keywords to be dropped from headlines. The default
10902 is to include the keywords.
10903 + Add support for todo-markers. Headlines can have optional
10904 todo-markers which can be controlled via the `#+TODO`, `#+SEQ_TODO`,
10905 or `#+TYP_TODO` meta directive. Multiple such directives can be
10906 given, each adding a new set of recognized todo-markers. If no
10907 custom todo-markers are defined, the default `TODO` and `DONE`
10908 markers are used. Todo-markers are conceptually separate from
10909 headline text and are hence excluded when autogenerating
10910 headline IDs. The markers are rendered as spans and labelled with
10911 two classes: One class is the markers name, the other signals the
10912 todo-state of the marker (either `todo` or `done`).
10914 * LaTeX writer:
10916 + Use `\autocites*` when "suppress-author" citation used.
10917 + Ensure that simple tables have simple cells (#2666). If cells
10918 contain more than a single Plain or Para, then we need to set
10919 nonzero widths and put contents into minipages.
10920 + Remove invalid inlines in sections (#3218, Hubert Plociniczak).
10922 * Markdown writer:
10924 + Fix calculation of column widths for aligned multiline tables
10925 (#1911, Björn Peemöller). This also fixes excessive CPU and memory
10926 usage for tables when `--columns` is set in such a way that cells
10927 must be very tiny. Now cells are guaranteed to be big enough so that
10928 single words don't need to line break, even if this pushes the line
10929 length above the column width.
10930 + Use bracketed form for native spans when `bracketed_spans`
10931 enabled (#3229).
10932 + Fixed inconsistent spacing issue (#3232). Previously a tight bullet
10933 sublist got rendered with a blank line after, while a tight ordered
10934 sublist did not. Now we don't get the blank line in either case.
10935 + Fix escaping of spaces in super/subscript (#3225). Previously two
10936 backslashes were inserted, which gave a literal backslash.
10937 + Adjust widths in Markdown grid tables so that they match
10938 on round-trip.
10940 * Docx writer:
10942 + Give full detail when there are errors converting tex math.
10943 + Handle title text in images (Jesse Rosenthal). We already handled
10944 alt text. This just puts the image "title" into the docx
10945 "title" attr.
10946 + Fixed XML markup for empty cells (#3238). Previously the Compact
10947 style wasn't being applied properly to empty cells.
10949 * HTML writer:
10951 + Updated `renderHtml` import from blaze-html.
10953 * Text.Pandoc.Pretty:
10955 + Fixed some bugs that caused blank lines in tables (#3251). The bugs
10956 caused spurious blank lines in grid tables when we had things like
10957 `blankline $$ blankline`.
10958 + Add exported function `minOffet` \[API change\] (Björn Peemöller).
10959 + Added error message for illegal call to `block` (Björn Peemöller).
10961 * Text.Pandoc.Shared:
10963 + Put `warn` in MonadIO.
10964 + `fetchItem`: Better handling of protocol-relative URL (#2635). If
10965 URL starts with `//` and there is no "base URL" (as there would be
10966 if a URL were used on the command line), then default to http:.
10968 * Export Text.Pandoc.getDefaultExtensions \[API change\] (#3178).
10970 * In --version, trap error in `getAppUserDataDirectory` (#3241). This
10971 fixes a crash with `pandoc --version` on unusual systems with no real
10972 user (e.g. SQL Server 2016).
10974 * Added weigh-pandoc for memory usage diagnostics (#3169).
10976 * Use correct mime types for woff and woff2 (#3228).
10978 * Remove make\_travis\_yml.hs (#3235, Kolen Cheung).
10980 * changelog: Moved an item that was misplaced in the 1.17.2 section to the
10981 1.18 section where it belongs.
10983 * CONTRIBUTING.md: minor change in wording and punctuation (#3252,
10984 Kolen Cheung).
10986 * Further revisions to manual for `--version` changes (#3244).
10990## pandoc 1.18 (2016-10-26)
10992 * Added `--list-input-formats`, `--list-output-formats`,
10993 `--list-extensions`, `--list-highlight-languages`, and
10994 `--list-highlight-styles` (#3173). Removed list of highlighting
10995 languages from `--version` output. Removed list of input and output
10996 formats from default `--help` output.
10998 * Added `--reference-location=block|section|document` option
10999 (Jesse Rosenthal). This determines whether Markdown link references
11000 and footnotes are placed at the end of the document, the end of the
11001 section, or the end of the top-level block.
11003 * Added `--top-level-division=section|chapter|part` (Albert Krewinkel).
11004 This determines what a level-1 header corresponds to in LaTeX,
11005 ConTeXt, DocBook, and TEI output. The default is `section`.
11006 The `--chapters` option has been deprecated in favor of
11007 `--top-level-division=chapter`.
11009 * Added `LineBlock` constructor for `Block` (Albert Krewinkel). This
11010 is now used in parsing RST and Markdown line blocks, DocBook
11011 `linegroup`/`line` combinations, and Org-mode `VERSE` blocks.
11012 Previously `Para` blocks with hard linebreaks were used. `LineBlock`s
11013 are handled specially in the following output formats: AsciiDoc
11014 (as `[verse]` blocks), ConTeXt (`\startlines`/`\endlines`),
11015 HTML (`div` with a style), Markdown (line blocks if `line_blocks`
11016 is enabled), Org-mode (`VERSE` blocks), RST (line blocks). In
11017 other output formats, a paragraph with hard linebreaks is emitted.
11019 * Allow binary formats to be written to stdout (but not to tty) (#2677).
11020 Only works on posix, since we use the unix library to check whether
11021 output is to tty. On Windows, pandoc works as before and always requires
11022 an output file parameter for binary formats.
11024 * Changed JSON output format (Jesse Rosenthal). Previously we used
11025 generically generated JSON, but this was subject to change depending
11026 on the version of aeson pandoc was compiled with. To ensure stability,
11027 we switched to using manually written ToJSON and FromJSON
11028 instances, and encoding the API version. **Note:** pandoc filter
11029 libraries will need to be revised to handle the format change.
11030 Here is a summary of the essential changes:
11032 + The toplevel JSON format is now `{"pandoc-api-version" :
11033 [MAJ, MIN, REV], "meta" : META, "blocks": BLOCKS}`
11034 instead of `[{"unMeta": META}, [BLOCKS]]`.
11035 Decoding fails if the major and minor version numbers don't
11036 match.
11037 + Leaf nodes no longer have an empty array for their "c" value.
11038 Thus, for example, a `Space` is encoded as `{"t":"Space"}`
11039 rather than `{"t":"Space","c":[]}` as before.
11041 * Removed `tests/Tests/Arbitrary.hs` and added a `Text.Pandoc.Arbitrary`
11042 module to pandoc-types (Jesse Rosenthal). This makes it easier
11043 to use QuickCheck with pandoc types outside of pandoc itself.
11045 * Add `bracketed_spans` Markdown extension, enabled by default
11046 in pandoc `markdown`. This allows you to create a native span
11047 using this syntax: `[Here is my span]{#id .class key="val"}`.
11049 * Added `angle_brackets_escapable` Markdown extension (#2846).
11050 This is needed because github flavored Markdown has a slightly
11051 different set of escapable symbols than original Markdown;
11052 it includes angle brackets.
11054 * Export `Text.Pandoc.Error` in `Text.Pandoc` [API change].
11056 * Print highlighting-kate version in `--version`.
11058 * `Text.Pandoc.Options`:
11060 + `Extension` has new constructors `Ext_brackted_spans` and
11061 `Ext_angle_brackets_escapable` [API change].
11062 + Added `ReferenceLocation` type [API change] (Jesse Rosenthal).
11063 + Added `writerReferenceLocation` field to `WriterOptions` (Jesse
11064 Rosenthal).
11066 * `--filter`: we now check `$DATADIR/filters` for filters before
11067 looking in the path (#3127, Jesse Rosenthal, thanks to Jakob
11068 Voß for the idea). Filters placed in this directory need not
11069 be executable; if the extension is `.hs`, `.php`, `.pl`, `.js`,
11070 or `.rb`, pandoc will run the right interpreter.
11072 * For `--webtex`, replace deprecated Google Chart API by CodeCogs as
11073 default (Kolen Cheung).
11075 * Removed `raw_tex` extension from `markdown_mmd` defaults (Kolen Cheung).
11077 * Execute .js filters with node (Jakob Voß).
11079 * Textile reader:
11081 + Support `bc..` extended code blocks (#3037). Also, remove trailing
11082 newline in code blocks (consistently with Markdown reader).
11083 + Improve table parsing. We now handle cell and row attributes, mostly
11084 by skipping them. However, alignments are now handled properly.
11085 Since in pandoc alignment is per-column, not per-cell, we
11086 try to devine column alignments from cell alignments.
11087 Table captions are also now parsed, and textile indicators
11088 for thead and tfoot no longer cause parse failure. (However,
11089 a row designated as tfoot will just be a regular row in pandoc.)
11090 + Improve definition list parsing. We now allow multiple terms
11091 (which we concatenate with linebreaks). An exponential parsing
11092 bug (#3020) is also fixed.
11093 + Disallow empty URL in explicit link (#3036).
11095 * RST reader:
11097 + Use Div instead of BlockQuote for admonitions (#3031).
11098 The Div has class `admonition` and (if relevant) one of the
11099 following: `attention`, `caution`, `danger`, `error`, `hint`,
11100 `important`, `note`, `tip`, `warning`. **Note:** This will change
11101 the rendering of some RST documents! The word ("Warning", "Attention",
11102 etc.) is no longer added; that must be done with CSS or a filter.
11103 + A Div is now used for `sidebar` as well.
11104 + Skip whitespace before note (Jesse Rosenthal, #3163). RST requires a
11105 space before a footnote marker. We discard those spaces so that footnotes
11106 will be adjacent to the text that comes before it. This is in line with
11107 what rst2latex does.
11108 + Allow empty lines when parsing line blocks (Albert Krewinkel).
11110 * Markdown reader:
11112 + Allow empty lines when parsing line blocks (Albert Krewinkel).
11113 + Allow attributes on autolinks (#3183, Daniele D'Orazio).
11115 * LaTeX reader:
11117 + More robust parsing of unknown environments (#3026).
11118 We no longer fail on things like `^` inside options for tikz.
11119 + Be more forgiving of non-standard characters, e.g. `^` outside of math.
11120 Some custom environments give these a meaning, so we should try not to
11121 fall over when we encounter them.
11122 + Drop duplicate `*` in bibtexKeyChars (Albert Krewinkel)
11124 * MediaWiki reader:
11126 + Fix for unquoted attribute values in mediawiki tables (#3053).
11127 Previously an unquoted attribute value in a table row
11128 could cause parsing problems.
11129 + Improved treatment of verbatim constructions (#3055).
11130 Previously these yielded strings of alternating Code and Space
11131 elements; we now incorporate the spaces into the Code. Emphasis
11132 etc. is still possible inside these.
11133 + Properly interpret XML tags in pre environments (#3042). They are meant
11134 to be interpreted as literal text.
11136 * EPUB reader: don't add root path to data: URIs (#3150).
11137 Thanks to @lep for the bug report and patch.
11139 * Org reader (Albert Krewinkel):
11141 + Preserve indentation of verse lines (#3064). Leading spaces in verse
11142 lines are converted to non-breaking spaces, so indentation is preserved.
11143 + Ensure image sources are proper links. Image sources as those in plain
11144 images, image links, or figures, must be proper URIs or relative file
11145 paths to be recognized as images. This restriction is now enforced
11146 for all image sources. This also fixes the reader's usage of uncleaned
11147 image sources, leading to `file:` prefixes not being deleted from
11148 figure images. Thanks to @bsag for noticing this bug.
11149 + Trim verse lines properly (Albert Krewinkel).
11150 + Extract meta parsing code to module. Parsing of meta-data is well
11151 separable from other block parsing tasks. Moving into new module to
11152 get small files and clearly arranged code.
11153 + Read markup only for special meta keys. Most meta-keys should be read
11154 as normal string values, only a few are interpreted as marked-up text.
11155 + Allow multiple, comma-separated authors. Multiple authors can be
11156 specified in the `#+AUTHOR` meta line if they are given as a
11157 comma-separated list.
11158 + Give precedence to later meta lines. The last meta-line of any given
11159 type is the significant line. Previously the value of the first line
11160 was kept, even if more lines of the same type were encountered.
11161 + Read LaTeX_header as header-includes. LaTeX-specific header commands
11162 can be defined in `#+LaTeX_header` lines. They are parsed as
11163 format-specific inlines to ensure that they will only show up in LaTeX
11164 output.
11165 + Set documentclass meta from LaTeX_class.
11166 + Set classoption meta from LaTeX_class_options.
11167 + Read HTML_head as header-includes. HTML-specific head content can be
11168 defined in `#+HTML_head` lines. They are parsed as format-specific
11169 inlines to ensure that they will only show up in HTML output.
11170 + Respect `author` export option. The `author` option controls whether
11171 the author should be included in the final markup. Setting
11172 `#+OPTIONS: author:nil` will drop the author from the final meta-data
11173 output.
11174 + Respect `email` export option. The `email` option controls whether the
11175 email meta-field should be included in the final markup. Setting
11176 `#+OPTIONS: email:nil` will drop the email field from the final
11177 meta-data output.
11178 + Respect `creator` export option. The `creator` option controls whether
11179 the creator meta-field should be included in the final markup. Setting
11180 `#+OPTIONS: creator:nil` will drop the creator field from the final
11181 meta-data output. Org-mode recognizes the special value `comment` for
11182 this field, causing the creator to be included in a comment. This is
11183 difficult to translate to Pandoc internals and is hence interpreted the
11184 same as other truish values (i.e. the meta field is kept if it's
11185 present).
11186 + Respect unnumbered header property (#3095). Sections the `unnumbered`
11187 property should, as the name implies, be excluded from the automatic
11188 numbering of section provided by some output formats. The Pandoc
11189 convention for this is to add an "unnumbered" class to the header. The
11190 reader treats properties as key-value pairs per default, so a special
11191 case is added to translate the above property to a class instead.
11192 + Allow figure with empty caption (Albert Krewinkel, #3161).
11193 A `#+CAPTION` attribute before an image is enough to turn an image into
11194 a figure. This wasn't the case because the `parseFromString` function,
11195 which processes the caption value, would fail on empty values. Adding
11196 a newline character to the caption value fixes this.
11198 * Docx reader:
11200 + Use XML convenience functions (Jesse Rosenthal).
11201 The functions `isElem` and `elemName` (defined in Docx/Util.hs) make
11202 the code a lot cleaner than the original XML.Light functions, but they
11203 had been used inconsistently. This puts them in wherever applicable.
11204 + Handle anchor spans with content in headers. Previously, we would only
11205 be able to figure out internal links to a header in a docx if the
11206 anchor span was empty. We change that to read the inlines out of the
11207 first anchor span in a header.
11208 + Let headers use existing id. Previously we always generated an id for
11209 headers (since they wouldn't bring one from Docx). Now we let it use an
11210 existing one if possible. This should allow us to recurs through anchor
11211 spans.
11212 + Use all anchor spans for header ids. Previously we only used the first
11213 anchor span to affect header ids. This allows us to use all the anchor
11214 spans in a header, whether they're nested or not (#3088).
11215 + Test for nested anchor spans in header. This ensures that anchor spans
11216 in header with content (or with other anchor spans inside) will resolve
11217 to links to a header id properly.
11219 * ODT reader (Hubert Plociniczak)
11221 + Include list's starting value. Previously the starting value of
11222 the lists' items has been hardcoded to 1. In reality ODT's list
11223 style definition can provide a new starting value in one of its
11224 attributes.
11225 + Infer caption from the text following the image.
11226 Frame can contain other frames with the text boxes.
11227 + Add `fig:` to title for Image with a caption (as expected
11228 by pandoc's writers).
11229 + Basic support for images in ODT documents.
11230 + Don't duplicate text for anchors (#3143). When creating an anchor
11231 element we were adding its representation as well as the original
11232 content, leading to text duplication.
11234 * DocBook writer:
11236 + Include an anchor element when a div or span has an id (#3102).
11237 Note that DocBook does not have a class attribute, but at least this
11238 provides an anchor for internal links.
11240 * LaTeX writer:
11242 + Don't use * for unnumbered paragraph, subparagraph. The starred
11243 variants don't exist. This helps with part of #3058...it gets rid of
11244 the spurious `*`s. But we still have numbers on the 4th and 5th level
11245 headers.
11246 + Properly escape backticks in verbatim (#3121, Jesse Rosenthal).
11247 Otherwise they can cause unintended ligatures like `` ?` ``.
11248 + Handle NARRAOW NO-BREAK SPACE into LaTeX (Vaclav Zeman) as `\,`.
11249 + Don't include `[htbp]` placement for figures (#3103, Václav Haisman).
11250 This allows figure placement defaults to be changed by the user
11251 in the template.
11253 * TEI writer: remove heuristic to detect book template (Albert Krewinkel).
11254 TEI doesn't have `<book>` elements but only generic `<divN>` division
11255 elements. Checking the template for a trailing `</book>` is nonsensical.
11257 * MediaWiki writer: transform filename with underscores in images (#3052).
11258 `foo bar.jpg` becomes `foo_bar.jpg`. This was already done
11259 for internal links, but it also needs to happen for images.
11261 * ICML writer: replace partial function (!!) in table handling (#3175,
11262 Mauro Bieg).
11264 * Man writer: allow section numbers that are not a single digit (#3089).
11266 * AsciiDoc writer: avoid unnecessary use of "unconstrained" emphasis
11267 (#3068). In AsciiDoc, you must use a special form of emphasis
11268 (double `__`) for intraword emphasis. Pandoc was previously using
11269 this more than necessary.
11271 * EPUB writer: use stringify instead of plain writer for metadata
11272 (#3066). This means that underscores won't be used for emphasis,
11273 or CAPS for bold. The metadata fields will just have unadorned
11274 text.
11276 * Docx Writer:
11278 + Implement user-defined styles (Jesse Rosenthal). Divs and Spans
11279 with a `custom-style` key in the attributes will apply the corresponding
11280 key to the contained blocks or inlines.
11281 + Add ReaderT env to the docx writer (Jesse Rosenthal).
11282 + Clean up and streamline RTL behavior (Jesse Rosenthal, #3140).
11283 You can set `dir: rtl` in YAML metadata, or use `-M dir=rtl`
11284 on the command line. For finer-grained control, you can set
11285 the `dir` attribute in Div or Span elements.
11287 * Org writer (Albert Krewinkel):
11289 + Remove blank line after figure caption. Org-mode only treats an image
11290 as a figure if it is directly preceded by a caption.
11291 + Ensure blank line after figure. An Org-mode figure should be surrounded
11292 by blank lines. The figure would be recognized regardless, but images
11293 in the following line would unintentionally be treated as figures as
11294 well.
11295 + Ensure link targets are paths or URLs. Org-mode treats links as
11296 document internal searches unless the link target looks like a URL or
11297 file path, either relative or absolute. This change ensures that this
11298 is always the case.
11299 + Translate language identifiers. Pandoc and Org-mode use different
11300 programming language identifiers. An additional translation between
11301 those identifiers is added to avoid unexpected behavior. This fixes a
11302 problem where language specific source code would sometimes be output
11303 as example code.
11304 + Drop space before footnote markers (Albert Krewinkel, #3162).
11305 The writer no longer adds an extra space before footnote markers.
11307 * Markdown writer:
11309 + Don't emit HTML for tables unless `raw_html` extension is set (#3154).
11310 Emit `[TABLE]` if no suitable table formats are enabled and raw HTML
11311 is disabled.
11312 + Check for the `raw_html` extension before emitting a raw HTML block.
11313 + Abstract out note/ref function (Jesse Rosenthal).
11314 + Add ReaderT monad for environment variables (Jesse Rosenthal).
11316 * HTML, EPUB, slidy, revealjs templates: Use `<p>` instead of `<h1>` for
11317 subtitle, author, date (#3119). Note that, as a result of this change,
11318 authors may need to update CSS.
11320 * revealjs template: Added `notes-server` option
11321 (jgm/pandoc-templates#212, Yoan Blanc).
11323 * Beamer template:
11325 + Restore whitespace between paragraphs. This was
11326 a regression in the last release (jgm/pandoc-templates#207).
11327 + Added `themeoptions` variable (Carsten Gips).
11328 + Added `beamerarticle` variable. This causes the `beamerarticle`
11329 package to be loaded in beamer, to produce an article from beamer
11330 slides. (Carsten Gips)
11331 + Added support for `fontfamilies` structured variable
11332 (Artem Klevtsov).
11333 + Added hypersetup options (Jake Zimmerman).
11335 * LaTeX template:
11337 + Added dummy definition for `\institute`.
11338 This isn't a standard command, and we want to avoid a crash when
11339 `institute` is used with the default template.
11340 + Define default figure placement (Václav Haisman), since pandoc
11341 no longer includes `[htbp]` for figures. Users with custom templates
11342 will want to add this. See #3103.
11343 + Use footnote package to fix notes in tables (jgm/pandoc-templates#208,
11344 Václav Haisman).
11346 * Moved template compiling/rendering code to a separate library.
11347 `doctemplates`. This allows the pandoc templating system to be
11348 used independently.
11350 * Text.Pandoc.Error: Fix out of index error in `handleError`
11351 (Matthew Pickering). The fix is to not try to show the exact line when
11352 it would cause an out-of-bounds error as a result of included files.
11354 * Text.Pandoc.Shared: Add `linesToBlock` function (Albert Krewinkel).
11356 * Text.Pandoc.Parsing.emailAddress: tighten up parsing of email
11357 addresses. Technically `**@user` is a valid email address, but if we
11358 allow things like this, we get bad results in markdown flavors
11359 that autolink raw email addresses (see #2940). So we exclude a few
11360 valid email addresses in order to avoid these more common bad cases.
11362 * Text.Pandoc.PDF: Don't crash with nonexistent image (#3100). Instead,
11363 emit the alt text, emphasized. This accords with what the ODT writer
11364 currently does. The user will still get a warning about a nonexistent
11365 image.
11367 * Fix example in API documentation (#3176, Thomas Weißschuh).
11369 * Tell where to get tarball in INSTALL (#3062).
11371 * Rename README to MANUAL.txt and add GitHub-friendly README.md
11372 (Albert Krewinkel, Kolen Cheung).
11374 * Replace COPYING with Markdown version COPYING.md from GNU (Kolen Cheung).
11376 * MANUAL.txt:
11378 + Put note on structured vars in separate paragraph (#2148, Albert
11379 Krewinkel). Make it clearer that structured author variables require a
11380 custom template
11381 + Note that `--katex` works best with `html5` (#3077).
11382 + Fix the LaTeX and EPUB links in manual (Morton Fox).
11383 + Document `biblio-title` variable.
11385 * Improve spacing of footnotes in `--help` output (Waldir Pimenta).
11387 * Update KaTeX to v0.6.0 (Kolen Cheung).
11389 * Allow latest dependencies.
11391 * Use texmath 0.8.6.6 (#3040).
11393 * Allow http-client 0.4.30, which is the version in stackage lts.
11394 Previously we required 0.5.
11395 Remove CPP conditionals for earlier versions.
11397 * Remove support for GHC < 7.8 (Jesse Rosenthal).
11399 + Remove Compat.Monoid.
11400 + Remove an inline monad compatibility macro.
11401 + Remove Text.Pandoc.Compat.Except.
11402 + Remove directory compat.
11403 + Change constraint on mtl.
11404 + Remove unnecessary CPP condition in UTF8.
11405 + Bump base lower bound to 4.7.
11406 + Remove 7.6 build from .travis.yaml.
11407 + Bump supported ghc version in CONTRIBUTING.md.
11408 + Add note about GHC version support to INSTALL.
11409 + Remove GHC 7.6 from list of tested versions (Albert Krewinkel).
11410 + Remove TagSoup compat.
11411 + Add EOL note to time compat module. Because time 1.4 is a boot library
11412 for GHC 7.8, we will support the compatibility module as long as we
11413 support 7.8. But we should be clear about when we will no longer need
11414 it.
11415 + Remove blaze-html CPP conditional.
11416 + Remove unnecessary CPP in custom Prelude.
11418## pandoc 1.17.2 (2016-07-17)
11420 * Added Zim Wiki writer, template and tests. `zimwiki` is now
11421 a valid output format. (Alex Ivkin)
11423 * Changed email-obfuscation default to no obfuscation (#2988).
11424 + `writerEmailObfuscation` in `defaultWriterOptions` is now
11425 `NoObfuscation`.
11426 + the default for the command-line `--email-obfuscation` option is
11427 now `none`.
11429 * Docbook writer: Declare xlink namespace in Docbook5 output (Ivo Clarysse).
11431 * Org writer:
11433 + Support arbitrary raw inlines (Albert Krewinkel).
11434 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
11435 parlance) to be included as `@@format:raw foreign format text@@`.
11436 + Improve Div handling (Albert Krewinkel). Div blocks handling is
11437 changed to make the output look more like idiomatic org mode:
11438 - Div-wrapped content is output as-is if the div's attribute is the
11439 null attribute.
11440 - Div containers with an id but neither classes nor key-value pairs
11441 are unwrapped and the id is added as an anchor.
11442 - Divs with classes associated with greater block elements are
11443 wrapped in a `#+BEGIN`...`#+END` block.
11444 - The old behavior for Divs with more complex attributes is kept.
11446 * HTML writer: Better support for raw LaTeX environments (#2758).
11447 Previously we just passed all raw TeX through when MathJax
11448 was used for HTML math. This passed through too much.
11449 With this patch, only raw LaTeX environments that MathJax
11450 can handle get passed through.
11451 This patch also causes raw LaTeX environments to be treated
11452 as math, when possible, with MathML and WebTeX output.
11454 * Markdown writer: use raw HTML for simple, pipe tables with linebreaks
11455 (#2993). Markdown line breaks involve a newline, and simple and pipe
11456 tables can't contain one.
11458 * Make --webtex work with the Markdown writer (#1177).
11459 This is a convenient option for people using
11460 websites whose Markdown flavors don't provide for math.
11462 * Docx writer:
11464 + Set paragraph to FirstPara after display math (Jesse Rosenthal).
11465 We treat display math like block quotes, and apply FirstParagraph style
11466 to paragraphs that follow them. These can be styled as the user
11467 wishes. (But, when the user is using indentation, this allows for
11468 paragraphs to continue after display math without indentation.)
11469 + Use actual creation time as doc prop (Jesse Rosenthal).
11470 Previously, we had used the user-supplied date, if available, for Word's
11471 document creation metadata. This could lead to weird results, as in
11472 cases where the user post-dates a document (so the modification might be
11473 prior to the creation). Here we use the actual computer time to set the
11474 document creation.
11476 * LaTeX writer:
11478 + Don't URI-escape image source (#2825). Usually this is a local file,
11479 and replacing spaces with `%20` ruins things.
11480 + Allow 'standout' as a beamer frame option (#3007).
11481 `## Slide title {.standout}`.
11483 * RST reader: Fixed links with no explicit link text. The link
11484 `` `<foo>`_ `` should have `foo` as both its link text and its URL.
11485 See RST spec at <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases>
11486 Closes Debian #828167 -- reported by Christian Heller.
11488 * Textile reader:
11490 + Fixed attributes (#2984). Attributes can't be followed by
11491 a space. So, `_(class)emph_` but `_(noclass) emph_`.
11492 + Fixed exponential parsing bug (#3020).
11493 + Fix overly aggressive interpretation as images (#2998).
11494 Spaces are not allowed in the image URL in textile.
11496 * LaTeX reader:
11498 + Fix `\cite` so it is a NormalCitation not AuthorInText.
11499 + Strip off double quotes around image source if present (#2825).
11500 Avoids interpreting these as part of the literal filename.
11502 * Org reader:
11504 + Add semicolon to list of special chars (Albert Krewinkel)
11505 Semicolons are used as special characters in citations syntax. This
11506 ensures the correct parsing of Pandoc-style citations: `[prefix; @key;
11507 suffix]`. Previously, parsing would have failed unless there was a space
11508 or other special character as the last <prefix> character.
11509 + Add support for "Berkeley-style" cites (Albert Krewinkel, #1978).
11510 A specification for an official Org-mode citation syntax was drafted by
11511 Richard Lawrence and enhanced with the help of others on the orgmode
11512 mailing list. Basic support for this citation style is added to the
11513 reader.
11514 + Support arbitrary raw inlines (Albert Krewinkel).
11515 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
11516 parlance) to be included as `@@format:raw foreign format text@@`.
11517 + Remove partial functions (Albert Krewinkel, #2991).
11518 Partial functions like `head` lead to avoidable errors and should be
11519 avoided. They are replaced with total functions.
11520 + Support figure labels (Albert Krewinkel, #2496, #2999).
11521 Figure labels given as `#+LABEL: thelabel` are used as the ID of the
11522 respective image. This allows e.g. the LaTeX to add proper `\label`
11523 markup.
11524 + Improve tag and properties type safety (Albert Krewinkel).
11525 Specific newtype definitions are used to replace stringly typing of tags
11526 and properties. Type safety is increased while readability is improved.
11527 + Parse as headlines, convert to blocks (Albert Krewinkel).
11528 Emacs org-mode is based on outline-mode, which treats documents as trees
11529 with headlines are nodes. The reader is refactored to parse into a
11530 similar tree structure. This simplifies transformations acting on
11531 document (sub-)trees.
11532 * Refactor comment tree handling (Albert Krewinkel).
11533 Comment trees were handled after parsing, as pattern matching on lists
11534 is easier than matching on sequences. The new method of reading
11535 documents as trees allows for more elegant subtree removal.
11536 * Support archived trees export options (Albert Krewinkel).
11537 Handling of archived trees can be modified using the `arch` option.
11538 Archived trees are either dropped, exported completely, or collapsed to
11539 include just the header when the `arch` option is nil, non-nil, or
11540 `headline`, respectively.
11541 * Put export setting parser into module (Albert Krewinkel).
11542 Export option parsing is distinct enough from general block parsing to
11543 justify putting it into a separate module.
11544 * Support headline levels export setting (Albert Krewinkel).
11545 The depths of headlines can be modified using the `H` option. Deeper
11546 headlines will be converted to lists.
11547 * Replace ugly code with view pattern (Albert Krewinkel).
11548 Some less-than-smart code required a pragma switching of overlapping
11549 pattern warnings in order to compile seamlessly. Using view patterns
11550 makes the code easier to read and also doesn't require overlapping
11551 pattern checks to be disabled.
11552 * Fix parsing of verbatim inlines (Albert Krewinkel, #3016).
11553 Org rules for allowed characters before or after markup chars were not
11554 checked for verbatim text. This resultet in wrong parsing outcomes of
11555 if the verbatim text contained e.g. space enclosed markup characters as
11556 part of the text (`=is_substr = True=`). Forcing the parser to update
11557 the positions of allowed/forbidden markup border characters fixes this.
11559 * LaTeX template: fix for obscure hyperref/xelatex issue.
11560 Here's a minimal case:
11562 \documentclass[]{article}
11563 \usepackage{hyperref}
11564 \begin{document}
11565 \section{\%á}
11566 \end{document}
11568 Without this change, this fails on the second invocation of xelatex.
11569 This affects inputs this like `# %á` with pdf output via xelatex.
11571 * trypandoc: call results 'html' instead of 'result'.
11572 This is for better compatibility with babelmark2.
11574 * Document MultiMarkdown as input/output format (Albert Krewinkel, #2973).
11575 MultiMarkdown was only mentioned as a supported Markdown dialect but not
11576 as a possible input or output format. A brief mention is added
11577 everywhere the other supported markdown dialects are mentioned.
11579 * Document Org mode as a format containing raw HTML (Albert Krewinkel)
11580 Raw HTML is kept when the output format is Emacs Org mode.
11582 * Implement `RawInline` and `RawBlock` in sample lua custom writer (#2985).
11584 * Text.Pandoc.Shared:
11586 + Introduce blocksToInlines function (Jesse Rosenthal).
11587 This is a lossy function for converting `[Block] -> [Inline]`. Its main
11588 use, at the moment, is for docx comments, which can contain arbitrary
11589 blocks (except for footnotes), but which will be converted to spans.
11590 This is, at the moment, pretty useless for everything but the basic
11591 `Para` and `Plain` comments. It can be improved, but the docx reader
11592 should probably emit a warning if the comment contains more than this.
11593 + Add BlockQuote to blocksToInlines (Jesse Rosenthal).
11594 + Add further formats for `normalizeDate` (Jesse Rosenthal).
11595 We want to avoid illegal dates -- in particular years with greater than
11596 four digits. We attempt to parse series of digits first as `%Y%m%d`, then
11597 `%Y%m`, and finally `%Y`.
11598 + `normalizeDate` should reject illegal years (Jesse Rosenthal).
11599 We only allow years between 1601 and 9999, inclusive. The ISO 8601
11600 actually says that years are supposed to start with 1583, but MS Word
11601 only allows 1601-9999. This should stop corrupted word files if the date
11602 is out of that range, or is parsed incorrectly.
11603 + Improve year sanity check in normalizeDate (Jesse Rosenthal).
11604 Previously we parsed a list of dates, took the first one, and then
11605 tested its year range. That meant that if the first one failed, we
11606 returned nothing, regardless of what the others did. Now we test for
11607 sanity before running `msum` over the list of Maybe values. Anything
11608 failing the test will be Nothing, so will not be a candidate.
11610 * Docx reader:
11612 + Add simple comment functionality. (Jesse Rosenthal).
11613 This adds simple track-changes comment parsing to the docx reader. It is
11614 turned on with `--track-changes=all`. All comments are converted to
11615 inlines, which can list some information. In the future a warning will be
11616 added for comments with formatting that seems like it will be excessively
11617 denatured. Note that comments can extend across blocks. For that reason
11618 there are two spans: `comment-start` and `comment-end`. `comment-start`
11619 will contain the comment. `comment-end` will always be empty. The two
11620 will be associated by a numeric id.
11621 + Enable warnings in top-level reader (Jesse Rosenthal).
11622 Previously we had only allowed for warnings in the parser. Now we allow
11623 for them in the `Docx.hs` as well. The warnings are simply concatenated.
11624 + Add warning for advanced comment formatting. (Jesse Rosenthal).
11625 We can't guarantee we'll convert every comment correctly, though we'll
11626 do the best we can. This warns if the comment includes something other
11627 than Para or Plain.
11628 + Add tests for warnings. (Jesse Rosenthal).
11629 + Add tests for comments (Jesse Rosenthal).
11630 We test for comments, using all track-changes options. Note that we
11631 should only output comments if `--track-changes=all`. We also test for
11632 emitting warnings if there is complicated formatting.
11634 * README: update to include track-changes comments. (Jesse Rosenthal)
11636 * Improved Windows installer - don't ignore properties set on command-line.
11637 See #2708. Needs testing to see if this resolves the issue.
11638 Thanks to @nkalvi.
11640 * Process markdown extensions on command line in L->R order (#2995).
11641 Previously they were processed, very unintuitively, in R->L
11642 order, so that `markdown-tex_math_dollars+tex_math_dollars`
11643 had `tex_math_dollars` disabled.
11645 * Added `secnumdepth` variable to LaTeX template (#2920).
11647 * Include table of contents in README.html in Windows package.
11649 * Writers: treat SoftBreak as space for stripping (Jesse Rosenthal)
11650 In Writers.Shared, we strip leading and trailing spaces for display
11651 math. Since SoftBreak's are treated as spaces, we should strip those
11652 too.
11654 * beamer, latex templates: pass biblatexoptions directly in package load.
11655 This allows runtime optinos to be used. Fixes jgm/pandoc-citeproc#201
11657 * CPP workaround for deprecation of `parseUrl` in http-client.
11659 * Removed some redundant class constraints.
11661 * make_oxs_package.sh - use OSX env variable.
11663 * Added `winpkg` target to Makefile. This downloads the windows package
11664 from appveyor and signs it using the key.
11666 * Document Org mode as a format containing raw TeX (Albert Krewinkel).
11667 Raw TeX is kept verbatim when the output format is Emacs Org mode.
11669 * Support math with haddock-library >= 1.4.
11671 * Removed `-rtsopts` from library stanza. It has no effect, and Hackage
11672 wouldn't accept the package.
11674 * Update library dependency versions.
11676## pandoc 1.17.1 (2016-06-04)
11678 * New output format: `docbook5` (Ivo Clarysse).
11680 * `Text.Pandoc.Options`: Add `writerDocBook5` to `WriterOptions`
11681 (API change).
11683 * Org writer:
11685 + Add :PROPERTIES: drawer support (Albert Krewinkel, #1962).
11686 This allows header attributes to be added to org documents in the form
11687 of `:PROPERTIES:` drawers. All available attributes are stored as
11688 key/value pairs. This reflects the way the org reader handles
11689 `:PROPERTIES:` blocks.
11690 + Add drawer capability (Carlos Sosa). For the implementation of the
11691 Drawer element in the Org Writer, we make use of a generic Block
11692 container with attributes. The presence of a `drawer` class defines
11693 that the `Div` constructor is a drawer. The first class defines the
11694 drawer name to use. The key-value list in the attributes defines
11695 the keys to add inside the Drawer. Lastly, the list of Block elements
11696 contains miscellaneous blocks elements to add inside of the Drawer.
11697 + Use `CUSTOM_ID` in properties (Albert Krewinkel). The `ID` property is
11698 reserved for internal use by Org-mode and should not be used.
11699 The `CUSTOM_ID` property is to be used instead, it is converted to the
11700 `ID` property for certain export format.
11702 * LaTeX writer:
11704 + Ignore `--incremental` unless output format is beamer (#2843).
11705 + Fix polyglossia to babel env mapping (Mauro Bieg, #2728).
11706 Allow for optional argument in square brackets.
11707 + Recognize `la-x-classic` as Classical Latin (Andrew Dunning).
11708 This allows one to access the hyphenation patterns in CTAN's
11709 hyph-utf8.
11710 + Add missing languages from hyph-utf8 (Andrew Dunning).
11711 + Improve use of `\strut` with `\minipage` inside tables
11712 (Jose Luis Duran). This improves spacing in multiline
11713 tables.
11714 + Use `{}` around options containing special chars (#2892).
11715 + Avoid lazy `foldl`.
11716 + Don't escape underscore in labels (#2921). Previously they were
11717 escaped as `ux5f`.
11718 + brazilian -> brazil for polyglossia (#2953).
11720 * HTML writer: Ensure mathjax link is added when math appears in footnote
11721 (#2881). Previously if a document only had math in a footnote, the
11722 MathJax link would not be added.
11724 * EPUB writer: set `navpage` variable on nav page.
11725 This allows templates to treat it differently.
11727 * DocBook writer:
11729 + Use docbook5 if `writerDocbook5` is set (Ivo Clarysse).
11730 + Properly handle `ulink`/`link` (Ivo Clarysse).
11732 * EPUB reader:
11734 + Unescape URIs in spine (#2924).
11735 + EPUB reader: normalise link id (Mauro Bieg).
11737 * Docx Reader:
11739 + Parse `moveTo` and `moveFrom` (Jesse Rosenthal).
11740 `moveTo` and `moveFrom` are track-changes tags that are used when a
11741 block of text is moved in the document. We now recognize these tags and
11742 treat them the same as `insert` and `delete`, respectively. So,
11743 `--track-changes=accept` will show the moved version, while
11744 `--track-changes=reject` will show the original version.
11745 + Tests for track-changes moving (Jesse Rosenthal).
11747 * ODT, EPUB, Docx readers: throw `PandocError` on unzip failure
11748 (Jesse Rosenthal) Previously, `readDocx`, `readEPUB`, and `readOdt`
11749 would error out if zip-archive failed. We change the archive extraction
11750 step from `toArchive` to `toArchiveOrFail`, which returns an Either value.
11752 * Markdown, HTML readers: be more forgiving about unescaped `&` in
11753 HTML (#2410). We are now more forgiving about parsing invalid HTML with
11754 unescaped `&` as raw HTML. (Previously any unescaped `&`
11755 would cause pandoc not to recognize the string as raw HTML.)
11757 * Markdown reader:
11759 + Fix pandoc title blocks with lines ending in 2 spaces (#2799).
11760 + Added `-s` to markdown-reader-more test.
11762 * HTML reader: fixed bug in `pClose`. This caused exponential parsing
11763 behavior in documnets with unclosed tags in `dl`, `dd`, `dt`.
11765 * MediaWiki reader: Allow spaces before `!` in MediaWiki table header
11766 (roblabla).
11768 * RST reader: Support `:class:` option for code block in RST reader
11769 (Sidharth Kapur).
11771 * Org reader (all Albert Krewinkel, except where noted otherwise):
11773 + Stop padding short table rows.
11774 Emacs Org-mode doesn't add any padding to table rows. The first
11775 row (header or first body row) is used to determine the column count,
11776 no other magic is performed.
11777 + Refactor rows-to-table conversion. This refactors
11778 the codes conversing a list table lines to an org table ADT.
11779 The old code was simplified and is now slightly less ugly.
11780 + Fix handling of empty table cells, rows (Albert Krewinkel, #2616).
11781 This fixes Org mode parsing of some corner cases regarding empty cells
11782 and rows. Empty cells weren't parsed correctly, e.g. `|||` should be
11783 two empty cells, but would be parsed as a single cell containing a pipe
11784 character. Empty rows where parsed as alignment rows and dropped from
11785 the output.
11786 + Fix spacing after LaTeX-style symbols.
11787 The org-reader was dropping space after unescaped LaTeX-style symbol
11788 commands: `\ForAll \Auml` resulted in `∀Ä` but should give `∀ Ä`
11789 instead. This seems to be because the LaTeX-reader treats the
11790 command-terminating space as part of the command. Dropping the trailing
11791 space from the symbol-command fixes this issue.
11792 + Print empty table rows. Empty table rows should not
11793 be dropped from the output, so row-height is always set to be at least 1.
11794 + Move parser state into separate module.
11795 The org reader code has become large and confusing. Extracting smaller
11796 parts into submodules should help to clean things up.
11797 + Add support for sub/superscript export options.
11798 Org-mode allows to specify export settings via `#+OPTIONS` lines.
11799 Disabling simple sub- and superscripts is one of these export options,
11800 this options is now supported.
11801 + Support special strings export option Parsing of special strings
11802 (like `...` as ellipsis or `--` as en dash) can be toggled using the `-`
11803 option.
11804 + Support emphasized text export option. Parsing of emphasized text can
11805 be toggled using the `*` option. This influences parsing of text marked
11806 as emphasized, strong, strikeout, and underline. Parsing of inline math,
11807 code, and verbatim text is not affected by this option.
11808 + Support smart quotes export option. Reading of smart quotes can be
11809 toggled using the `'` option.
11810 + Parse but ignore export options. All known export options are parsed
11811 but ignored.
11812 + Refactor block attribute handling. A parser state attribute was used
11813 to keep track of block attributes defined in meta-lines. Global state
11814 is undesirable, so block attributes are no longer saved as part of the
11815 parser state. Old functions and the respective part of the parser state
11816 are removed.
11817 + Use custom `anyLine`. Additional state changes need to be made after
11818 a newline is parsed, otherwise markup may not be recognized correctly.
11819 This fixes a bug where markup after certain block-types would not be
11820 recognized.
11821 + Add support for `ATTR_HTML` attributes (#1906).
11822 Arbitrary key-value pairs can be added to some block types using a
11823 `#+ATTR_HTML` line before the block. Emacs Org-mode only includes these
11824 when exporting to HTML, but since we cannot make this distinction here,
11825 the attributes are always added. The functionality is now supported
11826 for figures.
11827 + Add `:PROPERTIES:` drawer support (#1877).
11828 Headers can have optional `:PROPERTIES:` drawers associated with them.
11829 These drawers contain key/value pairs like the header's `id`. The
11830 reader adds all listed pairs to the header's attributes; `id` and
11831 `class` attributes are handled specially to match the way `Attr` are
11832 defined. This also changes behavior of how drawers of unknown type
11833 are handled. Instead of including all unknown drawers, those are not
11834 read/exported, thereby matching current Emacs behavior.
11835 + Use `CUSTOM_ID` in properties. See above on Org writer changes.
11836 + Respect drawer export setting. The `d` export option can be used
11837 to control which drawers are exported and which are discarded.
11838 Basic support for this option is added here.
11839 + Ignore leading space in org code blocks (Emanuel Evans, #2862).
11840 Also fix up tab handling for leading whitespace in code blocks.
11841 + Support new syntax for export blocks. Org-mode version 9
11842 uses a new syntax for export blocks. Instead of `#+BEGIN_<FORMAT>`,
11843 where `<FORMAT>` is the format of the block's content, the new
11844 format uses `#+BEGIN_export <FORMAT>` instead. Both types are
11845 supported.
11846 + Refactor `BEGIN...END` block parsing.
11847 + Fix handling of whitespace in blocks, allowing content to be indented
11848 less then the block header.
11849 + Support org-ref style citations. The *org-ref* package is an
11850 org-mode extension commonly used to manage citations in org
11851 documents. Basic support for the `cite:citeKey` and
11852 `[[cite:citeKey][prefix text::suffix text]]` syntax is added.
11853 + Split code into separate modules, making for cleaner code and
11854 better decoupling.
11856 * Added `docbook5` template.
11858 * `--mathjax` improvements:
11860 + Use new CommonHTML output for MathJax (updated default MathJax URL,
11861 #2858).
11862 + Change default mathjax setup to use `TeX-AMS_CHTML` configuration.
11863 This is designed for cases where the input is always TeX and maximal
11864 conformity with TeX is desired. It seems to be smaller and load faster
11865 than what we used before. See #2858.
11866 + Load the full MathJax config to maximize loading speed (KolenCheung).
11868 * Bumped upper version bounds to allow use of latest packages
11869 and compilation with ghc 8.
11871 * Require texmath 0.8.6.2. Closes several texmath-related bugs (#2775,
11872 #2310, #2310, #2824). This fixes behavior of roots, e.g.
11873 `\sqrt[3]{x}`, and issues with sub/superscript positioning
11874 and matrix column alignment in docx.
11876 * README:
11878 + Clarified documentation of `implicit_header_references` (#2904).
11879 + Improved documentation of `--columns` option.
11881 * Added appveyor setup, with artefacts (Jan Schulz).
11883 * stack.yaml versions: Use proper flags used for texmath, pandoc-citeproc.
11885 * LaTeX template: support for custom font families (vladipus).
11886 Needed for correct polyglossia operation with Cyrillic fonts and perhaps
11887 can find some other usages. Example usage in YAML metadata:
11889 fontfamilies:
11890 - name: \cyrillicfont
11891 font: Liberation Serif
11892 - name: \cyrillicfonttt
11893 options: Scale=MatchLowercase
11894 font: Liberation
11896 * Create unsigned msi as build artifact in appveyor build.
11898 * On travis, test with ghc 8.0.1; drop testing for ghc 7.4.1.
11902## pandoc 1.17.0.3 (2016-03-24)
11904 * LaTeX writer: Fixed position of label in figures (#2813).
11905 Previously the label wasn't in the right place, and `\ref`
11906 wouldn't work properly.
11907 * Added .tei test files to pandoc.cabal so they'll be included
11908 in tarball (#2811).
11909 * Updated copyright dates.
11911## pandoc 1.17.0.2 (2016-03-23)
11913 * Fixed serious regression in `htmlInBalanced`, which caused
11914 newlines to be omitted in some raw HTML blocks in Markdown
11915 (#2804).
11917## pandoc 1.17.0.1 (2016-03-21)
11919 * File scope is no longer used when there are no input files (i.e.,
11920 when input comes from stdin). Previously file scope was triggered
11921 when the `json` reader was specified and input came from `stdin`,
11922 and this caused no output to be produced. (Fix due to Jesse Rosenthal;
11923 thanks to Fedor Sheremetyev for calling the bug to our attention.)
11924 * Improved documentation of templates (#2797).
11926## pandoc 1.17 (2016-03-20)
11928 * Added `--file-scope` option (Jesse Rosenthal).
11929 By default pandoc operates on multiple files by first concatenating
11930 them (around extra line breaks) and then processing the joined file. So
11931 it only parses a multi-file document at the document scope. This has the
11932 benefit that footnotes and links can be in different files, but for
11933 some purposes it is useful to parse the individual files first
11934 and then combine their outputs (e.g. when the files use footnotes
11935 or links with the same labels). The `--file-scope` option causes
11936 pandoc to parse the files first, and then combine the parsed output,
11937 instead of combining before parsing. `--file-scope` is selected
11938 automatically for binary input files (which cannot be concatenated)
11939 and for pandoc json.
11941 * Add TEI Writer (Chris Forster) and `tei` output format.
11943 * Added a general `ByteStringReader` with warnings, used by the docx
11944 reader (API change, Jesse Rosenthal).
11946 * Add `readDocxWithWarnings` (API change, Jesse Rosenthal).
11948 * Changed type of `Shared.uniqueIdent` argument from
11949 `[String]` to `Set String`. This avoids performance problems in documents
11950 with many identically named headers (API change, #2671).
11952 * Removed `tex_math_single_backslash` from `markdown_github` options
11953 (#2707).
11955 * Make language extensions as well as full language names
11956 trigger syntax highlighting. For example, `py` will now work as
11957 well as `python` (jgm/highlighting-kate#83).
11959 * Added `institute` variable to latex, beamer templates (Fraser
11960 Tweedale, Josef Svenningsson).
11962 * Docx reader (Jesse Rosenthal):
11964 + Handle alternate content. Some word functions (especially graphics)
11965 give various choices for content so there can be backwards compatibility.
11966 + Don't turn numbered headers into lists.
11967 + Docx Reader: Add state to the parser, for warnings
11968 + Update feature checklist in source code.
11969 + Get rid of `Modifiable` typeclass.
11970 + Add tests for adjacent hyperlinks.
11971 + Add a "Link" modifier to `Reducible`. We want to make sure that
11972 links have their spaces removed, and are appropriately smushed
11973 together (#2689).
11975 * HTML reader:
11977 + Fixed behavior of base tag (#2777).
11978 If the base path does not end with slash, the last component
11979 will be replaced. E.g. base = `http://example.com/foo`
11980 combines with `bar.html` to give `http://example.com/bar.html`.
11981 If the href begins with a slash, the whole path of the base
11982 is replaced. E.g. base = `http://example.com/foo/` combines
11983 with `/bar.html` to give `http://example.com/bar.html`.
11984 + Rewrote `htmlInBalanced`. This version avoids an exponential
11985 performance problem with `<script>` tags, and it should be faster
11986 in general (#2730).
11987 + Properly handle an empty cell in a simple table (#2718).
11988 + Handle multiple `<meta>` tags with same name. Put them in a list
11989 in the metadata so they are all preserved, rather than (as before)
11990 throwing out all but one..
11992 * Markdown reader:
11994 + Improved pipe table parsing (#2765).
11995 + Allow `+` separators in pipe table cells. We already allowed
11996 them in the header, but not in the body rows, for some reason.
11997 This gives compatibility with org-mode tables.
11998 + Don't cross line boundary parsing pipe table row.
11999 Previously an Emph element could be parsed across the newline
12000 at the end of the pipe table row.
12001 + Use `htmlInBalanced` for `rawVerbatimBlock`, for better
12002 performance (#2730).
12003 + Fixed bug with smart quotes around tex math.
12005 * LaTeX reader:
12007 + Handle interior `$` characters in math (#2743). For example,
12008 `$$\hbox{$i$}$$`.
12009 + `inlineCommand` now gobbles an empty `{}` after any command (#2687).
12010 This gives better results when people write e.g. `\TeX{}` in Markdown.
12011 + Properly handle LaTeX "math" environment as inline math (#2171).
12013 * Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.
12014 Closes #2674.
12016 * Org reader (Albert Krewinkel):
12018 + Prefix even empty figure names with "fig:" (#2643). The
12019 convention used by pandoc for figures is to mark them by prefixing
12020 the name with `fig:`. The org reader failed to do this if a figure
12021 had no name.
12022 + Refactor link-target processing (#2684).
12024 * ConTeXt writer: Fix whitespace at line beginning in line blocks (#2744).
12025 Thanks to @c-foster.
12027 * HTML writer: Don't include alignment attribute for default table columns.
12028 Previously these were given "left" alignment. Better to leave off
12029 alignment attributes altogether (#2694).
12031 * Markdown writer: Use hyphens for YAML metadata block bottom line, for
12032 better compatibility with other Markdown flavors (Henrik Tramberend).
12034 * LaTeX writer:
12036 + Use image identifier to create a label and hypertarget for
12037 figures (Mauro Bieg).
12038 + Avoid double toprule in headerless table with caption (#2742).
12039 + Clean up options parser (Jesse Rosenthal).
12040 + Treat `memoir` template with `article` option as article, instead
12041 of treating all `memoir` templates as books.
12042 + Allow more flexible table alignment (Henrik Tramberend, #2665).
12043 New default is not to include `[c]` option (which is the default
12044 anyway if no positioning is specified). Now LaTeX emplates can
12045 control the overall table alignment in a document by setting the
12046 longtable length variables `LTleft` and `LTright`. For example,
12047 `\setlength\LTleft\parindent\setlength\LTright\fill`
12048 will create left-aligned tables that respect paragraph indentation.
12050 * Docx writer: Handle image alt text (#2754, Mauro Bieg).
12052 * Org writer - pass through RawInline with format "org".
12054 * DokuWiki writer: use `$$` for display math.
12056 * Custom writer: Pass attributes parameter to CaptionedImage (#2697).
12058 * Make protocol-relative URIs work again (#2737).
12060 * make_osx_package.sh: Use env variable for developer id certs.
12062 * Raise `tagsoup` lower bound to 0.13.7 to fix entity-related
12063 problems (#2734).
12065 * Allow `zip-archive` 0.3.
12067 * Allow `aeson` 0.11.
12069## pandoc 1.16.0.2 (2016-01-12)
12071 * Depend on deepseq rather than deepseq-generics (fpco/stackage#1096).
12073 * Fixed regression in latex smart quote parsing (#2645).
12074 In cases where a match was not found for a quote, everything
12075 from the open quote to the end of the paragraph was being dropped.
12077## pandoc 1.16.0.1 (2016-01-10)
12079 * Fixed regression with `--latex-engine` (#2618). In 1.16
12080 `--latex-engine` raises an error if a full path is given.
12082 * Org reader: Fix function dropping subtrees tagged `:noexport`
12083 (Albert Krewinkel, #2628):
12085 * Markdown reader: renormalize table column widths if they exceed 100%
12086 (#2626).
12088 * Textile reader: don't allow block HTML tags in inline contexts.
12089 The reader previously did allow this, following redcloth,
12090 which happily parses
12092 Html blocks can be <div>inlined</div> as well.
12096 <p>Html blocks can be <div>inlined</div> as well.</p>
12098 This is invalid HTML. The above sample now produces;
12100 <p>Html blocks can be</p>
12101 <div>
12102 <p>inlined</p>
12103 </div>
12104 <p>as well.</p>
12106 * Improved default template lookup for custom lua scripts (#2625).
12107 Previously, if you tried to do `pandoc -s -t /path/to/lua/script.lua`,
12108 pandoc would look for the template in
12109 `~/.pandoc/templates/default./path/to/lua/script.lua`.
12110 With this change it will look in the more reasonable
12111 `~/.pandoc/templates/default.script.lua`. This makes it possible to
12112 store default templates for custom writers.
12114 * RST, Markdown writers: Fixed rendering of grid tables with blank rows
12115 (#2615).
12117 * LaTeX writer: restore old treatment of Span (#2624). A Span is
12118 now rendered with surrounding `{}`, as it was before 1.16.
12120 * Entity handling fixes: improved handling of entities like
12121 `&lang;` that require a trailing semicolon. Allow uppercase
12122 `x` in numerical hexadecimal character references, working
12123 around a tagsoup bug.
12125 * `stack.yaml` - use lts-4.0, but with older aeson to avoid excessive
12126 memory use on compile. With aeson 0.10 we were getting an out of
12127 memory error on a 2GB Ubuntu 64-bit VM.
12129 * Improved deb package creation script. Made `DPKGVER` work.
12130 Renamed `COMMIT` to `TREE`. You should now be able to do
12131 `TREE=1.16.0.1 DPKGVER=2 make deb`.
12134## pandoc 1.16 (2016-01-02)
12136 * Added `Attr` field to `Link` and `Image` (Mauro Bieg, #261, API change).
12138 + Added syntax for link and image attributes to pandoc's Markdown.
12139 + Updated readers and writers to use link and image attributes
12140 when appropriate.
12141 + Support image attributes in Docx, Textile, RST readers.
12143 * Renamed link attribute extensions. The old `link_attributes` is
12144 now `mmd_link_attributes`, and `link_attributes` now enables the
12145 new pandoc-style link and image attributes (API change).
12146 Note: this change could break some existing workflows.
12148 * Implemented `SoftBreak` and new `--wrap` option (#1701, API change).
12149 Added threefold wrapping option.
12151 + Command line option: deprecated `--no-wrap`, added
12152 `--wrap=[auto|none|preserve]`
12153 + Added `WrapOption`, exported from `Text.Pandoc.Options`
12154 + Changed type of `writerWrapText` in `WriterOptions` from
12155 `Bool` to `WrapOption`.
12156 + Modified `Text.Pandoc.Shared` functions to allow `SoftBreak`.
12157 + Supported `SoftBreak` in readers and writers.
12159 * Text.Pandoc.Options: Added `writerDpi` to `WriterOptions` (API
12160 change, Mauro Bieg).
12162 * Added `--dpi` command-line option (Mauro Bieg).
12164 * Rationalized behavior of `--no-tex-ligatures` and `--smart` (#2541).
12165 This change makes `--no-tex-ligatures` affect the LaTeX reader
12166 as well as the LaTeX and ConTeXt writers. If it is used,
12167 the LaTeX reader will parse characters `` ` ``, `'`, and `-`
12168 literally, rather than parsing ligatures for quotation marks
12169 and dashes. And the LaTeX writer will print unicode quotation
12170 mark and dash characters literally, rather than converting
12171 them to the standard ASCII ligatures. Note that `--smart` has
12172 no effect on the LaTeX reader. `--smart` is still the default
12173 for all input formats when LaTeX or ConTeXt is the output format,
12174 *unless* `--no-tex-ligatures` is used.
12176 Some examples to illustrate the logic:
12178 ```
12179 % echo "'hi'" | pandoc -t latex
12180 `hi'
12181 % echo "'hi'" | pandoc -t latex --no-tex-ligatures
12182 'hi'
12183 % echo "'hi'" | pandoc -t latex --no-tex-ligatures --smart
12184 ‘hi’
12185 % echo "'hi'" | pandoc -f latex --no-tex-ligatures
12186 <p>'hi'</p>
12187 % echo "'hi'" | pandoc -f latex
12188 <p>’hi’</p>
12189 ```
12191 * Removed deprecated options `--offline` and `--html5`.
12193 * Fixed language code for Czech (`cs` not `cz`) (#2597).
12195 * Implemented `east_asian_line_breaks` extension (#2586).
12196 In `Text.Pandoc.Options`, added `Ext_east_asian_line_breaks` constructor
12197 to `Extension` (API change). This extension is like
12198 `ignore_line_breaks`, but smarter -- it only ignores line breaks
12199 between two East Asian wide characters. This makes it better suited
12200 for writing with a mix of East Asian and non-East Asian scripts.
12202 * Added support for PDF creation via `wkhtmltopdf`.
12203 To use this: `pandoc -t html5 -o result.pdf` (and add `--mathjax`
12204 if you have math.) Margins can be set using the variables
12205 `margin-top`, `margin-bottom`, `margin-left`, `margin-right`.
12206 Other styling can be done through CSS.
12208 * Fixed cite key parsing regression (jgm/pandoc-citeproc#201).
12209 We were capturing final colons as in `[@foo: bar]`; the citation id
12210 was being parsed as `@foo:`.
12212 * ICML writer:
12214 + Fixed image syntax for local files (#2589).
12215 + Changed type of `writeICML` (Mauro Bieg).
12216 API change: It is now `WriterOptions -> Pandoc -> IO String`.
12217 Also handle new image attributes.
12218 + Intersperse line breaks instead of appending them to
12219 every `ParagraphStyleRange` (Mauro Bieg, #2501).
12220 + Add `Cite` style to citations (Mauro Bieg).
12221 + Added figure handling (#2590, Mauro Bieg).
12222 + Better handling of math. Instead of just printing the raw tex,
12223 we now try to fake it with unicode characters.
12225 * HTML writer: Include `example` class for example lists (#2524).
12227 * ODT/OpenDocument writer: improved image attributes (Mauro Bieg).
12229 + Support for percentage widths/heights
12230 + Use `Attr` instead of title to get dimensions from ODT walker
12231 to `writeOpenDocument`.
12233 * AsciiDoc writer:
12235 + Support anchors in spans and divs with id elements
12236 (jgm/pandoc-citeproc#143).
12237 + Fixed code blocks (#1861).
12239 * Haddock writer: omit formatting inside links, which isn't supported
12240 by Haddock (#2515).
12242 * MediaWiki writer: Fixed spacing issues in table cells.
12244 + Start cell on new line unless it's a single Para or Plain
12245 (#2606).
12246 + For single Para or Plain, insert a space after the `|` to
12247 avoid problems when the text begins with a character like
12248 `-` (#2604).
12250 * Beamer writer: mark frame as fragile when it contains verbatim (#1613).
12252 * LaTeX writer:
12254 + Add support for GAP highlighting using listings (Raniere Silva).
12255 + Consider `header-includes` content as well as templates
12256 when determining whether to use csquotes (Andreas Lööw).
12257 + Create defaults for geometry using `margin-left` etc.
12258 If `geometry` has no value, but `margin-left`, `margin-right`,
12259 `margin-top`, and/or `-margin-bottom` are given, a default value
12260 for `geometry` is created from these. Note that these variables
12261 already affect PDF production via HTML5 with `wkhtmltopdf`.
12263 * ConTeXt writer: set default layout based on `margin-left`, etc.
12264 This sets up `\setuplayout` based on the variables `margin-left`,
12265 `margin-right`, `margin-bottom`, and `margin-top`, if no layout
12266 is given.
12268 * Docx writer: better handling of PDF images. Previously we tried
12269 to get the image size from the image even if an explicit size was
12270 specified. Since we still can't get image size for PDFs, this made
12271 it impossible to use PDF images in docx. Now we don't try to get
12272 the image size when a size is already explicitly specified.
12274 * Markdown writer: use raw HTML for link/image attributes when
12275 the `link_attributes` extension is unset and `raw_html` is set (#2554).
12277 * MediaWiki reader: interpret markup inside `<tt>`, `<code>` (#2607).
12279 * LaTeX reader:
12281 + Improved smart quote parsing (#2555). This fixes redering of
12282 unmatched quotes.
12283 + Use curly quotes for unmatched ` (#2555).
12284 + Allow blank space between braced arguments of commands (#2592).
12286 * Markdown reader:
12288 + Improved pipe table relative widths. Previously pipe table
12289 columns got relative widths (based on the header underscore lines)
12290 when the source of one of the rows was greater in width than the
12291 column width. This gave bad results in some cases where much of
12292 the width of the row was due to nonprinting material (e.g. link
12293 URLs). Now pandoc only looks at printable width (the width of a
12294 plain string version of the source), which should give better results.
12295 Thanks to John Muccigrosso for bringing up the issue.
12296 + Fixed parsing bug with macros. Previously macro definitions in
12297 indented code blocks were being parsed as macro definitions, not code.
12299 * Textile reader: skip over attribute in image source (#2515).
12300 We don't have a place yet for styles or sizes on images, but
12301 we can skip the attributes rather than incorrectly taking them
12302 to be part of the filename.
12304 * Docx reader: Handle dummy list items (Jesse Rosenthal).
12305 These come up when people create a list item and then delete the
12306 bullet. It doesn't refer to any real list item, and we used to ignore
12307 it.
12309 * CommonMark reader/writer rewritten to use latest `cmark`.
12311 * Fixed Emoji character definitions (#2523). There were many bugs in the
12312 definitions.
12314 * `Text.Pandoc.CSS`:
12316 + Added `pickStylesToKVs` function to extract multiple properties at
12317 once (API change, Mauro Bieg).
12318 + Parse CSS that doesn't contain the optional semicolon (Mauro Bieg).
12320 * `trypandoc`: sort drop-down lists.
12322 * Beamer template:
12324 + Made `\euro` conditional on presence of character.
12325 for xelatex and lualatex, as it is for pdflatex (Andrew Dunning).
12326 + Moved `header-includes` before setting of title (Thomas Hodgson),
12327 to match the LaTeX template (jgm/pandoc-templates#168).
12328 + Added `section-titles` variable (defaults to true)
12329 to enable/suppress section title pages in beamer
12330 slide shows (Thomas Hodgson).
12331 + Moved beamer themes after fonts, so that themes can
12332 change fonts. (Previously the fonts set were being
12333 clobbered by lmodern.sty.) (Thomas Hodgson).
12335 * Beamer/LaTeX template changes (Thomas Hodgson):
12336 + Added `thanks` variable
12337 + Use `parskip.sty` when `indent` isn't set (fall back to using
12338 `setlength` as before if `parskip.sty` isn't available).
12339 + Use `biblio-style` with biblatex.
12340 + Added `biblatexoptions` variable.
12342 * LaTeX template changes:
12344 + Added `paper` after `$papersize$` variable in latex template.
12345 Thus you can say `papersize: a4` and the latex will contain
12346 `a4paper`. This change may break some existing workflows; if
12347 you currently specify `a4paper`, you'll get `a4paperpaper` which
12348 is meaningless. However, the change seems worth it, as it will
12349 make the `papersize` variable work uniformly across ConTeXt, LaTeX,
12350 and html->pdf via wkhtmltopdf.
12351 + Only pass options to color package if `colorlinks` is set
12352 (Andrew Dunning).
12353 + Make definition of `\euro` conditional in xelatex/lualatex,
12354 as it is already for pdflatex (Andrew Dunning).
12355 + Removed setting of `subject` in PDF metadata.
12356 This used to be set to the subtitle, but really the subtitle
12357 need not give the subject. Also, `subtitle` can contain formatting,
12358 so we'd need, at least, a plain text version for this.
12359 + Moved `header-includes` before setting of `\title`, `\author`,
12360 etc. This allows these macros to be redefined.
12361 + Use `\subtitle` command for `subtitle`, instead of tacking it
12362 on to the title as before. We give a no-op fallback definition if it
12363 is not defined. This change should produce much better results
12364 in classes that support `\subtitle`. With the default article
12365 class, which does not define `\subtitle`, subtitles will no
12366 longer be printed unless the user defines `\subtitle` and
12367 redefines `\maketitle`.
12368 + Moved redefinitions of `\paragraph` and `\subparagraph` to
12369 before header-includes.
12371 * Context template:
12373 + Use `simplefonts` for font loading (Paolo Rodríguez). This is
12374 needed for things to work on ConTeXt stable from TeXLive 2015.
12375 + Revert use of `\setuphead` in title block (Andrew Dunning,
12376 Rik Kabel).
12378 * Update LaTeX/ConTeXt link colour usage (Andrew Dunning).
12380 * Fixed man template so disabling hyphenation actually works.
12381 The command needs to come after .TH.
12383 * Added 'navigation' variable to beamer template (#2543).
12384 Valid values are `empty` (the default), `horizontal`, `vertical`,
12385 and `frame`. Note that this changes the default behavior from
12386 `horizontal` to `empty`. Closes #2543.
12388 * Added `toc` to HTML slide format templates (Andrew Dunning),
12389 so that `--toc` creates a contents slide.
12391 * Added `stack.full.yaml` to build `pandoc-citeproc` as well.
12393 * Allow pipe tables with no body rows (#2556).
12394 Previously this raised a runtime error.
12396 * Shared: Improved `fetchItem` so that `C:/Blah/Blah.jpg` isn't treated
12397 as URL. The Haskell URI parsing routines will accept "C:" as a
12398 scheme, so we rule that out manually. This helps with
12399 `--self-contained` and absolute Windows paths.
12401 * Define a `meta-json` variable for all writers (#2019). This contains
12402 a JSON version of all the metadata, in the format selected for the
12403 writer. So, for example, to get just the YAML metadata, you can run
12404 pandoc with the following custom template: `$meta-json$`. The intent
12405 is to make it easier for static site generators and other tools to get
12406 at the metadata.
12408 * Document limitations of --self-contained (#2553).
12410 * Improved Citations section of README (#2551). Added information
12411 about `link-citations` and a link to the pandoc-citeproc man page.
12413 * `ImageSize`: use `safeRead` instead of `readMaybe`, which isn't
12414 in base < 4.6.
12416 * Allow .adoc file extension for AsciiDoc (Andrew Dunning).
12418 * Improved implicit pandoc-citeproc inclusion.
12419 The filter pandoc-citeproc is automatically used when
12420 `--bibliography` is specified on the command line, unless
12421 `--natbib` or `--biblatex` is used. However, previously this
12422 only worked if `--bibliography` was spelled out in full, and not
12423 if `--biblio` was used.
12425 * reveal.js: Interpret pauses correctly for all headers (#2530).
12426 Previously, when using headers below the slide level, pauses are left
12427 uninterpreted into pauses. In my opinion, unexpected behavior but
12428 intentional looking at the code.
12430 * Remove redundant `center` variable for reveal.js (Andrew Dunning).
12432 * Parsing: Add `extractIdClass`, modified type of `KeyTable` (Mauro
12433 Bieg, API change).
12435 * ImageSize: Added functions for converting between image dimensions
12436 (Mauro Bieg).
12438 * Use lts-3.18 in stack.yaml. This avoids Windows build
12439 issues with the HTTP library.
12441 * Bump version bounds for dependencies.
12443## pandoc 1.15.2.1 (2015-11-16)
12445 * Added two missing test files, and `stack.yaml`, to
12446 `extra-source-files` so they're included in the source tarball.
12448 * reveal.js template: Fixed parallaxBackground options.
12449 `parallaxBackgroundHorizontal` and `parallaxBackgroundVertical`
12450 need integer values, not strings. (Vaughn Iverson)
12452## pandoc 1.15.2 (2015-11-15)
12454 * `pandoc my.md -t context -o my.pdf` will now create a PDF using
12455 ConTeXt rather than LaTeX (#2463).
12457 * Fixed omitted `url(...)` in CSS data-uri with `--self-contained` (#2489).
12459 * Added `emoji` Markdown extension, enabled by default in `markdown_github`
12460 (#2523). Added `Ext_emoji` to `Extension` in `Text.Pandoc.Options`
12461 (API change).
12463 * `Text.Pandoc.Readers.HTML.parseTags`: Fixed over-eager raw HTML inline
12464 parsing (#2469). Tightened up the inline HTML parser so it disallows
12465 TagWarnings.
12467 * Derive `Generic` instances for the types in `Text.Pandoc.Options`.
12469 * Org reader:
12471 + Fix paragraph/list interaction (Albert Krewinkel, #2464).
12472 Paragraphs can be followed by lists, even if there is no blank line
12473 between the two blocks. However, this should only be true if the
12474 paragraph is not within a list, were the preceding block should be
12475 parsed as a plain instead of paragraph (to allow for compact lists).
12476 Thanks to @rgaiacs for bringing this up.
12477 + Allow toggling header args (Albert Krewinkel, #2269).
12478 Org-mode allows to skip the argument of a code block header argument if
12479 it's toggling a value. Argument-less headers are now recognized,
12480 avoiding weird parsing errors.
12481 + Fix markup parsing in headers (Albert Krewinkel, #2504).
12482 Markup as the very first item in a header wasn't recognized. This was
12483 caused by an incorrect parser state: positions at which inline markup
12484 can start need to be marked explicitly by changing the parser state.
12485 This wasn't done for headers. The proper function to update the state
12486 is now called at the beginning of the header parser, fixing this issue.
12487 + Fix emphasis rules for smart parsing (Albert Krewinkel, #2513).
12488 Smart quotes, ellipses, and dashes should behave like normal quotes,
12489 single dashes, and dots with respect to text markup parsing.
12490 + Require whitespace around definition list markers (#2518).
12491 This rule was not checked before, resulting in bugs with footnotes
12492 and some link types.
12494 * Markdown reader:
12496 + Pipe tables with long lines now get relative cell widths (#2471).
12497 If a pipe table contains a line longer than the column width (as set by
12498 `--columns` or 80 by default), relative widths are computed based on the
12499 widths of the separator lines relative to the column width. This should
12500 solve persistent problems with long pipe tables in LaTeX/PDF output, and
12501 give more flexibility for determining relative column widths in other
12502 formats, too. For narrower pipe tables, column widths of 0 are used,
12503 telling pandoc not to specify widths explicitly in output formats that
12504 permit this.
12505 + Improved parser for `mmd_title_block`. We now allow blank metadata
12506 fields. These were explicitly disallowed before.
12507 + Citation keys can now contain `://`, so URLs and DOIs can be used
12508 as citation keys (jgm/pandoc-citeproc#166).
12510 * Beamer template: fix incompatibility of section slides with natbib.
12511 Natbib (and presumably biblatex) bibliography commands create
12512 their own section. Since these are in frame environments,
12513 we have an incompatibility with the `\AtBeginSection` macro
12514 which creates a special frame when a new section occurs.
12515 (We can't have a frame inside another frame.) This change disables
12516 `\AtBeginSection` inside bibliography slides. Thinks to Yihui Xie for
12517 bringing the problem to my attention. This supersedes #145. See
12518 discussion there.
12520 * Textile reader: don't do smart punctuation unless explicitly asked
12521 (#2480). Note that although smart punctuation is part of the textile
12522 spec, it's not always wanted when converting from textile
12523 to, say, Markdown. So it seems better to make this an option.
12525 * LaTeX reader: Handle `comment` environment (Arata Mizuki).
12526 The `comment` environment is handled in a similar way to the
12527 `verbatim` environment, except that its content is discarded.
12529 * Docx reader: Follow relationships correctly in foot/endnotes (#2258,
12530 Jesse Rosenthal). This fixes a problem with links in notes.
12532 * LaTeX and ConTeXt writers: support `lang` attribute on divs and spans
12533 (mb21). For LaTeX, also collect `lang` and `dir` attributes on spans and
12534 divs to set the `lang`, `otherlangs` and `dir` variables if they aren’t set
12535 already. See #895.
12537 * LaTeX writer:
12539 + Use proper command for `\textarabic` (mb21).
12540 + Added `de-CH-1901`, fixed `el-polyton` in `toPloyglossia` (Nick Bart).
12541 + Use `\hypertarget` and `\hyperlink` for links. This works correctly
12542 to link to Div or Span elements. We now don't bother defining `\label`
12543 for Div or Span elements. Closes jgm/pandoc-citeproc#174.
12544 + Avoid footnotes in list of figures (#1506).
12545 + Properly handle footnotes in captions (#1506).
12546 + Add `\protect` to `\hyperlink` (#2490). Thanks to Hadrien Mary.
12547 + Set `colorlinks` if `linkcolor`, `urlcolor`, `citecolor`, or
12548 `toccolor` is set (#2508).
12550 * Textile writer: support start number in ordered lists (#2465).
12552 * OpenDocument writer: Allow customization of opendocument
12553 automatic styles. Automatic styles can now be inserted in the
12554 template, which now provides the enclosing `<office:automatic-styles>`
12555 tags (#2520).
12557 * Docx writer: insert space between footnote reference and note (#2527).
12558 This matches Word's default behavior.
12560 * EPUB writer: don't download linked media when `data-external` attribute
12561 set (#2473). By default pandoc downloads all linked media and includes it
12562 in the EPUB container. This can be disabled by setting `data-external` on
12563 the tags linking to media that should not be downloaded. Example:
12565 <audio controls="1">
12566 <source src="http://www.sixbarsjail.it/tmp/bach_toccata.mp3"
12567 type="audio/mpeg"></source>
12568 </audio>
12570 * HTML writer: use width on whole table if col widths sum to < 100%.
12571 Otherwise some browsers display the table with the columns
12572 separated far apart.
12574 * AsciiDoc template: Fix `author` and `date`; add `keywords`,
12575 `abstract` (Andrew Dunning).
12577 * HTML-based templates (Andrew Dunning):
12579 + Use en dash instead of hyphen between title prefix and title.
12580 + Add `keywords` to metadata.
12581 + Add `lang`, `dir`, `quotes` where missing.
12582 + Always make author and date display conditional.
12583 + Updated dzslides template from source.
12585 * Man template: make "generated by" comment conditional.
12587 * LaTeX, Beamer templates:
12589 + Add `babel-otherlangs` for language divs/spans; `babel-newcommands`,
12590 filled by commands that make babel understand the polyglossia-style
12591 language directives (mb21, #137).
12592 + Improved formatting of conditionals; `$for$` is always provided to allow
12593 multiple options (Andrew Dunning, #141).
12594 + Use `Ligatures=TeX` rather than `Mapping=tex-text` with `fontspec`
12595 to improve support for LuaTeX (Andrew Dunning, #135).
12596 + Revise `hyperref` usage (Andrew Dunning, #139, #141):
12597 - use same options for all LaTeX engines;
12598 - add `subtitle` and `keywords` to PDF metadata;
12599 - do not override `hyperref` link coloring without user input, effectively making
12600 the `hidelinks` option the default (removed as a separate variable);
12601 - link colors can be enabled (using a slightly darker version of the old
12602 defaults) using a new `colorlinks` variable, automatically used by
12603 the LaTeX writer when custom colors are specified;
12604 - `pdfborder={0 0 0}` is automatically set by `hyperref` with
12605 `colorlinks`, and is only applied if `colorlinks` is disabled.
12607 * ConTeXt template (Andrew Dunning):
12609 + New variables for controlling styles: `linkstyle`, `linkcolor`,
12610 `linkcontrastcolor`, `layout`, `pagenumbering`, `whitespace`, `indenting`,
12611 `interlinespace`, `headertext`, `footertext`, `mainfont`, `sansfont`,
12612 `monofont`, `mathfont`, `fontsize`.
12613 + Default template no longer supports MkII.
12614 + Improve writing of title block (suppressing numbering of first page).
12615 + Add `title` `subtitle`, `author`, `date`, `keywords` to PDF metadata.
12616 + Support `subtitle`, `abstract`.
12617 + Support list of figures (`lof`), list of tables (`lot`).
12618 + Disable link styling by default.
12619 + Define styles for all section types.
12620 + Enable microtype.
12621 + Improved formatting of conditionals.
12623 * Beamer template: added code to prevent slide breaks inside paragraphs
12624 (#2422, thanks to Nick Bart). This will matter, in practice, only when
12625 `allowframebreaks` is used. It is especially helpful for bibliography
12626 slides.
12628 * OpenDocument template: Add `<office:automatic-styles>` tag around
12629 automatic styles. The writer now longer provides this (see #2520).
12631 * Restored Text.Pandoc.Compat.Monoid.
12633 * Do not export (<>) from custom Prelude. The Prelude now matches
12634 base 4.8 Prelude's API.
12636 * Don't use custom prelude with ghc 7.10. Use the custom prelude
12637 only for earlier versions. This change makes `stack ghci` and
12638 `cabal repl` work (#2503), at least with ghc 7.10.
12640 * Changed § to % in operators from Odt.Arrows.Utils (#2457).
12641 This prevents problems building haddocks with "C" locale.
12643 * Change default for old-locale flag to False.
12645 * Use stack in deb, osx, and Windows package generators.
12647 * Added Vagrantfile for building deb in vm.
12648 This should help in automating binary package creation. 'make package'
12649 will make the package. 'make package COMMIT=blah' will make the package
12650 from commit blah.
12652 * README:
12654 + Consistent capitalization for pandoc and Markdown.
12655 + Fixed `auto_identifiers` examples (Benoit Schweblin).
12656 + Improved documentation of template variables (Andrew Dunning).
12658## pandoc 1.15.1 (2015-10-15)
12660 * `pandocVersion` is now defined in `Text.Pandoc.Shared`
12661 and reexported from `Text.Pandoc` (Alex Vong). This allows
12662 writers to access it. (Alex Vong) (API change)
12664 * For `markdown_mmd`, add: `implicit_figures`, `superscripts`,
12665 `subscripts` (#2401).
12667 * Added `odt` as input format (MarLinn). Added new module
12668 `Text.Pandoc.Reader.ODT` (API change). Fully implemented features:
12669 Paragraphs, Headers, Basic styling, Unordered lists, Ordered lists,
12670 External Links, Internal Links, Footnotes, Endnotes, Blockquotes.
12671 Partly implemented features: Citations, Tables.
12673 * Markdown Reader:
12675 + Add basic tests for each header style (Ophir Lifshitz).
12676 + Add implicit header ref tests for headers with spaces (Ophir Lifshitz).
12677 + Skip spaces in headers (Ophir Lifshitz).
12678 + Handle 'id' and 'class' in parsing key/value attributes (#2396).
12679 `# Header {id="myid" class="foo bar"}`
12680 is now equivalent to `# Header {#myid .foo .bar}`.
12681 + Use '=' instead of '#' for atx-style headers in markdown+lhs.
12682 (Kristof Bastiaensen)
12683 + Pipe tables: allow indented columns. Previously the left-hand column
12684 could not start with 4 or more spaces indent. This was inconvenient
12685 for right-aligned left columns. Note that the first (header column)
12686 must still have 3 or fewer spaces indentation, or the table will be
12687 treated as an indented code block.
12688 + Fix regression: allow HTML comments containing `--`.
12689 Technically this isn't allowed in an HTML comment, but
12690 we've always allowed it, and so do most other implementations.
12691 It is handy if e.g. you want to put command line arguments
12692 in HTML comments.
12694 * LaTeX reader:
12696 + Don't eat excess whitespace after macros with only optional
12697 arguments (#2446).
12698 + Support longtable (#2411).
12699 + Implement `\Cite` (#2335).
12700 + Support abstract environment. The abstract populates an
12701 `abstract` metadata field.
12702 + Properly handle booktabs lines. Lines aren't part of the
12703 pandoc table model, so we just ignore them (#2307).
12705 * HTML reader:
12707 + Handle type attribute on ol, e.g. `<ol type="i">` (#2313).
12708 + Updated for new automatic header attributes.
12709 + Add auto identifiers if not present on headers. This makes
12710 TOC linking work properly.
12711 + Detect `font-variant` with `pickStyleAttrProps` (Ophir Lifshitz).
12712 + Test `<ol>` type, class, and inline list-style(-type) CSS
12713 (Ophir Lifshitz).
12714 + Better handling of "section" elements (#2438). Previously
12715 `<section>` tags were just parsed as raw HTML blocks. With
12716 this change, section elements are parsed as Div elements with
12717 the class "section".
12719 * MediaWiki reader: handle unquoted table attributes (#2355).
12721 * DocBook reader:
12723 + Added proper support for DocBook `xref` elements (Frerich Raabe).
12724 Added `dbContent` field to reader state, so we can lookup
12725 cross refs.
12726 + Handle `informalexample` (#2319).
12728 * Docx Reader:
12730 + Create special punctuation test (Ophir Lifshitz).
12731 + Parse soft, no-break hyphen elements (Ophir Lifshitz).
12732 + Updated headers test (Ophir Lifshitz). Replaced `styles.xml`
12733 in `headers.docx` with pandoc's current `styles.xml`, which
12734 contains styles for Heading 1 through 6. Added Heading 4
12735 through 7 to the test document. Note that Heading 7 is not
12736 parsed as a Heading because there is no Heading 7 style.
12738 * RST reader: better handling of indirect roles.
12739 Previously the parser failed on this kind of case
12741 .. role:: indirect(code)
12743 .. role:: py(indirect)
12744 :language: python
12746 :py:`hi`
12748 Now it correctly recognizes `:py:` as a code role.
12750 * Org reader:
12752 + Add auto identifiers if not present on headers
12753 (#2354, Juliusz Gonera).
12754 + Allow verse blocks to contain empty lines (#2402,
12755 Albert Krewinkel).
12757 * EPUB reader: stop mangling external URLs (#2284).
12759 * RST writer:
12761 + Don't insert `\ ` when complex expression in matched pairs.
12762 E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
12763 + Ensure that `\ ` is inserted when needed before Cite and Span
12764 elements that begin with a "complex" element (jgm/pandoc-citeproc#157).
12765 + Normalize headers only in "standalone" mode (#2394).
12767 * Haddock writer: escape `*` and `^` (G. Bataille).
12769 * Markdown writer:
12771 + In TOC, add links to headers (#829).
12772 + Use unicode super/subscripts for digits in plain output
12773 (when the `superscripts` and `subscripts` extensions are
12774 not enabled).
12776 * Docx writer:
12778 + Moved invalid character stripping to `formattedString`.
12779 This avoids an inefficient generic traversal (#2356).
12780 + Use user data directory for `reference.docx` archive.
12781 This allows the test suite to work without installing pandoc first.
12782 It also brings the docx writer in line with the odt writer.
12783 + Tests: docx writer tests now use `../data` for data directory.
12784 This allows tests to be run without installing first.
12785 + Tests: Use real jpg (not empty) for docx tests to avoid warning.
12787 * LaTeX writer:
12789 + Fixed detection of 'chapters' from template.
12790 If a documentclass isn't specified in metadata, but the
12791 template has a hardwired bookish documentclass, act as if
12792 `--chapters` was used. This was the default in earlier
12793 versions, but it has been broken for a little while.
12794 + Correctly recognize book documentclass in metadata (#2395).
12795 + Set language-related variables automatically, depending
12796 on the value of the `lang` field, which is now always
12797 assumed to be in BCP47 format (mb21, #1614, #2437).
12798 + Add `\protect` to `\hyperdef` in inline context. This way we
12799 don't get an error when this is used as a moveable argument (#2136).
12800 + Support all frame attributes in Beamer.
12801 + Percent-encode more special characters in URLs (#1640, #2377).
12802 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
12804 * HTML writer:
12806 + Update KaTeX JS and CSS versions (Emily Eisenberg).
12807 + For dzslides, add `role="note"` for speaker notes (#1693).
12808 + Percent-encode more special characters in URLs (#1640, #2377).
12809 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
12810 + Render Div with class `section` as `<section>` in HTML5.
12812 * EPUB writer:
12814 + In TOC, replace literal `<br/>` with space (#2105).
12815 + With `--webtex`, include image file rather than `data:` URI (#2363).
12817 * Native writer: format Div properly, with blocks separated.
12819 * Support bidirectional text output with XeLaTeX, ConTeXt and HTML
12820 (#2191, mb21).
12822 * Reference Docx:
12824 + Add missing Header 6 style (steel blue) (Ophir Lifshitz).
12825 + Correct `outlineLvl` for Header styles (Ophir Lifshitz).
12827 * Templates
12829 + Beamer: Add `innertheme`, `outertheme` variables
12830 (Guilhem Bonnefille, #121). Add space after colon in figure caption.
12831 Integrate recent font and language updates from LaTeX template;
12832 allow use of `mainfont` variable for changing the slide text
12833 in XeTeX and LuaTeX (Andrew Dunning, #131).
12834 + LaTeX: Add `mainfontoptions`, `sansfontoptions`,
12835 `monofontoptions`, `mathfontoptions`, `fontfamilyoptions`
12836 (Andrew Dunning, #122). Support handling of bidirectional
12837 text (mb21, #120). Improve reliability of superscripts/subscripts
12838 under XeTeX and prevent letters and numbers from appearing on a
12839 different baseline by removing use of the `realscripts` package
12840 (via `xltxtra`). To restore use of OpenType characters for these
12841 features under XeTeX or LuaTeX, add `\usepackage{realscripts}` to
12842 `header-includes` (Andrew Dunning, #130). Remove redundant
12843 reference to `xunicode` (Andrew Dunning, #130). Add `fontenc`,
12844 `indent`, `subparagraph` variables (Andrew Dunning).
12845 Allow use of `hidelinks` variable for `hyperref` package (Hugo Roy,
12846 #113). Prevent package clash with `tufte-latex` and other classes that
12847 include `hyperref` or `color` (Xavier Olive, #115).
12848 + ConTeXt: Support handling of bidirectional text (mb21, #120).
12849 + LaTeX and ConTeXt: Use more specific language variables.
12850 Instead of directly using `lang`, we now use `babel-lang` and
12851 `polyglossia-lang` and `context-lang`. These variables are set by
12852 the writers to the necessary values, based on the `lang` variable
12853 (which now always takes a value in BCP47 format). (mb21, #114, #129).
12854 + HTML: Support handling of bidirectional text (mb21, #120).
12855 Move HTML5 shiv after CSS and fix URL (Andrew Dunning).
12856 Add dir attribute in html5 (Andrew Dunning).
12857 + reveal.js: Add `controls`, `progress` variables (Grégoire Pineau, #127).
12858 Add `width`, `height` variables (Anrew Dunning). Update template
12859 from 3.1 source (Andrew Dunning). All configuration options are now
12860 available as variables, but are only be included if set (reveal.js
12861 uses defaults otherwise).
12862 + man: Added comment stating that the page is autogenerated by pandoc,
12863 giving version. Added `adjusting` and `hyphenate` variables
12864 (Alex Vong, #123).
12866 * epub.css: added selectors for nested emphasis (Pablo Rodriguez).
12868 * MediaBag: ensure that `/` is always used as path separator.
12870 * `sample.lua`: define `CaptionedImage`, add newline at end (#2393).
12872 * Added `--bash-completion` option. This generates a bash completion
12873 script. To use: `eval "$(pandoc --bash-completion)"`.
12875 * Text.Pandoc.Error: Define Typeable and Exception instances
12876 for PandocError (#2386).
12878 * Text.Pandoc.Parsing: `toKey`: strip off outer brackets.
12879 This makes keys with extra space at the beginning and end
12880 work: e.g.
12882 [foo]: bar
12884 [ foo ]
12886 will now be a link to bar (it wasn't before).
12888 * Text.Pandoc: disable `auto_identifiers` for epub.
12889 The epub writer inserts its own auto identifiers;
12890 this is more complex due to splitting into "chapter" files.
12892 * Renamed Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time.
12893 It now reexports Data.Time.
12895 * Use custom Prelude to avoid compiler warnings.
12897 + The (non-exported) prelude is in prelude/Prelude.hs.
12898 + It exports Monoid and Applicative, like base 4.8 prelude,
12899 but works with older base versions.
12900 + It exports (<>) for mappend.
12901 + It hides 'catch' on older base versions.
12903 * Added a `stack.ymal` and stack install instructions to INSTALL.
12905 * Clarified what is "out of scope" in README and CONTRIBUTING.md.
12907 * Added note to CONTRIBUTING.md about ghc versions and travis.
12909 * Clarify docs on block quotes. The space after `>` is optional (#2346).
12911 * Removed obsolete reference to default.csl (#2372).
12913 * List all styles in manual for `--reference-docx` (Chris Black)
12915 * Don't capitalize header links in man page.
12917 * Added section on repl to CONTRIBUTING.md.
12919 * README: Added space after backslash in image example (#2329).
12921 * Document details of citation locator terms (Nick Bart).
12923 * Fixed some internal links in README (#2309).
12925 * Improve CSL documentation, variables documentations,
12926 links, and cross-references in README. (Andrew Dunning)
12928 * Fix build failure with `--flags=-https` (Sergei Trofimovich).
12930 * Use `newManager` instead of `withManager` in recent `http-client`.
12931 This avoids a deprecation warning.
12933 * Allow building with latest versions of http-types,
12934 HUnit, criterion, syb, aeson.
12936 * Updated benchmark program for new criterion API.
12938 * Setup.hs: rewrite so as not to use process, directory, filepath.
12939 Using anything outside base is dangerous, since older
12940 versions of ghc may link against two different versions.
12942 * Added appveyor (Windows continuous integration) builds.
12944 * New `.travis.yml`. Autgenerated using `make_travis_yml.hs`.
12945 This script has been modified in a few ways, e.g. to add `GHCOPTS`.
12946 `make .travis.yml` regenerates it based on the tested-with
12947 field of the cabal file.
12949## pandoc 1.15.0.6 (2015-07-15)
12951 * `--self-contained`: Fixed overaggressive CSS minimization
12952 (#2301, 2286). Previously `--self-contained` wiped out all
12953 spaces in CSS, including semantically significant spaces.
12954 This was a regression from 1.14.x.
12956 * Markdown reader: don't allow bare URI links or autolinks in link
12957 label (#2300). Added test cases.
12959 * `Text.Pandoc.Parsing`, `uri`: Improved bare autolink detection (#2299).
12960 Previously we disallowed `-` at the end of an autolink,
12961 and disallowed the combination `=-`. This commit liberalizes the
12962 rules for allowing punctuation in a bare URI, and adds test cases.
12963 One potential drawback is that you can no longer put a bare
12964 URI in em dashes like this:
12965 `this uri---http://example.com---is an example.`
12966 But in this respect we now match github's treatment of bare URIs.
12968 * HTML writer: support speaker notes in dzslides.
12969 With this change `<div class="notes">` and also `<div class="notes"
12970 role="note">` will be output if `-t dzslides` is used. So we can
12971 have speaker notes in dzslides too. Thanks to maybegeek.
12973 * Updated dzslides template.
12975 * Improved documentation of options to print system default files (#2298).
12976 `--print-default-data-file` and `--print-default-template`.
12978 * DokuWiki writer: use `$..$` for Math instead of `<math>..</math>`
12979 (Tiziano Müller). MathJax seems currently to be the only maintained
12980 math rendering extension for DokuWiki.
12982 * `Text.Pandoc.Shared`: Changed `hierarchicalize` so it treats references
12983 div as top-level header (#2294). This fixes a bug with `--section-divs`,
12984 where the final references section added by pandoc-citeproc, enclosed in
12985 its own div, got nested in the div for the section previous to it.
12987 * Allow vector 0.11.
12989 * Require cmark > 0.4.
12991## pandoc 1.15.0.5 (2015-07-10)
12993 * HTML writer: Fixed email javascript obfuscation with `mailto:`
12994 URLs (#2280). This fixes a potential security issue. Because
12995 single quotes weren't being escaped in the link portion, a
12996 specially crafted email address could allow javascript code injection.
12998 * RST reader: allow inline formatting in definition list field
12999 names (Lars-Dominik Braun).
13001 * PDF: Make sure `--latex-engine-opt` goes before the filename
13002 on the command line. LaTeX needs the argument to come after
13003 the options (#1779).
13005 * CommonMark writer: fixed tags used for super/subscript.
13007 * ConTeXt template: activate hanging indent for definition lists
13008 (mb21).
13010 * Make cabal require `hsb2hs` >= 0.3.1 if `embed_data_files` specified.
13011 This is done by adding `hookedPrograms` in `Setup.hs`, which allows us
13012 to include `hsb2hs` in Build-Tools in cabal.
13014 * Improved Windows installer (thanks to nkalvi).
13016 + When per-machine installation is chosen, the system path
13017 is updated instead of the user's.
13018 + An appropriate default is used for per-machine installation
13019 directory.
13020 + Admin privileges are no longer required for a per-user install
13022 * Travis: unpack sdist for build to catch packaging bugs.
13024 * Improved documentation on where user templates go (#2272).
13026## pandoc 1.15.0.4 (2015-07-03)
13028 * Added pandoc.1 man page to the repository. It is no longer
13029 built as part of the cabal build process. (This proved too
13030 fragile.) pandoc.1 can be regenerated (`make man/pandoc.1`)
13031 when `README` is changed.
13033 * Copying of the man page now respects `--destdir` (#2262).
13035 * Improved error messages for filters. User is now informed if
13036 the filter requires an interpreter that isn't found in the path,
13037 or if the filter returns an error status.
13039## pandoc 1.15.0.3 (2015-07-02)
13041 * Ensure target directory is created when installing man page.
13043## pandoc 1.15.0.2 (2015-07-02)
13045 * Added files needed for building man page to Extra-Source-Files.
13047## pandoc 1.15.0.1 (2015-07-01)
13049 * Man page is now built and installed as part of the cabal build
13050 process. Removed Makefile target for man page.
13052## pandoc 1.15 (2015-07-01)
13054 * Man page changes:
13056 + Removed `--man1`, `--man5` options (breaking change).
13057 + Removed `Text.Pandoc.ManPages` module (breaking API change).
13058 + Makefile target for `man/man1/pandoc.1`. This uses pandoc to
13059 create the man page from README using a custom template and filters.
13060 + Added `man/` directory with template and filters needed to build
13061 man page.
13062 + We no longer have two man pages: `pandoc.1` and `pandoc_markdown.5`.
13063 Now there is just pandoc.1, which has all the content from README.
13064 This change was needed because of the extensive cross-references
13065 between parts of the README.
13066 + Removed old `data/pandoc.1.template` and
13067 `data/pandoc_markdown.5.template`.
13069 * OpenDocument writer: Do not add a carriage return after a hard
13070 line break (Michael Chladek).
13072 * ConTeXt writer:
13074 + use `\goto` for internal links.
13075 + Added a `%` at end for `\reference` to avoid spurious space.
13077 * Ignore sandbox on 'make quick'
13079## pandoc 1.14.1 (2015-06-30)
13081 * Added `--man1` and `--man5` options to pandoc, allowing
13082 pandoc to generate its own man pages. Man pages are no longer
13083 automatically generated in the build process (the process for
13084 this was too complex and prone to failure, #2190). The
13085 `make-pandoc-man-pages` executable has been removed. The
13086 `man/` directory has been removed, and man page templates
13087 have been moved to `data/`. NOTE TO PACKAGERS: You will no
13088 longer find pandoc's man pages in `man/`, but you can
13089 generate them using `pandoc --man1 > pandoc.1` and `pandoc
13090 --man5 > pandoc_markdown.5`.
13092 * Added new unexported module: `Text.Pandoc.ManPages`.
13094 * `README` now acts like a data file (even though it isn't in
13095 `data/`). So, for example, `pandoc --print-default-data-file README`
13096 will produce the README.) This change was required for the `--man1`
13097 and `--man5` options, since the man pages are produced from the
13098 README, but it may be useful for other purposes as well.
13100 * Allow `reference.docx` and `reference.odt` to be used with
13101 `--print-default-data-file` and to shadow defaults if placed in
13102 the user data directory. Note that as of 1.14, we no longer
13103 include these files as data files; instead, we include their
13104 components. This change causes pandoc to behave as if it has
13105 these data files; they are constructed on demand when needed
13106 using `getDefaultReferenceDocx` and `getDefaultReferenceODT`.
13108 * Fixed regression in CSS parsing with `--self-contained` (#2224).
13109 Pandoc 1.14.0.x used css-text to parse the CSS, but its parser
13110 silently drops big sections of CSS. This commit replaces the
13111 use of css-text with a small but principled CSS preprocessor,
13112 which removes whitespace and comments and replaces `url()` with
13113 base 64 data when possible.
13115 * Use `https://` instead of `//` for MathJax and KaTeX CDN URLs (#1920).
13116 This will allow math to work when pages are being viewed locally.
13118 * `Text.Pandoc.Options`: Export `plainExtensions`.
13119 These are the extensions used in `plain` output.
13121 * LaTeX reader: Don't parse `_` and `^` as sub/superscript outside of
13122 math mode; treat them as regular inline text. Normally these will
13123 cause an error in LaTeX, but there are contexts (e.g. `alltt`
13124 environments) where they are allowed.
13126 * HTML reader: allow `<body>` to close `<head>`.
13128 * DocBook reader: support `mediaobject`s and `figures` (#2184, mb21).
13130 * RST reader: Fix reference names with special characters
13131 (Lars-Dominik Braun).
13133 * Textile writer: escape `+` and `-` as entities (#2225).
13135 * DokuWiki writer: Use proper `<code>` tags for code blocks (#2213).
13137 * Plain writer: don't use symbols for super/subscript (#2237).
13138 Simplified code by using `plainExtensions`.
13140 * InDesign writer: Properly escape URLs containing more than one
13141 colon character (gohai).
13143 * Docx writer: Make sure we use dist version of `reference.docx`
13144 (and not the user's version) for certain settings. Taking some
13145 settings values from a user-supplied reference.docx can lead to
13146 corruption. This fixes a regression from the last release (#2249).
13148 * `Text.Pandoc.Shared`: exports `getDefaultReferenceDocx` and
13149 `getDefaultReferenceODT` (API change). These functions have been
13150 removed from the Docx and ODT writers.
13152 * LaTeX template (Xavier Olive):
13153 + Added `CJKmainfont` and `CJKoptions` variables.
13154 + Allow dvipsnames (e.g. `MidnightBlue`) for colors (Xavier Olive).
13156 * Epub templates: use `author.role`, not `author.type`.
13158 * Bump cmark version to >= 0.3.4.
13160 * Improved Windows installer (#2205, thanks to nkalvi).
13161 Users can now select a per-user or systemwide install, and can set
13162 the installation path. At the end of installation, the install location
13163 is given. The install location is also now given in the list of
13164 installed programs in Control Panel. Cleaner WiX syntax is used for
13165 setting the path.
13167 * Added `download_stats` target to Makefile.
13169## pandoc 1.14.0.4 (2015-06-02)
13171 * Added missing commonmark template.
13173 * Improved try pandoc (moved button, show raw command).
13175## pandoc 1.14.0.3 (2015-06-01)
13177 * Allow compilation with syb 0.5.*.
13179 * Custom writer: fixed some compiler warnings for ghc < 7.10.
13181## pandoc 1.14.0.2 (2015-05-31)
13183 * Allow building with hslua 0.4.
13185## pandoc 1.14.0.1 (2015-05-28)
13187 * Fixed problem with building of `reference.docx` and `reference.odt`
13188 when the `embed_data_files` flag is used. Instead of having a phase
13189 of the build where `reference.docx` and `reference.odt` are created
13190 from their constituent data files, we now construct these archives
13191 from their constituents when a `docx` or `odt` is built. The
13192 constituent files have been moved from `extra-source-files` to
13193 `data-files`, and `reference.docx` and `reference.odt` have been
13194 removed. Users can create their own `reference.docx` or
13195 `reference.odt` by using pandoc to create a simple `docx` or `odt`.
13196 `make-reference-files.hs` has been removed, simplifying the build
13197 process (#2187)
13199 * Don't include generated man pages in extra-source-files (#2189).
13201 * Bumped upper bound for aeson.
13203 * ConTeXt writer: create internal link anchors for Div elements with
13204 identifiers. (This is needed for linked citations to work.)
13206## pandoc 1.14 (2015-05-27)
13208### New features
13210 * Added `commonmark` as input and output format.
13212 * Added `--verbose` flag for debugging output in PDF production (#1840,
13213 #1653).
13215 * Allow wildcards in `--epub-embed-font` arguments (#1939).
13217 * Added `--latex-engine-opt` option (#969, #1779, Sumit Sahrawat).
13219 * Added `shortcut_reference_links` extension (Konstantin Zudov, #1977).
13220 This is enabled by default for those markdown flavors that
13221 support reading shortcut reference links, namely: `markdown`,
13222 `markdown_strict`, `markdown_github`, `markdown_php`.
13223 If the extension is enabled, the reader parses shortcut reference
13224 links like `[foo]`, and the writer creates such links unless doing
13225 so would cause problems. Users of markdown flavors that support
13226 shortcut reference links should not notice a difference in reading
13227 markdown, but the markdown pandoc produces may differ.
13228 If shortcut links are not desired, the extension can be disabled
13229 in the normal way.
13231### Behavior changes
13233 * `--toc` is now supported for `docx` output (#458, Nikolay Yakimov).
13234 A "dirty" TOC is created at the beginning of document.
13235 It can be regenerated after the document has been opened.
13237 * An implicit `--filter pandoc-citeproc` is now triggered only when the
13238 `--bibliography` option is used, and not when the `bibliography`
13239 field in metadata is specified (#1849).
13241 * Markdown reader:
13243 + Reference links with `implicit_header_references` are no longer
13244 case-sensitive (#1606).
13245 + Definition lists no longer require indentation for first line (#2087).
13246 Previously the body of the definition (after the `:` or `~` marker)
13247 needed to be in column 4. This commit relaxes that requirement,
13248 to better match the behavior of PHP Markdown Extra. So, now
13249 this is a valid definition list:
13251 foo
13252 : bar
13253 + Resolve a potentially ambiguity with table captions:
13255 foo
13257 : bar
13259 -----
13260 table
13261 -----
13263 Is "bar" a definition, or the caption for the table? We'll count
13264 it as a caption for the table.
13265 + Disallow headerless pipe tables (#1996), to conform to GFM and PHP
13266 Markdown Extra. Note: If you have been using headerless pipe tables,
13267 this change may cause existing tables to break.
13268 + Allow pipe tables with header but no body (#2017).
13269 + Allow a digit as first character of a citation key (Matthias Troffaes).
13270 See https://github.com/jgm/pandoc-citeproc/issues/97
13272 * LaTeX reader:
13274 + Don't limit includes to `.tex` extension (#1882).
13275 If the extension is not `.tex`, it must be given explicitly in
13276 the `\input` or `\include`.
13278 * Docx reader:
13280 + Allow numbering in the style file. This allows inherited styles
13281 with numbering (lists) (Jesse Rosenthal).
13283 * Org reader:
13285 + Support smart punctuation (Craig Bosma).
13286 + Drop trees with a :noexport: tag (Albert Krewinkel). Trees having a
13287 `:noexport:` tag set are not exported. This mirrors org-mode.
13288 + Put header tags into empty spans (Albert Krewinkel, #2160).
13289 Org mode allows headers to be tagged: `* Headline :TAG1:TAG2`.
13290 Instead of being interpreted as part of the headline, the tags are now
13291 put into the attributes of empty spans. Spans without textual content
13292 won't be visible by default, but they are detectable by filters. They
13293 can also be styled using CSS when written as HTML.
13294 + Generalize code block result parsing (Albert Krewinkel).
13295 Previously, only code blocks were recognized as result blocks;
13296 now, any kind of block can be the result.
13298 * Append newline to the LineBreak in Dokuwiki, HTML, EPUB,
13299 LaTeX, MediaWiki, OpenDocument, Texinfo writers (#1924, Tim Lin).
13301 * HTML writer:
13303 + Add "inline" or "display" class to math spans (#1914).
13304 This allows inline and display math to be styled differently.
13305 + Include raw latex blocks if `--mathjax` specified (#1938).
13306 + Require highlighting-kate >= 0.5.14 (#1903).
13307 This ensures that all code blocks will be wrapped in a `div`
13308 with class `sourceCode`. Also, the default highlighting CSS
13309 now adds `div.sourceCode { x-overflow: auto; }`, which means
13310 that code blocks (even with line numbers) will acquire a scroll
13311 bar on screens too small to display them (e.g. mobile phones).
13312 See also jgm/highlighting-kate#65.
13314 * LaTeX writer:
13316 + Use a declaration for tight lists (Jose Luis Duran, Joseph
13317 Harriott). Previously, pandoc hard-coded some commands to make
13318 tight lists in LaTeX. Now we use a custom command instead,
13319 allowing the styling to be changed in a macro in the header.
13320 (Note: existing templates may need to be modified to include
13321 the definition of this macro. See the current template.)
13322 + Beamer output: if the header introducing a slide has the
13323 class `fragile`, add the `[fragile]` option to the slide (#2119).
13325 * MediaWiki writer:
13327 + Use `File:` instead of the deprecated `Image:` for images and
13328 other media files (Greg Rundlett).
13330 * DocBook writer:
13332 + Render a `Div (id,_,_) [Para _]` element as a `para` element
13333 with an `id` attribute. This makes links to citations work in
13334 DocBook with pandoc-citeproc.
13336 * RST writer:
13338 + Normalize headings to sequential levels (Nikolay Yakimov).
13339 This is pretty much required by docutils.
13340 + Treat headings in block quotes, etc as rubrics (Nikolay Yakimov).
13341 + Better handling of raw latex inline (#1961). We use
13342 `` :raw-latex:`...` `` and add a definition for this role to
13343 the template.
13345 * EPUB writer:
13347 + Remove `linear=no` from cover `itemref` (#1609).
13348 + Don't use `sup` element for epub footnotes (#1995).
13349 Instead, just use an a element with class `footnoteRef`.
13350 This allows more styling options, and provides better results
13351 in some readers (e.g. iBooks, where anything inside the a
13352 tag breaks popup footnotes).
13353 + Take TOC title from `toc-title` metadata field.
13355 * Docx writer:
13357 + Implemented `FirstParagraph` style (Jesse Rosenthal).
13358 Following the ODT writer, we add the `FirstParagraph` style to the
13359 first text paragraph following an image, blockquote, table, heading,
13360 or beginning of document. This allows it to be styled differently.
13361 The default is for it to be the same as `Normal`.
13362 + Added `BodyText` style (Jesse Rosenthal).
13363 We apply a `BodyText` style to all unstyled paragraphs. This is,
13364 essentially, the same as `Normal`, except that since not everything
13365 inherits from `BodyText` (the metadata won't, for example, or
13366 the headers or footnote numbers), we can change the text in the body
13367 without having to make exceptions for everything. If we do want to
13368 change *everything*, we can still do it through `Normal`.
13369 + Altered `Blockquote` style slightly (Jesse Rosenthal).
13370 Since `BlockQuote` derives from `BodyText`, we just want to specify
13371 by default that it won't indent, regardless of what `BodyText` does.
13372 Note that this will not produce any visible difference in the default
13373 configuration.
13374 + Take TOC title from `toc-title` metadata field (Nikolay Yakimov).
13375 + Added a style to figure images (Nikolay Yakimov).
13376 Figures with empty captions use style `Figure`.
13377 Figures with nonempty captions use style `Figure with Caption`, which
13378 is based on `Figure`, and additionally has `keepNext` set.
13380 * ODT writer:
13382 + Added figure captions (Nikolay Yakimov). The following styles are
13383 used for figures:
13384 `Figure` -- for figure with empty caption),
13385 `FigureWithCaption` (based on `Figure`) -- for figure with caption,
13386 `FigureCaption` (based on `Caption`) -- for figure captions.
13387 Also, `TableCaption` (based on `Caption`) is used for table captions.
13389### API changes
13391 * New `Text.Pandoc.Error` module with `PandocError` type
13392 (Matthew Pickering).
13394 * All readers now return `Either PandocError Pandoc` instead of `Pandoc`
13395 (Matthew Pickering). This allows better handling of errors.
13397 * Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
13399 * Added `Text.Pandoc.Readers.CommonMark`, exporting `readCommonMark`.
13401 * Derive `Data` and `Typeable` instances for `MediaBag`, `Extension`,
13402 `ReaderOptions`, `EPUBVersion`, `CiteMethod`, `ObfuscationMethod`,
13403 `HTMLSlideVariant`, `TrackChanges`, `WriterOptions` (Shabbaz
13404 Youssefi).
13406 * New `Ext_shortcut_reference_links` constructor for `Extension`
13407 (Konstantin Zudov).
13409### Bug fixes
13411 * Markdown reader:
13413 + Allow smart `'` after inline math (#1909, Nikolay Yakimov).
13414 + Check for tex macros after indented code (#1973).
13415 + Rewrote `charsInBalancedBrackets` for efficiency.
13416 + Make sure a closing `</div>` doesn't get included in a
13417 definition list item (#2127).
13418 + Don't parse bracketed text as citation if it might be a link,
13419 image, or footnote (Nikolay Yakimov).
13420 + Require space after key in mmd title block (#2026, Nikolay
13421 Yakimov). Require space after key-value delimiter colon in mmd title
13422 block.
13423 + Require nonempty value in mmd title block (Nikolay Yakimov).
13424 + Disable all metadata block extensions when parsing
13425 metadata field values (#2026, Nikolay Yakimov). Otherwise we
13426 could get a mmd title block inside YAML metadata, for example.
13428 * HTML reader:
13430 + Improve self-closing tag detection in `htmlInBalanced` (#2146).
13431 + Handle tables with `<th>` in body rows (#1859, mb21).
13432 + Fixed `htmlTag` (#1820). If the tag parses as a comment, we check
13433 to see if the input starts with `<!--`. If not, it's bogus comment
13434 mode and we fail `htmlTag`.
13435 + Handle `base` tag; if it has an `href` value, this is added to
13436 all relative URLs in links and images.
13438 * DocBook reader:
13440 + Look inside "info" elements for section titles (#1931).
13442 * Docx reader:
13444 + Parse images in deprecated vml format (Jesse Rosenthal).
13445 + Allow sub/superscript verbatims (Jesse Rosenthal).
13446 Verbatim usually shuts off all other run styles, but we don't want it
13447 to shut off sub/superscript.
13449 * LaTeX reader:
13451 + Handle `tabular*` environment (#1850).
13452 Note that the table width is not actually parsed or taken into
13453 account, but pandoc no longer chokes on it.
13454 + Ignore options in `\lstinline` rather than raising error (#1997).
13455 + Add some test cases for simple tables (Mathias Schenner).
13456 + Handle valign argument in tables (Mathias Schenner) (currently
13457 we just ignore this).
13458 + Allow non-empty colsep in tables (Mathias Schenner).
13459 The `tabular` environment allows non-empty column separators
13460 with the "@{...}" syntax. Previously, pandoc would fail to
13461 parse tables if a non-empty colsep was present. With this
13462 commit, these separators are still ignored, but the table gets
13463 parsed. A test case is included.
13464 + Recognize `\newpage` as a block command.
13465 + Allow block content in `\title{}` (#2001).
13466 + Check for block-level newcommand aliases in blockCommand (Nikolay
13467 Yakimov).
13468 + Guard against paragraph starting with inline macro (Nikolay Yakimov).
13469 + Properly gobble spaces after `\\` (#2007).
13471 * Textile reader:
13473 + Handle newlines in table cells, and empty cells (#1919).
13475 * Org reader:
13477 + Allow image links with non-image targets (Hans-Peter Deifel).
13478 This matches behavior of Org-Mode for links like
13479 `[[http://example.com][https://www.haskell.org/static/img/logo.png]]`.
13481 * Docbook writer:
13483 + Don't print empty id attributes (thanks to Steve Horne).
13485 * HTML writer:
13487 + Fixed list-style-type for numbered example lists.
13488 Should be "decimal," not "example" (#1902).
13489 + Do not omit missing `alt` attribute on `img` tag (#1131,
13490 Konstantin Zudov).
13491 + Allow multiple colgroups in table (#2122).
13492 + In revealjs, ensure that lists in speaker notes don't add "fragment"
13493 classes, which can cause additional keypresses to be needed to
13494 advance a slide (#1394).
13496 * LaTeX writer:
13498 + Don't escape `$` in URL (#1913).
13499 + Don't use listings in headers (Matthew Pickering, #1963).
13500 + Recognize book documentclass if set in metadata (#1971).
13501 This sets `--chapters` implicitly if the documentclass in metadata
13502 is a book documentclass. Previously this was done only if a book
13503 documentclass was set in a variable.
13504 + Add a `\label` in `\hyperdef` for Div, Span (or links don't work).
13505 + Make `mainlang` work when `lang` is in metadata (#2174).
13507 * Texinfo writer:
13509 + Fix wrapping by using breakable spaces (Tim Lin).
13511 * RST writer:
13513 + Fixed toc depth in RST writer. Previously the depth was being
13514 rendered as a floating point number with a decimal point.
13516 * Markdown writer:
13518 + Improved escaping (#2086). `<` should not be escaped as `\<`, for
13519 compatibility with original Markdown. We now escape `<` and `>`
13520 with entities. Also, we now backslash-escape square brackets.
13521 + Avoid introducing spurious list items through wrapping (#1946).
13522 + Don't emit span tags if plain or raw HTML disabled.
13524 * MediaWiki writer:
13526 + Convert spaces to underscores in wikilink URL (#1982), like MediaWiki.
13528 * AsciiDoc writer:
13530 + Insert some needed blank lines (#1860).
13531 + Avoid wrapping after list marker (#1858).
13533 * EPUB writer:
13535 + Properly handle internal links to IDs in spans, divs (#1884).
13536 + Use plain writer for metadata dc: fields (#2121).
13537 This gives better results when we have, e.g. multiple paragraphs.
13538 Note that tags aren't allowed in these fields.
13539 + Properly handle image links without an extension (#1855).
13540 + Improved chapter splitting and internal link rewriting (#1887,
13541 #2162, #2163). This will ensure that internal links work and
13542 that the references section produced by pandoc-citeproc is
13543 in its own chapter.
13544 + Fixed handling of svg images (#2183).
13546 * ICML writer:
13548 + Better handling of raw blocks and inlines (#1951).
13549 Previously these were always escaped and printed verbatim.
13550 Now they are ignored unless the format is `icml`, in which
13551 case they are passed through unescaped.
13552 + Fixed image URIs in ICML output (gohai).
13554 * Custom writer:
13556 + Raise error if loadstring returns an error status.
13557 + Raise `PandocLuaException` instead of using 'error'.
13558 Eventually we'll change the return type so that no exception
13559 is involved, but at least this can be trapped.
13560 + Use UTF-8 aware bytestring conversion.
13561 + Set foreign encoding to UTF-8 (Nikolay Yakimov, #2101, #1634).
13562 Also factored out ByteString, since it's only used as an intermediate
13563 representation.
13565 * Docx writer:
13567 + Copy hyphenation settings from reference.docx (Nikolay Yakimov).
13568 + Filter out illegal XML characters (#1992, Matthew Pickering).
13569 + Added `noProof` to docx syntax highlighting `SourceCode` style.
13570 + Added footnotes id -1 and 0 (Jesse Rosenthal).
13571 Word uses, by default, footnotes with id -1 and 0 for separators. If a
13572 user modifies `reference.docx`, they will end up with a `settings.xml`
13573 file that references these footnotes, but no such footnotes in the
13574 document. This will produce a corruption error. Here we add these to the
13575 document and `settings.xml` file, so future modifications won't break
13576 the file.
13577 + Handle lists correctly inside table cells (Jesse Rosenthal).
13578 Previously we didn't transform lists inside table cells.
13579 + Set firstRow information in tables (Nikolay Yakimov).
13580 + Don't replace `SourceCode` style in `reference.docx` if it is defined
13581 there (Nikolay Yakimov, #1872). If `--no-highlight` specified, remove
13582 any `SourceCode` and `*Tok` styles in `reference.docx`.
13583 + Attempt to match international style names (#1607, Nikolay Yakimov).
13584 + Set these styles as custom (Nikolay Yakimov): `Author`, `Abstract`,
13585 `Compact`, `Image Caption`, `Table Caption`, `Definition Term`,
13586 `Definition`, `First Paragraph`.
13587 + Rename these styles to correspond with Word `Normal.dotm` (Nikolay
13588 Yakimov): `Block Quote -> Block Text`, `Link -> Hyperlink`,
13589 `Footnote Ref -> Footnote Reference`.
13590 + Added `Caption` style (Nikolay Yakimov).
13591 + Changed these styles' inheritance (Nikolay Yakimov):
13592 `Image Caption <- Caption`, `Table Caption <- Caption`.
13593 + Remove `SourceCode` style from `reference.docx` (#1872).
13594 This is added automatically by the docx writer.
13595 + Added toc heading style to `reference.docx` (Nikolay Yakimov).
13597 * `Text.Pandoc.PDF`
13599 + Don't suggest "Try xelatex" if xelatex already in use (mb21, #1832).
13600 + More comprehensible errors on image conversion (#2067).
13601 EPS can't be supported without shelling out to something like
13602 ImageMagick, but at least we can avoid mysterious error messages.
13604 * `Text.Pandoc.Shared`:
13606 + Make safeRead safe (#1801, Matthew Pickering).
13607 + Added `mapLeft`, `hush` (Matthew Pickering).
13609 * `Text.Pandoc.Pretty`:
13611 + Remove partial function (Matthew Pickering).
13613 * `Text.Pandoc.SelfContained`:
13615 + Add `;charset=utf-8` to script mime type if missing (#1842).
13616 + Improved building of data URIs (#1940). Now base64 is used except
13617 for `text/*` mime types.
13618 + `cssURLs` no longer tries to fetch fragment URLs (#2121).
13619 + Properly handle data URIs in css urls (#2129).
13620 Use a proper CSS parser (adds dependency on `text-css`).
13622 * `Text.Pandoc.UTF8`:
13624 + Better handling of bare CRs in input files (#2132).
13625 Previously we just stripped them out; now we convert
13626 other line ending styles to LF line endings.
13628 * `Text.Pandoc.ImageSize`:
13630 + Fixed some exif header parsing bugs (#1834).
13631 + Make imageSize return an Either, not a Maybe (#1834).
13632 Use `runGetOrFail` (with `binary >= 0.7`) to return `Left` on
13633 parse failure (rather than `error`).
13634 + Improved warnings when image size can't be determined.
13635 + Removed error landmines (Matthew Pickering).
13637 * Added woff2 to MIME types (Alfred Wechselberger).
13639 * pandoc: When a binary input format is used, warn that file
13640 arguments past the first one are being ignored (Matthew Pickering).
13642### Template changes
13644 * LaTeX template:
13646 + Degrade gracefully if `\paragraph` not defined.
13647 + Include `grffile` together with `graphicx` (#2074).
13648 This properly handles filenames containing spaces and dots.
13649 + Redefine `\paragraph`, `\subparagraph`... to behave more
13650 like section headers (#1658).
13651 + Import hyperref before polyglossia to avoid an error with xelatex,
13652 "please load package hyperref before bidi package" (Nick Bart).
13653 + Added `toccolor` variable to control link color in toc (Kaixhin).
13655 * LaTeX, Beamer templates:
13657 + Provide `\tightlist`, which is now used by the LaTeX writer.
13658 + Use polyglossia in beamer (#85).
13659 + Use `bibliography` instead of `biblio-files`
13660 (#1661). Also use `\addbibresource` instead of `\bibliography` for
13661 biblatex.
13662 + Added `setotherlanguages` in polyglossia. This uses an `otherlang`
13663 variable that is derived from a comma-separated list in `lang`;
13664 the last language is `mainlang` and the others are `otherlang`.
13666 * EPUB templates:
13668 + Use `div`, not `p`, for "rights" on title page.
13669 + Added header-includes, include-before, include-after (#1987).
13671 * OpenDocument template:
13673 + Use `text:p` instead of `text:h` for title.
13674 Using `text:h` causes problems with numbering. Closes #2059.
13675 Thanks to @nkalvi for diagnosing this.
13677 * reveal.js template:
13679 + Link to non-minified css, js. The minified versions no longer
13680 ship with the library.
13681 + Correctly include style CSS (#1949).
13682 + New configurable options options: `center`, `maxScale`, `slideNuber`
13683 (Dmitry Smirnov, pandoc-templates#89).
13684 + Moved custom CSS after theme. This allows custom CSS to modify
13685 themes, instead of being replaced by them.
13686 + Allow `center` to be set to false.
13688### Under the hood improvements
13690 * Removed pre-built `reference.docx` and `reference.odt` (Nikolay
13691 Yakimov). Instead the repository now includes the component text files,
13692 and the zipped binaries are built from these using a helper
13693 program, `make-reference-files`. This should make maintenance of
13694 these components easier going forward.
13696 * `Text.Pandoc.Parsing`:
13698 + Added new `<+?>` combinator (Nikolay Yakimov).
13699 + Added `stateHeaderKeys` to `ParserState`.
13701 * `make_deb.sh` fixes:
13703 + Detect architecture.
13704 + Add Installed-Size to debian package control file (#1900).
13705 + Use `fakeroot` to get permissions right.
13706 + Use `mkdir` and `cp` instead of `install`.
13707 + Set permissions of directories to 755.
13708 + Install in `/usr` rather than `/usr/local`.
13709 + Compress man pages.
13710 + Combine copyright files for `pandoc`, `pandoc-citeproc`.
13712 * Added `Text.Pandoc.Compat.Locale` and `old-locale` flag
13713 to assist with transition to `time` 1.5.
13715 * Updated CONTRIBUTING.md with information about issue tags (Matthew
13716 Pickering).
13718 * Updated travis installs to the new sudo-less syntax (Tim Lin).
13720 * Updated dependency version bounds.
13722 * EPUB tests: don't use `joinPath`, which varies across platforms.
13723 Instead, use a forward-slash to join paths, regardless of the
13724 platform. This matches the way `MediaBag` now works.
13726 * Clarify JSON input and output in usage message (Caleb McDaniel).
13728 * Improved INSTALL instructions.
13730 * Always build man pages. Removed make-pandoc-man-pages flag.
13732 * Makefile: removed man target, now that we generate man pages by default.
13734 * README:
13736 + Fixed typos (J. Lewis Muir).
13737 + Added documentation on backtick_code_blocks (#2135, Nikolay Yakimov).
13738 + Added note on in-field markup in biblio databases (Nick Bart).
13739 + Fixed misleading example of raw HTML block.
13740 + Various minor formatting and consistency fixes for the program
13741 options (Andreas Lööw).
13742 + Made definition lists for options all "loose" for consistency.
13743 + Added YAML biblio format to table, and note on `pandoc-citeproc`'s
13744 `--bib2json` and `--bib2yaml` options (Nick Bart).
13745 + Removed obsolete reference to `mods2yaml` (Nick Bart).
13746 + Added section on syntax highlighting.
13747 + Documented `toccolor` variable.
13749## pandoc 1.13.2.1 (2015-04-15)
13751 * Updated to build with ghc 7.10.1.
13753 * Bumped package upper bounds for filepath, blaze-html, blaze-markup.
13755## pandoc 1.13.2 (2014-12-20)
13757 * TWiki Reader: add new new twiki reader (API chaneg, Alexander Sulfrian).
13759 * Markdown reader:
13761 + Better handling of paragraph in div (#1591).
13762 Previously text that ended a div would be parsed as Plain
13763 unless there was a blank line before the closing div tag.
13764 + Don't treat a citation as a reference link label (#1763).
13765 + Fix autolinks with following punctuation (#1811).
13766 The price of this is that autolinked bare URIs can no longer
13767 contain `>` characters, but this is not a big issue.
13768 + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom).
13769 + Allow `startnum` to work without `fancy_lists`. Formerly
13770 `pandoc -f markdown-fancy_lists+startnum` did not work properly.
13772 * RST reader (all Daniel Bergey):
13774 + Parse quoted literal blocks (#65). RST quoted literal blocks are
13775 the same as indented literal blocks (which pandoc already supports)
13776 except that the quote character is preserved in each line.
13777 + Parse RST class directives. The class directive accepts one or more
13778 class names, and creates a Div value with those classes. If the
13779 directive has an indented body, the body is parsed as the children of
13780 the Div. If not, the first block following the directive is made a
13781 child of the Div. This differs from the behavior of rst2xml, which
13782 does not create a Div element. Instead, the specified classes are
13783 applied to each child of the directive. However, most Pandoc Block
13784 constructors to not take an Attr argument, so we can't duplicate this
13785 behavior.
13786 + Warn about skipped directives.
13787 + Literal role now produces Code. Code role should have "code" class.
13788 + Improved support for custom roles
13790 - Added `sourceCode` to classes for `:code:` role, and anything
13791 inheriting from it.
13792 - Add the name of the custom role to classes if the Inline
13793 constructor supports Attr.
13794 - If the custom role directive does not specify a parent role,
13795 inherit from the `:span:` role.
13797 This differs somewhat from the `rst2xml.py` behavior. If a custom
13798 role inherits from another custom role, Pandoc will attach both
13799 roles' names as classes. `rst2xml.py` will only use the class of
13800 the directly invoked role (though in the case of inheriting from a
13801 `:code:` role with a `:language:` defined, it will also provide the
13802 inherited language as a class).
13803 + Warn about ignored fields in role directives.
13805 * LaTeX reader:
13807 + Parse label after caption into a span instead of
13808 inserting an additional paragraph of bracketed text (#1747).
13809 + Parse math environments as inline when possible (#1821).
13810 + Better handling of `\noindent` and `\greektext` (#1783).
13811 + Handle `\texorpdfstring` more gracefully.
13812 + Handle `\cref` and `\sep` (Wikiwide).
13813 + Support `\smartcite` and `\Smartcite` from biblatex.
13815 * HTML reader:
13817 + Retain display type of MathML output (#1719, Matthew Pickering).
13818 + Recognise `<br>` tags inside `<pre>` blocks (#1620, Matthew Pickering).
13819 + Make `embed` tag either block or inline (#1756).
13821 * DocBook reader:
13823 + Handle `keycombo`, `keycap` (#1815).
13824 + Get string content in inner tags for literal elements (#1816).
13825 + Handle `menuchoice` elements better, with a `>` between (#1817).
13826 + Include `id` on section headers (#1818).
13827 + Document/test "type" as implemented (Brian O'Sullivan).
13828 + Add support for calloutlist and callout (Brian O'Sullivan).
13829 We treat a calloutlist as a bulleted list. This works well in practice.
13830 + Add support for `classname` (Bryan O'Sullivan).
13832 * Docx reader:
13834 + Fix window path for image lookup (Jesse Rosenthal).
13835 Don't use os-sensitive "combine", since we always want the paths in our
13836 zip-archive to use forward-slashes.
13837 + Single-item headers in ordered lists are headers (Jesse Rosenthal).
13838 When users number their headers, Word understands that as a single item
13839 enumerated list. We make the assumption that such a list is, in fact,
13840 a header.
13841 + Rewrite rewriteLink to work with new headers (Jesse Rosenthal).
13842 There could be new top-level headers after making lists, so we have to
13843 rewrite links after that.
13844 + Use polyglot header list (Jesse Rosenthal).
13845 We're just keeping a list of header formats that different languages
13846 use as their default styles. At the moment, we have English, German,
13847 Danish, and French. We can continue to add to this.
13848 This is simpler than parsing the styles file, and perhaps less
13849 error-prone, since there seems to be some variations, even within a
13850 language, of how a style file will define headers.
13851 + Remove header class properly in other langs (Jesse Rosenthal).
13852 When we encounter one of the polyglot header styles, we want to remove
13853 that from the par styles after we convert to a header. To do that, we
13854 have to keep track of the style name, and remove it appropriately.
13855 + Account for external link URLs with anchors. Previously, if a URL
13856 had an anchor, the reader would incorrectly identify it as an
13857 internal link and return only the anchor as URL. (Caleb McDaniel)
13858 + Fix for Issue #1692 (i18n styles) (Nikolay Yakimov).
13860 * Org reader:
13862 + Added state changing blanklines (Jesse Rosenthal).
13863 This allows us to emphasize at the beginning of a new paragraph (or, in
13864 general, after blank lines).
13865 + Fixed bug with bulleted lists:
13867 - a
13868 - b
13869 * c
13871 was being parsed as a list, even though an unindented `*`
13872 should make a heading. See
13873 <http://orgmode.org/manual/Plain-lists.html#fn-1>.
13874 + Org reader: absolute, relative paths in link (#1741, Albert
13875 Krewinkel). The org reader was too restrictive when parsing links;
13876 some relative links and links to files given as absolute paths
13877 were not recognized correctly.
13878 + Org reader: allow empty links (jgm/gitit#471, Albert Krewinkel).
13879 This is important for use in gitit, which uses empty links
13880 for wikilinks.
13881 + Respect indent when parsing Org bullet lists (#1650, Timothy
13882 Humphries). Fixes issue with top-level bullet list parsing.
13883 + Fix indent issue for definition lists (Timothy Humphries,
13884 see #1650, #1698, #1680).
13885 + Parse multi-inline terms correctly in definition list (#1649,
13886 Matthew Pickering).
13887 + Fix rules for emphasis recognition (Albert Krewinkel).
13888 Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
13889 strings. This is wrong, as `,` and `'` are forbidden border chars and
13890 may not occur on the inner border of emphasized text.
13891 + Drop COMMENT document trees (Albert Krewinkel).
13892 Document trees under a header starting with the word `COMMENT` are
13893 comment trees and should not be exported. Those trees are dropped
13894 silently (#1678).
13895 + Properly handle links to `file:target` (Albert Krewinkel).
13896 Org links like `[[file:target][title]]` were not handled correctly,
13897 parsing the link target verbatim. The org reader is changed such that
13898 the leading `file:` is dropped from the link target (see #756, #1812).
13899 + Parse LaTeX-style MathML entities (#1657, Albert Krewinkel).
13900 Org supports special symbols which can be included using LaTeX syntax,
13901 but are actually MathML entities. Examples for this are
13902 `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
13903 or `\copy` (the copyright sign ©)
13905 * EPUB reader:
13907 + URI handling improvements. Now we outsource most of the work to
13908 `fetchItem'`. Also, do not include queries in file extensions (#1671).
13910 * LaTeX writer:
13912 + Use `\texorpdfstring` for section captions when needed (Vaclav Zeman).
13913 + Handle consecutive linebreaks (#1733).
13914 + Protect graphics in headers (Jesse Rosenthal).
13915 Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed.
13916 + Put `~` before header in list item text (Jesse Rosenthal).
13917 Because of the built-in line skip, LaTeX can't handle a section header
13918 as the first element in a list item.
13919 + Avoid using reserved characters as `\lstinline` delimiters (#1595).
13920 + Better handling of display math in simple tables (#1754).
13921 We convert display math to inline math in simple tables,
13922 since LaTeX can't deal with display math in simple tables.
13923 + Escape spaces in code (#1694, Bjorn Buckwalter).
13925 * MediaWiki writer:
13927 + Fixed links with URL = text. Previously these were rendered as bare
13928 words, even if the URL was not an absolute URL (#1825).
13930 * ICML writer:
13932 + Don't force all citations into footnotes.
13934 * RTF writer:
13936 + Add blankline at end of output (#1732, Matthew Pickering).
13938 * RST writer:
13940 + Ensure blank line after figure.
13941 + Avoid excess whitespace after last list item (#1777).
13942 + Wrap line blocks with spaces before continuations (#1656).
13943 + Fixed double-rendering of footnotes in RST tables (#1769).
13945 * DokuWiki writer:
13947 + Better handling of block quotes. This change ensures that
13948 multiple paragraph blockquotes are rendered using native `>`
13949 rather than as HTML (#1738).
13950 + Fix external images (#1739). Preface relative links with ":",
13951 absolute URIs without. (Timothy Humphries)
13953 * HTML writer:
13955 + Use protocol-relative URL for mathjax.
13956 + Put newline btw img and caption paragraph.
13957 + MathML now outputted with tex annotation (#1635, Matthew Pickering).
13958 + Add support for KaTeX HTML math (#1626, Matthew Pickering).
13959 This adds `KaTeX` to `HTMLMathMethod` (API change).
13960 + Don't double render when `email-obfuscation=none` (#1625, Matthew
13961 Pickering).
13962 + Make header attributes work outside top level (#1711).
13963 Previously they only appeared on top level header elements.
13964 Now they work e.g. in blockquotes.
13966 * ODT writer:
13968 + Correctly handle images without extensions (#1729).
13969 + Strip querystring in ODT write (#1682, Todd Sifleet).
13971 * FB2 writer:
13973 + Add newline to output.
13975 * EPUB writer:
13977 + Don't add `sourceURL` to absolute URIs (#1669).
13978 + Don't use unsupported `opf:title-type` for epub2.
13979 + Include "landmarks" section in nav document for epub3 (#1757).
13980 + Removed playOrder from navpoint elements in ncx file (#1760).
13981 These aren't required, and they make manual modification of epubs
13982 difficult.
13983 + Extract title even from structured title.
13984 + Don't include nav node in spine unless `--toc` was requested.
13985 Previously we included it in the spine with `linear="no"`, leading
13986 to odd results in some readers (#1593).
13987 + Fixed absolute URI detection (#1672).
13988 + Correctly resolve relative URIs (#1671).
13989 + Use regular page template for `nav.xhtml`, including doctype (#1759).
13991 * Docx writer:
13993 + Put docx table captions above tables (#1641, Nikolay Yakimov).
13994 + Get the page width from the reference docx file, and use
13995 it to scale images that are too large to fit (Grégory Bataille).
13996 + Partial fix for #1607 (Nikolay Yakimov). International heading styles
13997 are inferred based on `<w:name val="heading #">` fallback, if there
13998 are no en-US "Heading#" styles
13999 + Look in user data dir for archive `reference.docx`.
14000 + Renumber header and footer relationships to avoid collisions (Jesse
14001 Rosenthal). We previously took the old relationship names of the
14002 headers and footer in secptr. That led to collisions. We now make
14003 a map of available names in the relationships file, and then rename
14004 in secptr.
14006 * ConTeXt writer:
14008 + Add function toLabel (Mark Szepieniec).
14009 This function can be used to sanitize reference labels so that
14010 they do not contain any of the illegal characters \#[]",{}%()|= .
14011 Currently only Links have their labels sanitized, because they
14012 are the only Elements that use passed labels.
14014 * `Text.Pandoc.Shared`:
14016 + Moved import of `toChunks` outside of CPP conditional (#1590).
14017 + Fix `inDirectory` to reset to the original directory in case
14018 an exception occurs (Freiric Barral).
14020 * Templates:
14022 + LaTeX template: load polyglossia before bibtex (jgm/pandoc-templates#70).
14023 Thanks to bluebirch.
14024 + LaTeX template: Added `\VerbatimFootnotes` if there is verbatim in notes
14025 (#1616).
14026 + LaTeX template: Add shorthands=off to babel options (#1648).
14027 + EPUB, EPUB3 templates: Added `id="cover"` to body of cover page.
14028 This aids styling, making it possible for example to set 0 margins
14029 on the title page (#1758).
14030 + EPUB, EPUB3 templates: Handle structured metadata on titlepage.
14031 Previously we just expected 'title', 'subtitle', 'author', 'date'.
14032 Now we still support those, but also support the format recommended
14033 for epub metadata in the pandoc README:
14035 ---
14036 title:
14037 - type: main
14038 text: My Book
14039 - type: subtitle
14040 text: An investigation of metadata
14041 creator:
14042 - role: author
14043 text: John Smith
14044 - role: editor
14045 text: Sarah Jones
14046 identifier:
14047 - scheme: DOI
14048 text: doi:10.234234.234/33
14049 publisher: My Press
14050 rights: (c) 2007 John Smith, CC BY-NC
14051 ...
14053 * `Text.Pandoc.Templates.getDefaultTemplate`:
14054 don't fail when called with "fb2" (#1660).
14056 * `Text.Pandoc.Parsing`:
14058 + Fixed `inlineMath` so it handles `\text{..}` containing `$`.
14059 For example: `$x = \text{the $n$th root of $y$}` (#1677).
14060 + Change `parseFromString` to fail if not all input is consumed.
14061 (Matthew Pickering)
14062 + Moved `addWarning` from Markdown reader to `Parsing`, so it can be
14063 used by more readers (API change, Daniel Bergey).
14065 * `Text.Pandoc.Pretty`:
14067 + Improve performance of `realLength` (Matthew Pickering).
14068 + Make CR + BLANKLINE = BLANKLINE. This fixes an extra blank line we
14069 were getting at the end of markdown fragments (as well as rst, org,
14070 etc.) (#1705).
14072 * `Text.Pandoc.MIME`:
14074 + Add mime type for WebVTT (Jason Ronallo).
14075 + Changed mime type for `otf` to `application/vnd.ms-opentype` (#1761).
14076 This is needed for epub3 validation.
14078 * `Text.Pandoc.MediaBag`:
14080 + Fix Windows specific path problems (#1597).
14082 * `Text.Pandoc.Shared`:
14084 + Make `collapseFilePath` OS-agnostic (Matthew Pickering).
14086 * Link the test suite using `-threaded`.
14087 This allows the test suite to be run using `+RTS -N`.
14089 * Added `network` dependency under `network-uri` flag in test section.
14091 * Give better error messages when someone tries to convert from
14092 pdf, doc, odt (#1683).
14094 * Added `track` to list of tags treated by `--self-contained` (#1664).
14097## pandoc 1.13.1 (2014-08-30)
14099 * Fixed `--self-contained` with Windows paths (#1558).
14100 Previously `C:\foo.js` was being wrongly interpreted as a URI.
14102 * HTML reader: improved handling of tags that can be block or inline.
14103 Previously a section like this would be enclosed in a paragraph,
14104 with RawInline for the video tags (since video is a tag that can
14105 be either block or inline):
14107 <video controls="controls">
14108 <source src="../videos/test.mp4" type="video/mp4" />
14109 <source src="../videos/test.webm" type="video/webm" />
14110 <p>
14111 The videos can not be played back on your system.<br/>
14112 Try viewing on Youtube (requires Internet connection):
14113 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
14114 Youtube</a>.
14115 </p>
14116 </video>
14118 This change will cause the video and source tags to be parsed
14119 as RawBlock instead, giving better output.
14120 The general change is this: when we're parsing a "plain" sequence
14121 of inlines, we don't parse anything that COULD be a block-level tag.
14123 * Docx reader:
14125 + Be sensitive to user styles. Note that "Hyperlink" is
14126 "blacklisted," as we don't want the default underline styling to be
14127 inherited by all links by default (Jesse Rosenthal).
14128 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
14129 This makes to docx reader's native output fit with the way the markdown
14130 reader understands its markdown output.
14132 * Txt2Tags reader:
14134 + Header is now parsed only if standalone flag is set (Matthew Pickering).
14135 + The header is now parsed as meta information. The first line is the
14136 `title`, the second is the `author` and third line is the `date`
14137 (Matthew Pickering).
14138 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
14139 + Fixed crash when reading from stdin.
14141 * Textile writer: Extended the range of cases where native textile
14142 tables will be used (as opposed to raw HTML): we now handle any
14143 alignment type, but only for simple tables with no captions.
14145 * EPUB writer: Don't use page-progression-direction in EPUB2, which
14146 doesn't support it. Also, if page-progression-direction not specified
14147 in metadata, don't include the attribute even in EPUB3; not including it
14148 is the same as including it with the value "default", as we did before.
14149 (#1550)
14151 * Org writer: Accept example lines with indentation at the beginning
14152 (Calvin Beck).
14154 * DokuWiki writer:
14156 + Refactor to use Reader monad (Matthew Pickering).
14157 + Avoid using raw HTML in table cells; instead, use `\\`
14158 instead of newlines (Jesse Rosenthal).
14159 + Properly handle HTML table cell alignments, and use spacing
14160 to make the tables look prettier (#1566).
14162 * Docx writer:
14164 + Bibliography entries get `Bibliography` style (#1559).
14165 + Implement change tracking (Jesse Rosenthal).
14167 * LaTeX writer:
14169 + Fixed a bug that caused a table caption to repeat across all pages
14170 (Jose Luis Duran).
14171 + Improved vertical spacing in tables and made it customizable using
14172 standard lengths set by booktab. See
14173 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
14174 (Jose Luis Duran).
14175 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
14176 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
14177 + Made horizontal rules more flexible (Jose Luis Duran).
14179 * Text.Pandoc.MIME:
14181 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
14182 Code cleanups (Artyom Kazak).
14184 * Templates:
14186 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
14187 thanks lemzwerg).
14189 * Improved OSX build procedure.
14191 * Added `network-uri` flag, to deal with split of `network-uri` from
14192 `network`.
14194 * Fix build dependencies for the `trypandoc` flag, so that they are
14195 ignored if `trypandoc` flag is set to False (Gabor Pali).
14197 * Updated README to remove outdated claim that `--self-contained`
14198 looks in the user data directory for missing files.
14200## pandoc 1.13.0.1 (2014-08-17)
14202 * Docx writer:
14204 + Fixed regression which bungled list numbering (#1544), causing
14205 all lists to appear as basic ordered lists.
14206 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
14207 Added a property to all table rows where the sum of column widths
14208 is specified in pct (fraction of 5000). This helps persuade Word
14209 to lay out the table with the widths we specify.
14211 * Fixed a bug in Windows 8 which caused pandoc not to find the
14212 `pandoc-citeproc` filter (#1542).
14214 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
14215 Most significantly, the reader now uses Builder, leading to some
14216 performance improvements.
14218 * HTML reader: Parse appropriately styled span as SmallCaps.
14220 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
14221 `superscript`, and `subscript` extensions, respectively, are
14222 deactivated (#1127).
14224 * Added `trypandoc` flag to build CGI executable used in the online
14225 demo.
14227 * Makefile: Added 'quick', 'osxpkg' targets.
14229 * Updated README in templates to indicate templates license.
14230 The templates are dual-licensed, BSD3 and GPL2+.
14232## pandoc 1.13 (15 August 2014)
14234### New features
14236 * Added `docx` as an input format (Jesse Rosenthal). The docx
14237 reader includes conversion of native Word equations to pandoc
14238 LaTeX `Math` elements. Metadata is taken from paragraphs at the
14239 beginning of the document with styles `Author`, `Title`, `Subtitle`,
14240 `Date`, and `Abstract`.
14242 * Added `epub` as an input format (Matthew Pickering). The epub
14243 reader includes conversion of MathML to pandoc LaTeX `Math`
14244 elements.
14246 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
14247 Txt2tags is a lightweight markup format described at
14248 <http://txt2tags.org/>.
14250 * Added `dokuwiki` as an output format (Clare Macrae).
14252 * Added `haddock` as an output format.
14254 * Added `--extract-media` option to extract media contained in a zip
14255 container (docx or epub) while adjusting image paths to point to the
14256 extracted images.
14258 * Added a new markdown extension, `compact_definition_lists`, that
14259 restores the syntax for definition lists of pandoc 1.12.x, allowing
14260 tight definition lists with no blank space between items, and
14261 disallowing lazy wrapping. (See below under behavior changes.)
14263 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
14265 * Added extensions `native_spans` and `native_divs` to activate
14266 parsing of material in HTML span or div tags as Pandoc Span
14267 inlines or Div blocks.
14269 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
14270 Textile, and MediaWiki readers. This is an option intended
14271 for debugging parsing problems; ordinary users should not need
14272 to use it.
14274### Behavior changes
14276 * Changed behavior of the `markdown_attribute` extension, to bring
14277 it in line with PHP markdown extra and multimarkdown. Setting
14278 `markdown="1"` on an outer tag affects all contained tags,
14279 recursively, until it is reversed with `markdown="0"` (#1378).
14281 * Revised markdown definition list syntax (#1429). Both the reader
14282 and writer are affected. This change brings pandoc's definition list
14283 syntax into alignment with that used in PHP markdown extra and
14284 multimarkdown (with the exception that pandoc is more flexible about
14285 the definition markers, allowing tildes as well as colons). Lazily
14286 wrapped definitions are now allowed. Blank space is required
14287 between list items. The space before a definition is used to determine
14288 whether it is a paragraph or a "plain" element. **WARNING: This change
14289 may break existing documents!** Either check your documents for
14290 definition lists without blank space between items, or use
14291 `markdown+compact_definition_lists` for the old behavior.
14293 * `.numberLines` now works in fenced code blocks even if no language
14294 is given (#1287, jgm/highlighting-kate#40).
14296 * Improvements to `--filter`:
14298 + Don't search PATH for a filter with an explicit path.
14299 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
14300 the system path, even if there was a `caps.py` in the working directory.
14301 + Respect shebang if filter is executable (#1389).
14302 + Don't print misleading error message.
14303 Previously pandoc would say that a filter was not found,
14304 even in a case where the filter had a syntax error.
14306 * HTML reader:
14308 + Parse `div` and `span` elements even without `--parse-raw`,
14309 provided `native_divs` and `native_spans` extensions are set.
14310 Motivation: these now generate native pandoc Div and Span
14311 elements, not raw HTML.
14312 + Parse EPUB-specific elements if the `epub_html_exts`
14313 extension is enabled. These include `switch`, `footnote`,
14314 `rearnote`, `noteref`.
14316 * Org reader:
14318 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
14319 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
14320 `\cite{Coffee}`), can be used without any further escaping (Albert
14321 Krewinkel).
14323 * Textile reader and writer:
14325 + The `raw_tex` extension is no longer set by default. You can
14326 enable it with `textile+raw_tex`.
14328 * DocBook reader:
14330 + Support `equation`, `informalequation`, `inlineequation` elements with
14331 `mml:math` content. This is converted into LaTeX and put into a Pandoc
14332 Math inline.
14334 * Revised `plain` output, largely following the style of Project
14335 Gutenberg:
14337 + Emphasis is rendered with `_underscores_`, strong emphasis
14338 with ALL CAPS.
14339 + Headings are rendered differently, with space to set them off,
14340 not with setext style underlines. Level 1 headers are ALL CAPS.
14341 + Math is rendered using unicode when possible, but without the
14342 distracting emphasis markers around variables.
14343 + Footnotes use a regular `[n]` style.
14345 * Markdown writer:
14347 + Horizontal rules are now a line across the whole page.
14348 + Prettier pipe tables. Columns are now aligned (#1323).
14349 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
14350 no longer emits any raw HTML, including span and div tags
14351 generated by Span and Div elements.
14352 + Use span with style for `SmallCaps` (#1360).
14354 * HTML writer:
14356 + Autolinks now have class `uri`, and email autolinks have class
14357 `email`, so they can be styled.
14359 * Docx writer:
14361 + Document formatting is carried over from `reference.docx`.
14362 This includes margins, page size, page orientation, header,
14363 and footer, including images in headers and footers.
14364 + Include abstract (if present) with `Abstract` style (#1451).
14365 + Include subtitle (if present) with `Subtitle` style, rather
14366 than tacking it on to the title (#1451).
14368 * Org writer:
14370 + Write empty span elements with an id attribute as org anchors.
14371 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
14373 * LaTeX writer:
14375 + Put table captions above tables, to match the conventional
14376 standard. (Previously they appeared below tables.)
14377 + Use `\(..\)` instead of `$..$` for inline math (#1464).
14378 + Use `\nolinkurl` in email autolinks. This allows them to be styled
14379 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
14380 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
14381 curly quotes in the PDF output (#1364).
14382 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
14383 do not appear before the overlays in which their markers appear
14384 (#1525).
14385 + Don't produce a `\label{..}` for a Div or Span element. Do produce
14386 a `\hyperdef{..}` (#1519).
14388 * EPUB writer:
14390 + If the metadata includes `page-progression-direction` (which can be
14391 `ltr` or `rtl`, the `page-progression-direction` attribute will
14392 be set in the EPUB spine (#1455).
14394 * Custom lua writers:
14396 + Custom writers now work with `--template`.
14397 + Removed HTML header scaffolding from `sample.lua`.
14398 + Made citation information available in lua writers.
14400 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
14401 adjacent `RawBlock`s when possible.
14403### API changes
14405 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
14407 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
14408 Pickering).
14410 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
14411 Pickering).
14413 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
14414 (Clare Macrae).
14416 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
14418 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
14419 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
14420 readers return a pair of a `Pandoc` document and a `MediaBag` with
14421 the media resources they contain. This can be extracted using
14422 `--extract-media`. Writers that incorporate media (PDF, Docx,
14423 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
14424 for resources in the `MediaBag` generated by the reader, in addition to
14425 the file system or web.
14427 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
14428 Renamed `readTeXMath'` to `texMathToInlines`.
14430 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
14431 `readers` now associates names of readers with `Reader`
14432 structures. This allows inclusion of readers, like the docx
14433 reader, that take binary rather than textual input.
14435 * `Text.Pandoc.Shared`:
14437 + Added `capitalize` (Artyom Kazak), and replaced uses of
14438 `map toUpper` (which give bad results for many languages).
14439 + Added `collapseFilePath`, which removes intermediate `.` and
14440 `..` from a path (Matthew Pickering).
14441 + Added `fetchItem'`, which works like `fetchItem` but searches
14442 a `MediaBag` before looking on the net or file system.
14443 + Added `withTempDir`.
14444 + Added `removeFormatting`.
14445 + Added `extractSpaces` (from HTML reader) and generalized its type
14446 so that it can be used by the docx reader (Matthew Pickering).
14447 + Added `ordNub`.
14448 + Added `normalizeInlines`, `normalizeBlocks`.
14449 + `normalize` is now `Pandoc -> Pandoc` instead of
14450 `Data a :: a -> a`. Some users may need to change their uses of
14451 `normalize` to the newly exported `normalizeInlines` or
14452 `normalizeBlocks`.
14454 * `Text.Pandoc.Options`:
14456 + Added `writerMediaBag` to `WriterOptions`.
14457 + Removed deprecated and no longer used `readerStrict` in
14458 `ReaderOptions`. This is handled by `readerExtensions` now.
14459 + Added `Ext_compact_definition_lists`.
14460 + Added `Ext_epub_html_exts`.
14461 + Added `Ext_native_divs` and `Ext_native_spans`.
14462 This allows users to turn off the default pandoc behavior of
14463 parsing contents of div and span tags in markdown and HTML
14464 as native pandoc Div blocks and Span inlines.
14466 * `Text.Pandoc.Parsing`:
14468 + Generalized `readWith` to `readWithM` (Matthew Pickering).
14469 + Export `runParserT` and `Stream` (Matthew Pickering).
14470 + Added `HasQuoteContext` type class (Matthew Pickering).
14471 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
14472 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
14473 `applyMacros` (Matthew Pickering).
14474 + Added custom `token` (Matthew Pickering).
14475 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
14476 track of the ending tag we're waiting for when we're parsing inside
14477 HTML block tags.
14478 + Added `stateMarkdownAttribute` to `ParserState`. This is used
14479 to keep track of whether the markdown attribute has been set in
14480 an enclosing tag.
14481 + Generalized type of `registerHeader`, using new type classes
14482 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
14483 Pickering). These allow certain common functions to be reused
14484 even in parsers that use custom state (instead of `ParserState`),
14485 such as the MediaWiki reader.
14486 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
14487 and generalized their types (Matthew Pickering).
14489 * `Text.Pandoc.Pretty`:
14491 + Added `nestle`.
14492 + Added `blanklines`, which guarantees a certain number of blank lines
14493 (and no more).
14495### Bug fixes
14497 * Markdown reader:
14499 + Fixed parsing of indented code in list items. Indented code
14500 at the beginning of a list item must be indented eight spaces
14501 from the margin (or edge of the container), or four spaces
14502 from the list marker, whichever is greater.
14503 + Fixed small bug in HTML parsing with `markdown_attribute`, which
14504 caused incorrect tag nesting for input like
14505 `<aside markdown="1">*hi*</aside>`.
14506 + Fixed regression with intraword underscores (#1121).
14507 + Improved parsing of inline links containing quote characters (#1534).
14508 + Slight rewrite of `enclosure`/`emphOrStrong` code.
14509 + Revamped raw HTML block parsing in markdown (#1330).
14510 We no longer include trailing spaces and newlines in the
14511 raw blocks. We look for closing tags for elements (but without
14512 backtracking). Each block-level tag is its own `RawBlock`;
14513 we no longer try to consolidate them (though `--normalize` will do so).
14514 + Combine consecutive latex environments. This helps when you have
14515 two minipages which can't have blank lines between them (#690, #1196).
14516 + Support smallcaps through span.
14517 `<span style="font-variant:small-caps;">foo</span>` will be
14518 parsed as a `SmallCaps` inline, and will work in all output
14519 formats that support small caps (#1360).
14520 + Prevent spurious line breaks after list items (#1137). When the
14521 `hard_line_breaks` option was specified, pandoc would formerly
14522 produce a spurious line break after a tight list item.
14523 + Fixed table parsing bug (#1333).
14524 + Handle `c++` and `objective-c` as language identifiers in
14525 github-style fenced blocks (#1318).
14526 + Inline math must have nonspace before final `$` (#1313).
14528 * LaTeX reader:
14530 + Handle comments at the end of tables. This resolves the issue
14531 illustrated in <http://stackoverflow.com/questions/24009489>.
14532 + Correctly handle table rows with too few cells. LaTeX seems to
14533 treat them as if they have empty cells at the end (#241).
14534 + Handle leading/trailing spaces in `\emph` better.
14535 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
14536 so that we don't get things like `* hi *` in markdown output.
14537 Also applies to `textbf` and some other constructions (#1146).
14538 + Don't assume preamble doesn't contain environments (#1338).
14539 + Allow (and discard) optional argument for `\caption` (James Aspnes).
14541 * HTML reader:
14543 + Fixed major parsing problem with HTML tables. Table cells were
14544 being combined into one cell (#1341).
14545 + Fixed performance issue with malformed HTML tables.
14546 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
14547 + Allow space between `<col>` and `</col>`.
14548 + Added `audio` and `source` in `eitherBlockOrInline`.
14549 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
14550 `blockTags` to `eitherBlockOrInline`.
14551 + `map` and `object` were mistakenly in both lists; they have been removed
14552 from `blockTags`.
14553 + Ignore `DOCTYPE` and `xml` declarations.
14555 * MediaWiki reader:
14557 + Don't parse backslash escapes inside `<source>` (#1445).
14558 + Tightened up template parsing.
14559 The opening `{{` must be followed by an alphanumeric or `:`.
14560 This prevents the exponential slowdown in #1033.
14561 + Support "Bild" for images.
14563 * DocBook reader:
14565 + Better handle elements inside code environments. Pandoc's document
14566 model does not allow structure inside code blocks, but at least this way
14567 we preserve the text (#1449).
14568 + Support `<?asciidoc-br?>` (#1236).
14570 * Textile reader:
14572 + Fixed list parsing. Lists can now start without an intervening
14573 blank line (#1513).
14574 + HTML block-level tags that do not start a line are parsed as
14575 inline HTML and do not interrupt paragraphs (as in RedCloth).
14577 * Org reader:
14579 + Make tildes create inline code (#1345). Also relabeled `code` and
14580 `verbatim` parsers to accord with the org-mode manual.
14581 + Respect `:exports` header argument in code blocks (Craig Bosma).
14582 + Fixed tight lists with sublists (#1437).
14584 * EPUB writer:
14586 + Avoid excess whitespace in `nav.xhtml`. This should improve
14587 TOC view in iBooks (#1392).
14588 + Fixed regression on cover image.
14589 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
14590 because the metadata id was not correct. Now we derive the id from the
14591 actual cover image filename, which we preserve rather than using
14592 "cover-image."
14593 + Keep newlines between block elements. This allows
14594 easier diff-ability (#1424).
14595 + Use `stringify` instead of custom `plainify`.
14596 + Use `renderTags'` for all tag rendering. This properly handles tags
14597 that should be self-closing. Previously `<hr/>` would appear in EPUB
14598 output as `<hr></hr>` (#1420).
14599 + Better handle HTML media tags.
14600 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
14601 can have only one dc:date, so only the first one is used.
14603 * LaTeX writer:
14605 + Correctly handle figures in notes. Notes can't contain figures in
14606 LaTeX, so we fake it to avoid an error (#1053).
14607 + Fixed strikeout + highlighted code (#1294).
14608 Previously strikeout highlighted code caused an error.
14610 * ConTeXt writer:
14612 + Improved detection of autolinks with URLs containing escapes.
14614 * RTF writer:
14616 + Improved image embedding: `fetchItem'` is now used to get the
14617 images, and calculated image sizes are indicated in the RTF.
14618 + Avoid extra paragraph tags in metadata (#1421).
14620 * HTML writer:
14622 + Deactivate "incremental" inside slide speaker notes (#1394).
14623 + Don't include empty items in the table of contents for
14624 slide shows. (These would result from creating a slide
14625 using a horizontal rule.)
14627 * MediaWiki writer:
14629 + Minor renaming of `st` prefixed names.
14631 * AsciiDoc writer:
14633 + Double up emphasis and strong emphasis markers in intraword
14634 contexts, as required by asciidoc (#1441).
14636 * Markdown writer:
14638 + Avoid wrapping that might start a list, blockquote, or header (#1013).
14639 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
14640 + Don't use braced attributes for fenced code (#1416).
14641 If `Ext_fenced_code_attributes` is not set, the first class
14642 attribute will be printed after the opening fence as a bare word.
14643 + Separate adjacent lists of the same kind with an HTML comment (#1458).
14645 * PDF writer:
14647 + Fixed treatment of data uris for images (#1062).
14649 * Docx writer:
14651 + Use Compact style for empty table cells (#1353).
14652 Otherwise we get overly tall lines when there are empty
14653 table cells and the other cells are compact.
14654 + Create overrides per-image for `media/` in reference docx.
14655 This should be somewhat more robust and cover more types of images.
14656 + Improved `entryFromArchive` to avoid an unneeded parse.
14657 + Section numbering carries over from reference.docx (#1305).
14658 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
14659 we assign numbers based on the list marker styles.
14661 * `Text.Pandoc.Options`:
14663 + Removed `Ext_fenced_code_attributes` from `markdown_github`
14664 extensions.
14666 * `Text.Pandoc.ImageSize`:
14668 + Use default instead of failing if image size not found
14669 in exif header (#1358).
14670 + ignore unknown exif header tag rather than crashing.
14671 Some images seem to have tag type of 256, which was causing
14672 a runtime error.
14674 * `Text.Pandoc.Shared`:
14676 + `fetchItem`: unescape URI encoding before reading local file (#1427).
14677 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
14678 doing mime lookup, to improve mime type guessing.
14679 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
14680 other things are treated as relative URIs if `sourceURL` is `Just _`,
14681 otherwise as file paths on the local file system.
14682 + `fetchItem` now properly handles links without a protocol (#1477).
14683 + `fetchItem` now escapes characters not allowed in URIs before trying
14684 to parse the URIs.
14685 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
14687 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
14688 needed to resolve relative URLs when we fetch resources (#750).
14690 * `Text.Pandoc.Parsing`
14692 + Simplified `dash` and `ellipsis` (#1419).
14693 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
14694 + Generalized functions to use `ParsecT` (Matthew Pickering).
14695 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
14696 Pickering).
14698### Template changes
14700 * Added haddock template.
14701 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
14702 be "advisory" in HTML5, but kindlegen seems to require them.
14703 * EPUB3: Put title page in section with `epub:type="titlepage"`.
14704 * LaTeX: Made `\subtitle` work properly (#1327).
14705 * LaTeX/Beamer: remove conditional around date (#1321).
14706 * LaTeX: Added `lot` and `lof` variables, which can be set to
14707 get `\listoftables` and `\listoffigures` (#1407). Note that
14708 these variables can be set at the command line with `-Vlot -Vlof`
14709 or in YAML metadata.
14711### Under the hood improvements
14713 * Rewrote normalize for efficiency (#1385).
14715 * Rewrote Haddock reader to use `haddock-library` (#1346).
14717 + This brings pandoc's rendering of haddock markup in line
14718 with the new haddock.
14719 + Fixed line breaks in `@` code blocks.
14720 + alex and happy are no longer build-depends.
14722 * Added `Text.Pandoc.Compat.Directory` to allow building against
14723 different versions of the `directory` library.
14725 + Added `Text.Pandoc.Compat.Except` to allow building against
14726 different versions of `mtl`.
14728 * Code cleanup in some writers, using Reader monad to avoid
14729 passing options parameter around (Matej Kollar).
14731 * Improved readability in `pandoc.hs`.
14733 * Miscellaneous code cleanups (Artyom Kazak).
14735 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
14736 Thompson).
14738 * Changed `http-conduit` flag to `https`. Depend on `http-client`
14739 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
14740 depends on `conduit` via `yaml`.)
14742 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
14743 This change to highlighting-kate means that PHP fragments no longer need
14744 to start with `<?php`. It also fixes a serious bug causing failures with
14745 ocaml and fsharp.
14747 * Require latest `texmath`. This fixes `\tilde{E}` and allows
14748 `\left` to be used with `]`, `)` etc. (#1319), among many other
14749 improvements.
14751 * Require latest `zip-archive`. This has fixes for unicode path names.
14753 * Added tests for plain writer.
14755 * `Text.Pandoc.Templates`:
14757 + Fail informatively on template syntax errors.
14758 With the move from parsec to attoparsec, we lost good error
14759 reporting. In fact, since we weren't testing for end of input,
14760 malformed templates would fail silently. Here we revert back to
14761 Parsec for better error messages.
14762 + Use `ordNub` (#1022).
14764 * Benchmarks:
14766 + Made benchmarks compile again (Artyom Kazak).
14767 + Fixed so that the failure of one benchmark does not prevent others
14768 from running (Artyom Kazak).
14769 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
14770 + Changed benchmark to use only the test suite, so that benchmarks
14771 run more quickly.
14773 * Windows build script:
14775 + Add `-windows` to file name.
14776 + Use one install command for pandoc, pandoc-citeproc.
14777 + Force install of pandoc-citeproc.
14779 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
14780 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
14781 will extract it into a folder named `SOMETHING.pkg`, which it
14782 will interpret as a defective package (#1308).
14784 * `README`:
14786 + Made headers for all extensions so they have IDs and can be
14787 linked to (Beni Cherniavsky-Paskin).
14788 + Fixed typos (Phillip Alday).
14789 + Fixed documentation of attributes (#1315).
14790 + Clarified documentation on small caps (#1360).
14791 + Better documentation for `fenced_code_attributes` extension
14792 (Caleb McDaniel).
14793 + Documented fact that you can put YAML metadata in a separate file
14794 (#1412).
14797## pandoc 1.12.4.2 (2014-05-14)
14799 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
14801 * Shared: `addMetaValue` now behaves slightly differently:
14802 if both the new and old values are lists, it concatenates their
14803 contents to form a new list.
14805 * LaTeX reader:
14807 + Set `bibliography` in metadata from `\bibliography` or
14808 `\addbibresource` command.
14809 + Don't error on `%foo` with no trailing newline.
14811 * Org reader:
14813 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
14814 + Fix parsing of blank lines within blocks (Albert Krewinkel).
14815 + Support pandoc citation extension (Albert Krewinkel). This can
14816 be turned off by specifying `org-citation` as the input format.
14818 * Markdown reader:
14820 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
14821 other readers (Albert Krewinkel).
14823 * `Text.Pandoc.Parsing`:
14825 + Added `citeKey` (see above).
14826 + Added `HasLastStrPosition` type class and `updateLastStrPos`
14827 and `notAfterString` functions.
14829 * Updated copyright notices (Albert Krewinkel).
14831 * Added default.icml to data files so it installs with the package.
14833 * OSX package:
14835 + The binary is now built with options to ensure that it can be
14836 used with OSX 10.6+.
14837 + Moved OSX package materials to osx directory.
14838 + Added OSX package uninstall script, included in the zip container
14839 (thanks to Daniel T. Staal).
14841## pandoc 1.12.4 (2014-05-07)
14843 * Made it possible to run filters that aren't executable
14844 (#1096). Pandoc first tries to find the executable (searching
14845 the path if path isn't given). If it fails, but the file
14846 exists and has a `.py`, `.pl`, `.rb`, `.hs`, or `.php`
14847 extension, pandoc runs the filter using the appropriate
14848 interpreter. This should make it easier to use filters on
14849 Windows, and make it more convenient for everyone.
14851 * Added Emacs org-mode reader (Albert Krewinkel).
14853 * Added InDesign ICML Writer (mb21).
14855 * MediaWiki reader:
14857 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
14858 + Fixed bug in certain nested lists (#1213). If a level 2 list was
14859 followed by a level 1 list, the first item of the level 1 list
14860 would be lost.
14861 + Handle table rows containing just an HTML comment (#1230).
14863 * LaTeX reader:
14865 + Give better location information on errors, pointing to line
14866 numbers within included files (#1274).
14867 + LaTeX reader: Better handling of `table` environment (#1204).
14868 Positioning options no longer rendered verbatim.
14869 + Better handling of figure and table with caption (#1204).
14870 + Handle `@{}` and `p{length}` in tabular. The length is not actually
14871 recorded, but at least we get a table (#1180).
14872 + Properly handle `\nocite`. It now adds a `nocite` metadata
14873 field. Citations there will appear in the bibliography but not
14874 in the text (unless you explicitly put a `$nocite$` variable
14875 in your template).
14877 * Markdown reader:
14879 + Ensure that whole numbers in YAML metadata are rendered without
14880 decimal points. (This became necessary with changes to aeson
14881 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
14882 + Fixed regression on line breaks in strict mode (#1203).
14883 + Small efficiency improvements.
14884 + Improved parsing of nested `div`s. Formerly a closing `div` tag
14885 would be missed if it came right after other block-level tags.
14886 + Avoid backtracking when closing `</div>` not found.
14887 + Fixed bug in reference link parsing in `markdown_mmd`.
14888 + Fixed a bug in list parsing (#1154). When reading a raw list
14889 item, we now strip off up to 4 spaces.
14890 + Fixed parsing of empty reference link definitions (#1186).
14891 + Made one-column pipe tables work (#1218).
14893 * Textile reader:
14895 + Better support for attributes. Instead of being ignored, attributes
14896 are now parsed and included in Span inlines. The output will be a bit
14897 different from stock textile: e.g. for `*(foo)hi*`, we'll get
14898 `<em><span class="foo">hi</span></em>` instead of
14899 `<em class="foo">hi</em>`. But at least the data is not lost.
14900 + Improved treatment of HTML spans (%) (#1115).
14901 + Improved link parsing. In particular we now pick up on attributes.
14902 Since pandoc links can't have attributes, we enclose the whole link in
14903 a span if there are attributes (#1008).
14904 + Implemented correct parsing rules for inline markup (#1175, Matthew
14905 Pickering).
14906 + Use Builder (Matthew Pickering).
14908 * DocBook reader:
14910 + Better treatment of `formalpara`. We now emit the title (if present)
14911 as a separate paragraph with boldface text (#1215).
14912 + Set metadata `author` not `authors`.
14913 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
14914 Matthew Pickering).
14915 + Converted current meta information parsing in DocBook to a more
14916 extensible version which is aware of the more recent meta
14917 representation (Matthew Pickering).
14919 * HTML reader:
14921 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
14922 (#1248).
14923 + Treat processing instructions & declarations as block. Previously
14924 these were treated as inline, and included in paragraph tags in HTML
14925 or DocBook output, which is generally not what is wanted (#1233).
14926 + Updated `closes` with rules from HTML5 spec.
14927 + Use Builder (Matthew Pickering, #1162).
14929 * RST reader:
14931 + Remove duplicate `http` in PEP links (Albert Krewinkel).
14932 + Make rst figures true figures (#1168, CasperVector)
14933 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
14934 rST parser now supports: all built-in rST roles, new role definition,
14935 role inheritance, though with some limitations.
14936 + Use `author` rather than `authors` in metadata.
14937 + Better handling of directives. We now correctly handle field
14938 lists that are indented more than three spaces. We treat an
14939 `aafig` directive as a code block with attributes, so it can be
14940 processed in a filter (#1212).
14942 * LaTeX writer:
14944 + Mark span contents with label if span has an ID (Albert Krewinkel).
14945 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
14946 + Handle line breaks in simple table cells (#1217).
14947 + Workaround for level 4-5 headers in quotes. These previously produced
14948 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
14949 This adds an `mbox{}` in these contexts to work around the problem.
14950 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
14951 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
14952 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
14953 ligature with LuaLaTeX but `\/` does.
14954 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
14956 * ConTeXt writer: Improved autolinks (#1270).
14958 * DocBook writer:
14960 + Improve handling of hard line breaks in Docbook writer
14961 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
14962 just for the newline character.
14963 + Don't let line breaks inside footnotes influence the enclosing
14964 paragraph (Neil Mayhew).
14965 + Distinguish tight and loose lists in DocBook output, using
14966 `spacing="compact"` (Neil Mayhew, #1250).
14968 * Docx writer: When needed files are not present in the user's
14969 `reference.docx`, fall back on the versions in the `reference.docx`
14970 in pandoc's data files. This fixes a bug that occurs when a
14971 `reference.docx` saved by LibreOffice is used. (#1185)
14973 * EPUB writer:
14975 + Include extension in epub ids. This fixes a problem with duplicate
14976 extensions for fonts and images with the same base name but different
14977 extensions (#1254).
14978 + Handle files linked in raw `img` tags (#1170).
14979 + Handle media in `audio` source tags (#1170).
14980 Note that we now use a `media` directory rather than `images`.
14981 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
14982 will both be incorporated into `content.opf` and the epub container.
14984 * HTML writer:
14986 + Add colgroup around col tags (#877). Also affects EPUB writer.
14987 + Fixed bug with unnumbered section headings. Unnumbered section
14988 headings (with class `unnumbered`) were getting numbers.
14989 + Improved detection of image links. Previously image links with
14990 queries were not recognized, causing `<embed>` to be used instead
14991 of `<img>`.
14993 * Man writer: Ensure that terms in definition lists aren't line wrapped
14994 (#1195).
14996 * Markdown writer:
14998 + Use proper escapes to avoid unwanted lists (#980). Previously we used
14999 0-width spaces, an ugly hack.
15000 + Use longer backtick fences if needed (#1206). If the content contains a
15001 backtick fence and there are attributes, make sure longer fences are
15002 used to delimit the code. Note: This works well in pandoc, but github
15003 markdown is more limited, and will interpret the first string of three
15004 or more backticks as ending the code block.
15006 * RST writer: Avoid stack overflow with certain tables (#1197).
15008 * RTF writer: Fixed table cells containing paragraphs.
15010 * Custom writer:
15012 + Correctly handle UTF-8 in custom lua scripts (#1189).
15013 + Fix bugs with lua scripts with mixed-case filenames and
15014 paths containing `+` or `-` (#1267). Note that `getWriter`
15015 in `Text.Pandoc` no longer returns a custom writer on input
15016 `foo.lua`.
15018 * AsciiDoc writer: Handle multiblock and empty table cells
15019 (#1245, #1246). Added tests.
15021 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
15023 * `Text.Pandoc.Shared`:
15025 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
15026 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
15027 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
15028 Jesse Rosenthal.
15029 + `openURL`: set proxy with value of http_proxy env variable (#1211).
15030 Note: proxies with non-root paths are not supported, due to
15031 limitations in `http-conduit`.
15033 * `Text.Pandoc.PDF`:
15035 + Ensure that temp directories deleted on Windows (#1192). The PDF is
15036 now read as a strict bytestring, ensuring that process ownership will
15037 be terminated, so the temp directory can be deleted.
15038 + Use `/` as path separators in a few places, even on Windows.
15039 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
15040 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
15041 + Changes to error reporting, to handle non-UTF8 error output.
15043 * `Text.Pandoc.Templates`:
15045 + Removed unneeded datatype context (Merijn Verstraaten).
15047 + YAML objects resolve to "true" in conditionals (#1133).
15048 Note: If `address` is a YAML object and you just have `$address$`
15049 in your template, the word `true` will appear, which may be
15050 unexpected. (Previously nothing would appear.)
15052 * `Text.Pandoc.SelfContained`: Handle `poster` attribute in `video`
15053 tags (#1188).
15055 * `Text.Pandoc.Parsing`:
15057 + Made `F` an instance of Applicative (#1138).
15058 + Added `stateCaption`.
15059 + Added `HasMacros`, simplified other typeclasses.
15060 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
15061 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
15062 + Changed the smart punctuation parser to return `Inlines`
15063 rather than `Inline` (Matthew Pickering).
15064 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
15065 from typeclasses of monads to typeclasses of states. This simplifies
15066 the instance definitions and provides more flexibility. Generalized
15067 type of `getOption` and added a default definition. Removed
15068 `askReaderOption`. Added `extractReaderOption`. Added
15069 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
15070 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
15071 `modifyHeaderMap`. Added `extractIdentifierList` and
15072 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
15073 for `getIdentifierList`, `putIdentifierList`, and
15074 `modifyIdentifierList`. The ultimate goal here is to allow different
15075 parsers to use their own, tailored parser states (instead of
15076 `ParserState`) while still using shared functions.
15078 * Template changes:
15080 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
15081 + LaTeX template: Add `linestretch` and `fontfamily` variables.
15082 + LaTeX template: Conditionalize author and date commands.
15083 + Beamer template: Consistent styles for figure and table captions
15084 (aaronwolen).
15085 + LaTeX and beamer template: Adjust widths correctly for oversized
15086 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
15087 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
15088 `upquote` only after `fontenc` (Yihui Xie).
15089 + Beamer template: Added caption package (#1200).
15090 + Beamer template: changes for better unicode handling (KarolS).
15091 + DocBook template: use `authorgroup` if there are authors.
15092 + revealjs template: Move `include-after` to end (certainlyakey).
15093 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
15095 * Bumped version bounds of dependencies.
15097 * Added a `--trace` command line option, for debugging backtracking
15098 bugs. So far this only works with the markdown reader.
15100 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
15102 * Updated travis script to test with multiple GHC versions.
15104 * Force failure of a Travis build if GHC produces warnings (Albert
15105 Krewinkel).
15107 * Add `.editorconfig` (Albert Krewinkel).
15108 See <http://editorconfig.org/> for details.
15110 * Give more useful error message if '-t pdf' is specified (#1155).
15112 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
15114 * Allow `html4` as a synonym of `html` as a reader (it already works
15115 as a writer).
15117 * README:
15119 + Added an explanation of how to use YAML metadata to
15120 force items to appear in the bibliography without citations in
15121 the text (like LaTeX `\nocite`).
15122 + Added note to `--bibtex/--natbib`: not for use in making PDF
15123 (#1194, thanks to nahoj).
15124 + Added explanatory notes about `--natbib` and `--biblatex`.
15125 + Added specification of legal syntax for citation keys.
15126 + Fixed variable defaults documentation (Albert Krewinkel).
15128 * Removed copyright statements for files that have been removed
15129 (Albert Krewinkel).
15131 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
15132 They aren't needed at runtime. We keep README and COPYRIGHT in data
15133 to ensure that they'll be available on all systems on which pandoc
15134 is installed.
15136 * Use cabal sandboxes in Windows build script.
15138## pandoc 1.12.3.3 (2014-02-03)
15140 * To changes to source; recompiled tarball with latest alex and
15141 happy, so they will work with GHC 7.8.
15143## pandoc 1.12.3.2 (2014-02-03)
15145 * Bumped version bounds for blaze-html, blaze-markup.
15147 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
15148 (#1124).
15150 * Fixed mediawiki ordered list parsing (#1122).
15152 * HTML reader: Fixed bug reading inline math with `$$` (#225).
15154 * Added support for LaTeX style literate Haskell code blocks in rST
15155 (Merijn Verstraaten).
15157## pandoc 1.12.3.1 (2014-01-14)
15159 * Relaxed version constraint on binary, allowing the use of binary 0.5.
15162## pandoc 1.12.3 (2014-01-10)
15164 * The `--bibliography` option now sets the `biblio-files` variable.
15165 So, if you're using `--natbib` or `--biblatex`, you can just use
15166 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
15168 * Don't run pandoc-citeproc filter if `--bibliography` is
15169 used together with `--natbib` or `--biblatex` (Florian Eitel).
15171 * Template changes:
15173 + Updated beamer template to include booktabs.
15174 + Added `abstract` variable to LaTeX template.
15175 + Put `header-includes` after `title` in LaTeX template (#908).
15176 + Allow use of `\includegraphics[size]` in beamer.
15177 This just required porting a macro definition from the default
15178 LaTeX template to the default beamer template.
15180 * `reference.docx`: Include `FootnoteText` style.
15181 Otherwise Word ignores the style, even when specified in the `pPr`.
15182 (#901)
15184 * `reference.odt`: Tidied `styles.xml`.
15186 * Relaxed version bounds for dependencies.
15188 * Added `withSocketsDo` around http conduit code in `openURL`,
15189 so it works on Windows (#1080).
15191 * Added `Cite` function to `sample.lua`.
15193 * Markdown reader:
15195 + Fixed regression in title blocks (#1089).
15196 If author field was empty, date was being ignored.
15197 + Allow backslash-newline hard line breaks in grid and
15198 multiline table cells.
15199 + Citation keys may now start with underscores, and may contain
15200 underscores adjacent to internal punctuation.
15202 * LaTeX reader:
15204 + Add support for `Verb` macro (jrnold) (#1090).
15205 + Support babel-style quoting: `` "`..."' ``.
15207 * Properly handle script blocks in strict mode. (That is,
15208 `markdown-markdown_in_html_blocks`.) Previously a spurious
15209 `<p>` tag was being added (#1093).
15211 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
15212 elements.
15214 * LaTeX writer:
15216 + Factored out function for table cell creation.
15217 + Better treatment of footnotes in tables.
15218 Notes now appear in the regular sequence, rather than in the
15219 table cell. (This was a regression in 1.10.)
15221 * HTML reader: Parse name/content pairs from meta tags as metadata.
15222 Closes #1106.
15224 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
15226 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
15228 * ODT writer: Use mathml for proper rendering of formulas.
15229 Note: LibreOffice's support for this seems a bit buggy. But
15230 it should be better than what we had before.
15232 * RST writer: Ensure no blank line after def in definition list (#992).
15234 * Markdown writer: Don't use tilde code blocks with braced attributes in
15235 `markdown_github` output. A consequence of this change is that the
15236 backtick form will be preferred in general if both are enabled. That
15237 is good, as it is much more widespread than the tilde form. (#1084)
15239 * Docx writer: Fixed problem with some modified reference docx files.
15240 Include `word/_rels/settings.xml.rels` if it exists, as well as other
15241 `rels` files besides the ones pandoc generates explicitly.
15243 * HTML writer:
15245 + With `--toc`, headers no longer link to themselves (#1081).
15246 + Omit footnotes from TOC entries. Otherwise we get doubled
15247 footnotes when headers have notes!
15249 * EPUB writer:
15251 + Avoid duplicate notes when headings contain notes.
15252 This arose because the headings are copied into the metadata
15253 "title" field, and the note gets rendered twice. We strip the
15254 note now before putting the heading in "title".
15255 + Strip out footnotes from toc entries.
15256 + Fixed bug with `--epub-stylesheet`. Now the contents of
15257 `writerEpubStylesheet` (set by `--epub-stylesheet`)
15258 should again work, and take precedence over a stylesheet specified
15259 in the metadata.
15261 * `Text.Pandoc.Pretty`: Added `nestle`. API change.
15263 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
15265 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
15266 with `//`.
15268 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
15269 we could only get size information for JFIF format, which led
15270 to squished images in Word documents. Closes #976.
15272 * Removed old `MarkdownTest_1.0.3` directory (#1104).
15275## pandoc 1.12.2.1 (2013-12-08)
15277 * Markdown reader: Fixed regression in list parser, involving
15278 continuation lines containing raw HTML (or even verbatim raw HTML).
15280## pandoc 1.12.2 (2013-12-07)
15282 * Metadata may now be included in YAML blocks in a markdown document.
15283 For example,
15285 ---
15286 title:
15287 - type: main
15288 text: My Book
15289 - type: subtitle
15290 text: An investigation of metadata
15291 creator:
15292 - role: author
15293 text: John Smith
15294 - role: editor
15295 text: Sarah Jones
15296 identifier:
15297 - scheme: DOI
15298 text: doi:10.234234.234/33
15299 publisher: My Press
15300 rights: (c) 2007 John Smith, CC BY-NC
15301 cover-image: img/mypic.jpg
15302 stylesheet: style.css
15303 ...
15305 Metadata may still be provided using `--epub-metadata`; it will
15306 be merged with the metadata in YAML blocks.
15308 * EPUB writer:
15310 + `meta` tags are now used instead of `opf` attributes for EPUB3.
15311 + Insert "svg" property as needed in opf (EPUB 3).
15312 + Simplify `imageTypeOf` using `getMimeType`.
15313 + Add properties attribute to `cover-image` item for EPUB 3.
15314 + Don't include node for `cover.xhtml` if no cover!
15315 + Ensure that same identifier is used throughout (#1044).
15316 If an identifier is given in metadata, we use that; otherwise
15317 we generate a random uuid.
15318 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
15319 Fixes an issue with Calibre putting the cover at the end of the book
15320 if the spine has `linear="no"`. Apparently this is best practice
15321 for other converters as well:
15322 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
15323 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
15324 + Allow partial dates: `YYYY`, `YYYY-MM`.
15326 * Markdown writer: Fix rendering of tight sublists (#1050).
15327 Previously a spurious blank line was included after a tight sublist.
15329 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
15330 This is reported to be necessary to avoid an error from recent
15331 versions of Libre Office when files contain more than one image
15332 Thanks to wmanley for reporting and diagnosing the problem.
15334 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
15335 Instead, let this be set in the template, using `\setupfloat`.
15336 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
15338 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
15340 * Fixed bug with markdown intraword emphasis. Closes #1066.
15342 * Docbook writer: Hierarchicalize block content in metadata.
15343 Previously headers just disappeared from block-level metadata
15344 when it was used in templates. Now we apply the 'hierarchicalize'
15345 transformation. Note that a block headed by a level-2 header will
15346 turn into a `<sect1>` element.
15348 * OpenDocument writer: Skip raw HTML (#1035).
15349 Previously it was erroneously included as verbatim text.
15351 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
15352 This allows better control of formatting, since the `<a>`
15353 tags have a distinguishing class (#1049).
15355 * Docx writer:
15357 + Use mime type info returned by fetchItem.
15358 + Fixed core metadata (#1046).
15359 Don't create empty date nodes if no date given.
15360 Don't create multiple `dc:creator` nodes; instead separate by
15361 semicolons.
15362 + Fix URL for core-properties in `_rels/.rels` (#1046).
15364 * Plain writer: don't print `<span>` tags.
15366 * LaTeX writer:
15368 + Fix definition lists with internal links in terms (#1032).
15369 This fix puts braces around a term that contains an internal
15370 link, to avoid problems with square brackets.
15371 + Properly escape pdftitle, pdfauthor (#1059).
15372 + Use booktabs package for tables (thanks to Jose Luis Duran).
15374 * Updated beamer template. Now references should work properly
15375 (in a slide) when `--biblatex` or `--natbib` is used.
15377 * LaTeX reader:
15379 + Parse contents of curly quotes or matched `"` as quotes.
15380 + Support `\textnormal` as span with class `nodecor`.
15381 This is needed for pandoc-citeproc.
15382 + Improved citation parsing. This fixes a run-time error that occurred
15383 with `\citet{}` (empty list of keys). It also ensures that empty keys
15384 don't get produced.
15386 * MediaWiki reader: Add automatic header identifiers.
15388 * HTML reader:
15390 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
15391 `--parse-raw`.
15392 + Recognize `svg` tags as block level content (thanks to MinRK).
15393 + Parse LaTeX math if appropriate options are set.
15395 * Markdown reader:
15397 + Yaml block must start immediately after `---`. If there's a blank
15398 line after `---`, we interpreted it as a horizontal rule.
15399 + Correctly handle empty bullet list items.
15400 + Stop parsing "list lines" when we hit a block tag.
15401 This fixes exponential slowdown in certain input, e.g.
15402 a series of lists followed by `</div>`.
15404 * Slides: Preserve `<div class="references">` in references slide.
15406 * `Text.Pandoc.Writer.Shared`:
15408 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
15409 attributes, leading to invalid HTML.
15410 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
15411 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
15412 encoded bytestring was returned. We now decode it so it's a proper
15413 image!
15415 * DocBook reader: Handle numerical attributes starting with decimal.
15416 Also use `safeRead` instead of `read`.
15418 * `Text.Pandoc.Parsing`:
15420 + Generalized type of `registerHeader`, using new type classes
15421 `HasReadeOptions`, `HasIdentifierList`, `HasHeaderMap`.
15422 These allow certain common functions to be reused
15423 even in parsers that use custom state (instead of `ParserState`),
15424 such as the MediaWiki reader.
15425 + Moved inlineMath, displayMath from Markdown reader to Parsing.
15426 Generalize their types and export them from Parsing. (API change.)
15428 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
15429 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
15430 in all the writers. Require `texmath >= 0.6.5.2`.
15432 * `Text.Pandoc.MIME`:
15434 + Add entry for `jfif`.
15435 + In looking up extensions, drop the encoding info.
15436 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
15438 * Templates: Changed how array variables are resolved. Previously if
15439 `foo` is an array (which might be because multiple values were set on
15440 the command line), `$foo$` would resolve to the concatenation of the
15441 elements of foo. This is rarely useful behavior. It has been changed
15442 so that the first value is rendered. Of course, you can still iterate
15443 over the values using `$for(foo)$`. This has the result that you can
15444 override earlier settings using `-V` by putting new values later on the
15445 command line, which is useful for many purposes.
15447 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
15449 * Allow "epub2" as synonym for "epub", "html4" for "html".
15451 * Don't look for slidy files in data files with `--self-contained`.
15453 * Allow `https:` command line arguments to be downloaded.
15455 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
15457## pandoc 1.12.1 (2013-10-20)
15459 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
15460 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
15461 "c": "foo"}`. This new format is easier to work with outside of Haskell.
15462 Incidentally, "t" stands for "tag", "c" for "contents".
15464 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
15465 when converting to markdown (#1027).
15467 * LaTeX reader:
15469 + Ensure that preamble doesn't contribute to the text of
15470 the document.
15471 + Fixed character escaping in `\url{}`. Previously `\~` wasn't handled
15472 properly, among others.
15473 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
15474 bibtex titles, since we need to know what was protected from
15475 titlecase conversions.
15477 * LaTeX writer:
15479 + Specially escape non-ascii characters in labels.
15480 Otherwise we can get compile errors and other bugs when
15481 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
15482 + Add link anchors for code blocks with identifiers (#1025).
15484 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
15485 It allows fragments identifiers.
15487 * Slide formats:
15489 + A Div element with class "notes" is treated as speaker
15490 notes. Currently beamer goes to `\note{}`, revealjs to
15491 `<aside class="notes">`, and the notes are simply suppressed in
15492 other formats (#925).
15493 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
15494 The old version caused a pause to be inserted before the first
15495 material on a slide. This has been fixed.
15496 + Removed data files for s5, slideous, slidy.
15497 Users of s5 and slideous will have to download the needed
15498 files, as has been documented for some time in the README.
15499 By default, slidy code will be sought on the web, as before.
15501 * HTML writer: Insert command to typeset mathjax only in slideous output
15502 (#966, #1012).
15504 * RST writer: Skip spaces after display math. Otherwise we get indentation
15505 problems, and part of the next paragraph may be rendered as part of the
15506 math.
15508 * OpenDocument writer: Fix formatting of strikeout code (#995),
15509 thanks to wilx. don't use `font-face-decls` variable.
15511 * Fixed test suite so it works with cabal sandboxes.
15513## pandoc 1.12.0.2 (2013-09-20)
15515 * Removed an unused dependency (`stringable`) from pandoc.cabal.
15516 This will help packagers, but users should not need to upgrade.
15518## pandoc 1.12.0.1 (2013-09-20)
15520 * Allow `--metadata` to be repeated for the same key to form a list.
15521 This also has the effect that `--bibliography` can be repeated,
15522 as before.
15524 * Handle boolean values in `--metadata`. Note that anything not parseable
15525 as a YAML boolean or string is treated as a literal string.
15526 You can get a string value with "yes", or any of the strings interpretable
15527 as booleans, by quoting it:
15529 -M boolvalue=yes -M stringvalue='"yes"'
15531 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
15532 option used.
15534 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
15535 in which docx files could not be read by some versions of Word
15536 and LibreOffice (#990).
15538 * Fixed a regression involving slide shows with bibliographies.
15539 The Div container around references messed up the procedure for carving
15540 a document into slides. So we now remove the surrounding Div in
15541 `prepSlides`.
15543 * More informative error message when a filter is not found in path.
15545 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
15546 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
15548 * Don't use unicode_collation in building OSX package:
15549 it adds something like 50MB of dependencies to the package.
15551 * Declare alex and happy as build-tools (#986).
15553## pandoc 1.12 (2013-09-15)
15555### New features
15557 * Much more flexible metadata, including arbitrary fields and structured
15558 values. Metadata can be specified flexibly in pandoc markdown using
15559 YAML metadata blocks, which may occur anywhere in the document:
15561 ---
15562 title: Here is my title.
15563 abstract: |
15564 This is the abstract.
15566 1. It can contain
15567 2. block content
15568 and *inline markup*
15570 tags: [cat, dog, animal]
15571 ...
15573 Metadata fields automatically populate template variables.
15575 * Added `opml` (OPML) as input and output format. The `_note` attribute,
15576 used in OmniOutliner and supported by multimarkdown, is supported.
15577 We treat the contents as markdown blocks under a section header.
15579 * Added `haddock` (Haddock markup) as input format (David Lazar).
15581 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
15582 (Thanks to Jamie F. Olson for the initial patch.)
15583 Nested vertical stacks are used for hierarchical structure.
15584 Results for more than one level of nesting may be odd.
15586 * Custom writers can now be written in lua.
15588 pandoc -t data/sample.lua
15590 will load the script sample.lua and use it as a custom writer.
15591 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
15592 Note that pandoc embeds a lua interpreter, so lua need not be
15593 installed separately.
15595 * New `--filter/-F` option to make it easier to run "filters"
15596 (Pandoc AST transformations that operate on JSON serializations).
15597 Filters are always passed the name of the output format, so their
15598 behavior can be tailored to it. The repository
15599 <https://github.com/jgm/pandocfilters> contains
15600 a python module for writing pandoc filters in python, with
15601 a number of examples.
15603 * Added `--metadata/-M` option.
15604 This is like `--variable/-V`, but actually adds to metadata, not
15605 just variables.
15607 * Added `--print-default-data-file` option, which allows printing
15608 of any of pandoc's data files. (For example,
15609 `pandoc --print-default-data-file reference.odt` will print
15610 `reference.odt`.)
15612 * Added syntax for "pauses" in slide shows:
15614 This gives
15616 . . .
15618 me pause.
15620 * New markdown extensions:
15622 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
15623 rather than being treated as hard line breaks or spaces. This is useful
15624 for some East Asian languages, where spaces aren't used between words,
15625 but text is separated into lines for readability.
15626 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
15627 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
15628 only. (Default for `markdown_github`.) (#807)
15629 + `lists_without_preceding_blankline`: Allow lists to start without
15630 preceding blank space. (Default for `markdown_github`.) (#972)
15632### Behavior changes
15634 * `--toc-level` no longer implies `--toc`.
15635 Reason: EPUB users who don't want a visible TOC may still want
15636 to set the TOC level for in the book navigation.
15638 * `--help` now prints in and out formats in alphabetical order, and
15639 says something about PDF output (#720).
15641 * `--self-contained` now returns less verbose output (telling you
15642 which URLs it is fetching, but not giving the full header). In
15643 addition, there are better error messages when fetching a URL fails.
15645 * Citation support is no longer baked in to core pandoc. Users who
15646 need citations will need to install and use a separate filter
15647 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
15648 `csl`, and `citation-abbreviations` from the metadata, though it
15649 may still be specified on the command line as before.
15651 * A `Cite` element is now created in parsing markdown whether or not
15652 there is a matching reference.
15654 * The `pandoc-citeproc` script will put the bibliography at the
15655 end of the document, as before. However, it will be put inside a `Div`
15656 element with class "references", allowing users some control
15657 over the styling of references. A final header, if any, will
15658 be included in the `Div`.
15660 * The markdown writer will not print a bibliography if the
15661 `citations` extension is enabled. (If the citations are formatted
15662 as markdown citations, it is redundant to have a bibliography,
15663 since one will be generated automatically.)
15665 * Previously we used to store the directory of the first input file,
15666 even if it was local, and used this as a base directory for finding
15667 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
15668 users. So we now look for images relative to the current
15669 working directory, even if the first file argument is in another
15670 directory. Note that this change may break some existing workflows.
15671 If you have been assuming that relative links will be interpreted
15672 relative to the directory of the first file argument, you'll need
15673 to make that the current directory before running pandoc. (#942)
15675 * Better error reporting in some readers, due to changes in `readWith`:
15676 the line in which the error occurred is printed, with a caret pointing
15677 to the column.
15679 * All slide formats now support incremental slide view for definition lists.
15681 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
15682 Parse `:<math>...</math>` as display math. These notations are used with
15683 the MathJax MediaWiki extension.
15685 * All writers: template variables are set automatically from metadata
15686 fields. However, variables specified on the command line with
15687 `--variable` will completely shadow metadata fields.
15689 * If `--variable` is used to set many variables with the same name,
15690 a list is created.
15692 * Man writer: The `title`, `section`, `header`, and `footer` can now
15693 all be set individually in metadata. The `description` variable has been
15694 removed. Quotes have been added so that spaces are allowed in the
15695 title. If you have a title that begins
15697 COMMAND(1) footer here | header here
15699 pandoc will still parse it into a title, section, header, and
15700 footer. But you can also specify these elements explicitly (#885).
15702 * Markdown reader
15704 + Added support for YAML metadata blocks, which can come anywhere
15705 in the document (not just at the beginning). A document can contain
15706 multiple YAML metadata blocks.
15707 + HTML span and div tags are parsed as pandoc Span and Div elements.
15709 * Markdown writer
15711 + Allow simple tables to be printed as grid tables,
15712 if other table options are disabled. This means you can do
15713 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
15714 and all tables will render as grid tables.
15715 + Support YAML title block (render fields in alphabetical order
15716 to make output predictable).
15718### API changes
15720 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
15721 structured metadata. (Note: existing code that pattern-matches
15722 on `Meta` will have to be revised.) Metadata can now contain
15723 indefinitely many fields, with content that can be a string,
15724 a Boolean, a list of `Inline` elements, a list of `Block`
15725 elements, or a map or list of these.
15727 * A new generic block container (`Div`) has been added to `Block`,
15728 and a generic inline container (`Span`) has been added to `Inline`.
15729 These can take attributes. They will render in HTML, Textile,
15730 MediaWiki, Org, RST and Markdown (with `markdown_in_html`
15731 extension) as HTML `<div>` and `<span>` elements; in other formats
15732 they will simply pass through their contents. But they can be
15733 targeted by scripts.
15735 * `Format` is now a newtype, not an alias for String.
15736 Equality comparisons are case-insensitive.
15738 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
15739 functions that are much faster than the SYB functions from
15740 `Text.Pandoc.Generic`. These functions are now used where possible
15741 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
15742 match the generic traversals `bottomUp` and `queryWith`.)
15744 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
15745 instances for the basic pandoc types. They use GHC generics and
15746 should be faster than the old JSON serialization using
15747 `Data.Aeson.Generic`.
15749 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
15750 This is a souped-up version of `readProcessWithErrorcode` that
15751 uses lazy bytestrings instead of strings and allows setting
15752 environment variables. (Used in `Text.Pandoc.PDF`.)
15754 * New module `Text.Pandoc.Readers.OPML`.
15756 * New module `Text.Pandoc.Writers.OPML`.
15758 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
15759 This is based on Haddock's own lexer/parser.
15761 * New module `Text.Pandoc.Writers.Custom`.
15763 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
15764 Either, for better error handling.
15766 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
15768 * Removed `stripTags` from `Text.Pandoc.XML`.
15770 * `Text.Pandoc.Templates`:
15772 + Simplified `Template` type to a newtype.
15773 + Removed `Empty`.
15774 + Changed type of `renderTemplate`: it now takes a JSON context
15775 and a compiled template.
15776 + Export `compileTemplate`.
15777 + Export `renderTemplate'` that takes a string instead of a compiled
15778 template.
15779 + Export `varListToJSON`.
15781 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
15783 * `Text.Pandoc`:
15785 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
15786 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
15787 `Text.Pandoc.JSON` should be used instead. (Compiling against
15788 pandoc-types instead of pandoc will also produce smaller executables.)
15789 * Removed the deprecated `jsonFilter` function.
15790 + Added `readJSON`, `writeJSON` to the API (#817).
15792 * `Text.Pandoc.Options`:
15794 + Added `Ext_lists_without_preceding_blankline`,
15795 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
15796 `Ext_yaml_metadataBlock` to `Extension`.
15797 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
15798 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
15799 first command-line argument is an absolute URL. (So, relative links
15800 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
15801 + All bibliography-related fields have been removed from
15802 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
15803 `readerReferences`, `readerCitationStyle`.
15805 * The `Text.Pandoc.Biblio` module has been removed. Users of the
15806 pandoc library who want citation support will need to use
15807 `Text.CSL.Pandoc` from `pandoc-citeproc`.
15809### Bug fixes
15811 * In markdown, don't autolink a bare URI that is followed by `</a>`
15812 (#937).
15814 * `Text.Pandoc.Shared`
15816 + `openURL` now follows redirects (#701), properly handles `data:`
15817 URIs, and prints diagnostic output to stderr rather than stdout.
15818 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
15819 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
15820 + Fixed `readDefaultDataFile` so it works on Windows.
15821 + Better error messages for `readDefaultDataFile`. Instead of
15822 listing the last path tried, which can confuse people who are
15823 using `--self-contained`, so now we just list the data file name.
15824 + URL-escape pipe characters. Even though these are legal, `Network.URI`
15825 doesn't regard them as legal in URLs. So we escape them first (#535).
15827 * Mathjax in HTML slide shows: include explicit "Typeset" call.
15828 This seems to be needed for some formats (e.g. slideous) and won't
15829 hurt in others (#966).
15831 * `Text.Pandoc.PDF`
15833 + On Windows, create temdir in working directory, since the system
15834 temp directory path may contain tildes, which can cause
15835 problems in LaTeX (#777).
15836 + Put temporary output directory in `TEXINPUTS` (see #917).
15837 + `makePDF` tries to download images that are not found locally,
15838 if the first argument is a URL (#917).
15839 + If compiling with `pdflatex` yields an encoding error, offer
15840 the suggestion to use `--latex-engine=xelatex`.
15842 * Produce automatic header identifiers in parsing textile, RST,
15843 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
15845 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
15846 before treating as a filename. This fixes `--self-contained` when used
15847 with CSS files that include web fonts using the method described here:
15848 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
15849 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
15851 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
15852 percent-encoding, or a `+` character, as final punctuation.
15854 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
15855 EPS images properly sized on conversion to Word.
15857 * Slidy: Use slidy.js rather than slidy.js.gz.
15858 Reason: some browsers have trouble with the gzipped js file,
15859 at least on the local file system (#795).
15861 * Markdown reader
15863 + Properly handle blank line at beginning of input (#882).
15864 + Fixed bug in unmatched reference links. The input
15865 `[*infile*] [*outfile*]` was getting improperly parsed:
15866 "infile" was emphasized, but "*outfile*" was literal (#883).
15867 + Allow internal `+` in citation identifiers (#856).
15868 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
15869 + Do not generate blank title, author, or date metadata elements.
15870 Leave these out entirely if they aren't present.
15871 + Allow backtick code blocks not to be preceded by blank line (#975).
15873 * Textile reader:
15875 + Correctly handle entities.
15876 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
15877 in code blocks, rather than printing them verbatim. Parse attributes
15878 on `<pre>` tag for code blocks.
15880 * HTML reader: Handle non-simple tables (#893). Column widths are read from
15881 `col` tags if present, otherwise divided equally.
15883 * LaTeX reader
15885 + Support alltt environment (#892).
15886 + Support `\textasciitilde`, `\textasciicircum` (#810).
15887 + Treat `\textsl` as emphasized text reader (#850).
15888 + Skip positional options after `\begin{figure}`.
15889 + Support `\v{}` for hacek (#926).
15890 + Don't add spurious ", " to citation suffixes.
15891 This is added when needed in pandoc-citeproc.
15892 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
15893 + Improved support for accented characters (thanks to Scott Morrison).
15894 + Parse label after section command and set id (#951).
15896 * RST reader:
15898 + Don't insert paragraphs where docutils doesn't.
15899 `rst2html` doesn't add `<p>` tags to list items (even when they are
15900 separated by blank lines) unless there are multiple paragraphs in the
15901 list. This commit changes the RST reader to conform more closely to
15902 what docutils does (#880).
15903 + Improved metadata. Treat initial field list as metadata when
15904 standalone specified. Previously ALL fields "title", "author",
15905 "date" in field lists were treated as metadata, even if not at
15906 the beginning. Use `subtitle` metadata field for subtitle.
15907 + Fixed 'authors' metadata parsing in reST. Semicolons separate
15908 different authors.
15910 * MediaWiki reader
15912 + Allow space before table rows.
15913 + Fixed regression for `<ref>URL</ref>`.
15914 `<` is no longer allowed in URLs, according to the uri parser
15915 in `Text.Pandoc.Parsing`. Added a test case.
15916 + Correctly handle indented preformatted text without preceding
15917 or following blank line.
15918 + Fixed `|` links inside table cells. Improved attribute parsing.
15919 + Skip attributes on table rows. Previously we just crashed if
15920 rows had attributes, now we ignore them.
15921 + Ignore attributes on headers.
15922 + Allow `Image:` for images (#971).
15923 + Parse an image with caption in a paragraph by itself as a figure.
15925 * LaTeX writer
15927 + Don't use ligatures in escaping inline code.
15928 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
15929 wherein notes were numbered incorrectly in tables (#827).
15930 + Always create labels for sections. Previously the labels were only
15931 created when there were links to the section in the document (#871).
15932 + Stop escaping `|` in LaTeX math.
15933 This caused problems with array environments (#891).
15934 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
15935 `\` will cause major problems if unescaped.
15936 + Write id for code block to label attribute in LaTeX when listings
15937 is used (thanks to Florian Eitel).
15938 + Scale LaTeX tables so they don't exceed columnwidth.
15939 + Avoid problem with footnotes in unnumbered headers (#940).
15941 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
15942 to the slide if it is one of the header classes. It is recommended
15943 that your bibliography slide have this attribute:
15945 # References {.allowframebreaks}
15947 This causes multiple slides to be created if necessary, depending
15948 on the length of the bibliography.
15950 * ConTeXt writer: Properly handle tables without captions. The old output
15951 only worked in MkII. This should work in MkIV as well (#837).
15953 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
15955 * HTML writer:
15957 + Fixed `--no-highlight` (Alexander Kondratskiy).
15958 + Don't convert to lowercase in email obfuscation (#839).
15959 + Ensure proper escaping in `<title>` and `<meta>` fields.
15961 * AsciiDoc writer:
15963 + Support `--atx-headers` (Max Rydahl Andersen).
15964 + Don't print empty identifier blocks `([[]])` on headers (Max
15965 Rydahl Andersen).
15967 * ODT writer:
15969 + Fixing wrong numbered-list indentation in open document format
15970 (Alexander Kondratskiy) (#369).
15971 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
15972 + Minor changes for ODF 1.2 conformance (#939). We leave the
15973 nonconforming `contextual-spacing` attribute, which is provided by
15974 LibreOffice itself and seems well supported.
15976 * Docx writer:
15978 + Fixed rendering of display math in lists.
15979 In 1.11 and 1.11.1, display math in lists rendered as a new list
15980 item. Now it always appears centered, just as outside of lists,
15981 and in proper display math style, no matter how far indented the
15982 containing list item is (#784).
15983 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
15984 Previously we used `w:cr` (#873).
15985 + Use Compact style for Plain block elements, to
15986 differentiate between tight and loose lists (#775).
15987 + Ignore most components of `reference.docx`.
15988 We take the `word/styles.xml`, `docProps/app.xml`,
15989 `word/theme/theme1.xml`, and `word/fontTable.xml` from
15990 `reference.docx`, ignoring everything else. This should help
15991 with the corruption problems caused when different versions of
15992 Word resave the reference.docx and reorganize things.
15993 + Made `--no-highlight` work properly.
15995 * EPUB writer
15997 + Don't add `dc:creator` tags if present in EPUB metadata.
15998 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
15999 + Don't put blank title page in reading sequence.
16000 Set `linear="no"` if no title block. Addresses #797.
16001 + Download webtex images and include as data URLs.
16002 This allows you to use `--webtex` in creating EPUBs.
16003 Math with `--webtex` is automatically made self-contained.
16004 + In `data/epub.css`, removed highlighting styles (which
16005 are no longer needed, since styles are added by the HTML
16006 writer according to `--highlighting-style`). Simplified
16007 margin fields.
16008 + If resource not found, skip it, as in Docx writer (#916).
16010 * RTF writer:
16012 + Properly handle characters above the 0000-FFFF range.
16013 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
16014 + Fixed regression with RTF table of contents.
16015 + Only autolink absolute URIs. This fixes a regression, #830.
16017 * Markdown writer:
16019 + Only autolink absolute URIs. This fixes a regression, #830.
16020 + Don't wrap attributes in fenced code blocks.
16021 + Write full metadata in MMD style title blocks.
16022 + Put multiple authors on separate lines in pandoc titleblock.
16023 Also, don't wrap long author entries, as new lines get treated
16024 as new authors.
16026 * `Text.Pandoc.Templates`:
16028 + Fixed bug retrieving default template for markdown variants.
16029 + Templates can now contain "record lookups" in variables;
16030 for example, `author.institution` will retrieve the `institution`
16031 field of the `author` variable.
16032 + More consistent behavior of `$for$`. When `foo` is not a list,
16033 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
16034 So if `foo` resolves to "", no output should be produced.
16035 See pandoc-templates#39.
16037 * Citation processing improvements (now part of pandoc-citeproc):
16039 + Fixed `endWithPunct` The new version correctly sees a sentence
16040 ending in '.)' as ending with punctuation. This fixes a bug which
16041 led such sentences to receive an extra period at the end: '.).'.
16042 Thanks to Steve Petersen for reporting.
16043 + Don't interfere with Notes that aren't citation notes.
16044 This fixes a bug in which notes not generated from citations were
16045 being altered (e.g. first letter capitalized) (#898).
16046 + Only capitalize footnote citations when they have a prefix.
16047 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
16048 inserted before it before passing to citeproc-hs, so that bare numbers
16049 are treated as page numbers by default. A suffix not beginning with
16050 punctuation has a space added at the beginning (rather than a comma and
16051 space, as was done before for not-author-in-text citations).
16052 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
16053 properly, with '23' treated as a locator of type 'page'.
16054 + Many improvements to citation rendering, due to fixes in citeproc-hs
16055 (thanks to Andrea Rossato).
16056 + Warnings are issued for undefined citations, which are rendered
16057 as `???`.
16058 + Fixed hanging behavior when locale files cannot be found.
16060### Template changes
16062 * DocBook: Use DocBook 4.5 doctype.
16064 * Org: '#+TITLE:' is inserted before the title.
16065 Previously the writer did this.
16067 * LaTeX: Changes to make mathfont work with xelatex.
16068 We need the mathspec library, not just fontspec, for this.
16069 We also need to set options for setmathfont (#734).
16071 * LaTeX: Use `tex-ansi` mapping for `monofont`.
16072 This ensures that straight quotes appear as straight, rather than
16073 being treated as curly. See #889.
16075 * Made `\includegraphics` more flexible in LaTeX template.
16076 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
16078 * LaTeX/Beamer: Added `classoption` variable.
16079 This is intended for class options like `oneside`; it may
16080 be repeated with different options. (Thanks to Oliver Matthews.)
16082 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
16084 * LaTeX: Added `biblio-style` variable (#920).
16086 * DZSlides: title attribute on title section.
16088 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
16090### Under-the-hood improvements
16092 * Markdown reader:Improved strong/emph parsing, using the strategy of
16093 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
16094 no backtracking, and no keeping track of nesting levels. It will give
16095 different results in some edge cases, but these should not affect normal
16096 uses.
16098 * Added `Text.Pandoc.Compat.Monoid`.
16099 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
16100 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
16102 * Added `Text.Pandoc.Compat.TagSoupEntity`.
16103 This allows pandoc to compile with `tagsoup` 0.13.x.
16104 Thanks to Dirk Ullrich for the patch.
16106 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
16107 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
16108 handle simple math in bibliography fields.)
16110 * Added `Text.Pandoc.Writers.Shared` for shared functions used
16111 only in writers. `metaToJSON` is used in writers to create a
16112 JSON object for use in the templates from the pandoc metadata
16113 and variables. `getField`, `setField`, and `defField` are
16114 for working with JSON template contexts.
16116 * Added `Text.Pandoc.Asciify` utility module.
16117 This exports functions to create ASCII-only versions of identifiers.
16119 * `Text.Pandoc.Parsing`
16121 + Generalized state type on `readWith` (API change).
16122 + Specialize readWith to `String` input. (API change).
16123 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
16124 with `stateMeta` and `stateMeta'`.
16126 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
16127 bytestrings seemed to cause problems using pandoc on 64-bit Windows
16128 7/8 (#874).
16130 * Factored out `registerHeader` from markdown reader, added to
16131 `Text.Pandoc.Parsing`.
16133 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
16134 Reason: < 0.5 does not provide a monoid instance for Attribute,
16135 which is now needed by the HTML writer (#803).
16137 * Added `http-conduit` flag, which allows fetching https resources.
16138 It also brings in a large number of dependencies (`http-conduit`
16139 and its dependencies), which is why for now it is an optional flag
16140 (#820).
16142 * Added CONTRIBUTING.md.
16144 * Improved INSTALL instructions.
16146 * `make-windows-installer.bat`: Removed explicit paths for executables.
16148 * `aeson` is now used instead of `json` for JSON.
16150 * Set default stack size to 16M. This is needed for some large
16151 conversions, esp. if pandoc is compiled with 64-bit ghc.
16153 * Various small documentation improvements.
16154 Thanks to achalddave and drothlis for patches.
16156 * Removed comment that chokes recent versions of CPP (#933).
16158 * Removed support for GHC version < 7.2, since pandoc-types now
16159 requires at least GHC 7.2 for GHC generics.
16162## pandoc 1.11.1 (2013-03-17)
16164 * Markdown reader:
16166 + Fixed regression in which parentheses were lost in link URLs.
16167 Added tests. Closes #786.
16168 + Better handling of unmatched double quotes in `--smart` mode.
16169 These occur frequently in fiction, since it is customary not to
16170 close quotes in dialogue if the speaker does not change between
16171 paragraphs. The unmatched quotes now get turned into literal
16172 left double quotes. (No `Quoted` inline is generated, however.)
16173 Closes #99 (again).
16175 * HTML writer: Fixed numbering mismatch between TOC and sections.
16176 `--number-offset` now affects TOC numbering as well
16177 as section numbering, as it should have all along. Closes #789.
16179 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
16180 as markdown citations, even if `--bibliography` was specified, unless
16181 `citation` extension is disabled. Now, formatted citations are always
16182 printed if `--bibliography` was specified. If you want to reformat
16183 markdown keeping pandoc markdown citations intact, don't use
16184 `--bibliography`. Note that citations parsed from LaTeX documents will
16185 be rendered as pandoc markdown citations when `--bibliography` is not
16186 specified.
16188 * ODT writer: Fixed regression leading to corrupt ODTs.
16189 This was due to a change in the `Show` instance for
16190 `Text.Pandoc.Pretty.Doc`. Closes #780.
16192 * Fixed spacing bugs involving code block attributes in
16193 RST reader and Markdown writer. Closes #763.
16195 * Windows package: Various improvements due to Fyodor Sheremetyev.
16197 + Automatically set installation path (Program Files or Local App Data).
16198 + Set system PATH environment variable when installing for all users.
16199 + Pandoc can installed for all users using the following command.
16200 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
16202 * Bumped QuickCheck version bound.
16204## pandoc 1.11 (2013-03-09)
16206 * Added `--number-offset` option. (See README for description.)
16208 * Added `--default-image-extension` option. (See README for description.)
16210 * `--number-sections` behavior change: headers with class `unnumbered`
16211 will not be numbered.
16213 * `--version` now reports the default data directory.
16215 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
16217 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
16219 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
16220 a field for `Attr` rather than just `String`. (API change.)
16222 * Added `markdown_github` as input format. This was an accidental
16223 omission in 1.10.
16225 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
16226 change.)
16228 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
16230 * Beamer template:
16232 + Fixed captions with longtable. Thanks to Joost Kremers.
16233 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
16235 * LaTeX template:
16237 + Load microtype after fonts. Microtype needs to know
16238 what fonts are being used. Thanks to dfc for the patch.
16239 + Set `secnumdepth` to 5 if `--number-sections` specified.
16240 This yields behavior equivalent to the other writers, numbering
16241 level 4 and 5 headers too. Closes #753.
16243 * HTML reader:
16245 + Handle `<colgroup>` tag.
16246 + Preserve all header attributes.
16248 * LaTeX reader:
16250 + Parse `\hrule` as `HorizontalRule`. Closes #746.
16251 + Parse starred variants of `\section` etc. as headers with
16252 attribute `unnumbered`.
16253 + Read optional attributes in `lstlisting` and `Verbatim` environments.
16254 We convert these to pandoc standard names, e.g. `numberLines`
16255 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
16256 + Handle language attribute for lstlistings.
16257 + Better support for Verbatim and minted environments. Closes #763.
16259 * Markdown reader:
16261 + `-` in an attribute context = `.unnumbered`. The point of this
16262 is to provide a way to specify unnumbered headers in non-English
16263 documents.
16264 + Fixed bug parsing key/value attributes. Parsing failed if you
16265 had an unquoted attribute immediately before the final '}'.
16266 + Make backslash escape work in attributes.
16267 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
16268 pandoc will parse a MMD title block if it sees one, even if
16269 `pandoc_title_blocks` is enabled.
16270 + Refactoring: `litChar` now includes entities, so we don't need
16271 to use `fromEntities` e.g. on titles.
16272 + Allow spaces around borders in pipe tables. Closes #772.
16273 + Allow all punctuation in angle-bracket autolinks. Previously
16274 things like `----` were disallowed, because the uri parser
16275 treated them as trailing punctuation. Closes #768.
16276 + Make `implicit_header_references` work properly when
16277 headers are given explicit identifiers.
16278 + Check for tables before line blocks. Otherwise some pipe
16279 tables get treated as line blocks.
16280 + Allow `&` in emails (for entities).
16281 + Properly handle entities in titles and links. A markdown link
16282 `<http://g&ouml;ogle.com>` should be a link to `http://göogle.com`.
16283 Closes #723.
16285 * Textile reader:
16287 + Handle attributes on headers.
16289 * LaTeX reader:
16291 + Add `fig:` as title for images with captions.
16292 This is needed for them to be rendered as figures. Closes #766.
16293 + Never emit an empty paragraph. See #761.
16294 + Handle `\caption` for images in figures. Closes #766.
16295 + Parse `\section*`, etc. as unnumbered sections.
16297 * HTML writer:
16299 + Support header attributes. The attributes go on
16300 the enclosing `section` or `div` tag if `--section-divs` is specified.
16301 + Fixed a regression (only now noticed) in html+lhs output.
16302 Previously the bird tracks were being omitted.
16304 * LaTeX writer:
16306 + Omit lists with no items to avoid LaTeX errors.
16307 + Support line numbering with `--listings`.
16308 If `numberLines` class is present, we add `numbers=left`;
16309 if `startFrom` is present, we add `firstnumber=`. (#763)
16311 * ConTeXt writer:
16313 + Removed `\placecontent`. This produced a duplicate toc,
16314 in conjunction with `\placelist`.
16315 + Use `\title`, `\subject` etc. for headers with
16316 `unnumbered` class.
16318 * Textile writer:
16320 + Support header attributes.
16322 * Markdown writer:
16324 + Use grid tables when needed, and if enabled. Closes #740.
16325 + Render citations as pandoc-markdown citations.
16326 Previously citations were rendered as citeproc-formatted citations
16327 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
16328 unless the `citations` extension is disabled.
16329 If you still want formatted citations in your markdown output,
16330 use `pandoc -t markdown-citations`.
16332 * RST writer:
16334 + Support `:number-lines:` in code blocks.
16336 * Docx writer:
16338 + Better treatment of display math. Display math inside a
16339 paragraph is now put in a separate paragraph, so it will render
16340 properly (centered and without extra blank lines around it).
16341 Partially addresses #742.
16342 + Content types and document rels xml files are now created from
16343 scratch, rather than being taken over from `reference.docx`.
16344 This fixes problems that arise when you edit the `reference.docx`
16345 with Word.
16346 + We also now encode mime types for each individual image rather
16347 than using defaults. This should allow us to handle a wider
16348 range of image types (including PDF). Closes #414.
16349 + Changed style names in `reference docx`.
16350 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
16351 The old names got changed by Word when the `reference.docx` was
16352 edited. Closes #414.
16354 * EPUB writer:
16356 + Fix section numbering. Previously the numbering restarted from 1
16357 in each chapter (with `--number-sections`), though the numbers in
16358 the table of contents were correct.
16359 + Headers with "unnumbered" attribute are not numbered. (Nor do they
16360 cause an increment in running numbering.) Section numbers now work
16361 properly, even when there is material before the first numbered section.
16362 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
16363 but `linear` is set to `no` unless the `--toc` option is specified.
16364 Include `<guide>` element in OPF. This should allow the TOC to
16365 be usable in Kindles when converted with kindlegen. Closes #773.
16367 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
16368 This dramatically reduces the speed penalty that comes from enabling the
16369 `autolink_bare_uris` extension. The penalty is still substantial (in one
16370 test, from 0.33s to 0.44s), but nowhere near what it used to be.
16371 The RST reader is also much faster now, as it autodetects URIs.
16373 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
16374 with class "unnumbered". Unnumbered sections get `[]` for their
16375 section number.
16377 * `Text.Pandoc.Pretty`:
16379 + Fixed `chomp` so it works inside `Prefixed` elements.
16380 + Changed `Show` instance so it is better for debugging.
16382 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
16384 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
16386 * Windows installer improvements:
16388 + The installer is now signed with a certificate (thanks to
16389 Fyodor Sheremetyev).
16390 + WiX is used instead of InnoSetup. The installer is now a
16391 standard msi file.
16392 + The version number is now auto-detected, and need not be
16393 updated separately.
16395 * OSX installer improvements:
16397 + The package and pandoc executable are now signed with a
16398 certificate (thanks to Fyodor Sheremetyev).
16399 + RTF version of license is used.
16400 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
16401 Closes #580.
16403 * Converted COPYING to markdown.
16405 * pandoc.cabal: Require latest versions of highlighting-kate,
16406 texmath, citeproc-hs, zip-archive.
16408## pandoc 1.10.1 (2013-01-23)
16410 * Markdown reader: various optimizations, leading to a
16411 significant performance boost.
16413 * RST reader: Allow anonymous form of inline links:
16414 `` `hello <url>`__ `` Closes #724.
16416 * Mediawiki reader: Don't require newlines after tables.
16417 Thanks to jrunningen for the patch. Closes #733.
16419 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
16420 when output is LaTeX, and applied when it is another format.
16421 Partially addresses #730.
16423 * Markdown and RST readers: Added parser to `block` that skips blank
16424 lines. This fixes a subtle regression involving grid tables with
16425 empty cells. Also added test for grid table with empty cells.
16426 Closes #732.
16428 * RST writer: Use `.. code:: language` for code blocks with language.
16429 Closes #721.
16431 * DocBook writer: Fixed output for hard line breaks, adding a newline
16432 between `<literallayout>` tags.
16434 * Markdown writer: Use an autolink when link text matches url.
16435 Previously we also checked for a null title, but this
16436 test fails for links produced by citeproc-hs in bibliographies.
16437 So, if the link has a title, it will be lost on conversion
16438 to an autolink, but that seems okay.
16440 * Markdown writer: Set title, author, date variables as before.
16441 These are no longer used in the default template, since we use
16442 titleblock, but we set them anyway for those who use custom templates.
16444 * LaTeX writer: Avoid extra space at start/end of table cell.
16445 Thanks to Nick Bart for the suggestion of using @{}.
16447 * `Text.Pandoc.Parsing`:
16449 + More efficient version of `anyLine`.
16450 + Type of `macro` has changed; the parser now returns `Blocks`
16451 instead of `Block`.
16453 * Relaxed old-time version bound, allowing 1.0.*.
16455 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
16456 should create a symlink as described in the README.
16458## pandoc 1.10.0.5 (2013-01-23)
16460 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
16461 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
16462 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
16464 * Markdown reader: Fixed bug with headerless grid tables.
16465 The 1.10 code assumed that each table header cell contains exactly one
16466 block. That failed for headerless tables (0) and also for tables with
16467 multiple blocks in a header cell. The code is fixed and tests provided.
16468 Thanks to Andrew Lee for pointing out the bug.
16470 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
16472 + Tilde code fences can again take a bare language string
16473 (`~~~ haskell`), not just curly-bracketed attributes
16474 (`~~~ {.haskell}`).
16475 + Backtick code blocks can take the curly-bracketed attributes.
16476 + Backtick code blocks don't *require* a language.
16477 + Consolidated code for the two kinds of fenced code blocks.
16479 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
16481 * Markdown writer: Use proportional font for email autolinks with
16482 obfuscation. Closes #714.
16484 * Corrected name of `blank_before_blockquote` in README. Closes #718.
16486 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
16487 The bug prevented an autolink at the end of a string (e.g.
16488 at the end of a line block line) from counting as a link. Closes #711.
16490 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
16491 This should work on Windows, unlike the TH solution with
16492 file-embed.
16494 * Eliminated use of TH in test suite.
16496 * Added `Text.Pandoc.Data` (non-exported) to hold the association
16497 list of embedded data files, if the `embed_data_files` flag is selected.
16498 This isolates the code that needs special treatment with file-embed or
16499 `hsb2hs`.
16501 * Changes to `make-windows-installer.bat`.
16503 + Exit batch file if any of the cabal-dev installs fail.
16504 + There's no longer any need to reinstall `highlighting-kate`.
16505 + Don't start with a `cabal update`; leave that to the user.
16506 + Force reinstall of pandoc.
16508 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
16509 Jens Petersen.
16511## pandoc 1.10.0.4 (2013-01-20)
16513 * Fixed bug with escaped % in LaTeX reader. Closes #710.
16515## pandoc 1.10.0.3 (2013-01-20)
16517 * Added further missing fb2 tests to cabal file.
16519## pandoc 1.10.0.2 (2013-01-20)
16521 * Added fb2 tests to cabal file's extra-source-files.
16523## pandoc 1.10.0.1 (2013-01-20)
16525 * Bump version bounds on test-framework packages.
16527## pandoc 1.10 (2013-01-19)
16529### New features
16531 * New input formats: `mediawiki` (MediaWiki markup).
16533 * New output formats: `epub3` (EPUB v3 with MathML),
16534 `fb2` (FictionBook2 ebooks).
16536 * New `--toc-depth` option, specifying how many levels of
16537 headers to include in a table of contents.
16539 * New `--epub-chapter-level` option, specifying the header
16540 level at which to divide EPUBs into separate files.
16541 Note that this normally affects only performance, not the
16542 visual presentation of the EPUB in a reader.
16544 * Removed the `--strict` option. Instead of using `--strict`,
16545 one can now use the format name `markdown_strict` for either input
16546 or output. This gives more fine-grained control that `--strict`
16547 did, allowing one to convert from pandoc's markdown to strict
16548 markdown or vice versa.
16550 * It is now possible to enable or disable specific syntax
16551 extensions by appending them (with `+` or `-`) to the writer
16552 or reader name. For example,
16554 pandoc -f markdown-footnotes+hard_line_breaks
16556 disables footnotes and enables treating newlines as hard
16557 line breaks. The literate Haskell extensions are now implemented
16558 this way as well, using either `+lhs` or `+literate_haskell`.
16559 For a list of extension names, see the README under
16560 "Pandoc's Markdown."
16562 * The following aliases have been introduced for specific
16563 combinations of markdown extensions: `markdown_phpextra`,
16564 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
16565 work just like regular reader and writer names, and can be modified
16566 with extension modifiers as described above. (Note that conversion
16567 from one markdown dialect to another does not work perfectly,
16568 because there are differences in markdown parsers besides
16569 just the extensions, and because pandoc's internal document model is
16570 not rich enough to capture all of the extensions.)
16572 * New `--html-q-tags` option. The previous default was to use `<q>`
16573 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
16574 Moreover, they are not a robust way of typesetting quotes, since
16575 some user agents don't support them, and some CSS resets (e.g.
16576 bootstrap) prevent pandoc's quotes CSS from working properly.
16577 We now just insert literal quote characters by default in both
16578 `html` and `html5` output, but this option is provided for
16579 those who still want `<q>` tags.
16581 * The markdown reader now prints warnings (to stderr) about
16582 duplicate link and note references. Closes #375.
16584 * Markdown syntax extensions:
16586 + Added pipe tables. Thanks to François Gannaz for the initial patch.
16587 These conform to PHP Markdown Extra's pipe table syntax. A subset
16588 of org-mode table syntax is also supported, which means that you can
16589 use org-mode's nice table editor to create tables.
16591 + Added support for RST-style line blocks. These are
16592 useful for verse and addresses.
16594 + Attributes can now be specified for headers, using the same
16595 syntax as in code blocks. (However, currently only the
16596 identifier has any effect in most writers.) For example,
16598 # My header {#foo}
16600 See [the header above](#foo).
16602 + Pandoc will now act as if link references have been defined
16603 for all headers without explicit identifiers.
16604 So, you can do this:
16606 # My header
16608 Link to [My header].
16609 Another link to [it][My header].
16611 Closes #691.
16613 * LaTeX reader:
16615 + Command macros now work everywhere, including non-math.
16616 Environment macros still not supported.
16617 + `\input` now works, as well as `\include`. TEXINPUTS is used.
16618 Pandoc looks recursively into included files for more included files.
16620### Behavior changes
16622 * The Markdown reader no longer puts the text of autolinks in a
16623 `Code` inline. This means that autolinks will no longer appear
16624 in a monospace font.
16626 * The character `/` can now appear in markdown citation keys.
16628 * HTML blocks in strict_markdown are no longer required to begin
16629 at the left margin. Technically this is required, according to
16630 the markdown syntax document, but `Markdown.pl` and other markdown
16631 processors are more liberal.
16633 * The `-V` option has been changed so that if there are duplicate
16634 variables, those specified later on the command line take precedence.
16636 * Tight lists now work in LaTeX and ConTeXt output.
16638 * The LaTeX writer no longer relien on the `enumerate` package.
16639 Instead, it uses standard LaTeX commands to change the list numbering
16640 style.
16642 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
16643 tables to be split over page boundaries.
16645 * The RST writer now uses a line block to render paragraphs containing
16646 linebreaks (which previously weren't supported at all).
16648 * The markdown writer now applies the `--id-prefix` to footnote IDs.
16649 Closes #614.
16651 * The plain writer no longer uses backslash-escaped line breaks
16652 (which are not very "plain").
16654 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
16655 Read bytestring and use `Text`'s decodeUtf8 instead of using
16656 `System.IO.hGetContents`. This way you get a message saying
16657 "invalid UTF-8 stream" instead of "invalid byte sequence."
16658 You are also told which byte caused the problem.
16660 * Docx, ODT, and EPUB writers now download images specified by a URL
16661 instead of skipping them or raising an error.
16663 * EPUB writer:
16665 + The default CSS now left-aligns headers by default, instead of
16666 centering. This is more consistent with the rest of the writers.
16667 + A proper multi-level table of contents is now used in `toc.ncx`.
16668 There is no longer a subsidiary table of contents at the beginning
16669 of each chapter.
16670 + Code highlighting now works by default.
16671 + Section divs are used by default for better semantic markup.
16672 + The title is used instead of "Title Page" in the table of contents.
16673 Otherwise we have a hard-coded English string, which looks
16674 strange in ebooks written in other languages. Closes #572.
16676 * HTML writer:
16678 + Put mathjax in span with class "math". Closes #562.
16679 + Put citations in a span with class "citation." In HTML5, also include
16680 a `data-cite` attribute with a space-separated list of citation
16681 keys.
16683 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
16684 This treats both `\r\n` and `\n` as `\n` on input, no matter
16685 what platform we're running on.
16687 * Citation processing is now done in the Markdown and LaTeX
16688 readers, not in `pandoc.hs`. This makes it easier for library users
16689 to use citations.
16691### Template changes
16693 * HTML: Added css to template to preserve spaces in `<code>` tags.
16694 Thanks to Dirk Laurie.
16696 * Beamer: Remove English-centric strings in section pages.
16697 Section pages used to have "Section" and a number as well as the
16698 section title. Now they just have the title. Similarly for part
16699 and subsection. Closes #566.
16701 * LaTeX, ConTeXt: Added papersize variable.
16703 * LaTeX, Beamer templates: Use longtable instead of ctable.
16705 * LaTeX, Beamer templates: Don't require 'float' package for tables.
16706 We don't actually seem to use the '[H]' option.
16708 * Markdown, plain: Fixed titleblock so it is just a single string.
16709 Previously separate title, author, and date variables were used,
16710 but this didn't allow different kinds of title blocks.
16712 * EPUB:
16714 + Rationalized templates. Previously there were three different
16715 templates involved in epub production. There is now just one
16716 template, `default.epub` or `default.epub3`. It can now be
16717 overridden using `--template`, just like other templates.
16718 The titlepage is now folded into the default template.
16719 A `titlepage` variable selects it.
16720 + UTF-8, lang tag, meta tags, title element.
16722 * Added scale-to-width feature to beamer template
16724### API changes
16726 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
16727 Previously header identifiers were autogenerated by the writers.
16728 Now they are added in the readers (either automatically or explicitly).
16730 * `Text.Pandoc.Builder`:
16732 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
16733 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
16734 custom Monoid instances for `Many Inline` and `Many Block. This
16735 allows `Many` to be made an instance of `Foldable` and `Traversable`.
16736 + The old `Listable` class has been removed.
16737 + The module now exports `isNull`, `toList`, `fromList`.
16738 + The old `Read` and `Show` instances have been removed; derived
16739 instances are now used.
16740 + Added `headerWith`.
16742 * The readers now take a `ReaderOptions` rather than a `ParserState`
16743 as a parameter. Indeed, not all parsers use the `ParserState` type;
16744 some have a custom state. The motivation for this change was to separate
16745 user-specifiable options from the accounting functions of parser state.
16747 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
16748 formerly in `Text.Pandoc.Shared`, and its associated
16749 data types. It also includes a new type `ReaderOptions`, which
16750 contains many options formerly in `ParserState`, and its associated
16751 data types:
16753 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
16754 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
16755 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
16756 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
16757 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
16758 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
16759 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
16760 + `ParserState.stateIndentedCodeClasses` ->
16761 `ReaderOptions.readerIndentedCodeClasses`.
16762 + Added `ReaderOptions.readerCitationStyle`.
16764 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
16765 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
16766 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
16767 been renamed `writerEpubMetadata` for consistency.
16769 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
16770 longer stylesheet, fonts, reference files as separate parameters.
16772 * Removed `writerLiterateHaskell` from `WriterOptions`, and
16773 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
16774 by an extension (`Ext_literate_haskell`).
16776 * Removed deprecated `writerXeTeX`.
16778 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
16779 Strict is now handled through extensions.
16781 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
16782 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
16783 and `multimarkdownExtensions`, as well as the `Extensions` type.
16785 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
16786 `readMediaWiki`.
16788 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
16789 (thanks to Sergey Astanin).
16791 * `Text.Pandoc`:
16793 + Added `getReader`, `getWriter` to `Text.Pandoc`.
16794 + `writers` is now an association list `(String, Writer)`.
16795 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
16796 an `IOByteStringWriter`. ALL writers are now in the 'writers'
16797 list, including the binary writers and FB2 writer. This allows
16798 code in `pandoc.hs` to be simplified.
16799 + Changed type of `readers`, so all readers are in IO.
16800 Users who want pure readers can still get them form the reader
16801 modules; this just affects the function `getReader` that looks up
16802 a reader based on the format name. The point of this change is to
16803 make it possible to print warnings from the parser.
16805 * `Text.Pandoc.Parsing`:
16807 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
16808 No other module directly imports Parsec. This will make it easier
16809 to change the parsing backend in the future, if we want to.
16810 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
16811 + Export the type synonym `Parser`.
16812 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
16813 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
16814 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
16815 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
16816 + `ParserState` is no longer an instance of `Show`.
16817 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
16818 + Generalized type of `withQuoteContext`.
16819 + Added `guardEnabled`, `guardDisabled`, `getOption`.
16820 + Removed `failIfStrict`.
16821 + `lookupKeySrc` and `fromKey` are no longer exported.
16823 * `Data.Default` instances are now provided for `ReaderOptions`,
16824 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
16825 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
16826 of `defaultWriterOptions` (which is still defined). Closes #546.
16828 * `Text.Pandoc.Shared`:
16830 + Added `safeRead`.
16831 + Renamed `removedLeadingTrailingSpace` to `trim`,
16832 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
16833 + Count `\r` as space in `trim` functions.
16834 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
16835 to `Shared`.
16836 + Removed `failUnlessLHS`.
16837 + Export `compactify'`, formerly in Markdown reader.
16838 + Export `isTightList`.
16839 + Do not export `findDataFile`.
16840 + `readDataFile` now returns a strict ByteString.
16841 + Export `readDataFileUTF8` which returns a String, like the
16842 old `readDataFile`.
16843 + Export `fetchItem` and `openURL`.
16845 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
16846 Removed `readImageSize`.
16848 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
16849 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
16850 `fromStringLazy`.
16852 * `Text.Pandoc.UTF8` is now an exposed module.
16854 * `Text.Pandoc.Biblio`:
16856 + csl parameter now a `String` rather than a `FilePath`.
16857 + Changed type of `processBiblio`. It is no longer in the IO monad.
16858 It now takes a `Maybe Style` argument rather than parameters for CSL
16859 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
16860 the style file and add abbreviations.)
16862 * Markdown reader now exports `readMarkdownWithWarnings`.
16864 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
16865 `rtfEmbedImage`.
16867### Bug fixes
16869 * Make `--ascii` work properly with `--self-contained`. Closes #568.
16871 * Markdown reader:
16873 + Fixed link parser to avoid exponential slowdowns. Closes #620.
16874 Previously the parser would hang on input like this:
16876 [[[[[[[[[[[[[[[[[[hi
16878 We fixed this by making the link parser parser characters
16879 between balanced brackets (skipping brackets in inline code spans),
16880 then parsing the result as an inline list. One change is that
16882 [hi *there]* bud](/url)
16884 is now no longer parsed as a link. But in this respect pandoc behaved
16885 differently from most other implementations anyway, so that seems okay.
16887 + Look for raw html/latex blocks before tables.
16888 Otherwise the following gets parsed as a table:
16890 \begin{code}
16891 --------------
16892 -- My comment.
16893 \end{code}
16895 Closes #578.
16897 * RST reader:
16899 + Added support for `:target:` on `.. image::` blocks
16900 and substitutions.
16901 + Field list fixes:
16903 - Fixed field lists items with body beginning after a new line
16904 (Denis Laxalde).
16905 - Allow any char but ':' in names of field lists in RST reader
16906 (Denis Laxalde).
16907 - Don't allow line breaks in field names.
16908 - Require whitespace after field list field names.
16909 - Don't create empty definition list for metadata field lists.
16910 Previously a field list consisting only of metadata fields (author,
16911 title, date) would be parsed as an empty DefinitionList, which is
16912 not legal in LaTeX and not needed in any format.
16914 + Don't recognize inline-markup starts inside words.
16915 For example, `2*2 = 4*1` should not contain an emphasized
16916 section. Added test case for "Literal symbols". Closes #569.
16917 + Allow dashes as separator in simple tables. Closes #555.
16918 + Added support for `container`, `compound`, `epigraph`,
16919 `rubric`, `highlights`, `pull-quote`.
16920 + Added support for `.. code::`.
16921 + Made directive labels case-insensitive.
16922 + Removed requirement that directives begin at left margin.
16923 This was (correctly) not in earlier releases; docutils doesn't
16924 make the requirement.
16925 + Added support for `replace::` and `unicode::` substitutions.
16926 + Ignore unknown interpreted roles.
16927 + Renamed image parser to `subst`, since it now handles all
16928 substitution references.
16930 * Textile reader:
16932 + Allow newlines before pipes in table. Closes #654.
16933 + Fixed bug with list items containing line breaks.
16934 Now pandoc correctly handles hard line breaks inside list items.
16935 Previously they broke list parsing.
16936 + Implemented comment blocks.
16937 + Fixed bug affected words ending in hyphen.
16938 + Properly handle links with surrounding brackets.
16939 Square brackets need to be used when the link isn't surrounded by
16940 spaces or punctuation, or when the URL ending may be ambiguous.
16941 Closes #564.
16942 + Removed nullBlock. Better to know about parsing problems than
16943 to skip stuff when we get stuck.
16944 + Allow ID attributes on headers.
16945 + Textile reader: Avoid parsing dashes as strikeout.
16946 Previously the input
16948 text--
16949 text--
16950 text--
16951 text--
16953 would be parsed with strikeouts rather than dashes. This fixes
16954 the problem by requiring that a strikeout delimiting - not be
16955 followed by a -. Closes #631.
16956 + Expanded list of `stringBreakers`.
16957 This fixes a bug on input like "(_hello_)" which should
16958 be a parenthesized emphasized "hello".
16959 The new list is taken from the PHP source of textile 2.4.
16960 + Fixed autolinks. Previously the textile reader and writer
16961 incorrectly implemented RST-style autolinks for URLs and email
16962 addresses. This has been fixed. Now an autolink is done this way:
16963 `"$":http://myurl.com`.
16964 + Fixed footnotes bug in textile. This affected notes occurring
16965 before punctuation, e.g. `foo[1].`. Closes #518.
16967 * LaTeX reader:
16969 + Better handling of citation commands.
16970 + Better handling of `\noindent`.
16971 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
16972 Closes #622.
16973 + Made `rawLaTeXInline` try to parse block commands as well. This
16974 is usually what we want, given how `rawLaTeXInline` is used in
16975 the markdown and textile readers. If a block-level LaTeX command
16976 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
16977 we can treat it as raw inline LaTeX.
16978 + Handle `\slash` command. Closes #605.
16979 + Basic `\enquote` support.
16980 + Fixed parsing of paragraphs beginning with a group. Closes #606.
16981 + Use curly quotes for bare straight quotes.
16982 + Support obeylines environment. Closes #604.
16983 + Guard against "begin", "end" in inlineCommand and
16984 blockCommand.
16985 + Better error messages for environments. Now it should tell you that
16986 it was looking for \end{env}, instead of giving "unknown parse error."
16988 * HTML reader:
16990 + Added HTML 5 tags to list of block-level tags.
16991 + HTML reader: Fixed bug in `htmlBalanced`, which
16992 caused hangs in parsing certain markdown input using
16993 strict mode.
16994 + Parse `<q>` as `Quoted DoubleQuote`.
16995 + Handle nested `<q>` tags properly.
16996 + Modified `htmlTag` for fewer false positives.
16997 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
16998 This makes it more useful in the wikimedia and markdown parsers.
17000 * DocBook reader: Support title in "figure" element. Closes #650.
17002 * MediaWiki writer:
17004 + Remove newline after `<br/>` in translation of `LineBreak`
17005 There's no particular need for a newline (other than making the
17006 generated MediaWiki source look nice to a human), and in fact
17007 sometimes it is incorrect: in particular, inside an enumeration, list
17008 items cannot have embedded newline characters. (Brent Yorgey)
17009 + Use `<code>` not `<tt>` for Code.
17011 * Man writer: Escape `-` as `\-`.
17012 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
17013 signs. That is preferable for use with command-line options. See
17014 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
17015 to Andrea Bolognani for bringing the issue to our attention.
17017 * RST writer:
17019 + Improved line block output. Use nonbreaking spaces for
17020 initial indent (otherwise lost in HTML and LaTeX).
17021 Allow multiple paragraphs in a single line block.
17022 Allow soft breaks w continuations in line blocks.
17023 + Properly handle images with no alt text. Closes #678.
17024 + Fixed bug with links with duplicate text. We now (a) use anonymous
17025 links for links with inline URLs, and (b) use an inline link instead
17026 of a reference link if the reference link would require a label that
17027 has already been used for a different link. Closes #511.
17028 + Fixed hyperlinked images. Closes #611. Use `:target:`
17029 field when you have a simple linked image.
17030 + Don't add `:align: center` to figures.
17032 * Texinfo writer: Fixed internal cross-references.
17033 Now we insert anchors after each header, and use `@ref` instead of `@uref`
17034 for links. Commas are now escaped as `@comma{}` only when needed;
17035 previously all commas were escaped. (This change is needed, in part,
17036 because `@ref` commands must be followed by a real comma or period.) Also
17037 insert a blank line in from of `@verbatim` environments.
17039 * DocBook writer:
17041 + Made --id-prefix work in DocBook as well as HTML.
17042 Closes #607.
17043 + Don't include empty captions in figures. Closes #581.
17045 * LaTeX writer:
17047 + Use `\hspace*` for nonbreaking space after line break,
17048 since `~` spaces after a line break are just ignored.
17049 Closes #687.
17050 + Don't escape `_` in URLs or hyperref identifiers.
17051 + Properly escape strings inside `\url{}`. Closes #576.
17052 + Use `[fragile]` only for slides containing code rendered
17053 using listings. Closes #649.
17054 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
17055 highlighting-kate's macros, which redefine `|` as a short verbatim
17056 delimiter. Thanks to Björn Peemöller for raising this issue.
17057 + Use minipage rather than parbox for block containers in tables.
17058 This allows verbatim code to be included in grid tables.
17059 Closes #663.
17060 + Prevent paragraphs containing only linebreaks or spaces.
17062 * HTML writer:
17064 + Included `highlighting-css` for code spans, too.
17065 Previously it was only included if used in a code block. Closes #653.
17066 + Improved line breaks with `<dd>` tags. We now put a newline between
17067 `</dd>` and `<dd>` when there are multiple definitions.
17068 + Changed mathjax cdn url so it doesn't use https. (This caused
17069 problems when used with `--self-contained`.) See #609.
17071 * EPUB writer:
17073 + `--number-sections` now works properly.
17074 + Don't strip meta and link elements in epub metadata.
17075 Patch from aberrancy. Closes #589.
17076 + Fixed a couple validation bugs.
17077 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
17078 of chapters in some readers, which apparently sort ch2 after ch10.
17079 Closes #610.
17081 * ODT writer: properly set title property (Arlo O'Keeffe).
17083 * Docx writer:
17085 + Fixed bug with nested lists. Previously a list like
17087 1. one
17088 - a
17089 - b
17090 2. two
17092 would come out with a bullet instead of "2."
17093 Thanks to Russell Allen for reporting the bug.
17094 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
17095 This seems to fix a problem viewing pandoc-generated
17096 docx files in LibreOffice.
17097 + Use integer ids for bookmarks. Closes #626.
17098 + Added nsid to abstractNum elements. This helps when merging
17099 word documents with numbered or bulleted lists. Closes #627.
17100 + Use separate footnotes.xml for notes.
17101 This seems to help LibreOffice convert the file, even though
17102 it was valid docx before. Closes #637.
17103 + Use rIdNN identifiers for r:embed in images.
17104 + Avoid reading image files again when we've already processed them.
17105 + Fixed typo in `referenc.docx` that prevented image captions from
17106 working. Thanks to Huashan Chen.
17108 * `Text.Pandoc.Parsing`:
17110 + Fixed bug in `withRaw`, which didn't correctly handle the case
17111 where nothing is parsed.
17112 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
17113 though it still doesn't implement quoted strings in email addresses.
17114 + Revised URI parser. It now allows many more schemes, allows
17115 uppercase URIs, and better handles trailing punctuation and
17116 trailing slashes in bare URIs. Added many tests.
17117 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
17118 etc. parse properly. Formerly we had some English-centric heuristics,
17119 but they are no longer needed. Closes #698.
17121 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
17122 This fixes bug with Chinese commas in markdown and reST tables, and
17123 a bug that caused combining characters to be dropped.
17125 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
17127 * `Text.Pandoc.Biblio`:
17129 + Run `mvPunc` and `deNote` on metadata too.
17130 This fixed a bug with notes on titles using footnote styles.
17131 + Fixed bug in fetching CSL files from CSL data directory.
17133 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
17134 is provided. It should be the URL up to the path.
17136 * Fixed/simplified diff output for tests.
17137 Biblio: Make sure mvPunc and deNote run on metadata too.
17138 This fixed a bug with notes on titles using footnote styles.
17140### Under the hood improvements
17142 * We no longer depend on `utf8-string`. Instead we use functions
17143 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
17145 * Use `safeRead` instead of using `reads` directly (various modules).
17147 * "Implicit figures" (images alone in a paragraph) are now handled
17148 differently. The markdown reader gives their titles the prefix `fig:`; the
17149 writers look for this before treating the image as a figure. Though this
17150 is a bit of a hack, it has two advantages: (i) implicit figures can be
17151 limited to the markdown reader, and (ii) they can be deactivated by turning
17152 off the `implicit_figures` extension.
17154 * `catch` from `Control.Exception` is now used instead of the
17155 old Preface `catch`.
17157 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
17158 and `oneOfStrings` (which is now non-backtracking).
17160 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
17161 Now citeproc-hs is fixed upstream, so this is no longer needed.
17162 Closes #531.
17164 * Textile reader: Improved speed of `hyphenedWords`.
17165 This speeds up the textile reader by about a factor of 4.
17167 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
17168 better performance, and automatic normalization.
17170 * Major rewrite of markdown reader:
17172 + Use `Text.Pandoc.Builder` instead of lists. This also
17173 means that everything is normalized automatically.
17174 + Move to a one-pass parsing strategy, returning values in the reader
17175 monad, which are then run (at the end of parsing) against the final
17176 parser state.
17178 * In HTML writer, we now use `toHtml` instead of pre-escaping.
17179 We work around the problem that blaze-html unnecessarily escapes `'`
17180 by pre-escaping just the `'` characters, instead of the whole string.
17181 If blaze-html later stops escaping `'` characters, we can simplify
17182 `strToHtml` to `toHtml`. Closes #629.
17184 * Moved code for embedding images in RTFs from `pandoc.hs` to the
17185 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
17187 * Moved citation processing from `pandoc.hs` into the readers.
17188 This makes things more convenient for library users.
17190 * The man pages are now built by an executable `make-pandoc-man-pages`,
17191 which has its own stanza in the cabal file so that dependencies can be
17192 handled by Cabal. Special treatment in `Setup.hs` ensures that this
17193 executable never gets installed; it is only used to create the man pages.
17195 * The cabal file has been modified so that the pandoc library is used
17196 in building the pandoc executable. (This required moving `pandoc.hs`
17197 from `src` to `.`.) This cuts compile time in half.
17199 * The `executable` and `library` flags have been removed.
17201 * `-threaded` has been removed from ghc-options.
17203 * Version bounds of dependencies have been raised, and the
17204 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
17205 GHC 7.6.
17207 * We now require base >= 4.2.
17209 * Integrated the benchmark program into cabal. One can now do:
17211 cabal configure --enable-benchmarks && cabal build
17212 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
17214 The benchmark now uses README + testsuite, so benchmark results
17215 from older versions aren't comparable.
17217 * Integrated test suite with cabal.
17218 To run tests, configure with `--enable-tests`, then `cabal test`.
17219 You can specify particular tests using `--test-options='-t markdown'`.
17220 No output is shown unless tests fail. The Haskell test modules
17221 have been moved from `src/` to `tests/`.
17223 * Moved all data files and templates to the `data/` subdirectory.
17225 * Added an `embed_data_files` cabal flag. This causes all
17226 data files to be embedded in the binary, so that the binary
17227 is self-sufficient and can be relocated anywhere, copied on
17228 a USB key, etc. The Windows installer now uses this.
17229 (Since we no longer have the option to build the executable
17230 without the library, this is the only way to get a relocatable
17231 binary on Windows.)
17233 * Removed pcre3.dll from windows package.
17234 It isn't needed unless highlighting-kate is compiled with the
17235 `pcre-light` flag. By default, regex-prce-builtin is used.
17238## pandoc 1.9.4.5 (2012-10-21)
17240 * Raised version bounds on network, base64-bytestring, json,
17241 and template-haskell.
17243## pandoc 1.9.4.4 (2012-10-20)
17245 * Removed `tests` flag and made test suite into a proper cabal
17246 test suite, which can now be enabled using `--enable-tests`
17247 and run with `cabal test`.
17249 * Moved man page creation out of `Setup.hs` and into an
17250 executable built by Cabal, but never installed. This
17251 allows dependencies to be specified, and solves a problem
17252 with 1.9.4.3, which could only be installed if `data-default`
17253 had already been installed.
17255 * Updated `lhs-latex.tex` test for latest highlighting-kate
17256 representation of backticks.
17258## pandoc 1.9.4.3 (2012-10-20)
17260 * Removed `-threaded` from default compile flags.
17262 * Modified modules to compile with GHC 7.6 and latest version of time
17263 package.
17265## pandoc 1.9.4.2 (2012-06-29)
17267 * Don't encode/decode file paths if base >= 4.4.
17268 Prior to base 4.4, filepaths and command line arguments were treated
17269 as unencoded lists of bytes, not unicode strings, so we had to work
17270 around that by encoding and decoding them. This commit adds CPP
17271 checks for the base version that intelligibly enable encoding/decoding
17272 when needed. Fixes a bug with multilingual filenames when pandoc was
17273 compiled with ghc 7.4 (#540).
17275 * Don't generate an empty H1 after hrule slide breaks.
17276 We now use a slide-level header with contents `[Str "\0"]` to mark
17277 an hrule break. This avoids creation of an empty H1 in these
17278 contexts. Closes #484.
17280 * Docbook reader: Added support for "bold" emphasis. Thanks to mb21.
17282 * In make_osx_package.sh, ensure citeproc-hs is built with the
17283 embed_data_files flag.
17285 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
17287 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
17288 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
17290 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
17291 Closes #535.
17293 * Added webm to mime types. Closes #543.
17295 * Added some missing exports and tests to the cabal file
17296 (Alexander V Vershilov).
17298 * Compile with `-rtsopts` and `-threaded` by default.
17300## pandoc 1.9.4.1 (2012-06-08)
17302 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
17304 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
17305 variables. Make TOC links black.
17307 * LaTeX template improvements.
17309 + Don't print date unless one is given explicitly in the document.
17310 + Simplified templates.
17311 + Use fontenc [T1] by default, and lmodern.
17312 + Use microtype if available.
17314 * Biblio:
17316 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
17317 Motivation: `@item1 [50]` should be as close as possible to
17318 `[@item1, 50]`.
17319 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
17320 beginning with a citation to be empty. Closes #531.
17322 * Fixed documentation on mixed lists. Closes #533.
17324## pandoc 1.9.4 (2012-06-03)
17326 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
17327 footnotes and captions. We now handle note citations by inserting
17328 footnotes during initial citation processing, and doing a separate
17329 pass later to remove notes inside notes.
17331 * Added 'zenburn' highlight style from highlighting-kate.
17333 * Added Slideous writer. Slideous is an HTML + javascript slide show
17334 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
17336 * LaTeX writer:
17338 + Ensure we don't have extra blank lines at ends of cells.
17339 This can cause LaTeX errors, as they are interpreted as new paragraphs.
17340 + More consistent interblock spacing.
17341 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
17342 code in LaTeX. Closes #527.
17343 + Ensure that a Verbatim at the end of a footnote is followed by
17344 a newline. (Fixes a regression in the previous version.)
17345 + In default template, use black for internal links and TOC.
17346 Added commented-out code to use footnotes for links, as would
17347 be suitable in print output.
17349 * Beamer writer: When `--incremental` is used, lists inside
17350 a block quote should appear all at once. (This makes Beamer
17351 output consistent with the HTML slide show formats.)
17353 * ConTeXt writer:
17355 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
17356 to avoid gobbling spaces after the `%` sign.
17357 + Ensure space after `\stopformula`.
17359 * Markdown writer:
17361 + Use `:` form instead of `~` in definition lists, for better
17362 compatibility with other markdown implementations.
17363 + Don't wrap the term, because it breaks definition lists.
17364 + Use a nonzero space to prevent false recognition
17365 of list marker in ordered lists. Closes #516.
17367 * Org writer: Add space before language name. Closes #523.
17369 * Docx writer: Simplified bullet characters so they work properly
17370 with Word 2007. Closes #520.
17372 * LaTeX reader: Support `\centerline`.
17374 * RST reader: handle figures. Closes #522.
17376 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
17377 (Paul Rivier)
17379## pandoc 1.9.3 (2012-05-12)
17381 * Added docbook reader (with contributions from Mauro Bieg).
17383 * Fixed bug in `fromEntities`. The previous version would turn
17384 `hi & low you know;` into `hi &`.
17386 * HTML reader:
17388 + Don't skip nonbreaking spaces.
17389 Previously a paragraph containing just `&nbsp;` would be rendered
17390 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
17391 + Support `<col>` and `<caption>` in tables. Closes #486.
17393 * Markdown reader:
17395 + Don't recognize references inside delimited code blocks.
17396 + Allow list items to begin with lists.
17398 * LaTeX reader:
17400 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
17401 + Control sequences can't be followed by a letter.
17402 This fixes a bug where `\begingroup` was parsed as `\begin`
17403 followed by `group`.
17404 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
17405 + Make `\label` and `\ref` sensitive to `--parse-raw`.
17406 If `--parse-raw` is selected, these will be parsed as raw latex
17407 inlines, rather than bracketed text.
17408 + Don't crash on unknown block commands (like `\vspace{10pt}`)
17409 inside `\author`; just skip them. Closes #505.
17411 * Textile reader:
17413 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
17414 + Added support for LaTeX blocks and inlines (Paul Rivier).
17415 + Better conformance to RedCloth inline parsing (Paul Rivier).
17416 + Parse '+text+' as emphasized (should be underlined, but this
17417 is better than leaving literal plus characters in the output.
17419 * Docx writer: Fixed multi-paragraph list items. Previously they each
17420 got a list marker. Closes #457.
17422 * LaTeX writer:
17424 + Added `--no-tex-ligatures` option to avoid replacing
17425 quotation marks and dashes with TeX ligatures.
17426 + Use `fixltx2e` package to provide `\textsubscript`.
17427 + Improve spacing around LaTeX block environments:
17428 quote, verbatim, itemize, description, enumerate.
17429 Closes #502.
17430 + Use blue instead of pink for URL links in latex/pdf output.
17432 * ConTeXt writer: Fixed escaping of `%`.
17433 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
17434 Inside URLs, `%` needs to be escaped as `\%`
17435 Thanks to jmarca and adityam for the fix. Closes #492.
17437 * Texinfo writer: Escape special characters in node titles.
17438 This fixes a problem pointed out by Joost Kremers. Pandoc used
17439 to escape an '@' in a chapter title, but not in the corresponding
17440 node title, leading to invalid texinfo.
17442 * Fixed document encoding in texinfo template.
17443 Resolves Debian Bug #667816.
17445 * Markdown writer:
17447 + Don't force delimited code blocks to be flush left.
17448 Fixes bug with delimited code blocks inside lists etc.
17449 + Escape `<` and `$`.
17451 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
17452 Previously we used `\href{\#ident}{text}`, which didn't work on
17453 all systems. Thanks to Dirk Laurie.
17455 * RST writer: Don't wrap link references. Closes #487.
17457 * Updated to use latest versions of blaze-html, mtl.
17460## pandoc 1.9.2 (2012-04-05)
17462 * LaTeX reader:
17464 + Made `lstlisting` work as a proper verbatim environment.
17465 + Fixed bug parsing LaTeX tables with one column.
17467 * LaTeX writer:
17469 + Use `{}` around `ctable` caption, so that formatting can be used.
17470 + Don't require eurosym package unless document has a €.
17472 * LaTeX template: Added variables for `geometry`, `romanfont`,
17473 `sansfont`, `mathfont`, `mainfont` so users can more easily
17474 customize fonts.
17476 * PDF writer:
17478 + Run latex engine at least two times, to ensure
17479 that PDFs will have hyperlinked bookmarks.
17480 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
17482 * Texinfo writer: retain directories in image paths. (Peter Wang)
17484 * RST writer: Better handling of inline formatting, in accord
17485 with docutils' "inline markup recognition rules" (though we don't
17486 implement the unicode rules fully). Now `hi*there*hi` gets
17487 rendered properly as `hi\ *there*\ hi`, and unnecessary
17488 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
17490 * RST reader:
17492 + Parse `\ ` as null, not escaped space.
17493 + Allow `` :math:`...` `` even when not followed by blank
17494 or `\`. This does not implement the complex rule docutils follows,
17495 but it should be good enough for most purposes.
17496 + Add support for the rST default-role directive. (Greg Maslov)
17498 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
17499 (Greg Maslov)
17501 * Markdown reader: Properly handle citations nested in other inline
17502 elements.
17504 * Markdown writer: don't replace empty alt in image with "image".
17506 * DZSlides: Updated template.html and styles in default template.
17507 Removed bizarre CSS for `q` in dzslides template.
17509 * Avoid repeated `id` attribute in section and header in HTML slides.
17511 * README improvements: new instructions on internal links,
17512 removed misleading note on reST math.
17514 * Build system:
17516 + Fixed Windows installer so that dzslides works.
17517 + Removed stripansi.sh.
17518 + Added .travis.yml for Travis continuous integration support..
17519 + Fixed upper bound for zlib (Sergei Trofimovich).
17520 + Fixed upper bound for test-framework.
17521 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
17524## pandoc 1.9.1.2 (2012-03-09)
17526 * Added `beamer+lhs` as output format.
17528 * Don't escape `<` in `<style>` tags with `--self-contained`.
17529 This fixes a bug which prevented highlighting from working
17530 when using `--self-contained`.
17532 * PDF: run latex engine three times if `--toc` specified.
17533 This fixes page numbers in the table of contents.
17535 * Docx writer: Added TableNormal style to tables.
17537 * LaTeX math environment fixes. `aligned` is now used instead of
17538 the nonexistent `aligned*`. `multline` instead of the nonexistent
17539 `multiline`.
17541 * LaTeX writer: Use `\textasciitilde` for literal `~`.
17543 * HTML writer: Don't escape contents of EQ tags with --gladtex.
17544 This fixes a regression from 1.8.
17546 * Use `<q>` tags for Quoted items for HTML5 output.
17547 The quote style can be changed by modifying the template
17548 or including a css file. A default quote style is included.
17550 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
17551 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
17553 * Updated LaTeX template for better language support.
17554 Use `polyglossia` instead of `babel` with xetex.
17555 Set `lang` as documentclass option.
17556 `\setmainlanguage` will use the last of a comma-separated
17557 list of languages. Thanks to François Gannaz.
17559 * Fixed default LaTeX template so `\euro` and `€` work. The
17560 `eurosym` package is needed if you are using pdflatex.
17562 * Fixed escaping of period in man writer (thanks to Michael Thompson).
17564 * Fixed list label positions in beamer.
17566 * Set `mainlang` variable in context writer.
17567 This parallels behavior of latex writer. `mainlang` is the last
17568 of a comma-separated list of languages in lang.
17570 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
17572 * Changed `-V` so that you can specify a key without a value.
17573 Such keys get the value `true`.
17575 * Fixed permissions on installed man pages - thanks Magnus Therning.
17577 * Windows installer: require XP or higher. The installer is
17578 now compiled on a Windows 7 machine, which fixes a problem
17579 using citation functions on Windows 7.
17581 * OSX package: Check for 64-bit Intel CPU before installing.
17584## pandoc 1.9.1.1 (2012-02-11)
17586 * Better handling of raw latex environments in markdown. Now
17588 \begin{equation}
17589 a_1
17590 \end{equation}
17592 turns into a raw latex block as expected.
17594 * Improvements to LaTeX reader:
17596 + Skip options after block commands.
17597 + Correctly handle `{\\}` in braced.
17598 + Added a needed 'try'.
17599 + Citations: add `, ` to suffix if it doesn't start with space or
17600 punctuation. Otherwise we get no space between the year and the
17601 suffix in author-date styles.
17603 * Added two needed data files for S5. This fixes a problem with
17604 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
17605 which was no longer being used.
17607 * Fixed some minor problems in `reference.docx`:
17608 name on "Date" style, `xCs` instead of `xIs`.
17610 * Fixed a problem creating docx files using a reference docx
17611 modified using Word. The problem seems to be that Word
17612 modifies `_rels/.rels`, changing the Type of the Relationship to
17613 `docProps/core.xml`. Pandoc now changes this back to the correct
17614 value if it has been altered, fixing the problem.
17616 * Fixed html5 template so it works properly with highlighting.
17618## pandoc 1.9.1 (2012-02-09)
17620 * LaTeX reader:
17622 + Fixed regression in 1.9; properly handle escaped $ in latex math.
17623 + Put LaTeX verse environments in blockquotes.
17625 * Markdown reader:
17627 + Limit nesting of strong/emph. This avoids exponential lookahead
17628 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
17629 + Improved attributes syntax (in code blocks/spans): (1)
17630 Attributes can contain line breaks. (2) Values in key-value
17631 attributes can be surrounded by either double or single quotes, or
17632 left unquoted if they contain no spaces.
17634 * Headers no longer wrap in markdown or RST writers.
17636 * Added `stateMaxNestingLevel` to `ParserState`.
17637 We set this to 6, so you can still have `Emph` inside `Emph`,
17638 just not indefinitely.
17640 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
17642 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
17643 is present.
17645 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
17647## pandoc 1.9.0.5 (2012-02-06)
17649 * Changed cabal file so that build-depends for the test program
17650 are not required unless the tests flag is used.
17652 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
17653 form ligatures (dashes) in code spans.
17655## pandoc 1.9.0.4 (2012-02-06)
17657 * Raised version bound on test-framework to avoid problems
17658 compiling tests on GHC 7.4.1.
17660 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
17661 so citations don't just disappear unless you process with
17662 citeproc. Ignore `\bibliographystyle`, `\nocite`.
17664 * Simplified tex2pdf; it will always run latex twice to
17665 resolve table of contents and hyperrefs.
17667## pandoc 1.9.0.3 (2012-02-06)
17669 * Require Cabal >= 1.10.
17671 * Tweaked cabal file to meet Cabal 1.10 requirements.
17673## pandoc 1.9.0.2 (2012-02-05)
17675 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
17676 ghc 6.12.
17678## pandoc 1.9 (2012-02-05)
17680### New features
17682 * Added a Microsoft Word `docx` writer. The writer includes support
17683 for highlighted code and for math (which is converted from TeX to OMML,
17684 Office's native math markup language, using texmath's new OMML module).
17685 A new option `--reference-docx` allows the user to customize the
17686 styles.
17688 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
17690 * Better support for slide shows:
17692 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
17693 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
17695 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
17696 slide presentations.
17698 + New, flexible rules for dividing documents into sections and slides
17699 (see the "Structuring the slide show" in the User's Guide). These
17700 are backward-compatible with the old rules, but they allow slide
17701 shows to be organized into sections and subsections containing
17702 multiple slides.
17704 + A new `--slide-level` option allows users to override defaults
17705 and select a slide level below the first header level with content.
17707 * A new `--self-contained` option produces HTML output that does not
17708 depend on an internet connection or the presence of any external
17709 files. Linked images, CSS, and javascript is downloaded (or fetched
17710 locally) and encoded in `data:` URIs. This is useful for making portable
17711 `HTML slide shows. The --offline` option has been deprecated and is now
17712 `treated as a synonym or --self-contained`.
17714 * Support for PDF output:
17716 + Removed the old `markdown2pdf`.
17717 + `pandoc` can now create PDFs (assuming you have latex and a set of
17718 appropriate packages installed): just specify an output file with the
17719 `.pdf` extension.
17720 + A new option `--latex-engine` allows you to specify `pdflatex`,
17721 `xelatex`, or `lualatex` as the processor.
17723 * Highlighting changes:
17725 + Syntax highlighting is now a standard feature; the `highlighting`
17726 flag is no longer needed when compiling.
17727 + A new `--no-highlight` option allows highlighting to be disabled.
17728 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
17729 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
17730 + A new `--highlight-style` option selects between various highlighting
17731 color themes.
17733 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
17735 * LaTeX `\include` and `\usepackage` commands are now processed,
17736 provided the files are in the working directory.
17738 * EPUB improvements:
17740 + Internal and external links now work in EPUB.
17741 + Raw HTML is allowed.
17742 + New `--epub-embed-font` option.
17743 + Customizable templates for EPUB pages offer more control over
17744 formatting: `epub-page.html`, `epub-coverimage.html`,
17745 `epub-titlepage.html`.
17747 * `--mathml` now works with DocBook.
17749 * Added support for math in RST reader and writer. Inline math uses the
17750 `` :math:`...` `` construct. Display math uses
17752 .. math:: ...
17754 or if the math is multiline,
17756 .. math::
17758 ...
17760 These constructions are now supported now by `rst2latex.py`.
17762 * Github syntax for fenced code blocks is supported in pandoc's
17763 markdown. You can now write
17765 ```ruby
17766 x = 2
17767 ```
17769 instead of
17771 ~~~ {.ruby}
17772 x = 2
17773 ~~~~
17775 * Easier scripting: a new `toJsonFilter` function makes it easier to
17776 write Haskell scripts to manipulate the Pandoc AST.
17777 See [Scripting with pandoc](scripting.html#pandoc-1.9-changes).
17779### Behavior changes
17781 * Fixed parsing of consecutive lists in markdown.
17782 Pandoc previously behaved like Markdown.pl for consecutive
17783 lists of different styles. Thus, the following would be parsed
17784 as a single ordered list, rather than an ordered list followed
17785 by an unordered list:
17787 1. one
17788 2. two
17790 - one
17791 - two
17793 This change makes pandoc behave more sensibly, parsing this as
17794 two lists. Any change in list type (ordered/unordered) or in
17795 list number style will trigger a new list. Thus, the following
17796 will also be parsed as two lists:
17798 1. one
17799 2. two
17801 a. one
17802 b. two
17804 Since we regard this as a bug in Markdown.pl, and not something
17805 anyone would ever rely on, we do not preserve the old behavior
17806 even when `--strict` is selected.
17808 * Dashes work differently with `--smart`: `---` is always em-dash,
17809 and `--` is always en-dash. Pandoc no longer tries to guess when
17810 `-` should be en-dash. *Note:* This may change how existing documents
17811 look when processed with pandoc. A new option, `--old-dashes`,
17812 is provided for legacy documents.
17814 * The markdown writer now uses setext headers for levels 1-2.
17815 The old behavior (ATX headers for all levels) can be restored
17816 using the new `--atx-headers` option.
17818 * Links are now allowed in markdown image captions. They are also
17819 allowed in links, but will appear there as regular text. So,
17821 [link with [link](/url)](/url)
17823 will turn into
17825 <p><a href="/url">link with link</a></p>
17827 * Improved handling of citations using `citeproc-hs-0.3.4`.
17828 Added `--citation-abbreviations` option.
17830 * Citation keys can no longer end with a punctuation character.
17831 This means that `@item1.` will be parsed as a citation with key
17832 'item1', followed by a period, instead of a citation with key
17833 'item1.', as was the case previously.
17835 * In HTML output, citations are now put in a span with class `citation`.
17837 * The markdown reader now recognizes DocBook block and inline tags.
17838 It was always possible to include raw DocBook tags in a markdown
17839 document, but now pandoc will be able to distinguish block from
17840 inline tags and behave accordingly. Thus, for example,
17842 <sidebar>
17843 hello
17844 </sidebar>
17846 will not be wrapped in `<para>` tags.
17848 * The LaTeX parser has been completely rewritten; it is now much more
17849 accurate, robust, and extensible. However, there are two important
17850 changes in how it treats unknown LaTeX. (1) Previously, unknown
17851 environments became BlockQuote elements; now, they are treated
17852 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
17853 same as `xyz`. (2) Previously, arguments of unknown commands
17854 were passed through with their braces; now the braces are stripped
17855 off.
17857 * `--smart` is no longer selected automatically with `man` output.
17859 * The deprecated `--xetex` option has been removed.
17861 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
17862 instead. `html5` and `html5+lhs` are now separate output formats.
17864 * Single quotes are no longer escaped in HTML output. They do not
17865 need to be escaped outside of attributes.
17867 * Pandoc will no longer transform leading newlines in code
17868 blocks to `<br/>` tags.
17870 * The ODT writer now sizes images appropriately, using the image
17871 size and DPI information embedded in the image.
17873 * `--standalone` is once again implicitly for a non-text output format
17874 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
17875 and get a standalone ODT file.
17877 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
17878 `<section>`.
17880 * The HTML writer now uses `<del>` for strikeout.
17882 * In HTML output with `--section-divs`, the classes `section` and
17883 `level[1,2,..6]` are put on the `div` tags so they can be styled.
17884 In HTML 5 output with `--section-divs`, the classes
17885 `level[1,2,...6]` are put on `section` tags.
17887 * EPUB writer changes:
17889 + The `lang` variable now sets the language
17890 in the metadata (if it is not set, we default to the locale).
17891 + EPUB: UTF-8 is used rather than decimal entities.
17893 * Added `titleslide` class to title slide in S5 template.
17895 * In HTML, EPUB, and docx metadata, the date is normalized into
17896 YYYY-MM-DD format if possible. (This is required for validation.)
17898 * Attributes in highlighted code blocks are now preserved in HTML.
17899 The container element will have the classes, id, and key-value attributes
17900 you specified in the delimited code block. Previously these were stripped
17901 off.
17903 * The reference backlink in the HTML writer no longer has a special
17904 `footnoteBacklink` class.
17906 * The HTML template has been split into `html` and `html5` templates.
17908 * Author and date are treated more consistently in HTML templates.
17909 Authors are now `<h2>`, date `<h3>`.
17911 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
17913 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
17915### Bug fixes
17917 * Better support for combining characters and East Asian wide characters
17918 in markdown and reST.
17920 * Better handling of single quotes with `--smart`.
17921 Previously `D'oh l'*aide*` would be parsed with left and right single
17922 quotes instead of apostrophes. This kind of error is now fixed.
17924 * Highlighting: Use `reads` instead of `read` for better error handling.
17925 Fixes crash on `startNum="abc"`.
17927 * Added blank comment after directives in rst template.
17929 * Unescape entities in citation `refId`. The `refId`s coming
17930 from citeproc contain XML numeric entities, and these don't match with the
17931 citation keys parsed by pandoc. Solution is to unescape them.
17933 * HTML reader: Fixed bug parsing tables with both thead and tbody.
17935 * Markdown reader:
17937 + Better handling of escapes in link URLs and titles.
17938 + Fixed backslash escapes in reference links.
17939 + Fixed bug in table/hrule parsing, by checking that the top
17940 line of a table is not followed by a blank line. This bug caused
17941 slowdowns on some files with hrules and tables, as pandoc tried to
17942 interpret the hrules as the tops of multiline tables.
17943 + Fixed bug in code block attribute parser. Previously the ID attribute
17944 got lost if it didn't come first. Now attributes can come in any order.
17946 * RST reader: allow footnotes followed by newline without space characters.
17948 * LaTeX reader:
17950 + Ignore empty groups {}, { }.
17951 + LaTeX reader: Handle `\@`.
17952 + LaTeX reader: Don't crash on commands like `\itemsep`.
17953 + LaTeX reader: Better handling of letter environments.
17955 * RST writer: Fixed bug involving empty table cells. isSimple was being
17956 calculated in a way that assumed there were no non-empty cells.
17958 * ConTeXt writer:
17960 + Made `--toc` work even without `--number-sections`.
17961 + Escape # in link URLs.
17962 + Use buffering for footnotes containing code blocks.
17963 + Changed 'descr' to 'description', fixed alignment.
17965 * LaTeX writer:
17967 + Escape euro character.
17968 + Don't escape `~` inside `\href{...}`.
17969 + Escape `#` in href URLs.
17970 + Improved detection of book classes. We now check the
17971 `documentclass` variable, and if that is not set, we look through
17972 the template itself. Also, we have added the KOMA classes scrreprt
17973 and scrbook. You can now make a book using
17974 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
17975 + LHS files now set the "listings" variable, so that the definition
17976 of the `code` environment will be included in the template.
17977 + Links are colored blue by default (this can be changed by
17978 modifying `hyperref` settings in the template).
17979 + Added `lang` variable to LaTeX template.
17981 * HTML writer:
17983 + Fixed bug in HTML template with html5 and mathml.
17984 + Don't use self-closing img, br, hr tags for HTML5.
17985 + Use `<section>` for footnotes if HTML5.
17986 + Update HTML templates to use Content-Style-Type meta tag.
17987 + Use separate variables for meta-date, meta-author.
17988 This makes footnotes work in author and date fields.
17989 + Use 'vertical-align:middle' in WebTeX math for better alignment.
17991 * S5/slidy writer: Make footnotes appear on separate slide at end.
17993 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
17994 META-INF/manifest.xml for ODT files will have everything it needs, so
17995 that ODT files modified by LibreOffice can be used as `--reference-odt`.
17997 * `Text.Pandoc.Templates`: Return empty string for json template.
17999 * `Text.Pandoc.Biblio`:
18001 + Expand citations recursively inside nested inlines.
18002 + Treat `\160` as space when parsing locator and suffix.
18003 This fixes a bug with "p. 33" when `--smart` is used. Previously
18004 the whole "p. 33" would be included in the suffix, with no locator.
18005 + Put whole author-in-text citation in a Cite. Previously just the
18006 date and other info went in the Cite.
18007 + Don't add comma+space to prefix if it ends in punctuation.
18009 * Updated chicago-author-date.csl. The old version did not work
18010 properly for edited volumes with no author.
18012 * EPUB writer:
18014 + Add date to EPUB titlepage and metadata.
18015 + Added TOC identifier in EPUB page template.
18016 + Don't generate superfluous file `cover-image.jpg`.
18018### Under the hood improvements
18020 * Modified `make_osx_package.sh` to use cabal-dev.
18021 Items are no longer installed as root.
18022 Man pages are zipped and given proper permissions.
18024 * Modified windows installer generator to use cabal-dev.
18026 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
18027 Setup.hs we now invoke 'runghc' in a way that points it to the correct
18028 package databases, instead of always falling back to the default user
18029 package db.
18031 * Updated to work with GHC 7.4.1.
18033 * Removed dependency on old-time.
18035 * Removed dependency on dlist.
18037 * New slidy directory for "self-contained."
18039 * TeXMath writer: Use unicode thin spaces for thin spaces.
18041 * Markdown citations: don't strip off initial space in locator.
18043### API changes
18045 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
18046 from the native `Inline` type in pandoc-types. Now we use `Str`
18047 elements with unicode.
18049 * Improvements to `Text.Pandoc.Builder`:
18051 + `Inlines` and `Blocks` are now newtypes (not synonyms for
18052 sequences).
18053 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
18054 and a new `Listable` class, which allows these to be manipulated
18055 to some extent like lists. Monoid append includes automatic
18056 normalization.
18057 + `+++` has been replaced by `<>` (mappend).
18059 * Use blaze-html instead of xhtml for HTML generation.
18060 This changes the type of `writeHtml`.
18062 * `Text.Pandoc.Shared`:
18064 + Added `warn` and `err`.
18065 + Removed `unescapeURI`, modified `escapeURI`.
18066 (See under [behavior changes], above.)
18068 * Changes in URI escaping: Previously the readers escaped URIs by
18069 converting unicode characters to octets and then percent encoding.
18070 Now unicode characters are left as they are, and `escapeURI` only
18071 percent-encodes space characters. This gives more readable
18072 URIs, and works well with modern user agents. URIs are no longer unescaped
18073 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
18075 * New module `Text.Pandoc.SelfContained`.
18077 * New module `Text.Pandoc.Docx`.
18079 * New module `Text.Pandoc.PDF`.
18081 * Added `writerBeamer` to `WriterOptions`.
18083 * Added `normalizeDate` to `Text.Pandoc.Shared`.
18085 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
18086 This is like `splitWithIndices`, but it is sensitive to distinctions
18087 between wide, combining, and regular characters.
18089 * `Text.Pandoc.Pretty`:
18091 + Added `chomp` combinator.
18092 + Added `beforeNonBreak` combinator. This allows you to include
18093 something conditionally on it being before a nonblank.
18094 Used for RST inline math.
18095 + Added `charWidth` function. All characters marked W or F in the unicode
18096 spec EastAsianWidth.txt get width 2.
18097 + Added `realLength`, based on `charWidth`. `realLength` is now
18098 used in calculating offsets.
18100 * New module `Text.Pandoc.Slides`, for common functions for breaking
18101 a document into slides.
18103 * Removed `Text.Pandoc.S5`, which is no longer needed.
18105 * Removed `Text.Pandoc.CharacterReferences`. Moved
18106 `characterReference` to `Text.Pandoc.Parsing`.
18107 `decodeCharacterReferences` is replaced by `fromEntities`
18108 in `Text.Pandoc.XML`.
18110 * Added `Text.Pandoc.ImageSize`. This is intened for use
18111 in `docx` and `odt` writers, so the size and dpi of images
18112 can be calculated.
18114 * Removed `writerAscii` in `WriterOptions`.
18116 * Added `writerHighlight` to `WriterOptions`.
18118 * Added `DZSlides` to `HTMLSlideVariant`.
18120 * `writeEPUB` has a new argument for font files to embed.
18122 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
18123 of whether we're parsing the position immediately after a regular
18124 (non-space, non-symbol) string, which is useful for distinguishing
18125 apostrophes from single quote starts.
18127 * `Text.Pandoc.Parsing`:
18129 + `escaped` now returns a `Char`.
18130 + Removed `charsInBalanced'`, added a character parser as
18131 a parameter of `charsInBalanced`. This is needed for
18132 proper handling of escapes, etc.
18133 + Added `withRaw`.
18135 * Added `toEntities` to `Text.Pandoc.XML`.
18137 * `Text.Pandoc.Readers.LaTeX`:
18139 + Export `handleIncludes`.
18140 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
18142 * Added `ToJsonFilter` class and `toJsonFilter` function to
18143 `Text.Pandoc`, deprecating the old `jsonFilter` function.
18145 * `Text.Pandoc.Highlighting`:
18147 + Removed `highlightHtml`, `defaultHighlightingCss`.
18148 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
18149 key functions from highlighting-kate.
18150 + Changed types of highlighting function. `highlight` returns a
18151 `Maybe`, not an `Either`.
18154## pandoc 1.8.2.1 (2011-08-01)
18156 * Adjusted Arbitrary instance to help avoid timeouts in tests.
18158 * Added `Tests.Writers.Markdown` to cabal file.
18160 * Relaxed version bounds on pandoc-types, test-framework.
18162## pandoc 1.8.2 (2011-07-30)
18164 * Added script to produce OS X package.
18166 * Made `templates` directory a git submodule. This should make it
18167 easier for people to revise their custom templates when the default
18168 templates change.
18170 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
18171 **Note:** If you have existing templates in `~/.pandoc/templates`, you
18172 must rename them to conform to the new scheme!
18174 * Default template improvements:
18176 + HTML: Display author and date after title.
18177 + HTML: Made table of contents more customizable. The container
18178 for the TOC is now in the template, so users can insert a header
18179 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
18180 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
18181 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
18182 hard-coding. If you want to put your slidy files in the slidy
18183 subdirectory, for example, you can do
18184 `pandoc -t slidy -V slidy-url=slidy -s`.
18185 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
18186 & writer). Closes #279.
18187 + LaTeX: Set `\emergencystretch` to prevent overfull lines.
18188 + LaTeX: Use different `hyperref` options for `xetex`, fixing
18189 problems with unicode bookmarks (thanks to CircleCode).
18190 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
18191 with `inputenc`. This covers fewer characters but is more
18192 robust with other packages, and `ucs` is unmaintained. Users
18193 who need better unicode support should use xelatex or lualatex.
18195 * If a template specified with `--template` is not found, look for it
18196 in `datadir`. Also, if no extension is provided, supply one based
18197 on the writer. So now you can put your `special.latex` template in
18198 `~/.pandoc/templates`, and use it from any directory via
18199 `pandoc -t latex --template special`.
18201 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
18203 * Fixed smart quotes bug, now handling `'...hi'` properly.
18205 * RST reader:
18207 + Partial support for labeled footnotes.
18208 + Improved accuracy of `simpleReferenceName` parser.
18210 * HTML reader:
18212 + Substitute correct unicode characters for
18213 characters in the 128..159 range, which are often found even in
18214 HTML that purports to be UTF-8.
18216 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
18217 to the title, after a colon and linebreak). Closes #280.
18219 * Leaner `reference.odt`.
18221 * Added unexported module `Text.Pandoc.MIME` for use in
18222 the ODT writer.
18224 * ODT writer: Construct `manifest.xml` based on archive contents.
18225 This fixes a bug in ODTs containing images. Recent versions of
18226 LibreOffice would reject these as corrupt, because `manifest.xml`
18227 did not contain a reference to the image files.
18229 * LaTeX writer:
18231 + Make verbatim environments flush to avoid spurious
18232 blank lines. Closes #277.
18233 + Use `\texttt` and escapes insntead of `\verb!...!`, which
18234 is too fragile (doesn't work in command arguments).
18235 + Use `\enquote{}` for quotes if the template includes
18236 the `csquotes` package. This provides better support for
18237 local quoting styles. (Thanks to Andreas Wagner for the idea.)
18239 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
18240 margin, preventing spurious blank lines.
18242 * Slidy writer:
18244 + Use non-minimized version of `slidy.css` with `--offline`
18245 option, so users can more easily edit it.
18246 + Also fixed a bug in the CSS that prevented proper centering
18247 of title (now reported and fixed upstream).
18249 * S5 writer:
18251 + Replaced `s5/default/slides.js.{comment,packed}` with
18252 new compressed `s5/default/slides.min.js`.
18253 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
18254 when `--offline` is specified. Using inline CSS didn't
18255 work with Chrome or Safari. This fixes offline
18256 S5 on those browsers.
18258 * HTML writer: Removed English title on footnote backlinks.
18259 This is incongrous in non-English documents.
18261 * Docbook writer:
18263 + Use CALS tables. (Some older docbook software does not work
18264 well with XHTML tables.) Closes #77.
18265 + Use `programlisting` tags (instead of `screen`) for code blocks.
18267 * `markdown2pdf`:
18269 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
18270 of `-interaction=batchmode`, which essentially just ignored errors,
18271 leading to bad results. Better to know when something is wrong.
18272 + Fixed issues with non-UTF-8 output of `pdflatex`.
18273 + Better error reporting.
18275 * `--mathjax` now takes an optional URL argument. If it is not
18276 provided, pandoc links directly to the (secure) mathjax CDN,
18277 as now recommended (thanks to dsanson).
18279 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
18280 since the LaTeX writer now produces a file that can be processed by
18281 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
18283 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
18284 to be used to create the PDF.
18287## pandoc 1.8.1.2 (2011-07-16)
18289 * Added `--epub-cover-image` option.
18291 * Documented `--biblatex` and `--natbib` options.
18293 * Allow `--section-divs` with slidy output. Resolves Issue #296.
18295 * Disallow notes within notes in reST and markdown.
18296 These previously caused infinite looping and stack overflows.
18297 For example:
18299 [^1]
18301 [^1]: See [^1]
18303 Note references are allowed in reST notes, so this isn't a full
18304 implementation of reST. That can come later. For now we need to
18305 prevent the stack overflows. Partially resolves Issue #297.
18307 * EPUB writer: Allow non-plain math methods.
18309 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
18310 `(@item1; @item2)` because the final paren was being parsed as part of
18311 the item key.
18313 * Changed URI parser so it doesn't include trailing punctuation.
18314 So, in RST, `http://google.com.` should be parsed as a link followed by a
18315 period. The parser is smart enough to recognize balanced parentheses, as
18316 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
18318 * Markdown+lhs reader: Require space after inverse bird tracks, so that
18319 HTML tags can be used freely at the left margin of a markdown+lhs document.
18320 Thanks to Conal Elliot for the suggestion.
18322 * Markdown reader: Fixed bug in footnote order (reported by CircleCode).
18324 * RST reader:
18325 + Fixed bug in in field lists with multi-line items at the
18326 end of the list.
18327 + Added parentheses to RST `specialChars`, so
18328 `(http://google.com)` will be parsed as a link in parens.
18329 Resolves Issue #291.
18330 + Allow `|` followed by newline in RST line block.
18332 * LaTeX reader:
18333 + Support `\dots`.
18334 + Gobble option & space after linebreak `\\[10pt]`.
18336 * Textile reader:
18337 + Make it possible to have colons after links. (qerub)
18338 + Make it possible to have colons after links. (Christoffer Sawicki)
18340 * HTML reader:
18341 + Skip spaces after `<b>`, `<emph>`, etc.
18342 + Handle tbody, thead in simple tables. Closes #274.
18343 + Implicit `Para`s instead of `Plains` in some contexts.
18345 * OpenDocument writer: Use special `First paragraph` style for
18346 first paragraph after most non-paragraph blocks. This allows users to
18347 specify e.g. that only paragraphs after the first paragraph of a block are
18348 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
18350 * LaTeX writer: use `deVerb` on table and picture captions.
18351 Otherwise LaTeX complains about `\verb` inside command argument.
18352 Thanks to bbanier for reporting the bug.
18354 * Markdown writer: Insert HTML comment btw list and indented code block.
18355 This prevents the code block from being interpreted as part of the list.
18357 * EPUB writer: Add a meta element specify the cover.
18358 Some EPUB e-readers, such as the Nook, require a meta element inside the
18359 OPF metadata block to ensure the cover image is properly displayed.
18360 (Kelsey Hightower)
18362 * HTML writer: Use embed tag for images with non-image extensions.
18363 (e.g. PDFs). Closes #264.
18365 * LaTeX writer: Improved tables.
18367 + More space between lines, top-align cells.
18368 + Use ctable package, which allows footnotes and
18369 provides additional options.
18370 + Made cell alignments work in multiline tables.
18371 + Closes #271, #272.
18373 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
18374 Also do this when copying image files into EPUBs and ODTs.
18375 Closes #263.
18377 * Changed to github issue tracker.
18379 * Added failing emph/strong markdown test case due to Perry Wagle.
18381 * Slidy improvements:
18382 + Updated to use Slidy2.
18383 + Fixed bug, unclosed div tag.
18384 + Added `duration` variable in template.
18385 Setting this activates the timer.
18386 + Use 'titlepage' instead of 'cover' for title div.
18389## pandoc 1.8.1.1 (2011-02-13)
18391 * `markdown2pdf`: Removed some debugging lines accidentally included
18392 in the 1.8.1 release. With those lines, the temp directory is created
18393 in the working directory, and it is not deleted. This fix restores
18394 the original behavior.
18396## pandoc 1.8.1 (2011-02-13)
18398 * Added `--ascii` option. Currently supported only in HTML writer,
18399 which it causes to use numerical entities instead of UTF-8.
18401 * EPUB writer: `--toc` now works to provide a table of contents
18402 at the beginning of each chapter.
18404 * LaTeX writer: Change figure defaults to `htbp`.
18405 This prevents "too many unprocessed floats." Resolves
18406 Issue #285.
18408 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
18409 base.
18411 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
18412 Tanimoto. Resolves Issue #286.
18414 * HTML writer: Put line breaks in section divs.
18416 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
18418## pandoc 1.8.0.3 (2011-02-05)
18420 * Fixed Source-repository stanza in cabal file.
18422## pandoc 1.8.0.2 (2011-02-05)
18424 * HTML writer:
18426 + Stringify alt text instead of converting to HTML.
18427 + Break lines after block elements, not inside tags.
18428 HTML output now closely resembles that of tidy. Resolves Issue #134.
18430 * Markdown reader: Fixed bug in footnote block parser (pointed out
18431 by Jesse Rosenthal). The problem arose when the blank line
18432 at the end of a footnote block contained indenting spaces.
18434 * Shared: Improved 'normalize' function so it normalizes Spaces too.
18435 In normal form, Space elements only occur to separate two non-Space
18436 elements. So, we never have [Space], or [, ..., Space].
18438 * Tests:
18440 + Improved Arbitrary instance.
18441 + Added timeout for test instances.
18443 * README:
18445 + Added section on four-space rule for lists. Resolves Issue #283.
18446 + Clarified optional arguments on math options.
18448 * markdown2pdf: Fixed bug with output file extensions.
18449 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
18450 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
18452## pandoc 1.8.0.1 (2011-01-31)
18454 * Revised Interact.hs so that it works with the CPP macros
18455 in the UTF8 module.
18457 * Revised Setup.hs so that we don't call MakeManPage.hs unless
18458 the man pages are out of date.
18460## pandoc 1.8 (2011-01-30)
18462### New features
18464 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
18465 You can now write, for example,
18467 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
18469 and, when you process your document using `pandoc`, specifying
18470 a citation style using `--csl` and a bibliography using `--bibliography`,
18471 the citation will be replaced by an appropriately formatted
18472 citation, and a list of works cited will be added to the end
18473 of the document.
18475 This means that you can switch effortlessly between different citation
18476 and bibliography styles, including footnote, numerical, and author-date
18477 formats. The bibliography can be in any of the following formats: MODS,
18478 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
18479 See the README for further details.
18481 Citations are supported in the markdown reader, using a special
18482 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
18483 (Thanks to Nathan Gass for the natbib and biblatex support.)
18485 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
18486 the `textile` reader, an almost complete implementation of the textile
18487 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
18488 Resolves Issue #51.
18490 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
18492 * New `json` reader and writer, for reading and writing a JSON
18493 representation of the native Pandoc AST. These are much faster
18494 than the `native` reader and writer, and should be used for
18495 serializing Pandoc to text. To convert between the JSON representation
18496 and native Pandoc, use `encodeJSON` and `decodeJSON` from
18497 `Text.JSON.Generic`.
18499 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
18500 to write scripts that transform a JSON-encoded pandoc document.
18501 For example:
18503 -- removelinks.hs - removes links from document
18504 import Text.Pandoc
18505 main = interact $ jsonFilter $ bottomUp removeLink
18506 where removeLink (Link xs _) = Emph xs
18507 removeLink x = x
18509 To use this to remove links while translating markdown to LaTeX:
18511 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
18513 * Attributes are now allowed in inline `Code` elements, for example:
18515 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
18517 The attribute syntax is the same as for delimited code blocks.
18518 `Code` inline has an extra argument place for attributes, just like
18519 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
18520 is compiled with highlighting support. Resolves Issue #119.
18522 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
18523 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
18524 scripts to transform Pandoc documents. Scripts can now change
18525 how each element is rendered in each output format.
18527 * You can now define LaTeX macros in markdown documents, and pandoc
18528 will apply them to TeX math. For example,
18530 \newcommand{\plus}[2]{#1 + #2}
18531 $\plus{3}{4}$
18533 yields `3+4`. Since the macros are applied in the reader, they
18534 will work in every output format, not just LaTeX.
18536 * LaTeX macros can also be used in LaTeX documents (both in math
18537 and in non-math contexts).
18539 * A new `--mathjax` option has been added for displaying
18540 math in HTML using MathJax. Resolves issue #259.
18542 * Footnotes are now supported in the RST reader. (Note, however,
18543 that unlike docutils, pandoc ignores the numeral or symbol used in
18544 the note; footnotes are put in an auto-numbered ordered list.)
18545 Resolves Issue #258.
18547 * A new `--normalize` option causes pandoc to normalize the AST
18548 before writing the document. This means that, for example,
18549 `*hi**there*` will be rendered as `<em>hithere</em>`
18550 instead of `<em>hi</em><em>there</em>`. This is not the default,
18551 because there is a significant performance penalty.
18553 * A new `--chapters` command-line option causes headers
18554 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
18555 Resolves Issue #265.
18557 * In DocBook output, `<chapter>` is now used for top-level
18558 headers if the template contains `<book>`. Resolves Issue #265.
18560 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
18561 the LaTeX writer to use the listings package for code blocks.
18562 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
18563 Millon for the markdown2pdf patch.)
18565 * `markdown2pdf` now supports `--data-dir`.
18567 * URLs in autolinks now have class "url" so they can be styled.
18569 * Improved prettyprinting in most formats. Lines will be wrapped
18570 more evenly and duplicate blank lines avoided.
18572 * New `--columns` command-line option sets the column width for
18573 line wrapping and relative width calculations for tables.
18575 * Made `--smart` work in HTML, RST, and Textile readers, as well
18576 as markdown.
18578 * Added `--html5` option for HTML5 output.
18580 * Added support for listings package in LaTeX reader
18581 (Puneeth Chaganti).
18583 * Added support for simple tables in the LaTeX reader.
18585 * Added support for simple tables in the HTML reader.
18587 * Significant performance improvements in many readers and writers.
18589### API and program changes
18591 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
18592 auxiliary package, `pandoc-types`. This will make it possible for other
18593 programs to supply output in Pandoc format, without depending on the whole
18594 pandoc package.
18596 * Added `Attr` field to `Code`.
18598 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
18599 `RawBlock` and `RawInline`.
18601 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
18602 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
18603 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
18605 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
18607 * `Text.Pandoc` now exports association lists `readers` and `writers`.
18609 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
18610 `readNative` can now read full pandoc documents, block lists, blocks,
18611 inline lists, or inlines. It will interpret `Str "hi"`
18612 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
18613 This should make testing easier.
18615 * Removed deprecated `-C/--custom-header` option.
18616 Use `--template` instead.
18618 * `--biblio-file` has been replaced by `--bibliography`.
18619 `--biblio-format` has been removed; pandoc now guesses the format
18620 from the file extension (see README).
18622 * pandoc will treat an argument as a URI only if it has an
18623 `http(s)` scheme. Previously pandoc would treat some
18624 Windows pathnames beginning with `C:/` as URIs.
18626 * The `--sanitize-html` option and the `stateSanitize` field in
18627 `ParserState` have been removed. Sanitization is better done in the
18628 resulting HTML using `xss-sanitize`, which is based on pandoc's
18629 sanitization, but improved.
18631 * pandoc now adds a newline to the end of its output in fragment
18632 mode (= not `--standalone`).
18634 * Added support for `lang` in `html` tag in the HTML template,
18635 so you can do `pandoc -s -V lang=es`, for example.
18637 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
18638 a boolean argument that selects between "inline" and
18639 "block" HTML.
18641 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
18642 Images are embedded in RTF output when possible (png, jpeg).
18643 Resolves Issue #275.
18645 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
18646 `pretty` package. Changed all writers that used
18647 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
18649 * Rewrote `writeNative` using the new prettyprinting module. It is
18650 now much faster. The output has been made more consistent and compressed.
18651 `writeNative` is also now sensitive to writerStandalone`, and will simply
18652 `print a block list if writerStandalone` is False.
18654 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
18655 blocks and concatenate them, so a separate module is no longer needed.
18657 * `Text.Pandoc.Shared`:
18659 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
18660 `WriterOptions`.
18661 + Added `normalize`.
18662 + Removed unneeded prettyprinting functions:
18663 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
18664 `BlockWrapper`, `wrappedBlocksToDoc`.
18665 + Made `splitBy` take a test instead of an element.
18666 + Added `findDataFile`, refactored `readDataFile`.
18667 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
18668 + Fixed `inlineListToIdentifier` to treat `\160` as ' '.
18670 * `Text.Pandoc.Readers.HTML`:
18672 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
18673 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
18674 `htmlBlockElement`, `htmlComment`
18675 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
18676 `isTextTag`
18678 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
18679 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
18680 an inline parser.
18682 * Ellipses are no longer allowed to contain spaces.
18683 Previously we allowed '. . .', ' . . . ', etc. This caused
18684 too many complications, and removed author's flexibility in
18685 combining ellipses with spaces and periods.
18687 * Allow linebreaks in URLs (treat as spaces). Also, a string of
18688 consecutive spaces or tabs is now parsed as a single space. If you have
18689 multiple spaces in your URL, use `%20%20`.
18691 * `Text.Pandoc.Parsing`:
18693 + Removed `refsMatch`.
18694 + Hid `Key` constructor.
18695 + Removed custom `Ord` and `Eq` instances for `Key`.
18696 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
18697 + Generalized type on `readWith`.
18699 * Small change in calculation of relative widths of table columns.
18700 If the size of the header > the specified column width, use
18701 the header size as 100% for purposes of calculating
18702 relative widths of columns.
18704 * Markdown writer now uses some pandoc-specific features when `--strict`
18705 is not specified: `\` newline is used for a hard linebreak instead of
18706 two spaces then a newline. And delimited code blocks are used when
18707 there are attributes.
18709 * HTML writer: improved gladTeX output by setting ENV appropriately
18710 for display or inline math (Jonathan Daugherty).
18712 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
18714 * LaTeX reader:
18716 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
18717 + `\index{}` commands are skipped.
18719 * Added `fontsize` variable to default LaTeX template.
18720 This makes it easy to set the font size using `markdown2pdf`:
18721 `markdown2pdf -V fontsize=12pt input.txt`.
18723 * Fixed problem with strikeout in LaTeX headers when using
18724 hyperref, by adding a command to the default LaTeX template
18725 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
18726 for the fix.
18728 * The `COLUMNS` environment variable no longer has any effect.
18730### Under-the-hood improvements
18732 * Pandoc now compiles with GHC 7. (This alone leads to a
18733 significant performance improvement, 15-20%.)
18735 * Completely rewrote HTML reader using tagsoup as a lexer. The
18736 new reader is faster and more accurate. Unlike the
18737 old reader, it does not get bogged down on some input
18738 (Issues #277, 255). And it handles namespaces in tags
18739 (Issue #274).
18741 * Replaced `escapeStringAsXML` with a faster version.
18743 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
18744 for a significant performance boost.
18746 * Improved performance of all readers by rewriting parsers.
18748 * Simplified Text.Pandoc.CharacterReferences by using
18749 entity lookup functions from TagSoup.
18751 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
18752 from `System.IO` if base >= 4.2. This gives support for
18753 windows line endings on windows.
18755 * Remove duplications in documentation by generating the
18756 pandoc man page from README, using `MakeManPage.hs`.
18758 * README now includes a full description of markdown syntax,
18759 including non-pandoc-specific parts. A new `pandoc_markdown`
18760 man page is extracted from this, so you can look up markdown
18761 syntax by doing `man pandoc_markdown`.
18763 * Completely revised test framework (with help from Nathan Gass).
18764 The new test framework is built when the `tests` Cabal flag is set. It
18765 includes the old integration tests, but also some new unit and quickcheck
18766 tests. Test output has been much improved, and you can now specify a glob
18767 pattern after `cabal test` to indicate which tests should be run;
18768 for example `cabal test citations` will run all the citation tests.
18770 * Added a shell script, `stripansi.sh`, for filtering ANSI control
18771 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
18773 * Added `Interact.hs` to make it easier to use ghci while developing.
18774 `Interact.hs` loads `ghci` from the `src` directory, specifying
18775 all the options needed to load pandoc modules (including
18776 specific package dependencies, which it gets by parsing
18777 dist/setup-config).
18779 * Added `Benchmark.hs`, testing all readers + writers using criterion.
18781 * Added `stats.sh`, to make it easier to collect and archive
18782 benchmark and lines-of-code stats.
18784 * Added upper bounds to all cabal dependencies.
18786 * Include man pages in extra-source-files. This allows users to
18787 install pandoc from the tarball without needing to build the man
18788 pages.
18790### Bug fixes
18792 * Filenames are encoded as UTF8. Resolves Issue #252.
18794 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
18795 were just parsed literally, leading to problems in some output formats.
18796 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
18797 Resolves Issue #270.
18799 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
18800 Spaces at end of line were not being stripped properly,
18801 resulting in unintended LineBreaks.
18803 * Markdown reader:
18805 + Allow HTML comments as inline elements in markdown.
18806 So, `aaa <!-- comment --> bbb` can be a single paragraph.
18807 + Fixed superscripts with links: `^[link](/foo)^` gets
18808 recognized as a superscripted link, not an inline note followed by
18809 garbage.
18810 + Fixed regression, making markdown reference keys case-insensitive again.
18811 Resolves Issue #272.
18812 + Properly handle abbreviations (like `Mr.`) at the end of a line.
18813 + Better handling of intraword underscores, avoiding exponential
18814 slowdowns in some cases. Resolves Issue #182.
18815 + Fixed bug in alignments in tables with blank rows in the header.
18817 * RST reader:
18819 + Field lists now allow spaces in field names, and
18820 block content in field values. (Thanks to Lachlan Musicman
18821 for pointing out the bug.)
18822 + Definition list items are now always `Para` instead of
18823 `Plain`, matching behavior of `rst2xml.py`.
18824 + In image blocks, the description is parsed properly and
18825 used for the alt attribute, not also the title.
18826 + Skip blank lines at beginning of file. Resolves
18827 Debian #611328.
18829 * LaTeX reader:
18831 + Improved parsing of preamble.
18832 Previously you'd get unexpected behavior on a document that
18833 contained `\begin{document}` in, say, a verbatim block.
18834 + Allow spaces between `\begin` or `\end` and `{`.
18835 + Support `\L` and `\l`.
18836 + Skip comments inside paragraphs.
18838 * LaTeX writer:
18840 + Escape strings in `\href{..}`.
18841 + In nonsimple tables, put cells in `\parbox`.
18843 * OpenDocument writer: don't print raw TeX.
18845 * Markdown writer:
18847 + Fixed bug in `Image`. URI was getting unescaped twice!
18848 + Avoid printing extra blank lines at the end if there are
18849 no notes or references.
18851 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
18852 This avoids unwanted interpretation as an optional argument.
18854 * ConTeXt writer: Fixed problem with inline code. Previously
18855 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
18856 If it contains neither, use `\type{}`; otherwise use `\mono{}`
18857 with an escaped version of the string.
18859 * `:` now allowed in HTML tags. Resolves Issue #274.
18863## pandoc 1.6 (2010-07-24)
18865+ New EPUB and HTML Slidy writers. (Issue #122)
18867 - [EPUB] is a standard ebook format, used in Apple's iBooks for
18868 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
18869 reader, and many other devices, and by online ebook readers like
18870 [bookworm]. (Amazon's Kindle uses a different format, MobiPocket,
18871 but EPUB books can easily be converted to Kindle format.) Now you
18872 can write your book in markdown and produce an ebook with a single
18873 command! I've put up a short [tutorial here].
18874 - [Slidy], like S5, is a system for producing HTML+javascript slide shows.
18876+ All input is assumed to be UTF-8, no matter what the locale and ghc
18877 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
18878 Also, a BOM, if present, is stripped from the input.
18880+ Markdown now supports grid tables, whose cells can contain
18881 arbitrary block elements. (Issue #43)
18883+ Sequentially numbered example lists in markdown with `@` marker.
18885+ Markdown table captions can begin with a bare colon and no longer need
18886 to include the English word "table." Also, a caption can now occur
18887 either before or after the table. (Issue #227)
18889+ New command-line options:
18891 - `--epub-stylesheet` allows you to specify a CSS file that will
18892 be used to style your ebook.
18893 - `--epub-metadata` allows you to specify metadata for the ebook.
18894 - `--offline` causes the generated HTML slideshow to include all
18895 needed scripts and stylesheets.
18896 - `--webtex` causes TeX math to be converted to images using the
18897 Google Charts API (unless a different URL is specified).
18898 - `--section-divs` causes div tags to be added around each section
18899 in an HTML document. (Issue #230, 239)
18901+ Default behavior of S5 writer in standalone mode has changed:
18902 previously, it would include all needed scripts and stylesheets
18903 in the generated HTML; now, only links are included unless
18904 the `--offline` option is used.
18906+ Default behavior of HTML writer has changed. Between 1.2 and 1.5,
18907 pandoc would enclose sections in div tags with identifiers on the
18908 div tags, so that the sections can be manipulated in javascript.
18909 This caused undesirable interactions with raw HTML div tags. So,
18910 starting with 1.6, the default is to put the identifiers directly
18911 on the header tags, and not to include the divs. The `--section-divs`
18912 option selects the 1.2-1.5 behavior.
18914+ API changes:
18916 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
18917 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
18918 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
18919 `writerIncludeAfter`.
18920 - Added `headerShift` to `Text.Pandoc.Shared`.
18921 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
18922 to a new module, `Text.Pandoc.Parsing`.
18923 - Added `stateHasChapters` to `ParserState`.
18924 - Added `HTMLSlideVariant`.
18925 - Made `KeyTable` a map instead of an association list.
18926 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`, `docDate`).
18927 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord` instances.
18928 - Reference keys now have a type of their own (`Key`), with its
18929 own `Ord` instance for case-insensitive comparison.
18930 - Added `Text.Pandoc.Writers.EPUB`.
18931 - Added `Text.Pandoc.UUID`.
18932 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
18933 Removed `saveOpenDocumentAsODT`, added `writeODT`.
18934 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
18935 Removed `prettyPandoc`.
18936 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
18937 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
18938 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
18939 To write S5, you now use `writeHtml` with `writerSlideVariant`
18940 set to `S5Slides` or `SlidySlides`.
18942+ Template changes. If you use custom templates, please update them,
18943 particularly if you use syntax highlighting with pandoc. The old HTML
18944 templates hardcoded highlighting CSS that will no longer work with
18945 the most recent version of highlighting-kate.
18947 - HTML template: avoid empty meta tag if no date.
18948 - HTML template: Use default highlighting CSS from highlighting-kate
18949 instead of hard-coding the CSS into the template.
18950 - HTML template: insert-before text goes before the title, and
18951 immediately after the `<body>` tag, as documented. (Issue #241)
18952 - Added slidy and s5 templates.
18953 - Added amssymb to preamble of latex template. (github Issue 1)
18955+ Removed excess newlines at the end of output. Note: because output
18956 will not contain an extra newline, you may need to make adjustments
18957 if you are inserting pandoc's output into a template.
18959+ In S5 and slidy, horizontal rules now cause a new slide, so you
18960 are no longer limited to one slide per section.
18962+ Improved handling of code in man writer. Inline code is now monospace,
18963 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
18965+ HTML reader parses `<tt>` as Code. (Issue #247)
18967+ html+lhs output now contains bird tracks, even when compiled without
18968 highlighting support. (Issue #242)
18970+ Colons are now no longer allowed in autogenerated XML/HTML identifiers,
18971 since they have a special meaning in XML.
18973+ Code improvements in ODT writer. Remote images are now replaced with
18974 their alt text rather than a broken link.
18976+ LaTeX reader improvements:
18978 - Made latex `\section`, `\chapter` parsers more forgiving of whitespace.
18979 - Parse `\chapter{}` in latex.
18980 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
18981 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
18982 for use in markdown reader.
18983 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
18984 in markdown document.
18986+ LaTeX writer: images are automatically shrunk if they would extend
18987 beyond the page margin.
18989+ Plain, markdown, RST writers now use unicode for smart punctuation.
18991+ Man writer converts math to unicode when possible, as in other writers.
18993+ `markdown2pdf` can now recognize citeproc options.
18995+ Command-line arguments are converted to UTF-8. (Issue #234)
18997+ `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
18998 This allows it to handle a wider range of formulas. Also, if a formula
18999 cannot be converted, it is left in raw TeX; formulas are no longer
19000 partially converted.
19002+ Unicode curly quotes are left alone when parsing smart quotes. (Issue #143)
19004+ Cabal file changes:
19006 - Removed parsec < 3 restriction.
19007 - Added 'threaded' flag for architectures where GHC lacks a threaded
19008 runtime.
19009 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
19010 - Require highlighting-kate 0.2.7.
19012+ Use explicit imports from `Data.Generics`. Otherwise we have a
19013 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
19015+ New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
19017[EPUB]: http://en.wikipedia.org/wiki/EPUB
19018[Slidy]: http://www.w3.org/Talks/Tools/Slidy
19019[bookworm]: http://bookworm.oreilly.com/
19020[tutorial here]: http://johnmacfarlane.net/pandoc/epub.html
19022## pandoc 1.5.1.1 (2010-03-29)
19024+ Fixed header identifiers (uniqueIdent in Shared) so they
19025 work as advertized in README and are guaranteed to be
19026 valid XHTML names. Thanks to Xyne for reporting the bug.
19028## pandoc 1.5.1 (2010-03-23)
19030+ Fixed treatment of unicode characters in URIs.
19031+ Revised Setup.hs so it works with debian's build process.
19032+ Fixed bug in OpenDocument writer that led to invalid
19033 XML for some input.
19035## pandoc 1.5.0.1 (2010-03-21)
19037+ HTML writer: Fixed error in math writer (with MathML option)
19038 that caused an infinite loop for unparsable MathML.
19040## pandoc 1.5 (2010-03-20)
19042+ Moved repository to [github](http://github.com/jgm/pandoc).
19043+ New `--mathml` option, for display of TeX math as MathML.
19044+ New `--data-dir` option, allowing users to specify a data
19045 directory other than `~/.pandoc`. Files placed in this directory
19046 will be used instead of system defaults.
19047+ New `--base-header-level` option. For example, `--base-header-level=2`
19048 changes level 1 headers to level 2, level 2 to level 3, etc.
19049+ New 'plain' output format: plain text without pictures, hyperlinks,
19050 inline formatting, or anything else that looks even vaguely
19051 markupish.
19052+ Titles and authors in title blocks can now span multiple lines,
19053 as long as the continuation lines begin with a space character.
19054+ When given an absolute URI as a parameter, pandoc will fetch
19055 the content via HTTP.
19056+ The HTML reader has been made much more forgiving. It no
19057 longer requires well-formed xhtml as input.
19058+ `html2markdown` has been removed; it is no longer necessary, given
19059 the last two changes. `pandoc` can be used by itself to convert
19060 web pages to markdown or other formats.
19061+ `hsmarkdown` has also been removed. Use `pandoc --strict` instead.
19062 Or symlink pandoc's executable to `hsmarkdown`; `pandoc` will then
19063 behave like `hsmarkdown` used to.
19064+ An image in a paragraph by itself is now rendered as a figure
19065 in most writers, with the alt text as the caption.
19066+ Incomplete support for reST tables (simple and grid). Thanks to
19067 Eric Kow. Colspans and rowspans not yet supported.
19068+ In mediawiki, links with relative URLs are now formatted as wikilinks.
19069 Also, headers have been promoted: `= head =` is now level 1 instead of
19070 level 2.
19071+ The markdown reader now handles "inverse bird tracks" when parsing
19072 literate haskell. These are used for haskell example code that
19073 is not part of the literate program.
19074+ The `-B` and `-A` options now imply `-s` and no longer work in
19075 fragment mode.
19076+ Headerless tables are now printed properly in all writers.
19077 In addition, tbody, thead, and cols are used in HTML and Docbook
19078 tables.
19079+ Improved build system; removed obsolete Makefile.
19080+ In LaTeX writer, `\chapter` is now used instead of `\section`.
19081 when the documentclass is book, report, or memoir.
19082+ Many small bug fixes. See [changelog] for details.
19084## pandoc 1.4 (2010-01-02)
19086+ New template system replaces old headers, giving users much
19087 more control over pandoc's output in `--standalone` mode.
19088 Added `--template` and `--variable` options. The `--print-default-header`
19089 option is now `--print-default-template`. See README under
19090 "Templates" for details.
19091+ The old `--custom-header` option should still work, but it has
19092 been deprecated.
19093+ New `--reference-odt` option allows users to customize styles
19094 in ODT output.
19095+ Users may now put custom templates, s5 styles, and a reference
19096 ODT in the `~/.pandoc` directory, where they will override system
19097 defaults. See README for details.
19098+ Unicode is now used whenever possible in HTML and XML output. Entities
19099 are used only where necessary (`&gt;`, `&lt;`, `&quot;`, `&amp;`).
19100+ Authors and dates may now include formatting and notes.
19101+ Added `--xetex` option for `pandoc` and `markdown2pdf`.
19102+ Windows installer now includes highlighting support and
19103 `markdown2pdf` and `hsmarkdown` wrappers.
19104+ Pandoc no longer requires Template Haskell, which should make
19105 it more portable.
19106+ Pandoc can now be built on GHC 6.12, as well as earlier versions.
19107+ See README for other small improvements and bug fixes.
19109## pandoc 1.3 (2009-12-10)
19111+ Added `--id-prefix` option to help prevent duplicate
19112 identifiers when you're generating HTML fragments.
19113+ Added `--indented-code-classes` option, which specifies
19114 default highlighting syntax for indented code blocks.
19115+ `--number-sections` now affects HTML output.
19116+ Improved syntax for markdown definition lists.
19117+ Better looking simple tables.
19118+ Markdown tables without headers are now possible.
19119+ New hard line break syntax: backslash followed by newline.
19120+ Improved performance of markdown reader by ~10% by eliminating the
19121 need for a separate parsing pass for notes.
19122+ Improved syntax highlighting for literate Haskell.
19123+ Support for "..code-block" directive in RST reader.
19124+ Windows binary now includes highlighting support.
19125+ Many bug fixes and small improvements. See [changelog]
19126 for details.
19128## pandoc 1.2.1 (2009-07-18)
19130+ Improved the efficiency of the markdown reader's
19131 abbreviation parsing (should give a big performance
19132 boost with `--smart`).
19133+ HTML writer now wraps sections in divs with unique
19134 identifiers, for easier manipulation.
19135+ Improved LaTeX reader's coverage of math modes.
19136+ Added a portable Haskell version of markdown2pdf (thanks
19137 to Paolo Tanimoto).
19138+ Made `--strict` compatible with `--standalone` and `--toc.`
19139+ Many other small improvements and bug fixes.
19140 See [changelog] for details.
19142## pandoc 1.2 (2009-03-01)
19144+ Added support for literate Haskell. lhs support is triggered by
19145 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
19146 Haskell LaTeX. '.lhs' files are treated by default as literate
19147 markdown.
19148+ Added `--email-obfuscation` option.
19149+ Brought citeproc support up to date for citeproc-hs-0.2.
19150+ Many bugs fixed. See [changelog] for details.
19152## pandoc 1.1 (2008-11-06)
19154+ New `--jsmath` option supporting use of pandoc with [jsMath].
19155+ Classes on HTML table output for better CSS styling.
19156+ Windows installer no longer requires admin privileges.
19157+ Many bugs fixed. See [changelog] for details.
19159## pandoc 1.0 (2008-09-13)
19161+ New writers for MediaWiki, GNU Texinfo (thanks to Peter Wang),
19162 OpenDocument XML (thanks to Andrea Rossato), and ODT (OpenOffice
19163 document).
19164+ New [delimited code blocks](README.html#delimited-code-blocks),
19165 with optional syntax highlighting.
19166+ Reorganized build system: pandoc can now be built using standard
19167 Cabal tools. It can be compiled on Windows without Cygwin.
19168 The tests can also be run without perl or unix tools.
19169+ LaTeXMathML replaces ASCIIMathML for rendering math in HTML.
19170+ Support for "displayed" math.
19171+ Common abbreviations are now handled more intelligently, with
19172 a non-breaking space (and not a sentence-ending space) after
19173 the period.
19174+ Code is -Wall clean.
19175+ Many bug fixes and small improvements. See [changelog] for
19176 full details.
19178## pandoc 0.46 (2008-01-08)
19180+ Added a `--sanitize-html` option (and a corresponding parameter
19181 in `ParserState` for those using the pandoc libraries in programs).
19182 This option causes pandoc to sanitize HTML (in HTML or Markdown
19183 input) using a whitelist method. Possibly harmful HTML elements
19184 are replaced with HTML comments. This should be useful in the
19185 context of web applications, where pandoc may be used to convert
19186 user input into HTML.
19187+ Made -H, -A, and -B options cumulative: if they are specified
19188 multiple times, multiple files will be included.
19189+ Many bug fixes and small improvements. See [changelog] for full
19190 details.
19192## pandoc 0.45 (2007-12-09)
19194+ Many bug fixes and structural improvements. See [changelog] for
19195 full details.
19196+ Improved treatment of math. Math is now rendered using unicode
19197 by default in HTML, RTF, and DocBook output. For more accurate
19198 display of math in HTML, `--gladtex`, `--mimetex`, and `--asciimathml`
19199 options are provided. See the [User's Guide](README.html#math) for
19200 details.
19201+ Removed support for box-style block quotes in markdown.
19202+ More idiomatic ConTeXt output.
19203+ Text wrapping in ConTeXt and LaTeX output.
19204+ Pandoc now correctly handles all standard line endings
19205 (CR, LF, CRLF).
19206+ New `--no-wrap` option that disables line wrapping and minimizes
19207 whitespace in HTML output.
19208+ Build process is now compatible with both GHC 6.8 and GHC 6.6.
19209 GHC and GHC_PKG environment variables may be used to specify
19210 which version of the compiler to use, when multiple versions are
19211 installed.
19213## pandoc 0.44 (2007-09-03)
19215 [ John MacFarlane ]
19217 * Fixed bug in HTML writer: when --toc was used, anchors were put around
19218 headers, which is invalid XHTML (block content within inline element).
19219 Now the anchors are put inside the header tags. Resolves Issue #23.
19221 * Added xmlns attribute to html element in html writer tests.
19222 This attribute is added by more recent versions of the
19223 xhtml library (>= 3000), and is required for valid XHTML.
19225 [ Recai Oktaş ]
19227 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
19228 command instead of 'runhaskell', which, on some platforms (such as s390,
19229 alpha, m68k), throws the following error:
19231 runhaskell Setup.hs configure --prefix=/usr
19232 ghc-6.6.1: not built for interactive use
19234 This causes a serious FTBFS bug. Closes: #440668.
19236## pandoc 0.43 (2007-09-02)
19238 [ John MacFarlane ]
19240 * The focus of this release is performance. The markdown parser
19241 is about five times faster than in 0.42, based on benchmarks
19242 with the TextMate manual.
19244 * Main.hs: Replaced CRFilter and tabFilter with single function
19245 tabFilter, which operates on the whole string rather than breaking
19246 it into lines, and handles dos-style line-endings as well as tabs.
19248 * Added separate LaTeX reader and native reader tests; removed
19249 round-trip tests.
19251 * Text.Pandoc.Shared:
19253 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
19254 + General code cleanup (to elimante warnings when compiling with -Wall.)
19255 + Added 'wrapped' function, which helps wrap text into paragraphs,
19256 using the prettyprinting library.
19257 + Rewrote charsInBalanced and charsInBalanced'.
19258 - Documented restriction: open and close must be distinct characters.
19259 - Rearranged options for greater efficiency.
19260 - Bug fix: Changed inner call to charsInBalanced inside
19261 charsInBalanced' to charsInBalanced'.
19262 + anyLine now requires that the line end with a newline (not eof).
19263 This is a harmless assumption, since we always add newlines to the
19264 end of a block before parsing with anyLine, and it yields a 10% speed
19265 boost.
19266 + Removed unnecessary 'try' in anyLine.
19267 + Removed unneeded 'try' from romanNumeral parser.
19268 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
19269 + Removed unneeded 'try' in parseFromString.
19270 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
19271 like 'string'.)
19272 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
19273 'try' is not automatically applied to the 'end' parser. Added
19274 'try' in calls to 'enclosed' where needed. Slight speed increase.
19276 * Writers:
19278 + Replaced individual wrapping routines in RST, Man, and Markdown
19279 writers with 'wrapped' from Text.Pandoc.Shared.
19280 + Rewrote LaTeX writer to use the prettyprinting library,
19281 so we get word wrapping, etc.
19282 + Modified latex writer tests for new latex writer using prettyprinter.
19283 + Fixed bug in LaTeX writer: autolinks would not cause
19284 `\usepackage{url}` to be put in the document header. Also, changes
19285 to state in enumerated list items would be overwritten.
19286 + In Markdown writer, escape paragraphs that begin with ordered list
19287 markers, so they don't get interpreted as ordered lists.
19289 * Text.Pandoc.Reades.LaTeX:
19291 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
19292 numeral after "enum" in "setcounter" would consist entirely of
19293 "i"s. 'enumiv' is legitimate.
19294 + LaTeX command and environment names can't contain numbers.
19295 + Rearranged order of parsers in inline for slight speed improvement.
19296 + Added '`' to special characters and 'unescapedChar'.
19298 * Text.Pandoc.Readers.RST:
19300 + Removed unneeded try's in RST reader; also minor code cleanup.
19301 + Removed tabchar.
19302 + Rearranged parsers in inline (doubled speed).
19304 * Text.Pandoc.Readers.Markdown:
19306 + Skip notes parsing if running in strict mode. (This yields a nice
19307 speed improvement in strict mode.)
19308 + Simplify autolink parsing code, using Network.URI to test for
19309 URIs. Added dependency on network library to debian/control and
19310 pandoc.cabal.
19311 + More perspicuous definition of nonindentSpaces.
19312 + Removed unneeded 'try' in 'rawLine'.
19313 + Combined linebreak and whitespace into a new whitespace parser, to
19314 avoid unnecessary reparsing of space characters.
19315 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
19316 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
19317 + Use lookAhead in parsers for setext headers and definition lists
19318 to see if the next line begins appropriately; if not, don't waste
19319 any more time parsing.
19320 + Don't require blank lines after code block. (It's sufficient to
19321 end code block with a nonindented line.)
19322 + Changed definition of 'emph': italics with '_' must not
19323 be followed by an alphanumeric character. This is to help
19324 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
19325 `[LC<em>TYPE]:my</em>type`.
19326 + Improved Markdown.pl-compatibility in referenceLink: the two parts
19327 of a reference-style link may be separated by one space, but not
19328 more... [a] [link], [not] [a link].
19329 + Fixed markdown inline code parsing so it better accords with
19330 Markdown.pl: the marker for the end of the code section is a clump
19331 of the same number of `'s with which the section began, followed
19332 by a non-` character. So, for example,
19333 ` h ``` i ` -> `<code>h ``` i</code>`.
19334 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
19335 rules are slightly different.
19336 + Rewrote 'para' for greater efficiency.
19337 + Rewrote link parsers for greater efficiency.
19338 + Removed redundant 'referenceLink' in definition of inline (it's
19339 already in 'link').
19340 + Refactored escapeChar so it doesn't need 'try'.
19341 + Refactored hrule for performance in Markdown reader.
19342 + More intelligent rearranging of 'inline' so that most frequently
19343 used parsers are tried first.
19344 + Removed tabchar parser, as whitespace handles tabs anyway.
19346 * Text.Pandoc.CharacterReferences:
19348 + Refactored.
19349 + Removed unnecessary 'try's for a speed improvement.
19350 + Removed unnecessary '&' and ';' from the entity table.
19352 * Build process:
19354 + Makefile: Get VERSION from cabal file, not Main.hs.
19355 + Modified MacPorts Portfile:
19356 - Depend on haddock
19357 - Build and install libraries and library documentation in
19358 addition to pandoc executable
19359 - Added template item for md5 sum in Portfile.in.
19360 - Incorporated changes from MacPorts repository (r28278).
19361 + FreeBSD port: Don't try to generate distinfo in Makefile.
19362 It can be made using 'make makesum' in FreeBSD.
19363 + Make both freebsd and macports targets depend on tarball.
19365 * Website and documentation:
19367 + Updated INSTALL instructions.
19368 + Added pandocwiki demo to website.
19369 + Removed local references to Portfile, since pandoc is now in the
19370 MacPorts repository.
19372## pandoc 0.42 (2007-08-26)
19374 [ John MacFarlane ]
19376 * Main.hs: Use utf8 conversion on the extra files loaded with
19377 the -H, -C, -B, and -A options. This fixes problems with unicode
19378 characters in these files.
19380 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
19381 Text.Pandoc.Readers.HTML and without it we get a linking error when
19382 using the library.
19384 * Markdown reader:
19386 + Added new rule for enhanced markdown ordered lists: if the list
19387 marker is a capital letter followed by a period (including a
19388 single-letter capital roman numeral), then it must be followed by
19389 at least two spaces. The point of this is to avoid accidentally
19390 treating people's initials as list markers: a paragraph might begin,
19391 "B. Russell was an English philosopher," and this shouldn't be
19392 treated as a list. Documented change in README.
19393 + Blocks that start with "p. " and a digit are no longer treated
19394 as ordered lists (it's a page number).
19395 + Added a needed 'try' to listItem.
19396 + Removed check for a following setext header in endline.
19397 A full test is too inefficient (doubles benchmark time), and the
19398 substitute we had before is not 100% accurate.
19399 + Don't use Code elements for autolinks if --strict specified.
19401 * LaTeX writer: When a footnote ends with a Verbatim environment, the
19402 close } of the footnote cannot occur on the same line or an error occurs.
19403 Fixed this by adding a newline before the closing } of every footnote.
19405 * HTML writer:
19406 + Removed incorrect "{}" around style information in HTML tables.
19407 Column widths now work properly in HTML.
19408 + If --strict option is specified (and --toc is not), don't include
19409 identifiers in headers, for better Markdown compatibility.
19411 * Build process:
19413 + Separated $(web_dest) and website targets.
19414 + In website, index.txt is now constructed from template index.txt.in.
19415 + Added freebsd target to Markefile. This creates the freebsd Makefile
19416 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
19417 from the repository.
19418 + Added macport target to Makefile. Portfile is built from template
19419 Portfile.in.
19420 + Removed OSX package targets. (Too many difficulties involving
19421 dependencies on dynamic libraries.)
19422 + More complete INSTALL instructions for all architectures.
19424 * Website:
19425 + Added a programming demo, pandocwiki.
19427 [ Recai Oktaş ]
19429 * Do not forget to close pandoc's ITP. Closes: #391666
19431## pandoc 0.41 (2007-08-19)
19433 [ John MacFarlane ]
19435 * Fixed bugs in HTML reader:
19436 + Skip material at end *only if* `</html>` is present (previously,
19437 only part of the document would be parsed if an error was
19438 found; now a proper error message is given).
19439 + Added new constant eitherBlockOrInline with elements that may
19440 count either as block-level or as inline. Modified isInline and
19441 isBlock to take this into account.
19442 + Modified rawHtmlBlock to accept any tag (even an inline tag):
19443 this is innocuous, because rawHtmlBlock is tried only if a regular
19444 inline element can't be parsed.
19445 + Added a necessary 'try' in definition of 'para'.
19447 * Fixed bug in markdown ordered list parsing. The problem was that
19448 anyOrderedListStart did not check for a space following the
19449 ordered list marker. So in 'A.B. 2007' the parser would be
19450 expecting a list item, but would not find one, causing an error.
19451 Fixed a similar bug in the RST reader. Resolves Issue #22.
19453 * Refactored RST and Markdown readers using parseFromString.
19455 * LaTeX reader will now skip anything after \end{document}.
19457 * Fixed blockquote output in markdown writer: previously, block
19458 quotes in indented contexts would be indented only in the first
19459 line.
19461 * Added note to INSTALL about variations in versions of the xhtml
19462 library that can lead to failed tests (thanks to Leif LeBaron).
19464## pandoc 0.4 (2007-01-16)
19466 [ John MacFarlane ]
19468 * Added two new output formats: groff man pages and ConTeXt. By
19469 default, output files with extensions ".ctx" and ".context" are
19470 assumed to be ConTeXt, and output files with single-digit extensions
19471 are assumed to be man pages.
19473 * Enhanced ordered lists (documented in README, under Lists):
19474 + The OrderedList block element now stores information about
19475 list number style, list number delimiter, and starting number.
19476 + The readers parse this information when possible.
19477 + The writers use this information to style ordered lists.
19478 + The enhancement can be disabled using the --strict option.
19480 * Added support for tables (with a new Table block element). Two kinds
19481 of tables are supported: a simple table with one-line rows, and a
19482 more complex variety with multiline rows. All output formats are
19483 supported, but only markdown tables are parsed at the moment. The
19484 syntax is documented in README.
19486 * Added support for definition lists (with a new DefinitionList block
19487 element). All output and input formats are supported. The syntax is
19488 documented in README.
19490 * Added support for superscripts and subscripts (with new Superscript
19491 and Subscript inline elements). All input and output
19492 formats. The syntax is documented in README.
19494 * Added support for strikeout (with a new Strikeout inline element).
19495 All input and output formats are supported. Thanks to Bradley Kuhn,
19496 who contributed a patch. The syntax is documented in README. Resolves
19497 Issue #18.
19499 * Added a --toc|--table-of-contents option. This causes an automatically
19500 generated table of contents (or an instruction that creates one) to
19501 be inserted at the beginning of the document. Not supported in S5,
19502 DocBook, or man page writers.
19504 * Modified the -m|--asciimathml option:
19506 + If an optional URL argument is provided, a link is inserted
19507 instead of the contents of the ASCIIMathML.js script.
19508 + Nothing is inserted unless the document actually contains
19509 LaTeX math.
19511 * Removed Blank block element as unnecessary.
19513 * Removed Key and Note blocks from the Pandoc data structure. All
19514 links are now stored as explicit links, and note contents are
19515 stored with the (inline) notes.
19517 + All link Targets are now explicit (URL, title) pairs; there
19518 is no longer a 'Ref' target.
19519 + Markdown and RST parsers now need to extract data from key and
19520 note blocks and insert them into the relevant inline elements.
19521 Other parsers have been simplified, since there is no longer any need
19522 to construct separate key and note blocks.
19523 + Markdown, RST, and HTML writers need to construct lists of
19524 notes; Markdown and RST writers need to construct lists of link
19525 references (when the --reference-links option is specified); and
19526 the RST writer needs to construct a list of image substitution
19527 references. All writers have been rewritten to use the State monad
19528 when state is required.
19529 + Several functions (generateReference, keyTable,
19530 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
19531 used by them) have been removed from Text.Pandoc.Shared, since
19532 they are no longer needed. New functions and data structures
19533 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
19534 added. The functions inTags, selfClosingTag, inTagsSimple, and
19535 inTagsIndented have been moved to the DocBook writer, since that
19536 is now the only module that uses them. NoteTable is now exported
19537 in Text.Pandoc.Shared.
19538 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
19539 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
19540 + Added writerNotes and writerReferenceLinks to WriterOptions.
19542 * Added Text.Pandoc module that exports basic readers, writers,
19543 definitions, and utility functions. This should export everything
19544 needed for most uses of Pandoc libraries. The haddock documentation
19545 includes a short example program.
19547 * Text.Pandoc.ASCIIMathML is no longer an exported module.
19549 * Added Text.Pandoc.Blocks module to help in printing markdown
19550 and RST tables. This module provides functions for working with
19551 fixed-width blocks of text--e.g., placing them side by side, as
19552 in a table row.
19554 * Refactored to avoid reliance on Haskell's Text.Regex library, which
19555 (a) is slow, and (b) does not properly handle unicode. This fixed
19556 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
19558 + Replaced 'gsub' with a general list function 'substitute'
19559 that does not rely on Text.Regex.
19560 + Rewrote extractTagType in HTML reader so that it doesn't use
19561 regexs.
19562 + In Markdown reader, replaced email regex test with a custom email
19563 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
19564 with a custom function isSelfClosingTag.
19565 + Modified Docbook writer so that it doesn't rely on Text.Regex for
19566 detecting 'mailto' links.
19567 + Removed escapePreservingRegex and reamped entity-handling
19568 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
19569 avoid reliance on Text.Regex (see below on character reference
19570 handling changes).
19572 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
19574 * Changed handling of XML entities. Entities are now parsed (and unicode
19575 characters returned) in the Markdown and HTML readers, rather than being
19576 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
19577 instead of entities for characters above 128. This makes the HTML and
19578 DocBook output much more readable and more easily editable.
19580 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
19581 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
19582 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
19583 Moved both functions to Text.Pandoc.Writers.Docbook.
19584 + Added characterReference parser to Text.Pandoc.CharacterReferences.
19585 This parses a string and return a unicode character.
19586 + Rewrote decodeCharacterReferences to use the new parser instead of
19587 Text.Regex.
19588 + Added new charRef parser for Markdown and HTML, which replaces the
19589 old 'entity' parser. Added '&' as a special character in Markdown reader.
19590 + Modified HTML and Markdown readers to call decodeEntities on all raw
19591 strings (e.g. authors, dates, link titles), to ensure that no
19592 unprocessed entities are included in the native representation of
19593 the document. (In the HTML reader, most of this work is done by a
19594 change in extractAttributeName.)
19595 + In XML and Markdown output, escape unicode nonbreaking space as '&nbsp;',
19596 since a unicode non-breaking space is impossible to distinguish visually
19597 from a regular space. (Resolves Issue #3.)
19598 + Removed encodeEntitiesNumerical.
19599 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
19600 slight performance boost over the old association list.
19601 + Removed unneeded decodeEntities from 'str' parser in HTML and
19602 Markdown readers.
19604 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
19605 fromUTF8, for clarity.
19607 * Replaced old haskell98 module names replaced by hierarchical module
19608 names, e.g. List by Data.List. Removed haskell98 from dependencies
19609 in pandoc.cabal, and added mtl (needed for state monad). Substituted
19610 xhtml for html.
19612 * Refactored and cleaned up character escaping in writers, using
19613 backslashEscapes and escapeStringUsing functions.
19615 * Instead of adding `\n\n` to the end of an input string in Main.hs,
19616 this is now done in the readers. This makes the libraries behave
19617 the way you'd expect from the pandoc program. Resolves Issue #10.
19619 * URLs and email addresses in autolinks are now typeset as Code.
19621 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
19622 doesn't display the whole output unless there's a line ending.
19624 * Major code cleanup in all modules, for greater consistency, concision,
19625 and readability.
19627 * HTML reader:
19629 + Fixed several bugs (extractTagType, attribute parsing).
19630 + Remove Null blocks in lists of blocks when possible.
19631 + Allow HTML comments as raw HTML inline.
19633 * Markdown reader:
19635 + Ordered list items may no longer begin with uppercase letters, or
19636 letters greater than 'n'. (This prevents first initials and page
19637 reference, e.g. 'p. 400', from being parsed as beginning lists.)
19638 Also, numbers beginning list items may no longer end with ')',
19639 which is now allowed only after letters. Note: These changes
19640 may cause documents to be parsed differently. Users should take
19641 care in upgrading.
19642 + Changed autoLink parsing to conform better to Markdown.pl's
19643 behavior. `<google.com>` is not treated as a link, but
19644 `<http://google.com>`, `<ftp://google.com>`, and
19645 `<mailto:google@google.com>` are.
19646 + Cleaned up handling of embedded quotes in link titles. Now these are
19647 stored as a '"' character, not as '&quot;'.
19648 + Use lookAhead parser for the 'first pass' (looking for reference keys),
19649 instead of parsing normally, then using setInput to reset input. This
19650 yields a slight performance boost.
19651 + Fixed several bugs in smart quote recognition.
19652 + Fixed bug in indentSpaces (which didn't properly handle
19653 cases with mixed spaces and tabs).
19654 + Consolidated 'text', 'special', and 'inline' into 'inline'.
19655 + Fixed bug which allowed URL and title to be separated by multiple blank
19656 lines in links and reference keys. They can be on separate lines but
19657 can't have blank lines between them.
19658 + Correctly handle bracketed text inside inline footnotes and links,using
19659 new function inlinesInBalanced. Resolves Issue #14.
19660 + Fixed bug in footnotes: links in footnotes were not being
19661 processed. Solution: three-stage parse. First, get all the
19662 reference keys and add information to state. Next, get all the
19663 notes and add information to state. (Reference keys may be needed
19664 at this stage.) Finally, parse everything else.
19665 + Replaced named constants like 'emphStart' with literals.
19666 + Removed an extra occurrence of escapedChar in definition of inline.
19668 * RST reader:
19670 + Allow the URI in a RST hyperlink target to start on the line
19671 after the reference key.
19672 + Added 'try' in front of 'string', where needed, or used a different
19673 parser. This fixes a bug where ````` would not be correctly parsed as
19674 a verbatim `.
19675 + Fixed slow performance in parsing inline literals in RST reader. The
19676 problem was that ``#`` was seen by 'inline' as a potential link or image.
19677 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
19678 Resolves Issue #8.
19679 + Use lookAhead instead of getInput/setInput in RST reader. Removed
19680 unneeded getState call, since lookAhead automatically saves and
19681 restores the parser state.
19682 + Allow hyperlink target URIs to be split over multiple lines, and
19683 to start on the line after the reference. Resolves Issue #7.
19684 + Fixed handling of autolinks.
19686 * LaTeX reader:
19688 + Replaced `choice [(try (string ...), ...]` idiom with `oneOfStrings`,
19689 for clarity.
19690 + Added clauses for tilde and caret. Tilde is `\ensuremath{\sim}`, and
19691 caret is `\^{}`, not `\^` as before.
19692 + Added parsing for `\url`.
19693 + Parse `\texttt{}` as code, provided there's nothing fancy inside.
19695 * HTML writer:
19697 + Modified HTML writer to use the Text.XHtml library. This results
19698 in cleaner, faster code, and it makes it easier to use Pandoc in
19699 other projects, like wikis, which use Text.XHtml. Two functions are
19700 now provided, writeHtml and writeHtmlString: the former outputs an
19701 Html structure, the latter a rendered string. The S5 writer is also
19702 changed, in parallel ways (writeS5, writeS5String).
19703 + The Html header is now written programmatically, so it has been
19704 removed from the 'headers' directory. The S5 header is still
19705 needed, but the doctype and some of the meta declarations have
19706 been removed, since they are written programmatically. This change
19707 introduces a new dependency on the xhtml package.
19708 + Fixed two bugs in email obfuscation involving improper escaping
19709 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
19710 Issue #9.
19711 + Fixed another bug in email obfuscation: If the text to be obfuscated
19712 contains an entity, this needs to be decoded before obfuscation.
19713 Thanks to thsutton for the patch. Resolves Issue #15.
19714 + Changed the way the backlink is displayed in HTML footnotes.
19715 Instead of appearing on a line by itself, it now generally
19716 appears on the last line of the note. (Exception: when the
19717 note does not end with a Plain or Para block.) This saves space
19718 and looks better.
19719 + Added automatic unique identifiers to headers:
19720 - The identifier is derived from the header via a scheme
19721 documented in README.
19722 - WriterState now includes a list of header identifiers and a table
19723 of contents in addition to notes.
19724 - The function uniqueIdentifiers creates a list of unique identifiers
19725 from a list of inline lists (e.g. headers).
19726 - This list is part of WriterState and gets consumed by blockToHtml
19727 each time a header is encountered.
19728 + Include CSS for .strikethrough class in header only if strikethrough
19729 text appears in the document.
19730 + If the 'strict' option is specified, elements that do not appear in
19731 standard markdown (like definition lists) are passed through as
19732 raw HTML.
19733 + Simplified treatment of autolinks, using pattern matching instead of
19734 conditionals.
19736 * Markdown writer:
19738 + Links in markdown output are now printed as inline links by default,
19739 rather than reference links. A --reference-links option has been added
19740 that forces links to be printed as reference links. Resolves Issue #4.
19741 + Use autolinks when possible. Instead of `[site.com](site.com)`,
19742 use `<site.com>`.
19744 * LaTeX writer:
19746 + Rewrote to use the State monad. The preamble now includes only those
19747 packages that are actually required, given the document's content.
19748 Thus, for example, if strikeout is not used, ulem is not required.
19749 Modified LaTeXHeader accordingly.
19750 + Modified LaTeX writer to insert `\,` between consecutive quotes.
19751 + Removed unused function tableRowColumnWidths.
19752 + Simplified code for escaping special characters.
19753 + Leave extra blank line after `\maketitle`.
19754 + Include empty `\author{}` when no author specified to avoid LaTeX
19755 errors.
19756 + Include fancyvrb code in header only if needed -- that is, only
19757 if there is actually code in a footnote.
19758 + Use `\url{}` for autolinks.
19759 + Include [mathletters] option in ucs package, so that basic unicode
19760 Greek letters will work correctly.
19762 * RST writer: Force blank line before lists, so that sublists will
19763 be handled correctly.
19765 * Docbook writer: Fixed a bug: email links with text, like
19766 [foo](me@bar.baz), were being incorrectly treated as autolinks.
19768 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
19769 Text.Pandoc.Shared.
19771 * Text.Pandoc.Shared:
19773 + Added defaultWriterOptions.
19774 + Added writerTableOfContents to WriterOptions.
19775 + Added writerIgnoreNotes option to WriterOptions. This is needed
19776 for processing header blocks for a table of contents, since notes on
19777 headers should not appear in the TOC.
19778 + Added prettyprinting for native Table format.
19779 + Removed some unneeded imports.
19780 + Moved escape and nullBlock parsers from
19781 Text.ParserCombinators.Pandoc, since the latter is for
19782 general-purpose parsers that don't depend on Text.Pandoc.Definition.
19783 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
19784 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
19785 writer, because HTML writer now uses these in constructing a table
19786 of contents.
19787 + Added clauses for new inline elements (Strikeout, Superscript,
19788 Subscript) to refsMatch.
19789 + Removed backslashEscape; added new functions escapeStringUsing and
19790 backslashEscapes.
19791 + Moved failIfStrict from markdown reader, since it is now used also
19792 by the HTML reader.
19793 + Added a 'try' to the definition of indentSpaces.
19794 + In definition of 'reference', added check to make sure it's not a note
19795 reference.
19796 + Added functions: camelCaseToHyphenated, toRomanNumeral,
19797 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
19798 charsInBalanced', withHorizDisplacement, romanNumeral
19799 + Fixed a bug in the anyLine parser. Previously it would parse an empty
19800 string "", but it should fail on an empty string, or we get an error
19801 when it is used inside "many" combinators.
19802 + Removed followedBy' parser, replacing it with the lookAhead parser from
19803 Parsec.
19804 + Added some needed 'try's before multicharacter parsers, especially in
19805 'option' contexts.
19806 + Removed the 'try' from the 'end' parser in 'enclosed', so that
19807 'enclosed' behaves like 'option', 'manyTill', etc.
19808 + Added lineClump parser, which parses a raw line block up to and
19809 including any following blank lines.
19810 + Renamed parseFromStr to parseFromString.
19811 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
19812 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
19813 in calling code.
19814 + Removed unneeded 'try' in blanklines.
19815 + Removed endsWith function and rewrote calling functions to use
19816 isSuffixOf instead.
19817 + Added >>~ combinator.
19818 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
19819 Space.
19821 * Refactored runtests.pl; added separate tests for tables.
19823 * Shell scripts:
19825 + Added -asxhtml flag to tidy in html2markdown. This will
19826 perhaps help the parser, which expects closing tags.
19827 + Modified markdown2pdf to run pdflatex a second time if --toc or
19828 --table-of-contents was specified; otherwise the table of
19829 contents won't appear.
19830 + Modified markdown2pdf to print a helpful message if the 'ulem'
19831 LaTeX package is required and not found.
19833 * Changes to build process:
19835 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
19836 is now required.
19837 + Removed cabalize and Pandoc.cabal.in. The repository now contains
19838 pandoc.cabal itself.
19839 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
19840 likes the cabal file to have the same name as the tarball.
19841 + Expanded and revised the package description in pandoc.cabal.
19842 Revised the package synopsis.
19843 + The tarball built by 'make tarball' now contains files built from
19844 templates (including man pages and shell scripts), so pandoc can
19845 be built directly using Cabal tools, without preprocessing.
19846 + Executable binaries are now stripped before installing.
19847 + Man pages are now generated from markdown sources, using pandoc's
19848 man page writer.
19849 + Use HTML version of README (instead of RTF) in Mac OS X installer.
19850 + Instead of testing for the existence of a pandoc symlink in build-exec,
19851 use ln -f.
19853 * Documentation:
19855 + Updated README and man pages with information on new features.
19856 + Updated INSTALL instructions with some useful clarifications and
19857 links.
19858 + Updated web content.
19860 * Added FreeBSD port.
19862 [ Recai Oktaş ]
19864 * debian/control:
19866 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
19867 libghc6-xhtml-dev. Removed libghc6-html-dev.
19868 + Suggest texlive-latex-recommended | tetex-extra instead of
19869 tetex-bin. This brings in fancyvrb and unicode support.
19872## pandoc 0.3 (2007-01-05)
19874 [ John MacFarlane ]
19876 * Changes in pandoc options:
19878 + Allow options to follow or precede arguments.
19879 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
19880 + Added '--strict' option.
19881 + Added '-o/--output' option.
19882 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
19883 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
19884 error conditions. This is helpful for writing wrappers.
19885 + Added copyright message to '-v' output, modeled after FSF messages.
19886 + Reformatted usage message so that it doesn't wrap illegibly.
19887 + Removed extra blanks after '-h' and '-D' output.
19889 * Added docbook writer.
19891 * Added implicit setting of default input and output format based
19892 on input and output filename extensions. These defaults are
19893 overridden if explicit input and output formats are specified using
19894 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
19895 and README.
19897 * Allow ordered list items to begin with (single) letters, as well
19898 as numbers. The list item marker may now be terminated either by
19899 '.' or by ')'. This extension to standard markdown is documented
19900 in README.
19902 * Revised footnote syntax. (See README for full details.) The
19903 '[^1]' format now standard in markdown extensions is supported,
19904 as are inline footnotes with this syntax: `^[My note.]`.
19905 The earlier footnote syntax `^(1)` is no longer supported.
19907 * Improved HTML representation of footnotes. All footnotes
19908 are now auto-numbered and appear in an ordered list at the
19909 end of the HTML document. Since the default appearance is now
19910 acceptable, the old footnote styles have been removed from the
19911 HTML header.
19913 * Bug fixes:
19915 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
19916 These readers ran 'runParser' on processed chunks of text to handle
19917 embedded block lists in lists and quotation blocks. But then
19918 any changes made to the parser state in these chunks was lost,
19919 as the state is local to the parser. So, for example, footnotes
19920 didn't work in quotes or list items. The fix: instead of calling
19921 runParser on some raw text, use setInput to make it the input, then
19922 parse it, then use setInput to restore the input to what it was
19923 before. This is shorter and more elegant, and it fixes the problem.
19924 + Fixed bug in notFollowedBy' combinator (adding 'try' before
19925 'parser'). Adjusted code that uses this combinator accordingly.
19926 + Fixed bug in RTF writer that caused improper indentation on
19927 footnotes occurring in indented blocks like lists.
19928 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
19929 and date are parsed correctly. Everything else in the preamble
19930 is skipped.
19931 + Modified escapedChar in LaTeX reader to allow a `\` at the end of a
19932 line to count as escaped whitespace.
19933 + Modified LaTeX reader to produce inline links rather than reference
19934 links. Otherwise, links in footnotes aren't handled properly.
19935 + Fixed handling of titles in links in Markdown reader, so that
19936 embedded quotation marks are now handled properly.
19937 + Fixed Markdown reader's handling of embedded brackets in links.
19938 + Fixed Markdown reader so that it only parses bracketed material
19939 as a reference link if there is actually a corresponding key.
19940 + Revised inline code parsing in Markdown reader to conform to
19941 markdown standard. Now any number of `s can begin inline code,
19942 which will end with the same number of `s. For example, to
19943 have two backticks as code, write ``` `` ```. Modified Markdown
19944 writer accordingly.
19945 + Fixed bug in text-wrapping routine in Markdown and RST writers.
19946 Now LineBreaks no longer cause wrapping problems.
19947 + Supported hexadecimal numerical entity references as well as
19948 decimal ones.
19949 + Fixed bug in Markdown reader's handling of underscores and other
19950 inline formatting markers inside reference labels: for example,
19951 in '[A_B]: /url/a_b', the material between underscores was being
19952 parsed as emphasized inlines.
19953 + Changed Markdown reader's handling of backslash escapes so that
19954 only non-alphanumeric characters can be escaped. Strict mode
19955 follows Markdown.pl in only allowing a select group of punctuation
19956 characters to be escaped.
19957 + Modified HTML reader to skip a newline following a `<br>` tag.
19958 Otherwise the newline will be treated as a space at the beginning
19959 of the next line.
19961 * Made handling of code blocks more consistent. Previously, some
19962 readers allowed trailing newlines, while others stripped them.
19963 Now, all readers strip trailing newlines in code blocks. Writers
19964 insert a newline at the end of code blocks as needed.
19966 * Modified readers to make spacing at the end of output more consistent.
19968 * Minor improvements to LaTeX reader:
19970 + `\thanks` now treated like a footnote.
19971 + Simplified parsing of LaTeX command arguments and options.
19972 commandArgs now returns a list of arguments OR options (in
19973 whatever order they appear). The brackets are included, and
19974 a new stripFirstAndLast function is provided to strip them off
19975 when needed. This fixes a problem in dealing with \newcommand
19976 and \newenvironment.
19978 * Revised RTF writer:
19980 + Default font is now Helvetica.
19981 + An `\f0` is added to each `\pard`, so that font resizing works
19982 correctly.
19984 * Moved handling of "smart typography" from the writers to the Markdown
19985 and LaTeX readers. This allows great simplification of the writers
19986 and more accurate smart quotes, dashes, and ellipses. DocBook can
19987 now use `<quote>`. The '--smart' option now toggles an option in
19988 the parser state rather than a writer option. Several new kinds
19989 of inline elements have been added: Quoted, Ellipses, Apostrophe,
19990 EmDash, EnDash.
19992 * Changes in HTML writer:
19994 + Include title block in header even when title is null.
19995 + Made javascript obfuscation of emails even more obfuscatory,
19996 by combining it with entity obfuscation.
19998 * Changed default ASCIIMathML text color to black.
20000 * Test suite:
20002 + Added --strip-trailing-cr option to diff in runtests.pl, for
20003 compatibility with Windows.
20004 + Added regression tests with footnotes in quote blocks and lists.
20006 * Makefile changes:
20008 + osx-pkg target creates a Mac OS X package (directory). New osx
20009 directory contains files needed for construction of the package.
20010 + osx-dmg target creates a compressed disk image containing the package.
20011 + win-pkg target creates Windows binary package.
20012 + tarball target creates distribution source tarball.
20013 + website target generates pandoc's website automatically, including
20014 demos. New 'web' directory contains files needed for construction
20015 of the website (which will be created as the 'pandoc' subdirectory
20016 of 'web').
20017 + Makefile checks to see if we're running Windows/Cygwin; if so,
20018 a '.exe' extension is added to each executable in EXECS.
20020 * Removed all wrappers except markdown2pdf and html2markdown.
20022 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
20023 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
20024 option and disables other options.
20026 * Added code to html2markdown that tries to determine the character
20027 encoding of an HTML file, by parsing the "Content-type" meta tag.
20029 + If the encoding can't be determined, then if the content is local,
20030 the local encoding is used; if it comes from a URL, UTF-8 is used
20031 by default.
20032 + If input is from STDIN, don't try to determine character encoding.
20033 + Encoding can be specified explicitly using '-e' option.
20035 * Improved warning messages in wrappers:
20037 + Print warning if iconv not available
20038 + More user-friendly error messages in markdown2pdf, when
20039 pdflatex fails.
20041 * Code cleanup:
20043 + Renamed 'Text/Pandoc/HtmlEntities' module to
20044 'Text/Pandoc/Entities'. Also changed function names so as
20045 not to be HTML-specific.
20046 + Refactored SGML string escaping functions from HTML and Docbook
20047 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
20048 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
20049 used anywhere.
20050 + Removed splitBySpace and replaced it with a general, polymorphic
20051 splitBy function.
20052 + Refactored LaTeX reader for clarity (added isArg function).
20053 + Converted some CR's to LF's in src/ui/default/print.css.
20054 + Added license text to top of source files.
20055 + Added module data for haddock to source files.
20056 + Reformatted code for consistency.
20058 * Rewrote documentation and man pages. Split README into INSTALL
20059 and README.
20061 * Split LICENSE into COPYING and COPYRIGHT.
20063 * Removed TODO, since we now maintain ToDo on the wiki.
20065 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
20066 duplication.
20068 [ Recai Oktaş ]
20070 * Revamped build process to conform to debian standards and created
20071 a proper debian package. Closes: #391666.
20073 * Modified build process to support GHC 6.6.
20075 + The package can still be compiled using GHC 6.4.2, though because
20076 of dependencies the "make deb" target works only with GHC 6.6+.
20077 + The script 'cabalize' is used to create an appropriate
20078 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
20079 Cabal versions.
20081 * Refactored template processing (fillTemplates.pl).
20083 * Modified wrapper scripts to make them more robust and portable.
20084 To avoid code duplication and ensure consistency, wrappers are
20085 generated via a templating system from templates in src/wrappers.
20087 + Wrappers now accept multiple filenames, when appropriate.
20088 + Spaces and tabs allowed in filenames.
20089 + getopts shell builtin is used for portable option parsing.
20090 + Improved html2markdown's web grabber code, making it more robust,
20091 configurable and verbose. Added '-e', '-g' options.
20094## pandoc 0.2 (2006-08-14)
20096 * Fixed unicode/utf-8 translation
20098## pandoc 0.1 (2006-08-14)
20100 * Initial creation of debian package