Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/davidcavazos/html2md

HTML to Markdown converter
https://github.com/davidcavazos/html2md

Last synced: 2 months ago
JSON representation

HTML to Markdown converter

Awesome Lists containing this project

README

        

# html2md

HTML to Markdown converter

## Installation

```sh
pip install -U html2md
```

## Usage

As a command line tool:

```sh
# To convert a file.
html2md examples/hello.html

# To convert from stdin.
cat examples/hello.html | html2md
```

From a Python script:

```py
import html2md

html = '''

Header


Hello from html2md


print('Hello')

'''

md = html2md.convert(html)
print(md)
```

## Contributing

Contributions are welcome! For instructions on how to contribute,
please check the [Contribution guide](CONTRIBUTING.md).