tantek / cassis

CASSIS is universal javascript/PHP that works on the client and the server for scalable application logic.
http://cassisjs.org/
128 stars 11 forks source link

auto_link should not link domain name in permashortcitation #29

Open aaronpk opened 7 years ago

aaronpk commented 7 years ago

Currently the autolinker will match the domain name in a permashortcitation, turning

Hello world (ttk.me 123)

into

Hello world (<a href="http://ttk.me">ttk.me</a> 123)

Since permashortcitations are explicitly not supposed to be linked, the domain should also not be linked.

tantek commented 7 years ago

This seems like a reasonable request. Perhaps I'll not autolink a domain if it is preceded by '(' and suffixed with ' '. I think that will precisely catch those cases.