markdown-it-chat-formatter
v0.1.1
Published
a chat formatter using markdown-it
Downloads
3
Readme
markdown-it-chat-formatter
Usage
import format from 'markdown-it-chat-formatter'
format('**bold!** __underline!__ *italic*');
// => <strong>bold!</string> <u>underline!</u> <em>italic</em>
or you can use it as a markdown-it plugin
import MarkdownIt from 'markdown-it'
import chatPlugin from 'markdown-it-chat-formatter/plugin'
const md = new MarkdownIt();
md.use(chatPlugin)
md.render('**bold!** __underline!__ *italic*')
// => <strong>bold!</string> <u>underline!</u> <em>italic</em>