diff --git a/src/Linkification/Linkify.coffee b/src/Linkification/Linkify.coffee index ae77af9fc..52a21897a 100755 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -237,9 +237,11 @@ Linkify = "#{status}'d" }" + link.dataset.original = link.textContent link.textContent = text for post2 in post.clones for link2 in $$ 'a.linkify', post2.nodes.comment when link2.href is link.href + link2.dataset.original = link2.textContent link2.textContent = text return diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index d660e7a0f..836ff2afe 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -235,6 +235,8 @@ QR = $.replace node, [$.tn('[spoiler]'), node.childNodes..., $.tn '[/spoiler]'] for node in $$ '.prettyprint', frag $.replace node, [$.tn('[code]'), node.childNodes..., $.tn '[/code]'] + for node in $$ '.linkify[data-original]', frag + $.replace node, $.tn node.dataset.original for node in $$ '.embedder', frag $.rm node.previousSibling if node.previousSibling?.nodeValue is ' ' $.rm node