diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2011-01-04 19:26:21 +0100 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-01-04 15:58:42 -0400 |
commit | a17469e3882f55bee93863c6e265b96b80ec9fef (patch) | |
tree | b5b7c1b60802b07e443279d44e6aab404761fe3d /doc/todo/support_link__40__.__41___in_pagespec.mdwn | |
parent | 866486b7a3ef238596b4833745561c064e25b38a (diff) |
tag name sanitation
The use of typed links for tags and some of the consequent changes
introduced some unwanted functionality variations in the tag system. Two
problems in particular could be observed, when compared to the use of
tags in older versions of IkiWiki:
* tags in feeds (both rss and atom) would use the file path as their
name (e.g. you would have <category term="tags/sometag" /> in an atom
item for a page tagged sometag with a tagbase of tags), whereas they
appeared pure before
* tags containing a slash character would appear without the slash
character but be used with the slash character in other circumstances
(effect visible by tagging a page with a name such as "with/slash")
Both of these issues are fixed by introducing a tagname() function that
takes a tag link and effectively reverses (as well as possible) the
effects of taglink().
A possible alternative route would have been the reintroduction of the
global %tags hash, but the new approach as the (arguable) benefit of
introducing a small layer of sanitation for tag names.
Diffstat (limited to 'doc/todo/support_link__40__.__41___in_pagespec.mdwn')
0 files changed, 0 insertions, 0 deletions