📦 This package has moved. It now lives in the markdown-magic-plugins monorepo at
packages/subpackage-list. This repository is archived; issues and contributions go to the monorepo.
Add a list of sub-packages with links via markdown-magic
npm i markdown-magic markdown-magic-subpackage-list --save-dev
See example.js for usage.
import path from 'path';
import { markdownMagic } from 'markdown-magic';
import SUBPACKAGELIST from './index.js';
const config = {
matchWord: 'AUTO-GENERATED-CONTENT',
transforms: {
SUBPACKAGELIST,
},
};
const markdownPath = path.join(import.meta.dirname, 'README.md');
await markdownMagic(markdownPath, config);- example-package - example package description for the demo
- dir -
./packagesby default - verbose -
falseby default - print out description of package - bullet -
*by default - set to1.to create a numbered list