1.0.3 • Published 8 years ago

quickmark-rule-emphasis v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

quickmark-rule-emphasis

Italic / emphasised text matching rule for quickmark.

Usage

const emphasis = require('quickmark-rule-emphasis');

emphasis('*italic text*');
// {
//     original: '*italic text*',
//     parsed: 'italic text'
// }



emphasis('_italic text_');
// {
//     original: '_italic text_',
//     parsed: 'italic text'
// }



emphasis('**some emphasised text** with a little bit of normal text after');
// {
//     original: '**some emphasised text**',
//     parsed: 'some emphasised text'
// }



emphasis('plain text');
// undefined

License

MIT

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago