Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

brecert/markdown-it-chat-formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages