@@ -1,5 +1,106 @@
11# Revision history for pandoc
22
3+## pandoc 2.14.0.2 (2021-06-11)
4+
5+ * Fix MediaBag regressions (#7345). iIn the 2.14 release `--extract-media`
6+ stopped working as before; there could be mismatches between the
7+ paths in the rendered document and the extracted media.
8+ This patch makes several changes that restore the earlier behavior
9+ (while keeping the same API). The `mediaPath` in 2.14 was always
10+ constructed from the SHA1 hash of the media contents. Now, we
11+ preserve the original path unless it's an absolute path or contains
12+ `..` segments (in that case we use a path based on the SHA1 hash of
13+ the contents).
14+
15+ In Text.Pandoc.MediaBag, `mediaDirectory` and `mediaItems` now use the
16+ `mediaPath`, rather than the mediabag key, for the first component of the
17+ tuple. This makes more sense, I think, and fits with the documentation of
18+ these functions; eventually, though, we should rework the API so that
19+ `mediaItems` returns both the keys and the MediaItems.
20+
21+ In Text.Pandoc.Class.IO, rewriting of source paths in `extractMedia` has
22+ been fixed.
23+
24+ In Text.Pandoc.Class.PandocMonad, `fillMediaBag` has been modified so that
25+ it doesn't modify image paths (that was part of the problem in #7345).
26+
27+ We now do path normalization (e.g. `\` separators on Windows) in
28+ writing the media.
29+
30+ * Text.Pandoc.PDF:
31+
32+ + Text.Pandoc.PDF: Fix regression in 2.14 for generation of PDFs with
33+ SVGs (#7344).
34+ + Only print relevant part of environment on `--verbose`. Since
35+ `--verbose` output might be put in an issue, we want to avoid
36+ spilling out secrets in environment variables.
37+
38+ * Markdown reader: fix pipe table regression in 2.11.4 (#7343).
39+ Previously pipe tables with empty headers (that is, a header
40+ line with all empty cells) would be rendered as headerless
41+ tables. This broke in 2.11.4. The fix here is to produce an
42+ AST with an empty table head when a pipe table has all empty
43+ header cells.
44+
45+ * LaTeX reader: don't allow optional `*` on symbol control sequences
46+ (#7340). Generally we allow optional starred variants of LaTeX commands
47+ (since many allow them, and if we don't accept these explicitly,
48+ ignoring the star usually gives acceptable results). But we
49+ don't want to do this for `\(*\)` and similar cases.
50+
51+ * Docx writer: fix handling of empty table headers (Albert Krewinkel,
52+ #7369). A table header which does not contain any cells is now treated as
53+ an empty header.
54+
55+ * LaTeX writer: Fix regression in table header position (#7347).
56+ In recent versions the table headers were no longer bottom-aligned
57+ (if more than one line). This patch fixes that by using minipages
58+ for table headers in non-simple tables.
59+
60+ * CommonMark writer:
61+
62+ + Do not use simple class for fenced-divs (Jan Tojnar, amends #7242.)
63+ + Do not throw away attributes when `Ext_attributes` is enabled.
64+ `Ext_attributes` covers at least the following:
65+ `Ext_fenced_code_attributes`, `Ext_header_attributes`,
66+ `Ext_inline_code_attributes`, `Ext_link_attributes`.
67+
68+ * Markdown writer: re-use functions from Text.Pandoc.Markdown.Inline (Jan
69+ Tojnar).
70+
71+ * DocBook writer: Remove non-existent admonitions (Jan Tojnar).
72+ `attention`, `error` and `hint` are reStructuredText specific.
73+
74+ * HTML writer: Don't omit width attribute on div (#7342).
75+
76+ * Text.Pandoc.MIME, `extensionFromMimeType`: add a few special cases.
77+ When we do a reverse lookup in the MIME table, we just get the
78+ last match, so when the same mime type is associated with several
79+ different extensions, we sometimes got weird results, e.g. `.vs`
80+ for `text/plain`. These special cases help us get the most standard
81+ extensions for mime types like `text/plain`.
82+
83+ * Lua utils: fix handling of table headers in `from_simple_table` (Albert
84+ Krewinkel, #7369). Passing an empty list of header cells now results
85+ in an empty table header.
86+
87+ * Text.Pandoc.Citeproc: avoid duplicate classes and attributes on
88+ references div.
89+
90+ * Require citeproc 0.4.0.1. This fixes a bug which led to doubled
91+ "et al." in some (rare) circumstances.
92+
93+ * MANUAL.txt:
94+
95+ + Mention GladTeX for EPUB export (Sebastian Humenda).
96+ This updates the manual and the web site about the GladTeX usage.
97+ + More details and a useful link for YAML syntax.
98+
99+ * CONTRIBUTING.md: update modules overview (Albert Krewinkel).
100+
101+ * using-the-pandoc-api.md: switch from String to Text (Albert Krewinkel).
102+
103+
3104## pandoc 2.14.0.1 (2021-06-01)
4105
5106 * Commonmark reader: Fix regression in 2.14 with YAML metdata block parsing,