Converts markdown to plain text
Project description
strip_markdown
Converts markdown to plain text, including both a command line interface and importable library
Example
Markdown
Title
Section
This is a line of text
Bold text
Markdown source
# Title
## Section
This is a line of text
**Bold text**
Text
Title
Section
This is a line of text
Bold text
Installation
$ pip install strip_markdown
Usage
Command line
$ python -m strip_markdown MD_fn [TXT_fn]
Library
>>> import strip_markdown
>>>
>>> TXT: str = strip_markdown.strip_markdown(MD: str)
>>> strip_markdown.strip_markdown_file(MD_fn: str, TXT_fn: Optional[str])
TXT_fn
is optional: default is<MD_fn>.md -> <MD_fn>.txt
- If
TXT_fn
is a directory,<MD_fn>.txt
is placed in that directory
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
strip_markdown-1.3.tar.gz
(3.3 kB
view details)
Built Distribution
File details
Details for the file strip_markdown-1.3.tar.gz
.
File metadata
- Download URL: strip_markdown-1.3.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ead579d7ed53935512e23187565a71b57b90b540096984f2b567829a53a3b852 |
|
MD5 | a6a2bdc8edea5a6040949953bd49139a |
|
BLAKE2b-256 | 6aaa857c3a339e520cc730815c1d90fac2fcc42903d338ca5d0543d02c8153f1 |
File details
Details for the file strip_markdown-1.3-py3-none-any.whl
.
File metadata
- Download URL: strip_markdown-1.3-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfe3217310db3d2bb19e456d5d896d3d9798d70f08da9f56e75bde812d0e5507 |
|
MD5 | 89025cf68b12e319976466ccae1db4c9 |
|
BLAKE2b-256 | 052179a6c7fbe0a761dc3dffcf6349dd4699173088ece8ebc24c602ec6ddd9c0 |