Checking the HTML contents is the wrong way to do this IMO. It should be easy to store a flag e.g. in article_galley_settings that indicates whether the file was generated via this plugin.