var toBlock = ['div', 'document', 'section', 'header'];
var toInline = ['aside', 'span'];
var toBlock = ['div', 'document', 'section', 'header'];
var toInline = ['aside', 'span'];
tagName = tagName.toLowerCase();
console.log('running ' + tagName);
toret.find(tagName).replaceWith(function() {
tagName = tagName.toLowerCase();
console.log('running ' + tagName);
toret.find(tagName).replaceWith(function() {
tagName = tagName.toLowerCase();
toret.find(tagName).replaceWith(function() {
var currentTag = $(this);
tagName = tagName.toLowerCase();
toret.find(tagName).replaceWith(function() {
var currentTag = $(this);
var toret = $('<span></span>').attr('wlxml-tag', tagName);
if(currentTag.attr('class'))
var toret = $('<span></span>').attr('wlxml-tag', tagName);
if(currentTag.attr('class'))
var tagName = div.attr('wlxml-tag');
var toret = $('<'+tagName+'>');
if(div.attr('wlxml-class'))
var tagName = div.attr('wlxml-tag');
var toret = $('<'+tagName+'>');
if(div.attr('wlxml-class'))