remark-replace-block
remark plugin to replace block content.
Note: if the block content is not found, the replace nodes is will added to the end.
Install
npm:
npm install remark-replace-block
Use
We have the following file, example.md
# title ## API- this one- this two
And the script, example.js
const remark = ;const replaceBlock = ;const vfile = ;
Yields:
# title ## update- this is change