jgm/pandoc: pandoc 2.0.6
Lists
Only you see this
Abstract
Added <code>jats</code> as an input format. Add Text.Pandoc.Readers.JATS, exporting <code>readJATS</code> (API change) (Hamish Mackenzie). Improved citation handling in JATS reader. JATS citations are now converted to pandoc citations, and JATS ref-lists are converted into a <code>references</code> field in metadata, suitable for use with pandoc-citeproc. Thus a JATS article with embedded bibliographic information can be processed with pandoc and pandoc-citeproc to produce a formatted bibliography. Allow <code>--list-extensions</code> to take an optional FORMAT argument. This lists the extensions set by default for the selected FORMAT. The extensions are now alphabetized, and the <code>+</code> or <code>-</code> indicating the default setting comes before, rather than after, the extension. Markdown reader: Preserve original whitespace between blocks. Recognize <code>\placeformula</code> as context. Be pickier about table captions. A caption starts with a <code>:</code> which can't be followed by punctuation. Otherwise we can falsely interpret the start of a fenced div, or even a table header line like <code>:--:|:--:</code>, as a caption. Always use four space rule for example lists. It would be awkward to indent example list contents to the first non-space character after the label, since example list labels are often long. Thanks to Bernhard Fisseni for the suggestion. Improve raw tex parsing. Note that the Markdown reader is also affected by the <code>latex_macros</code> extension changes described below under the LaTeX reader. LaTeX reader: <code>latex_macros</code> extension changes (#4179). Don't pass through macro definitions themselves when <code>latex_macros</code> is set. The macros have already been applied. If <code>latex_macros</code> is enabled, then <code>rawLaTeXBlock</code> in Text.Pandoc.Readers.LaTeX will succeed in parsing a macro definition, and will update pandoc's internal macro map accordingly, but the empty string will be returned. Export <code>tokenize</code>, <code>untokenize</code> (API change). Use <code>applyMacros</code> in <code>rawLaTeXBlock</code>, <code>rawLaTeXInline</code>. Refactored <code>inlineCommand</code>. Fix bug in tokenizer. Material following <code>^^</code> was dropped if it wasn't a character escape. This only affected invalid LaTeX, so we didn't see it in the wild, but it appeared in a QuickCheck test failure. Fix regression in LateX tokenization (#4159). This mainly affects the Markdown reader when parsing raw LaTeX with escaped spaces. Add tests of LaTeX tokenizer. Support <code>\foreignlanguage</code> from babel. Be more tolerant of <code>&</code> character (#4208). This allows us to parse unknown tabular environments as raw LaTeX. Muse reader (Alexander Krotov): Parse anchors immediately after headings as IDs. Require that note references does not start with 0. Parse empty comments correctly. 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 <code>:minlevel</code> parameter. E.g. <code>#+include: "tour.org" :minlevel 1</code> 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: Enable raw HTML and other extensions by default for notes (#4164). This fixes a regression in 2.0. Note that extensions can now be individually disabled, e.g. <code>-f opml-smart-raw_html</code>. RST reader: Allow empty list items (#4193). More accurate parsing of references (#4156). Previously we erroneously included the enclosing backticks in a reference ID (#4156). This change also disables interpretation of syntax inside references, as in docutils. So, there is no emphasis in <code>`my *link*`_</code>. Docx reader: Continue lists after interruption (#4025, Jesse Rosenthal). Docx expects that lists will continue where they left off after an 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 <code>w:sdt</code> elements (Jesse Rosenthal, #4190). Plain writer: Don't linkify table of contents. RST writer: Fix anchors for headers (#4188). We were missing an <code>_</code>. PowerPoint writer (Jesse Rosenthal): Treat lists inside BlockQuotes as lists. We don't yet produce incremental lists in PowerPoint, but we should at least treat lists inside BlockQuotes as lists, for compatibility with other slide formats. Add ability to force size. This replaces the more specific <code>blockQuote runProp</code>, which only affected the size of blockquotes. We can use this for notes, etc. Implement notes. This currently prints all notes on a final slide. Note that at the moment, there is a danger of text overflowing the note slide, since there is no logic for adding further slides. Implement basic definition list functionality to PowerPoint writer. 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: Ensure that <code>distArchive</code> is the one that comes with pandoc (#4182). Previously a <code>reference.docx</code> in <code>~/.pandoc</code> (or the user data dir) would be used instead, and this could cause problems because a user-modified docx sometimes lacks vital sections that we count on the <code>distArchive</code> to supply. Org writer: Do not wrap "-" to avoid accidental bullet lists (Alexander Krotov). Don't allow fn refs to wrap to beginning of line (#4171, with help from Alexander Krotov). Otherwise they can be interpreted as footnote definitions. Muse writer (Alexander Krotov): Don't wrap note references to the next line (#4172). HTML writer: Use br elements in line blocks instead of relying on CSS (#4162). HTML-based templates have had the custom CSS for <code>div.line-block</code> removed. Those maintaining custom templates will want to remove this too. We still enclose line blocks in a div with class <code>line-block</code>. LaTeX writer: Use <code>\renewcommand</code> for <code>\textlatin</code> with babel (#4161). This avoids a clash with a deprecated <code>\textlatin</code> command defined in Babel. Allow fragile=singleslide attribute in beamer slides (#4169). Use <code>\endhead</code> after <code>\toprule</code> in headerless tables (#4207). FB2 writer: Add cover image specified by <code>cover-image</code> meta (Alexander Krotov, #4195). JATS writer (Hamish Mackenzie): Support writing <code><fig></code> and <code><table-wrap></code> elements with <code><title></code> and <code><caption></code> inside them by using Divs with class set to one of <code>fig</code>, <code>table-wrap</code> or <code>caption</code> (Hamish Mackenzie). The title is included as a Heading so the constraint on where Heading can occur is also relaxed. Leave out empty alt attributes on links. Deduplicate image mime type code. Make <code><p></code> optional in <code><td></code> and <code><th></code> (#4178). Self closing tags for empty xref (#4187). Improve support for code language. Custom writer: Use init file to setup Lua interpreter (Albert Krewinkel). The same init file (<code>data/init</code>) 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 (Albert Krewinkel). The custom writer used its own <code>ToLuaStack</code> instance definitions, which made it difficult to share code with Lua filters, as this could result in conflicting instances. A <code>Stringify</code> wrapper is introduced to avoid this problem. Added tests for custom writer. Fixed definition lists and tables in <code>data/sample.lua</code>. Fixed regression: when target is PDF, writer extensions were being ignored. So, for example, <code>pandoc -t latex-smart -o file.pdf</code> did not work properly. Lua modules (Albert Krewinkel): Add <code>pandoc.utils</code> module, to hold utility functions. Create a Haskell module Text.Pandoc.Lua.Module.Pandoc to define the <code>pandoc</code> lua module. Make a Haskell module for each Lua module. Move definitions for the <code>pandoc.mediabag</code> modules to a separate Haskell module. Move <code>sha1</code> from the main <code>pandoc</code> module to <code>pandoc.utils</code>. Add function <code>pandoc.utils.hierarchicalize</code> (convert list of Pandoc blocks into (hierarchical) list of Elements). Add function <code>pandoc.utils.normalize_date</code> (parses a date and converts it (if possible) to "YYYY-MM-DD" format). Add function <code>pandoc.utils.to_roman_numeral</code> (allows conversion of numbers below 4000 into roman numerals). Add function <code>pandoc.utils.stringify</code> (converts any AST element to a string with formatting removed). <code>data/init.lua</code>: load <code>pandoc.utils</code> by default Turn pipe, read into full Haskell functions. The <code>pipe</code> and <code>read</code> utility functions are converted from hybrid lua/haskell functions into full Haskell functions. This avoids the need for intermediate <code>_pipe</code>/<code>_read</code> helper functions, which have dropped. pandoc.lua: re-add missing MetaMap function. This was a bug introduced in version 2.0.4. Text.Pandoc.Class: Add <code>insertInFileTree</code> [API change]. This gives a pure way to insert an ersatz file into a <code>FileTree</code>. In addition, we normalize paths both on insertion and on lookup. Text.Pandoc.Shared: export <code>blocksToInlines'</code> (API change, Maura Bieg). Text.Pandoc.MIME: Add opus to MIME type table as audio/ogg (#4198). Text.Pandoc.Extensions: Alpha
BibTeX
@inproceedings{macfarlane2017jgm,
author = {John MacFarlane and Jesse Rosenthal and Albert Krewinkel and Matthew C. Pickering and Alexander - and Mauro Bieg and Andrew Dunning and N. D. Yakimov and Clare Macrae and K. Cheung and Václav Haisman and Nathan Gass and schrieveslaach and Fedor Sheremetyev and Mark Wright and Artyom Kazak and hftf and Hubert Plociniczak and Daniel R. Bergey and Aditya Mahajan and Jose Luis Duran and Xavier Olivé and Hamish Mackenzie and David A. Lazar and Sascha Wilde and Henry de Valence and Ivo Clarysse and Bryan O’Sullivan and Antoine Latter and alexvong},
title = {{jgm/pandoc: pandoc 2.0.6}},
booktitle = {Zenodo},
year = {2017},
doi = {10.5281/zenodo.1133785},
}Loading related content...