Skip to content

v2.0.18

Compare
Choose a tag to compare
@mojavelinux mojavelinux released this 15 Oct 06:43
· 827 commits to main since this release

First and foremost, this was the first fully-automated release of this library. This new process will allows us to put out releases faster. 馃帀

While development on the 2.1.0 release continues, we pulled out some of the small improvements and bug fixes and put them into this patch release for the 2.0.x release line.

The most notable fix is to tighten up the uriish? helper so it only detects a URI pattern at the start of a string, avoiding misleading messages and a potential vulnerability if misused. Speaking of misleading messages, the highlight.js integration has been updated so it isn't run on a source block that doesn't define a language (when the data-lang attribute is absent) and thus doesn't issue a warning. If transcoding an attribute value passed via the CLI, the encoding is gracefully coerced to UTF-8. If extension code is malformed, the source location in the exception message is properly formatted.

Many of the other bug fixes and improvements came out of work on Asciidoctor Reducer. Those improvements include resetting the extension registry if activate is called on it again, prevent error if unregister is called on the registry before groups are initialized, format the source location in exception message when extension code is malformed, add the include role to the link macro that replaces the include directive when the include is not enabled, store an include path in the includes table of the document catalog with the value true if it is included both partially and full, propagate the :to_dir option to the document for an AsciiDoc table cell, and fix the lineno on the reader when the skip-front-matter attribute is set but the end of the front matter is not found.

As far as user-facing changes go, the default stylesheet has been updated to honor the marker style on a nested unordered list when a marker is defined on an ancestor list.

Distribution

Asciidoctor is also packaged for Fedora, Debian, Ubuntu, Alpine Linux, OpenSUSE, and Homebrew. You can use the system's package manager to install the package named asciidoctor.

Changelog

Improvements

  • Propagate :to_dir option to document of AsciiDoc table cell (#4297)
  • Force encoding of attribute data passed via CLI to UTF-8 if transcoding fails (#4351) (@zkaip)
  • Add include role to link macro that replaces include directive when include is not enabled

Bug Fixes

  • Change internal uriish? helper to only detect a URI pattern at start of a string; avoids misleading messages (#4357)
  • Prevent highlight.js warning when no language is set on source block; don't call highlightBlock if data-lang attribute is absent (#4263)
  • Don't raise error if Asciidoctor::Extensions.unregister is called before groups are initialized (#4270)
  • If path is included both partially and fully, store it with true value (included fully) in includes table of document catalog
  • Reset registry if activate is called on it again (#4256)
  • Format source location in exception message when extension code is malformed
  • Fix lineno on reader when skip-front-matter attribute is set but end of front matter is not found
  • Fix Asciidoctor::Cli::Invoker constructor when first argument is a hash
  • Update default stylesheet to honor marker on unordered list when marker is defined on ancestor unordered list (#4361)

Release meta

Released on: 2022-10-15
Released by: @mojavelinux
Release beer: Chimay Blue by Chimay

Logs: resolved issues | source diff | gem diff

Credits

A very special thanks to all the awesome supporters of the Asciidoctor OpenCollective campaign, who provide critical funding for the ongoing development of this project.