Skip to content

feature: Markdown validates it's value when rendering. Validation result should be available. #6751

Description

@LucianoSaldivia

Duplicate Check

Describe the requested feature

I'm using Markdown as a LaTeX rendering control. It uses katex through nodeJS in the background to validate the LaTeX string, and show what's rendered or the error.
Instead, a simple "valid() -> bool" method would allow the developer to decide wether to ask Markdown to render the user input or not.
Making the user see an awful error message where the render should be isn't elegant nor pleasant.
Developer should be able to catch the "invalid input" before forcing the render. To this version, the only way to do this is making a workaround-validation which is not exactly the same unless using katex through JS, which in itself is a whole lot more work that shouldn't be necessary considering Markdown uses it in the background.

Suggest a solution

No response

Screenshots

No response

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestSuggestion/Request for additional feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions