A utility and library to convert a reStructuredText document to Markdown.
Project description
A utility and library to convert a reStructuredText document to Markdown.
Installation
pip install --user rst2md
Usage
This can be used as a library or from the command line.
As a library:
import pathlib
from rst2md import convert_rst_to_md
path = pathlib.Path('README.rst')
with path.open('r') as f:
data = f.read()
md = convert_rst_to_md(path.name, data)
From the command line:
python -m rst2md README.rst
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
rst2md-0.1.1.tar.gz
(3.9 kB
view hashes)
Built Distribution
rst2md-0.1.1-py3-none-any.whl
(3.8 kB
view hashes)