Skip to content

Plaintext Renderer #103

Description

@elespike

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.

  1. 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.
  2. 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)
  3. There's a dependency on markupsafe.striptags() - is that ok? Do you think there's a better way to deal with HTML tags?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions