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

Is it possible to add hyperlinks on cells ? #21

Open
freed0nn opened this issue Aug 16, 2017 · 2 comments
Open

Is it possible to add hyperlinks on cells ? #21

freed0nn opened this issue Aug 16, 2017 · 2 comments

Comments

@freed0nn
Copy link

freed0nn commented Aug 16, 2017

For example,there is a csv file :

link,title,description,date
http://github.com/1,title1,1,20170815
http://github.com/2,title2,2,20170815
http://github.com/3,title3,3,20170815
http://github.com/4,title4,4,20170814

output should like this:

title description date
title1 1 20170815
title2 2 20170815
title3 3 20170815
title4 4 20170814
@vividvilla
Copy link
Owner

Seems bit complicated since there can be any number of such fields in CSV. One simple implementation will be to mark certain row as a link and while rendering it shows as link with generic text like link. I will add this as a feature request for now.

@porteusconf
Copy link

I don't see what is complicated. I think as a first draft have the rederer find text starting with "http" then wrap it in <a href=" prefix and ">link</a> suffix? Seems to me this would work for cells that contain just a URL. (Of course, rare edge cases, like a quote (") in the URL would likely break it.)

BTW, When I edit the csv file and wrap the URL, github refuses to render the csv, saying:

"We can make this file beautiful and searchable if this error is corrected: Illegal quoting in line ..."

(BTW, the beautiful-and-searchable link does not mention anything about "quoting", illegal or not!)

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