Skip to content

A renderer for markdown-it-py that converts markdown documents into plain text by removing all markup.

License

Notifications You must be signed in to change notification settings

elespike/mdit_plain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Why?

To facilitate Natural Language Processing of markdown documents by converting them to plain text documents.

Installation

# Requires Python 3.7 or higher
python3 -m pip install mdit_plain

Usage

>>> from markdown_it import MarkdownIt  # python3 -m pip install markdown-it-py
>>> from mdit_plain.renderer import RendererPlain
>>> parser = MarkdownIt(renderer_cls=RendererPlain)
>>> print(parser.render(
... """
... # Lots of markdown
... **Quite** a *lot*!
... > oh yeah...
... """
... ))
Lots of markdown

Quite a lot!

oh yeah...

Development and Testing

# Requires Python 3.7 or higher
git clone https://github.com/elespike/mdit_plain
cd mdit_plain
python3 -m pip install .[test]
python3 -m unittest

About

A renderer for markdown-it-py that converts markdown documents into plain text by removing all markup.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages