qstrip
A fast Markdown stripper with a C backend.
Installation
pip install qstrip
Usage
from qstrip import strip_markdown
with open('markdown_file.md', 'r') as f:
content = f.read()
stripped_content = strip_markdown(content)
print(stripped_content)
# If the input markdown could potentially be very long, you can specify a timeout
try:
stripped_content = strip_markdown(content, timeout=2) # 2 second timeout
except TimeoutError:
stripped_content = None
Current and planned features
- Strip headings
- Strip bold tags
- Strip italic tags
- Strip strikethrough tags
- Strip code blocks
- Strip inline code
- Strip links
- Strip images
- Strip tables
- Handle images inside links
- Strip lists
- Strip blockquotes
- Strip horizontal rules
- Strip footnotes
- Strip reference links
- Handle escape sequences
- Support other markup formats (e.g., reStructuredText, HTML/XML)
Release files for qstrip 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| qstrip-0.2.0.tar.gz | 8.9 kB | Details |
Release files / qstrip-0.2.0.tar.gz
| Download URL | qstrip-0.2.0.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
320a0ad734f32f51acf4259f7f49cc3eddb58f9f791d152cf8d735ae1ad2f689
|
|
BLAKE2b-256 checksum How to use checksums |
9eae919f2ccd7c2fa8862c66fc4b9cef4df568816cfef16a084961c29fa06f5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 28, 2026.
Transparency log