HTML to Markdown
Project description
htmltomd
htmltomd is a simple package for converting HTML to Markdown.
Getting Started
pip install htmltomd
import htmltomd
html = """
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<div>
<h1>htmltomd</h1>
<p>
htmltomd is a simple package for converting HTML to Markdown.
</p>
<h2>Getting Started</h2>
<p>
pip install htmltomd
</p>
</div>
</body>
</html>
"""
result = htmltomd.html_to_md(html)
print(result)
Result
<div># htmltomd
htmltomd is a simple package for converting HTML to Markdown.
## Getting Started
pip install htmltomd
</div>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
htmltomd-0.1.1.tar.gz
(4.0 kB
view hashes)