[](https://www.npmjs.com/package/@handbook/markdown-source-import) [](https://github.com/rocket-hangar/hand
npm install @handbook/markdown-source-import@handbook/markdown-source-import


This tool gives two markdown comments.
For example,
``mdSource
`
This tool will transform the markdown document into the below.
``mdSource
`ts`
// file.ts
console.log('hello world');
- packages/package1/README.md
- packages/package2/README.md
- packages/package3/README.md
``
Install
`sh`
npm install @handbook/markdown-source-import --save-dev
Add a script to package.json
`json`
{
"scripts": {
"source-import": "markdown-source-import README.md src/*/.md"
}
}
And if you use husky or the other pre-commit hook.
`json`
{
"husky": {
"pre-commit": "markdown-source-import README.md src/*/.md --git-add"
}
}
`mdImport Source
(only support js, jsx, ts, tsx)
`
- @handbook/ This package is one of @handbook/` packages. Go to the project home and see more details.
-
-
-
-