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.
- Is it generally correct? I just learned about
markdown-it-py, so I'm not that familiar with the code. I did test it on a few documents, at least.
- Do you think it's useful enough to include in the
markdown-it-py repository, or as a plugin? (I'm not sure if renderers can be plugged in)
- There's a dependency on
markupsafe.striptags() - is that ok? Do you think there's a better way to deal with HTML tags?
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-pyrepository, 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?