remark extension to support ins and del elements via
remark-directive. (Comprehensive documentation will be added
soon.)
Docs at shivjm.github.io/remark-extensions.
This package is ESM only:
Node 18+ is needed to use it and it must be imported instead of required.
npm:
npm install remark-editorial-elementsimport {micromark} from 'micromark'
import {
html,
syntax
} from 'remark-editorial-elements';
// TODO: add example
console.log(output)Yields:
TODO> It’s true taht :sic{} they said> We were told it’s very :ellipsis{} good for the soulPerhaps someday there will be changes. :ins[Now there are.]{datetime="2025-09-23T21:53:18+05:30"}We offer :del[the best]{datetime="2025-09-23T21:53:18+05:30"} products.:::ins{datetime="2025-09-23T21:53:18+05:30"}
This information is now obsolete.
::::::del{datetime="2025-09-23T21:53:18+05:30"}
It is not yet safe to go outside.
:::TODO