gokibitz icon indicating copy to clipboard operation
gokibitz copied to clipboard

Auto-link URLs in place info

Open neagle opened this issue 10 years ago • 3 comments

Create some logic to deal with the ways different servers provide links for games. No reason something like this shouldn't be linked up:

2015-06-02 at 3 12 pm

neagle avatar Jun 02 '15 19:06 neagle

Can this be dealt with markdown parse? (or maybe it already is?)

sphaso avatar Jun 04 '15 15:06 sphaso

That's definitely one idea. I realize I described what I meant inadequately: I was thinking that it might be nice to transform the link more than just wrapping the URL in an anchor tag (though maybe that's adequate).

I like the idea of turning "OGS: http://online-go.com/game/2077701" into <a href="http://online-go.com/game/2077701">OGS</a>. That would essentially require some custom regexes to handle the different formats that can come from the servers we know about. What do you think?

neagle avatar Jun 04 '15 23:06 neagle

Ah ahn... I get what you mean now :) So yeah, probably markdown parse is an overkill. Can we dump some data from the DB with possible places that have a URL inside? just to get an idea.

sphaso avatar Jun 05 '15 07:06 sphaso