A markdown-it plugin
to use *
for <i>
and **
for <b>
in your Markdown documents,
along with the conventional _
for <em>
and __
for <strong>
.
Example input:
*A* **B** _C_ __D__
Output:
<p><i>A</i> <b>B</b> <em>C</em> <strong>D</strong></p>
npm install markdown-it-ib
import markdownIt from 'markdown-it';
import markdownItIB from 'markdown-it-ib';
// OR
const markdownIt = require('markdown-it');
const markdownItIB = require('markdown-it-ib');
const md = markdownIt().use(markdownItIB);
const output = md.render('*A* **B** _C_ __D__');
console.log(output);
- You’re using <em> wrong by Facundo Corradini