flexmark-java icon indicating copy to clipboard operation
flexmark-java copied to clipboard

Validate Markdown syntax

Open znerd opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe. I would like to be able to validate whether a certain text string is valid Markdown or not.

Describe the solution you'd like Have a way to validate a text string and identify if it is valid Markdown or not.

If it is not valid Markdown, then it would be nice to get the identified issue, or perhaps even a list of identified issues.

Describe alternatives you've considered Alternatives considered: None

Additional context No additional context.

znerd avatar Aug 03 '22 10:08 znerd

As a meta example, here's a valid Markdown string that describes what we might consider invalid Markdown.

Note that "[about] (this" isn't valid Markdown because the closing `)`
is missing, and the space between `] (` must be removed.

The requirement, as stated @znerd, strikes me as intractable. You'll need to be more specific. The example I've given would produce a false positive.

ghost avatar Jun 18 '23 21:06 ghost