/markdown-it-emph

Markdown-it plugin that distinguishes *em*, **strong** from _i_, __b__ and ____u____

Primary LanguageJavaScript

markdown-it-emph

Renders this markdown

_italic_ *emphasis* __bold__ **strong** ____underline____

to this HTML

<i>italic</i> <em>emphasis</em> <b>bold</b> <strong>strong</strong> <u>underline</u>

Install

npm install markdown-it-emph

Usage

const emph = require('markdown-it-emph');
const md = require('markdown-it')().use(emph);

console.log(md.renderInline('_italic_ *emphasis*'));

Development

Add tests in test.js.

npm test
npm version [patch|minor|major]
npm publish