Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rel="xyz" to text and image links #2

Open
netcarver opened this issue Oct 3, 2010 · 6 comments
Open

Add rel="xyz" to text and image links #2

netcarver opened this issue Oct 3, 2010 · 6 comments

Comments

@netcarver
Copy link
Contributor

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
Copy link
Contributor Author

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

@jdlx
Copy link

jdlx commented Jan 9, 2011

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

@netcarver
Copy link
Contributor Author

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

@polarpixel
Copy link

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.

@jdlx
Copy link

jdlx commented Jun 3, 2014

Is this feature dead?

@netcarver
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants