Skip to main content

Converts markdown to plain text

Project description

strip_markdown

PyPI ci

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)

Uploaded Source

Built Distribution

strip_markdown-1.3-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

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

Hashes for strip_markdown-1.3.tar.gz
Algorithm Hash digest
SHA256 ead579d7ed53935512e23187565a71b57b90b540096984f2b567829a53a3b852
MD5 a6a2bdc8edea5a6040949953bd49139a
BLAKE2b-256 6aaa857c3a339e520cc730815c1d90fac2fcc42903d338ca5d0543d02c8153f1

See more details on using hashes here.

File details

Details for the file strip_markdown-1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for strip_markdown-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bfe3217310db3d2bb19e456d5d896d3d9798d70f08da9f56e75bde812d0e5507
MD5 89025cf68b12e319976466ccae1db4c9
BLAKE2b-256 052179a6c7fbe0a761dc3dffcf6349dd4699173088ece8ebc24c602ec6ddd9c0

See more details on using hashes here.

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