Package Exports
- madcut
- madcut/plugin
Readme
🎬 MadCut

CLI tool to run cut markdown into peaces. Based on 🐊Putout code transformer.
Install
npm i madcutAPI
cut(markdown);
import {cut} from 'madcut';
import montag from 'montag';
await cut(montag`
# Hello
## World
This is the world
`);
// returns
[
montag`
# Hello\n\n
`,
montag`
## World
This is the world\n
`,
];infer(markdown);
import {infer} from 'madcut';
import montag from 'montag';
await infer(montag`
# Hello
## World
`);
// returns
['World'];License
MIT