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-elements
import {micromark} from 'micromark'
import {
html,
syntax
} from 'remark-editorial-elements';
// TODO: add example
console.log(output)
Yields:
TODO
:sic (inline)> It’s true taht :sic{} they said
:ellipsis (inline)> We were told it’s very :ellipsis{} good for the soul
:ins (inline, insertions)Perhaps someday there will be changes. :ins[Now there are.]{datetime="2025-09-23T21:53:18+05:30"}
:del (inline, deletions)We offer :del[the best]{datetime="2025-09-23T21:53:18+05:30"} products.
:::ins (block, insertions):::ins{datetime="2025-09-23T21:53:18+05:30"}
This information is now obsolete.
:::
:::del (block, deletions):::del{datetime="2025-09-23T21:53:18+05:30"}
It is not yet safe to go outside.
:::
TODO