Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

4.0.0

Compare
Choose a tag to compare
@jamesramsay jamesramsay released this 04 Jan 04:27
· 347 commits to main since this release

Added

  • New support for alternative transclusion syntaxes including aglio, marked, and multimarkdown through both library and command line interface.
  • Command line interface requires input to be explicitly specified, including stdin using - or --stdin.
  • transcludeString() accepts a source option, replacing the relativePath option.
  • TranscludeStream(), transcludeString(), and transcludeFile() accept a resolvers option allowing an array of functions to be provided for resolving URL's to input. For example, this could be used to support resolving secured HTTP content or resolving local links within a browser. Please refer to the Resolvers documentation.
  • TranscludeStream() emits a sourcemap event exactly once with the sourcemap object attached.
  • transcludeString() and transcludeFile() return a sourcemap as the third callback argument. A list of source paths can be extracted from the object.

Changed

  • TranscludeStream() now requires a source is specified.
  • TranscludeStream() and transcludeFile() now resolve transclusion links will relative to the specified source.

Removed

  • TranscludeStream(), transcludeString(), and transcludeFile() no longer support relativePath option.
  • transcludeString() and transcludeFile() no longer return an array of source paths as the third callback argument.