Hash Tags Extension v1.2 – Supports Multi-Word Tags
I’ve been reading up on some #regular_expressions and managed to get the Hash Tags extension working with multi-word tags, and here it is in version 1.1 1.2.
The input method is the same as before (put a hash “#” in front of the tag), but for multi-word tags such as “hash tags”, you must replace the space “ ” with an underscore character “_”, as shown: \#hash_tags. This will give a link to the “hash tags” posts page.
Something that’s just popped up while writing this post… an escape sequence! I can’t write an example for hash tag linking if it just turns into one! Bear with me…
…there we go. The escape character is, as usual, a backslash “\”. Putting a backslash in front of the hash tag will escape it, like so: \\\#hash_tags. I suppose this would count as v1.2 then really?
Also note that, just as before, the hash tag will only become a link if said tag exists in your blog somewhere.
Download link: HashTags.zip (1.40 kb)
Comments