How to use for Markdown validation? #652
-
Please provide an example of how would I use this library to validate Markdown and get a boolean TRUE/FALSE as a result of validation? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
According to section 2.1 of the CommonMark spec any plain-text file is valid:
We don't perform this validation in our library, but you could use something like this to check the MIME type and return |
Beta Was this translation helpful? Give feedback.
According to section 2.1 of the CommonMark spec any plain-text file is valid:
We don't perform this validation in our library, but you could use something like this to check the MIME type and return
TRUE
for plain-text documents.