remark-editorial-elements
v1.0.0
Published
remark extension to add `ins` and `del` directives via remark-directive
Maintainers
Readme
remark-editorial-elements
remark extension to support ins and del elements via
remark-directive. (Comprehensive documentation will be added
soon.)
Docs at shivjm.github.io/remark-extensions.
Install
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-elementsUse
import {micromark} from 'micromark'
import {
html,
syntax
} from 'remark-editorial-elements';
// TODO: add example
console.log(output)Yields:
TODOSyntax
: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.
:::API
TODO
