There are 2 repositories under wikitext-parser topic.
Wikicompiler is a fully extensible python library that compile and evaluate text from Wikipedia dump. You can extract text, do text analysis or even evaluate the AST(Abstract Syntax Tree) yourself
A library that helps parse wikitext data
A WikiText table parser written in Rust.