0.1.11 • Published 6 years ago

metalsmith-transclude-transform v0.1.11

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

metalsmith-transclude-transform

Version Build Status

A metalsmith plugin to transform content before transclusion with metalsmith-transclude.

Installation

$ npm install metalsmith-transclude

CLI Usage

Install via npm and then add the metalsmith-tranclude key to your metalsmith.json plugins, like so:

{
  "plugins": {
    "metalsmith-transclude-transform": {
      "permalinks": true,
      "folders": true
    }
  }
}

The permalinks option will transform transclusion links of the form:

:[](include/file)

if the destination file exists into:

:[](include/file.md)

The folders option will transform transclusion links of the form:

:[](include)

if the destination folder exists and is non empty (in this example the include folder contains files file1.md and file2.md to:

:[](include/file1.md)
:[](include/file2.md)

License

MIT

0.1.11

6 years ago

0.1.10

6 years ago

0.1.9

6 years ago

0.1.7

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.1

7 years ago