A partial archive of https://discourse-mediawiki.wmflabs.org as of Saturday May 21, 2022.

Javascript safe wikitext replace library

Jayprakash12345

Hi, I want to know if there is any library/predefined function for the safe replacement of wikitext.

we know MediaWiki has markups that should not replace by bot like text inside [[File:Text.jpg]], <source>, <math>, and wikilinks, etc.