The wikitext parser of CeJS MediaWiki module parses wikitext and generating a Array, including additional properties.

Here shows some examples. These results are generated by parsed = CeL.wiki.parse(wikitext) , and then you may use parsed.each(type, (token, index, parent)=>{ /* ... */ }); to traversal all tokens of specified type. You may modify parts of the token, then regenerate the page just using parsed.toString() .