Home

Awesome

Subpackage list plugin

Add a list of sub-packages with links via markdown-magic

Install

npm i markdown-magic markdown-magic-subpackage-list --save-dev

Adding the plugin

See example.js for usage.

<!-- AUTO-GENERATED-CONTENT:START (CODE:src=./example.js) --> <!-- The below code snippet is automatically added from ./example.js -->
const fs = require('fs');
const path = require('path');
const markdownMagic = require('markdown-magic');

const config = {
  transforms: {
    SUBPACKAGELIST: require('./index.js'),
  },
};

const markdownPath = path.join(__dirname, 'README.md');
markdownMagic(markdownPath, config);
<!-- AUTO-GENERATED-CONTENT:START (CODE:src=./example.js) --> <!-- AUTO-GENERATED-CONTENT:END *-->

Usage in markdown

<!-- AUTO-GENERATED-CONTENT:START (SUBPACKAGELIST:verbose=true) --> <!-- AUTO-GENERATED-CONTENT:END -->

Options