Handle <nowiki> and other markup consistently in image link/alt options