text.gsub!( /(.)\n(?!\Z| *([#*=]+(\s|$)|[{|]))/, "\\1<br />" )

I haven't read what that does yet but I thought I'd toss it your way.

On 10/2/06, Patrick Crowley <[EMAIL PROTECTED]> wrote:
I've looked at it, yes. But since I'm only allowing one tag and
attribute, it seemed like overkill.

Maybe I could borrow the paragraph conversion code from that.

Best,
Patrick


On Oct 2, 2006, at 3:50 pm, Michael Genereux wrote:

> Have you considered Textile to do that for you and then modify its
> output for additional adjustments?
_______________________________________________
Sdruby mailing list
[email protected]
http://lists.sdruby.com/mailman/listinfo/sdruby

_______________________________________________
Sdruby mailing list
[email protected]
http://lists.sdruby.com/mailman/listinfo/sdruby

Reply via email to