Remove (embed) links from quotes.

This commit is contained in:
ccd0 2014-12-06 02:35:02 -08:00
parent 666276dd34
commit 84211ce91e

View File

@ -233,6 +233,9 @@ 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 $$ '.embedder', frag
$.rm node.previousSibling if node.previousSibling?.nodeValue is ' '
$.rm node
text += ">#{frag.textContent.trim()}\n"
QR.open()