mailto:foo@example.com foo@example.com ... but that's a special case: @ with non-blank characters in front of it, like bar@ Note that links in HTML aren't allowed to nest, so @foobar is broken. It should be <a href="https://example.com/">\@foobar<a>, which should link the plain text \@foobar to https://example.com/. @ with a space after it appears to work @mdlbear okay; let's see what it does to parens: @(mdlbear)It gets some of the obvious corner cases right; I think it's just a matter of time before many of the rest get ironed out. Though it would be nice if it didn't touch @'s inside of <pre> elements. Otherwise I'm going to have to write a perl program if I want to post perl programs...
Page Summary
jtthomas - (no subject)
kaberett - (no subject) +2 responses
Active Entries
- 1: Songs for Saturday: Disaster season
- 2: Done Since 2026-01-18
- 3: Done Since 2026-01-04
- 4: Thankful Thursday
- 5: River: New Year's Day 2026
- 6: River: End-of-Year Summary, maybe, 2025
- 7: River: Done With 2025
- 8: "Rabbit rabbit rabbit!"
- 9: Thankful Thursday (Special Newtonmas edition)
- 10: Done Since 2025-12-14
Expand Cut Tags
No cut tags
Links
Style Credit
- Style: Green for EasyRead by
Page generated 2026-02-04 01:18 am
Powered by Dreamwidth Studios
no subject
Date: 2019-07-09 02:52 am (UTC)no subject
Date: 2019-07-09 07:57 am (UTC)no subject
Date: 2019-07-09 02:34 pm (UTC)Regular expressions are hard to get right. I recently ran across a site that turned "so..." into a link -- obviously using * where they should have used +.
"I know! I'll solve this problem with a regular expression!"
"Now you have two problems."
Hmm. What about a checkbox that flips the meaning of backslash escapes -- if checked, an unescaped @ would stay untouched, and an escaped one would be linked to a user? Then just set the flag on every post earlier than last month.
no subject
Date: 2019-07-09 04:41 pm (UTC)Before
_mentions and After
_mentions is indeed roughly the implementation people are hashing out, yep!