Restore titled links when quoting.

This commit is contained in:
ccd0 2014-12-06 14:17:16 -08:00
parent 36284aa489
commit bbad95f571
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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