-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plaintext Renderer #103
Comments
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗 |
hey @elespike yeh looking good thanks. Renders are certainly pluggable in the API: md = MarkdownIt("commonmark", renderer_cls=RendererPlain) Not currently via the CLI though, but that could be easily added if there is interest. The next step I suggest, would be to add some test fixtures.
|
Excellent, thanks! I did notice I'll do some bug fixing and add some tests, then create a repository 👍 |
@chrisjsewell I've finally released the plaintext renderer: Where can I advertise it in the docs? Doesn't seem that a section for 3rd party plugins already exists. |
Awesome cheers @elespike, |
Cool, I'll see about adding a section - can't promise when =p And just to confirm, the I'll also close this issue unless you'd rather leave it until the docs PR goes through. |
Hello,
I've written a plaintext renderer that removes all markup. The inspiration for this is to facilitate NLP on a corpus of markdown documents. =)
Since I'm uncertain about a few things, I didn't want to make a PR just yet.
markdown-it-py
, so I'm not that familiar with the code. I did test it on a few documents, at least.markdown-it-py
repository, or as a plugin? (I'm not sure if renderers can be plugged in)markupsafe.striptags()
- is that ok? Do you think there's a better way to deal with HTML tags?The text was updated successfully, but these errors were encountered: