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 details)
Built Distribution
File details
Details for the file rst2md-0.1.1.tar.gz
.
File metadata
- Download URL: rst2md-0.1.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | accb5e4b73372f65a028c53d2939dec48b9a62f5f56ececea6c8c920dae205fb |
|
MD5 | dc356f63cb940141c61a633ac95905d6 |
|
BLAKE2b-256 | 52039e7250a868060ad37a004a1f2ab9a700d5d0877463b77016fd776aafb3d4 |
File details
Details for the file rst2md-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: rst2md-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a992294b3e7cd96f3fa0e76f37c7ab1777eaa31f7f57346977118bbee9099e18 |
|
MD5 | 924f8ac001e1be6230f02fedbec2a2e8 |
|
BLAKE2b-256 | ca2203cbd510067d6de5ed922ccd885fc7bfb41da1d8ad2ba4e74464cfe0384f |