I am using Parse::RecDescent for parsing the submitted text and while I think I managed to declare the grammar correctly so far I could not figure out how to point out what exactly is the cause of failure. Hence you are seeing the meaninless Text format is not correct. error message.
I'd like to be able to give different error messages in case of
< is not allowed in plain text, please escape it and
<p> seen without a closing </p> tag
Here is the current grammar and there is a whole test suit for this code withing the source code of
any ideas on how to provide error messages ?