Thread:Project:Support desk/Process text in a wiki article/reply

You would use a hook. Looks like EditPage::attemptSave would work.