This repository has been archived by the owner on Nov 25, 2024. It is now read-only.
4.0.0
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 asource
option, replacing therelativePath
option.TranscludeStream()
,transcludeString()
, andtranscludeFile()
accept aresolvers
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 asourcemap
event exactly once with the sourcemap object attached.transcludeString()
andtranscludeFile()
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()
andtranscludeFile()
now resolve transclusion links will relative to the specified source.
Removed
TranscludeStream()
,transcludeString()
, andtranscludeFile()
no longer supportrelativePath
option.transcludeString()
andtranscludeFile()
no longer return an array of source paths as the third callback argument.