Jay R. Ashworth wrote:
there's a project underway to formalize the very wikitext grammar with which you're compatible.
There are efforts to produce something formal-like for some subset of the wikitext syntax. To my knowledge, no useful formal grammar can be produced for the complete syntax.