Restore titled links when quoting.
This commit is contained in:
parent
36284aa489
commit
bbad95f571
@ -237,9 +237,11 @@ Linkify =
|
|||||||
"#{status}'d"
|
"#{status}'d"
|
||||||
}"
|
}"
|
||||||
|
|
||||||
|
link.dataset.original = link.textContent
|
||||||
link.textContent = text
|
link.textContent = text
|
||||||
for post2 in post.clones
|
for post2 in post.clones
|
||||||
for link2 in $$ 'a.linkify', post2.nodes.comment when link2.href is link.href
|
for link2 in $$ 'a.linkify', post2.nodes.comment when link2.href is link.href
|
||||||
|
link2.dataset.original = link2.textContent
|
||||||
link2.textContent = text
|
link2.textContent = text
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@ -235,6 +235,8 @@ QR =
|
|||||||
$.replace node, [$.tn('[spoiler]'), node.childNodes..., $.tn '[/spoiler]']
|
$.replace node, [$.tn('[spoiler]'), node.childNodes..., $.tn '[/spoiler]']
|
||||||
for node in $$ '.prettyprint', frag
|
for node in $$ '.prettyprint', frag
|
||||||
$.replace node, [$.tn('[code]'), node.childNodes..., $.tn '[/code]']
|
$.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
|
for node in $$ '.embedder', frag
|
||||||
$.rm node.previousSibling if node.previousSibling?.nodeValue is ' '
|
$.rm node.previousSibling if node.previousSibling?.nodeValue is ' '
|
||||||
$.rm node
|
$.rm node
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user