php-textile
php-textile copied to clipboard
Add rel="xyz" to text and image links
Textile lacks the ability to specify rel attributes on links and images. Would be nice if we could explicitly set these attributes to allow easier triggering of effects like lightbox or simply to do rel="nofollow".
You can test this proposed feature by downloading from the feature-rel-attributes branch at https://github.com/netcarver/textile/tree/feature-rel-attributes
For testing only : do not install this on live sites
Since you're using curly braces: i assume inline CSS before the linktext will still do, like so:
"(class/id){inlinecss}LINKTEXT(title){rel}":http://example.org
right? (nice shorthand btw: ! = nofollow .. me like;-)
cheers, Jan
Jan,
yes. This goes in... "(class#id)[en-gb]{text-transform:uppercase}Try this link(Link title){!}":http://textile.sitemonks.com
...and this comes out...
Taken straight from the output of the tests cases.
Remember -- don't rely on this format yet, it might not make it to the master branch unchanged.
Steve
Hi, this issue is quite old, but it seems that there is still no support of rel-attribute. Is there a chance to get this feature?
Cheers, Peter.
Is this feature dead?
The only way of injecting rel-attributes in currently is to either run in restricted mode (in which case all links will automatically be no-follow) or to call setLinkRelationShip before parsing your document. Once again though, this is a global and you won't be able to specify attributes at an individual link level.
I don't currently have any time I can put into textile.