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
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