(/pre/i.test(parent.nodeName)) {
						parent.className = parent.className.replace(lang, '').replace(/\s+/g, ' ') + ' language-' + language;
					}

					var code = element.textContent;

					var env = {
						element: element,
						language: language,
						grammar: grammar,
						code: code
					};

					_.hooks.run('before-sanity-check', env);

					if (!env.code || !env.grammar) {
						if (env.code) {
							env.element.textContent = env.code;
						}
						_.hooks.run('complete', env);
						return;
