redcloth issue

F

Florian Weber

hi!

require "redcloth"

textile = "* foo
* foo
* foo

<a href='http://www.foo.com'>http://www.foo.com</a>"

puts RedCloth.new(textile).to_html

why is the foo.com link in the last list item when i redcloth
transforms textile?

the problem only appears if there are only whitespaces
before the link..

is this a bug or am i doing something wrong?

thanks!

ciao!
florian
 
L

Lennon Day-Reynolds

I think this is by design -- you can have multiple lines in a list
item, so long as they are all indented as much as the initial one.

Is your editor inserting spaces on the blank line between the list and the link?
 

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

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top