quickmark-rule-strikethrough
v1.0.0
Published
Strikethrough rule for Quickmark
Downloads
3
Maintainers
Readme
quickmark-rule-strikethrough
Strikethrough text matching rule for quickmark.
Usage
const strikethrough = require('quickmark-rule-strikethrough');
strikethrough('~~i am no longer relevant~~');
// {
// original: '~~i am no longer relevant~~',
// parsed: 'i am no longer relevant'
// }
strikethrough('~~i am no longer relevant~~ but i still am');
// {
// original: '~~i am no longer relevant~~',
// parsed: 'i am no longer relevant'
// }
strikethrough('plain text');
// undefined