sivan / heti

赫蹏(hètí)是专为中文内容展示设计的排版样式增强。它基于通行的中文排版规范而来,可以为网站的读者带来更好的文章阅读体验。
https://sivan.github.io/heti/
MIT License
5.93k stars 251 forks source link

Non-character behaviour for styled quote #43

Closed tabokie closed 3 years ago

tabokie commented 3 years ago

<q></q> effectively inserts 「」 or "" around a quote, depending on the context, but the inserted symbol can't be selected or copied like normal characters. Is this an expected behaviour?

Reproduce screenshot: image image

sivan commented 3 years ago

@tabokie yes, because <q></q> inserts quotation marks by pseudo-elements, which are not present in the DOM. So they are not selectable.

tabokie commented 3 years ago

Thanks for the reply. I strongly suggest considering resolving this issue in future improvements, I personally found it unpleasant and causing problem when copying large chunks of text.