Converts Markdown to boring plain text
Project description
boringmd
boringmd
is a Python package and command line tool for converting Markdown documents to plain text.
boringmd
does not render Markdown in any particularly beautiful way. It's a lightweight package for simply extracting plain text content.
Examples
Emphasis
This is *emphasis*, and so is _this_.
This is emphasis, and so is this.
Fenced code
Code sample:
```markdown
# Shopping list
1. Ducks
2. Grapes
3. Basketballs
```
Code sample:
# Shopping list
1. Ducks
2. Grapes
3. Basketballs
Front matter
---
foo: bar
---
I love gummy cakes.
I love gummy cakes.
Headings
# Abraham Lincoln
## Life
### Favourite cakes
Abraham Lincoln might have enjoyed gummy cakes.
Abraham Lincoln
Life
Favourite cakes
Abraham Lincoln might have enjoyed gummy cakes.
HTML
I want a line break<br />here.
I want a line break here.
Indented code
Code sample:
# Shopping list
1. Ducks
2. Grapes
3. Basketballs
Code sample:
# Shopping list
1. Ducks
2. Grapes
3. Basketballs
Inline code
Use `git` to clone and `pytest` to test.
Use git to clone and pytest to test.
Strength
This is **strong**.
This is strong.
Usage
Installation
boringmd
requires Python 3.8 or later.
pip install boringmd
Command line
On the command line, boringmd
prints the conversion to stdout:
boringmd input.md
To write the conversion to a file, redirect it:
boringmd input.md > output.txt
Package
from boringmd import from_string
print(from_string("**foo** and _bar_"))
from pathlib import Path
from boringmd import from_file
print(from_file(Path("input.md")))
Related packages
boringmd
uses cariad/lstr to manipulate strings.
Thank you! 🎉
My name is Cariad, and I'm an independent freelance DevOps engineer.
I'd love to spend more time working on projects like this, but--as a freelancer--my income is sporadic and I need to chase gigs that pay the rent.
If this project has value to you, please consider ☕️ sponsoring me. Sponsorships grant me time to work on your wants rather than someone else's.
Thank you! ❤️
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 Distributions
Built Distribution
Hashes for boringmd-0.0.0a2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1213e21f9987034d38bfc8ea05861c821b422d9fd43310f5831bfbeda88e6718 |
|
MD5 | 12e24c82ecbc8ec7202aea834eec8ae1 |
|
BLAKE2b-256 | 9f2c44dfa77a6e6c17ec77caee8f528e49757b48fd8906df9d4fd0540c3bd0ec |