@bonniernews/md2html

0.0.8 • Public • Published

MD2HTML

Build Status

Markdown to HTML converter.

Supports:

  • #
  • -
    • -
  • *
  • _
  • [_Bait_](https://www.example.com): links
import {render} from 'md2html';

const markdown = `
# Headline
With _paragraph 1_.
## Subheadline 2
With __paragraph 2__.
### Subheadline 3
With *paragraph 3*.
#### Subheadline 4
With **paragraph 4**.
##### Subheadline 5
With *__paragraph 5__*.
###### Subheadline _6_
With paragraph 6.
- Item 1
- Item 2
  - Sub item 1
- Item 3`;

console.log(render(markdown));

Package Sidebar

Install

npm i @bonniernews/md2html

Weekly Downloads

0

Version

0.0.8

License

MIT

Unpacked Size

17.5 kB

Total Files

5

Last publish

Collaborators

  • oscartholander
  • wisko
  • schristianssonbn
  • marie-winther
  • dan.karlsson
  • erandersson
  • daghall
  • andreas.samuelsson
  • norla
  • mattiasobn
  • jzachrisson
  • hilleso
  • adam.hakansson
  • amundsentb
  • jonaek
  • drgeobn
  • mikael.mattsson
  • morre
  • takolander
  • vitryssen
  • herbola
  • nifo
  • johark
  • aliceboberg
  • varneynz
  • gusliden
  • mxtr
  • karlbergc
  • joelekman
  • chavah
  • matsrorbecker
  • axeljohanssonbonniernews
  • markusn
  • jonaswalden
  • indeedshouts
  • marcusgronblad