0

Are there any Python libraries that exist for checking whether markdown text is valid markdown? Just wondering before starting on writing a regex heavy validator.

We're using React-RTE to generate markdown text, and I wanted to validate it before storing it in the database, or to validate any markdown syntax a user might be inputting.

  • One of the issues with markdown is that many implementations consider any document to be valid markdown. They just won't necessarily display what you intended. For instance, something like an unmatched *asterisk is "valid" and just will display the asterisk literally, like this: an unmatched *asterisk – BrenBarn Nov 28 '19 at 5:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.