minute is a tiny markdown parser.
npm install minutemd
or
yarn add minutemd
import { convertToHTMLString } from 'minutemd'
const md = '# heading1';
convertToHTMLString(md)
// This outputs '<h1>heading1</h1>'
Playground is available for minute. Try this out!