Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/arve0/markdown-it-underline

Renders _underline_ to <u>underline</u>
https://github.com/arve0/markdown-it-underline

Last synced: 8 days ago
JSON representation

Renders _underline_ to <u>underline</u>

Awesome Lists containing this project

README

        

# markdown-it-underline
Renders this markdown

```md
_underline_ *emphasis*
```

to this HTML

```HTML
underline emphasis
```

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

See [the discussion at talk.commonmark.com](https://talk.commonmark.org/t/feature-request-underline-text/343).

## Install

```sh
npm install markdown-it-underline
```

## Usage

```js
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](test.js).

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