4.0.0 • Published 2 months ago

@inkdropapp/html2markdown v4.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

html2markdown

It converts HTML to Markdown using remark and rehype.

install

npm install @inkdropapp/html2markdown

How to use

Say we have the following markdown file, example.md:

<h1>Hello, world!</h1>

And our script, example.js, looks as follows:

import { html2Markdown } from '@inkdropapp/html2markdown'
import fs from 'fs'

const doc = fs.readFileSync('example.md')

const md = html2Markdown(doc)

console.log(md)

Now, running node example yields:

# Hello, world!

API

html2Markdown(html, options)

Converts the given HTML to Markdown.

Options

License

MIT © Takuya Matsuyama

4.0.0

2 months ago

3.2.1

8 months ago

3.2.0

9 months ago

3.1.2

1 year ago

3.1.1

1 year ago

3.1.0

1 year ago

3.0.0

1 year ago

2.6.5

3 years ago

2.6.4

3 years ago

2.6.3

3 years ago

2.6.2

3 years ago

2.5.0

3 years ago

2.6.1

3 years ago

2.6.0

3 years ago

2.4.0

3 years ago