function isIgnored( element ) {

			var e = element;

			var isIgnoredElement =
				options.ignoredElements.indexOf( e.nodeName ) !== -1;

			// Elements may be marked as ignored with a class
			var isIgnoredClass =
				e.classList.contains( defaults.ignoredClass );

			// Also look for the ignored class on the parent (non-recursive)
			var parent = e.parentNode;
			if ( parent ) {
				isIgnoredClass = isIgnoredClass || parent.classList.contains(
					defaults.ignoredClass
				);
			}

			// Ignore script elements, unless they are templates (e.g. Markdown)
			var isTemplate = e.getAttribute( 'type' ) === 'text/template';
			var isScript = e.nodeName === 'SCRIPT' && !isTemplate;

			return isIgnoredElement || isIgnoredClass || isScript;
		}
/**
		 * Tests if an element should be ignored for formula replacements.
		 */
Tests if an element should be ignored for formula replacements.
Tests if an element should be ignored for formula replacements .
function isIgnored( element ) {
			var e = element;
			var isIgnoredElement =
				options.ignoredElements.indexOf( e.nodeName ) !== -1;
			var isIgnoredClass =
				e.classList.contains( defaults.ignoredClass );
			var parent = e.parentNode;
			if ( parent ) {
				isIgnoredClass = isIgnoredClass || parent.classList.contains(
					defaults.ignoredClass
				);
			}
			var isTemplate = e.getAttribute( 'type' ) === 'text/template';
			var isScript = e.nodeName === 'SCRIPT' && !isTemplate;
			return isIgnoredElement || isIgnoredClass || isScript;
		}
function isIgnored ( element ) { var e = element ; var isIgnoredElement = options . ignoredElements . indexOf ( e . nodeName ) !== - 1 ; var isIgnoredClass = e . classList . contains ( defaults . ignoredClass ) ; var parent = e . parentNode ; if ( parent ) { isIgnoredClass = isIgnoredClass || parent . classList . contains ( defaults . ignoredClass ) ; } var isTemplate = e . getAttribute ( 'type' ) === 'text/template' ; var isScript = e . nodeName === 'SCRIPT' && ! isTemplate ; return isIgnoredElement || isIgnoredClass || isScript ; }
Tests if an element should be ignored for formula replacements.
Tests if an element should be ignored for formula replacements .
// Elements may be marked as ignored with a class // Also look for the ignored class on the parent (non-recursive) // Ignore script elements, unless they are templates (e.g. Markdown)