php-textile icon indicating copy to clipboard operation
php-textile copied to clipboard

Add rel="xyz" to text and image links

Open netcarver opened this issue 14 years ago • 6 comments

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".

netcarver avatar Oct 03 '10 21:10 netcarver

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

netcarver avatar Jan 09 '11 04:01 netcarver

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

jdlx avatar Jan 09 '11 05:01 jdlx

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...

Try this link

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

netcarver avatar Jan 09 '11 05:01 netcarver

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.

polarpixel avatar Feb 21 '14 11:02 polarpixel

Is this feature dead?

jdlx avatar Jun 03 '14 12:06 jdlx

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.

netcarver avatar Jun 04 '14 21:06 netcarver