git.iko.soy/typeable/pandoc
on master help sign in
Update changelog.
commit8ec82f89f8f3c88fdb50f56456b3f62ed2117319 authorJohn MacFarlane <jgm@berkeley.edu> dateWed 17 Jan 2018, 11:02 (9 years ago) parent1bc2186
1 file changed+209
changelog+209
changelog+209
@@ -1,3 +1,212 @@
1+pandoc (2.1.1)
2+
3+ * Markdown reader:
4+
5+ + Don't coalesce adjacent raw LaTeX blocks if they are separated by a
6+ blank line. See lierdakil/pandoc-crossref#160.
7+ + Improved `inlinesInBalancedBrackets` (#4272, jgm/pandoc-citeproc#315).
8+ The change both improves performance and fixes a regression whereby
9+ normal citations inside inline notes and figure captions were not
10+ parsed correctly.
11+
12+ * RST reader:
13+
14+ + Better handling for headers with an anchor (#4240). Instead of creating a
15+ Div containing the header, we put the id directly on the header.
16+ This way header promotion will work properly.
17+ + Add aligned environment when needed in math (#4254). `rst2latex.py`
18+ uses an `align*` environment for math in `.. math::` blocks, so this
19+ math may contain line breaks. If it does, we put the math in an
20+ `aligned` environment to simulate `rst2latex.py`'s behavior.
21+
22+ * HTML reader: Fix col width parsing for percentages < 10% (#4262,
23+ n3fariox).
24+
25+ * LaTeX reader:
26+
27+ + Advance source position at end of stream.
28+ + Pass through macro defs in `rawLaTeXBlock` even if the `latex_macros`
29+ extension is set (#4246). This reverts to earlier behavior and is
30+ probably safer on the whole, since some macros only modify things in
31+ included packages, which pandoc's macro expansion can't modify.
32+ + Fixed pos calculation in tokenizing escaped space.
33+ + Allow macro definitions inside macros (#4253). Previously we went into
34+ an infinite loop with
35+ ```
36+ \newcommand{\noop}[1]{#1}
37+ \noop{\newcommand{\foo}[1]{#1}}
38+ \foo{hi}
39+ ```
40+ + Fix inconsistent column widths (#4238). This fixes a bug whereby column
41+ widths for the body were different from widths for the header in some
42+ tables.
43+
44+ * Docx reader (Jesse Rosenthal):
45+
46+ + Parse hyperlinks in `instrText` tags (#3389, #4266). This was a form of
47+ hyperlink found in older versions of word. The changes introduced for
48+ this, though, create a framework for parsing further fields in MS Word
49+ (see the spec, ECMA-376-1:2016, §17.16.5, for more on these fields).
50+ We introduce a new module, `Text.Pandoc.Readers.Docx.Fields` which
51+ contains a simple parsec parser. At the moment, only simple hyperlink
52+ fields are accepted, but that can be extended in the future.
53+
54+
55+ * Powerpoint writer (Jesse Rosenthal):
56+
57+ + Change reference to `notesSlide` to `endNotesSlide`.
58+ This will prevent confusion when speakers notes are implemented.
59+ + Move image sizing into `picProps`. Rather than passing around
60+ attributes, we can have image sizing in the picProps and then
61+ pass it along to write to XML.
62+ + Improve table placement.
63+ + Make our own `_rels/.rels` file. The toplevel .rels file could
64+ have a thumbnail image if taken from the template. Rather than
65+ removing it from the inherited file, it's easier to just make our own.
66+ + Import reference-doc images properly. There was a glob error that
67+ was leading to images from the reference-doc pptx not being imported.
68+ + Move `Presentation.hs` out of `PandocMonad`.
69+ + Ignore anchor links to nowhere. We don't convert a `#target`
70+ `ExternalTarget` to an `InternalTarget` if `target` is not in the
71+ `AnchorMap`. We just remove the link. This prevents broken links.
72+ + Refactor into separate modules. This separates the conversion into
73+ separate modules (T.P.W.Powerpoint.Presentation, which defineds the
74+ Presentation datatype and goes Pandoc->Presentation)
75+ and (T.P.W.Pandoc.Output, which goes Presentation->Archive).
76+ Text.Pandoc.Writers.Powerpoint a thin wrapper around the two modules.
77+ + Avoid overlapping blocks in column output. Just as a slide can't
78+ have an image and text on the same slide because
79+ of overlapping, we can't have both in a single column. We run
80+ `splitBlocks` on the text in the column and discard the rest.
81+ + Position images correctly in two-column layout.
82+ You can have two images side-by-side, or text alongside an image. The
83+ image will be fit correctly within the column.
84+ + Make content shape retrieval environment-aware. We put
85+ `getContentShape` and `getContentShapeSize` inside the P monad,
86+ so that we can (in the future) make use of knowledge of what slide
87+ environment we're in to get the correct shape. This will allow us, for
88+ example, to get individual columns for a two-column layout, and place
89+ images in them appropriately.
90+ + Improve image handling. We now determine image and caption placement
91+ by getting the dimensions of the content box in a given layout.
92+ This allows for images to be correctly sized and positioned in a
93+ different template. Note that images without captions and headers are
94+ no longer full-screened. We can't do this dependably in different
95+ layouts, because we don't know where the header is (it could be to
96+ the side of the content, for example).
97+ + Read presentation size from reference file. Our presentation size is
98+ now dependent on the reference/template file we use. This will make it
99+ easier to set different output sizes by supplying different reference
100+ files.
101+ + Handle (sub)headers above slidelevel correctly. Above the slidelevel,
102+ subheaders will be printed in bold and given a bit of extra space
103+ before them. Note that at the moment, no distinction is made between
104+ levels of headers above the slide header, though that can be changed.
105+ (It has to be changed in pandoc, since PowerPoint has no concept of
106+ paragraph or character classes.)
107+ + Check for required files. Since we now import from reference/dist
108+ file by glob, we need to make sure that we're getting the files we
109+ need to make a non-corrupt Powerpoint. This performs that check.
110+ + Improve templating using `--reference-doc`. Templating should work
111+ much more reliably now.
112+ + Include Notes slide in TOC.
113+ + Set notes slide header with slide-level. It used to be hardcoded to 2.
114+ This will set it to the appropriate slide-level.
115+ + Add table of contents. This is triggered by the `--toc` flag. Note
116+ that in a long slide deck this risks overrunning the text box. The user
117+ can address this by setting `--toc-depth=1`.
118+ + Set notes slide number correctly. Previously, this hadn't been aware
119+ of a metadata slide.
120+ + Ignore internal links without targets. If the user entered an
121+ internal link without a corresponding anchor, it would produce a
122+ corrupted file. Now we check the anchor map, and make sure the target
123+ is in the file. If it isn't, we ignore it.
124+ + Clean up adding metadata slide. We want to count the slide numbers
125+ correctly if it's in there.
126+ + Add anchor links. For anchor-type links (`[foo](#bar)`) we produce
127+ an anchor link. In powerpoint these are links to slides, so we keep
128+ track of a map relating anchors to the slides they occur on.
129+ + Make the slide number available to the blocks. For anchors,
130+ block-processing functions need to know what slide number
131+ they're in. We make the envCurSlideId available to blocks.
132+ + Move curSlideId to environment. It really isn't a moving state, and
133+ that can be misleading.
134+ + Allow setting `toc-title` in metadata.
135+
136+ * Markdown writer:
137+
138+ + Fix cell width calculation (#4265). Previously we could get
139+ ever-lengthening cell widths when a table was run repeatedly through
140+ `pandoc -f markdown -t markdown`.
141+
142+ * LaTeX writer:
143+
144+ + Escape `&` in lstinline (Robert Schütz).
145+
146+ * ConTeXt writer:
147+
148+ + Use xtables instead of Tables (#4223, Henri Menke).
149+ Default to xtables for context output. Natural Tables are used
150+ if the new `ntb` extension is set.
151+
152+ * HTML writer:
153+
154+ + Fixed footnote backlinks with `--id-prefix` (#4235).
155+
156+ * `Text.Pandoc.Extensions`: Added `Ext_ntb` constructor (API change,
157+ Henri Menke).
158+
159+ * `Text.Pandoc.ImageSize`: add derived `Eq` instance to `Dimension`
160+ (Jesse Rosenthal, API change).
161+
162+ * Lua filters (Albert Krewinkel):
163+
164+ + Make `PANDOC_READER_OPTIONS` available.
165+ The options which were used to read the document are made available to
166+ Lua filters via the `PANDOC_READER_OPTIONS` global.
167+ + Add lua module `pandoc.utils.run_json_filter`, which runs a JSON filter
168+ on a Pandoc document.
169+ + Refactor filter-handling code into `Text.Pandoc.Filter.JSON`,
170+ `Text.Pandoc.Filter.Lua`, and `Text.Pandoc.Filter.Path`.
171+ + Improve error messages. Provide more context about the task
172+ which caused an error.
173+
174+ * data/pandoc.lua (Albert Krewinkel):
175+
176+ + Add attr, listAttributes accessors (Albert Krewinkel). Elements with
177+ attributes got an additional `attr` accessor. Attributes were
178+ accessible only via the `identifier`, `classes`, and `attributes`,
179+ which was in conflict with the documentation, which indirectly states
180+ that such elements have the an `attr` property.
181+ + Accept single block as singleton list. Every constructor which accepts
182+ a list of blocks now also accepts a single block element for convenience.
183+ Furthermore, strings are accepted as shorthand for `{pandoc.Str "text"}`
184+ in constructors.
185+ + Drop `_VERSION`. Having a `_VERSION` became superfluous, as this module
186+ is closely tied to the pandoc version, which is available via
187+ `PANDOC_VERSION`.
188+ + Accept singleton inline as a list. Every constructor which accepts a
189+ list of inlines now also accepts a single inline element for convenience.
190+ + Fix access to Attr components. Accessing an Attr value (e.g.,
191+ ` Attr().classes`) was broken; the more common case of accessing it via
192+ an Inline or Block element was unaffected by this.
193+
194+ * Move `metaValueToInlines` to from Docx writer to
195+ `Text.Pandoc.Writers.Shared`, so it can be used by other writers
196+ (Jesse Rosenthal).
197+
198+ * MANUAL.txt:
199+
200+ + Clarify otherlangs in LaTeX (#4072).
201+ + Clarify `latex_macros` extension.
202+ + Recommend use of `raw_attribute` extension in header includes (#4253).
203+
204+ * Allow latest QuickCheck, tasty, criterion.
205+
206+ * Remove custom prelude and ghc 7.8 support.
207+
208+ * Reduce compiler noise (exact paths for compiled modules).
209+
1210pandoc (2.1)
2211
3212 * Allow filters and lua filters to be interspersed (#4196). Previously