Textilize and Markdown and URLs

R

Robert C. Mannl

Hi!


I'm stumped, maybe someone can explain this to me:

Neither Textilize nor Markdown seem to turn plain old URLs into links.

That is, I can use their proprietary Syntax to create a link, e.g.:
"Google":http://google.com, but I can't just write http://google.com.
That'll stay unlinked text.


Any ideas why that is? This must have been a deliberate choice, but
why it is, I can't figure out.


I'll probably just code a wrapper function that parses the URLs after
markdown did it's thing.



Thanks,

Rob
 
R

Robert C. Mannl

I'm actually using Rails. I just asked this here because I thought
the maintainers of those two libraries might be frequenting this ML.

I really just wondered why both RedCloth and BlueCloth don't do that
(turn urls into links). If anyone knows, I'm still interested to hear
why that is.


But I'm using markdown(auto_link(text)) now, so problem solved :)
Thanks for the tip Mr Long :)


Rob
 
G

Gabe Boyer

------=_Part_6183_26810748.1138398039841
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

As far as I know, neither Textile nor Markdown specify automatically turnin=
g
any URL into a link; they both require some kind of syntax to produce links=
 
D

Donkey Agony

Robert said:
Neither Textilize nor Markdown seem to turn plain old URLs into links.

That is, I can use their proprietary Syntax to create a link, e.g.:
"Google":http://google.com, but I can't just write http://google.com.
That'll stay unlinked text.

Don't know about Textile, but Markdown understands the "angle-bracket
convention" of writing URLs in emails, i.e. http://google.com will give
you an html `<a href=...`. Leaving out the angle-brackets leaves it as
a naked URL.
 
D

Donkey Agony

Don't know about Textile, but Markdown understands the "angle-bracket
convention" of writing URLs in emails, i.e. http://google.com will
give you an html `<a href=...`. Leaving out the angle-brackets
leaves it as a naked URL.

Aghh, newsreaders. That link above was typed in as
[angle-bracket]http://google.com[/angle-bracket], but this brain-dead
newsreader thought it knew better what I wanted and changed it.

How about

< http://google.com >

(but remove the spaces before and after the URL).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
474,142
Messages
2,570,818
Members
47,362
Latest member
eitamoro

Latest Threads

Top