Skip to main content

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


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)

Uploaded Source

Built Distribution

rst2md-0.1.1-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page