Thread:Project:Support desk/Auto creating pages/reply (3)

You could mimic the edit form.

When you present the comparison, put a hidden edit form with the text, and make the "save" button save the page. The edit form contains hidden fields that identify the target page name, an edit token, etc. Fill them as needed.

The most clean way of doing that is, if the table is not expensive to generate again, to make that button generate the wikitext again and perform the edit with WikiPage::doEditContent

I doubt there's an extension for doing something as specific as you want, specially if the wikitext is generated by your extension.