Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/davidcavazos/html2md
- Owner: davidcavazos
- License: apache-2.0
- Created: 2019-07-08T17:44:44.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-07T02:01:14.000Z (over 5 years ago)
- Last Synced: 2024-10-08T13:27:50.205Z (3 months ago)
- Language: Python
- Size: 39.1 KB
- Stars: 15
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
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 html2mdhtml = '''
Header
Hello fromhtml2md
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).