github jgm/pandoc 2.0.4
pandoc 2.0.4

latest releases: 3.1.13, pandoc-lua-engine-0.2.1.4, pandoc-cli-3.1.13...
6 years ago
  • Add --print-highlight-style option. This generates a JSON version
    of a highlighting style, which can be saved as a .theme file, modified,
    and used with --highlight-style (#4106, #4096).

  • Add --strip-empty-paragraphs option. This works for any input format.
    It is primarily intended for use with docx and odt documents where
    empty paragraphs have been used for inter-paragraph spaces.

  • Support --webtex for gfm output.

  • Recognize .muse file extension.

  • Support beamer \alert in LaTeX reader. Closes #4091.

  • Docx reader: don’t strip out empty paragraphs (#2252).
    Users who have a conversion pipeline from docx may want to consider adding
    --strip-empty-paragraphs to the command line.

  • Org reader (Albert Krewinkel): Allow empty list items (#4090).

  • Muse reader (Alexander Krotov):

    • Parse markup in definition list terms.
    • Allow definition to end with EOF.
    • Make code blocks round trip.
    • Drop common space prefix from list items.
    • Add partial round trip test.
    • Don’t interpret XML entities.
    • Remove nested.
    • Parse ~~ as non-breaking space in Emacs mode.
    • Correctly remove indentation from notes. Exactly one space is
      required and considered to be part of the marker.
    • Allow list items to be empty.
    • Add ordered list test.
    • Add more multiline definition tests.
    • Don’t allow blockquotes within lists.
    • Fix reading of multiline definitions.
    • Add inline <literal> support.
    • Concatenate inlines of the same type
  • Docx writer: allow empty paragraphs (#2252).

  • CommonMark/gfm writer:

    • Use raw html for native divs/spans (#4113). This allows a pandoc
      markdown native div or span to be rendered in gfm using raw html tags.
    • Implement raw_html and raw_tex extensions. Note that raw_html
      is enabled by default for gfm, while raw_tex is disabled by default.
  • Muse writer (Alexander Krotov):

    • Test that inline math conversion result is normalized.
      Without normalization this test produced
      <em>a</em><em>b</em><em>c</em>.
    • Improve inline list normalization and move to writer.
    • Escape hash symbol.
    • Escape ---- to avoid accidental horizontal rules.
    • Escape only </code> inside code tag.
    • Additional <verbatim> is not needed as <code> is verbatim already.
  • LaTeX writer:

    • Allow specifying just width or height for image size.
      Previously both needed to be specified (unless the image was
      being resized to be smaller than its original size).
      If height but not width is specified, we now set width to
      textwidth. If width but not height is specified, we now set
      height to textheight. Since we have keepaspectratio, this
      yields the desired result.
    • Escape ~ and _ in code with --listings (#4111).
  • HTML writer: export tagWithAttributes. This is a helper allowing
    other writers to create single HTML tags.

  • Let papersizes a0, a1, a2, … be case-insensitive by
    converting the case as needed in LaTeX and ConTeXt writers.

  • Change fixDisplayMath from Text.Pandoc.Writers.Shared
    so that it no longer produces empty Para’s as an artifact.

  • Text.Pandoc.Shared.blocksToInlines: rewrote using builder.
    This gives us automatic normalization, so we don’t get
    for example two consecutive Spaces.

  • Include default CSS for ‘underline’ class in HTML-based templates.

  • revealjs template: add tex2jax configuration for the
    math plugin. With the next release of reveal.js, this will
    fix the problem of $s outside of math contexts being
    interpreted as math delimiters (#4027).

  • pandoc.lua module for use in lua filters (Albert Krewinkel):

    • Add basic lua List module (#4099, #4081). The List module is
      automatically loaded, but not assigned to a global variable. It can be
      included in filters by calling List = require 'List'. Lists of blocks,
      lists of inlines, and lists of classes are now given List as a metatable,
      making working with them more convenient. E.g., it is now possible to
      concatenate lists of inlines using Lua’s concatenation operator ..
      (requires at least one of the operants to have List as a metatable):

      function Emph (emph)
        local s = {pandoc.Space(), pandoc.Str 'emphasized'}
        return pandoc.Span(emph.content .. s)
      end
      

      The List metatable is assigned to the tables which get passed to
      the constructors MetaBlocks, MetaInline, and MetaList. This
      enables the use of the resulting objects as lists.

    • Lua/StackInstances: push Pandoc and Meta via constructor.
      Pandoc and Meta elements are now pushed by calling the respective
      constructor functions of the pandoc Lua module. This makes serialization
      consistent with the way blocks and inlines are pushed to lua and allows
      to use List methods with the blocks value.

    • Add documentation for pandoc.List in lua-filters.md.

  • Use latest tagsoup. This fixes a bug in parsing HTML tags with
    & (but not a valid entity) following them (#4094, #4088).

  • Use skylighting 0.4.4.1, fixing the color of unmarked code text
    when numberLines is used (#4103).

  • Make normalizeDate more forgiving (Mauro Bieg, #4101), not
    requiring a leading 0 on single-digit days.

  • Fix --help output for --highlight-style to include FILE (Mauro
    Bieg, #4095).

  • Clearer deprecation warning for --latexmathml, --asciimathml, -m.
    Previously we only mentioned --latexmathml, even if -m was
    used.

  • Changelog: fix description of lua filters in 2.0 release
    (Albert Krewinkel). Lua filters were initially run after conventional
    (JSON) filters. However, this was changed later to make it easier to deal
    with files in the mediabag. The changelog is updated to describe that
    feature of the 2.0 release correctly.

  • Change Generic JSON instances to TemplateHaskell (Jasper Van der Jeugt,
    #4085). This reduces compile time and memory usage significantly.

  • lua-filters.md: Added tikz filter example.

  • Create alternative zip file for macOS binaries.

  • Create alternative zip file for Windows binaries.

  • Update INSTALL.md since we now provide zips for binaries.

  • Relax http-types dependency (Justus Sagemüller, #4084).

  • Add epub.md, getting-started.md to docs. These used to live in
    the website repo.

  • Add packages target to Makefile.

  • Bump bounds for binary, http-types, tasty-hunit

Don't miss a new pandoc release

NewReleases is sending notifications on new releases.