Seeing em.scribe-marker tags during "normalize"
mindplay-dk opened this issue · comments
I have a simple plugin along the lines of:
define(function () {
return function() {
/**
* @param {Node} node
*/
function sanitize(node) {
// ...
}
return function (scribe) {
scribe.registerHTMLFormatter('normalize', function (html) {
if (typeof html === 'string') {
var node = document.createElement('div');
node.innerHTML = html;
sanitize(node);
return node.innerHTML;
} else {
sanitize(html);
return html
}
});
};
};
});
While visiting every node recursively, I seem to encounter the <em class="scribe-marker">
tags.
Should that be happening?