Skip to content

arve0/markdown-it-underline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

markdown-it-underline

Renders this markdown

_underline_ *emphasis*

to this HTML

<u>underline</u> <em>emphasis</em>

This might not be semantic correct, but who cares :-)

See the discussion at talk.commonmark.com.

Install

npm install markdown-it-underline

Usage

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

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

Development

Add tests in test.js.

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