20/01/2018

The archive contains older posts which may no longer reflect my current views.

# Sometimes I feel quite clever only for it to be demonstrated how I might have been overthinking things.

Smokey recently produced a function to automatically convert @-mentions to clickable links for micro.blog users.

His regex pattern is simple and works.

He takes a different approach to my hashtag linking function in that his is applied pre save thus changing the actual post content, whereas mine only impacts the output when viewed.

It's crazy how performing the same action at two different times (save vs display) requires such a difference in complexity of solution.

Note: his pattern doesn't work at display time.

I'm sticking to my method as I've only ever wanted the hashtags to be a feature when viewing the blog itself rather than when distributed via RSS, but it's been a good lesson.

9 comments: click to read or leave your own Comments

# Dameon wanted a little more detail about setting up the hashtag function so I have updated my original hashtags repository on GitHub.

3 comments: click to read or leave your own Comments