Commit 8480fb75 authored by Christopher Guess's avatar Christopher Guess
Browse files

merge fixed

parents e4407f4f dc52a918
......@@ -57,12 +57,17 @@ Marka.prototype.match = function() {
find: regex,
wrap: this.wrapNode()
})
$(".marka").each(function(index, value) {
var node = $(value);
node.data("original_value", node.text());
});
};
Marka.prototype.doConversions = function() {
var self = this;
$(".marka").each(function(index, value) {
var text = $(value).text();
var text = $(value).data("original_value");
var res = self.splitSymbols(text);
if (res === false) {
$(value).replaceWith(text)
......@@ -76,6 +81,9 @@ Marka.prototype.doConversions = function() {
} else {
node.text(node.data("original_value"))
}
node.append(children);
node.children(".marka-results").html("<span class=\"marka-result\">" + node.data("original_value") + "</span>")
})
}
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment