diff options
Diffstat (limited to 'changelog')
-rw-r--r-- | changelog | 77 |
1 files changed, 71 insertions, 6 deletions
@@ -1,3 +1,15 @@ +pandoc (2.1) + + * Filter changes (#4196). Previously we ran all lua filters before + JSON filters. Now we run filters in the order they are presented on + the command line, whether lua or JSON. There are two incompatible API + changes: The type of `applyFilters` has changed, and `applyLuaFilters` + has been removed. + + * Text.Pandoc.Class: make `FileTree` opaque (don't export + `FileTree` cosntructor). This forces users to interact with it using + `insertInFileTree` and `getFileInfo`, which normalize file names. + pandoc (2.0.6) * Added `jats` as an input format. @@ -11,6 +23,12 @@ pandoc (2.0.6) bibliographic information can be processed with pandoc and pandoc-citeproc to produce a formatted bibliography. + * Allow `--list-extensions` to take an optional FORMAT argument. + This lists the extensions set by default for the selected FORMAT. + The extensions are now alphabetized, and the `+` or `-` + indicating the default setting comes before, rather than after, + the extension. + * Markdown reader: + Preserve original whitespace between blocks. @@ -46,6 +64,8 @@ pandoc (2.0.6) Markdown reader when parsing raw LaTeX with escaped spaces. + Add tests of LaTeX tokenizer. + Support `\foreignlanguage` from babel. + + Be more tolerant of `&` character (#4208). This allows us to parse + unknown tabular environments as raw LaTeX. * Muse reader (Alexander Krotov): @@ -56,6 +76,12 @@ pandoc (2.0.6) * Org reader (Albert Krewinkel): + Fix asterisks-related parsing error (#4180). + + Support minlevel option for includes (#4154). The level of headers + in included files can be shifted to a higher level by specifying a + minimum header level via the `:minlevel` parameter. E.g. + `#+include: "tour.org" :minlevel 1` will shift the headers in + tour.org such that the topmost headers become level 1 headers. + + Break-up org reader test file into multiple modules. * OPML reader: @@ -78,6 +104,9 @@ pandoc (2.0.6) interruption and introduces a new id if a list is starting again. So we keep track of the state of lists and use them to define a "start" attribute, if necessary. + + Add tests for structured document tags unwrapping (Jesse Rosenthal). + + Preprocess Document body to unwrap `w:sdt` elements (Jesse Rosenthal, + #4190). * Plain writer: @@ -102,6 +131,8 @@ pandoc (2.0.6) + Don't look for default template file for Powerpoint (#4181). + Add pptx to isTextFormat list. This is used to check standalone and not writing to the terminal. + + Obey slide level option (Jesse Rosenthal). + + Introduce tests. * Docx writer: @@ -136,6 +167,12 @@ pandoc (2.0.6) This avoids a clash with a deprecated `\textlatin` command defined in Babel. + Allow fragile=singleslide attribute in beamer slides (#4169). + + Use `\endhead` after `\toprule` in headerless tables (#4207). + + * FB2 writer: + + + Add cover image specified by `cover-image` meta (Alexander Krotov, + #4195). * JATS writer (Hamish Mackenzie): @@ -150,16 +187,19 @@ pandoc (2.0.6) + Self closing tags for empty xref (#4187). + Improve support for code language. - * Custom writer (Albert Krewinkel): + * Custom writer: + Use init file to setup Lua interpreter (Albert Krewinkel). The same init file (`data/init`) that is used to setup the Lua interpreter for Lua filters is also used to setup the interpreter of custom writers.lua. - + Define instances for newtype wrapper. The custom writer used its own - `ToLuaStack` instance definitions, which made it difficult to share - code with Lua filters, as this could result in conflicting instances. - A `Stringify` wrapper is introduced to avoid this problem. + + Define instances for newtype wrapper (Albert Krewinkel). The custom + writer used its own `ToLuaStack` instance definitions, which made + it difficult to share code with Lua filters, as this could result + in conflicting instances. A `Stringify` wrapper is introduced to + avoid this problem. + + Added tests for custom writer. + + Fixed definition lists and tables in `data/sample.lua`. * Fixed regression: when target is PDF, writer extensions were being ignored. So, for example, `pandoc -t latex-smart -o file.pdf` @@ -189,10 +229,20 @@ pandoc (2.0.6) + pandoc.lua: re-add missing MetaMap function. This was a bug introduced in version 2.0.4. + * Text.Pandoc.Class: Add `insertInFileTree` [API change]. This gives + a pure way to insert an ersatz file into a `FileTree`. In addition, we + normalize paths both on insertion and on lookup. + * Text.Pandoc.Shared: export `blocksToInlines'` (API change, Maura Bieg). * Text.Pandoc.MIME: Add opus to MIME type table as audio/ogg (#4198). + * Text.Pandoc.Extensions: Alphabetical order constructors for + `Extension`. This makes them appear in order in `--list-extensions`. + + * Allow lenient decoding of latex error logs, which are not always + properly UTF8-encoded (#4200). + * Update latex template to work with recent versions of beamer. The old template produced numbered sections with some recent versions of beamer. Thanks to Thomas Hodgson. @@ -205,10 +255,23 @@ pandoc (2.0.6) * Removed `default.theme` data file (#4096). It is no longer needed now that we have `--print-highlight-style`. + * Added `stack.lts9.yaml` for building with lts 9 and ghc 8.0.2. + We still need this for the alpine static linux build, since + we don't have ghc 8.2.2 for that yet. + + * Removed `stack.pkg.yaml`. We only really need `stack.yaml`; we + can put flag settings for pandoc-citeproc there. + + * Makefile: Add 'trypandoc' and 'pandoc-templates' targets to + make releases easier. + * MANUAL.txt: + Add note on what formats have `+smart` by default. + Use native syntax for custom-style (#4174, Mauro Bieg). + + Introduce dedicated Extensions section, since some extensions + affect formats other than markdown (Mauro Bieg, #4204). + + Clarify default html output for `--section-divs` (Richard Edwards). * filters.md: say that Text.Pandoc.JSON comes form pandoc-types. Closes jgm/pandoc-website#16. @@ -255,7 +318,7 @@ pandoc (2.0.5) + Revert "Docx reader: don't strip out empty paragraphs." This reverts commit d6c58eb836f033a48955796de4d9ffb3b30e297b. + Implement `empty_paragraphs` extension in docx reader and writer, - opendocument writer, html reader and writer. + opendocument writer, HTML reader and writer. + Add tests for `empty_paragraphs` extension. * Markdown reader: @@ -535,6 +598,8 @@ pandoc (2.0.3) + Allow spaces after `\(` and before `\)` with `tex_math_single_backslash`. Previously `\( \frac{1}{a} < \frac{1}{b} \)` was not parsed as math in `markdown` or `html` `+tex_math_single_backslash`. + + Parse div with class `line-block` as LineBlock. + + Don't fail with block-level content in figcaption (Mauro Bieg, #4183). * MANUAL: clarify that math extensions work with HTML. Clarify that `tex_math_dollars` and `tex_math_single_backslash` |