Skip to content

p-herbert/html-to-markdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

html-to-markdown

Simple HTML to Markdown parser

Usage

    const HtmlToMarkdown = require('html-to-markdown');
    const parser = new HtmlToMarkdown();
    const markdown = parser.parse('<h1>Hello World!</h1></br><p>I am a paragraph</p>');

Options

The following options can be passed to the constructor:

Options Default
underline ``
bold __
paragraph \n
br
italic *
strike ~~
indent
unorderedListItem -
code ``
pre ```
blockquote >
heading #

Acknowledgments

Thanks to Sunsama for allowing me to open source this project.

About

Simple HTML to Markdown parser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published