From johan at johansorensen.com Fri Jan 4 09:30:57 2008 From: johan at johansorensen.com (=?ISO-8859-1?Q?Johan_S=F8rensen?=) Date: Fri, 4 Jan 2008 15:30:57 +0100 Subject: entities and spacing: (em|en)dash and arrow Message-ID: <9e0f31700801040630l68e0eae7i61e3397d44d7cc1f@mail.gmail.com> Hello, I notice that these entities are defined like this: def emdash opts "—" end def endash opts "–" end def arrow opts "→" end However, any space from the original markup is stripped, so "hello -- world" becomes "hello—world". I've overridden the methods to deal with this: def emdash opts " — " end def endash opts " – " end def arrow opts " → " end however, I'm not sure if this is the responsibility of the scanner after all, for these three? JS -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/redcloth-upwards/attachments/20080104/a6f4fe63/attachment.html From jg at jasongarber.com Mon Jan 7 10:02:36 2008 From: jg at jasongarber.com (Jason Garber) Date: Mon, 7 Jan 2008 10:02:36 -0500 Subject: HTML handling in SuperRedCloth Message-ID: <8A76B2E7-DA41-4557-B22E-2CFD221CCB50@jasongarber.com> I'm having all kinds of fun trying to get HTML to work "properly" in SRC (mild sarcasm). I'm still working on the problem, but wanted to run it by the group. Currently, Textile2 lets you put in HTML as long as it's in the same block (i.e. no double-returns). But it won't let you
This is one paragraph. This is another.
becomes

This is one paragraph.

This is another.
I think SRC should support this (I see it as pretty essential to the proper working of my CMS), but it's turning out to be a tough pattern to code! I had something I thought was working pretty well, but then Johan S?rensen pointed out a problem if you have something like asd blabla or indeed even something. SRC needs to be smart enough to know that EM tags need to be within P tags, but not to wrap LI tags in P tags. And do things in DIV tags always need to be in Ps?
sometext
is perfectly valid, too. I'll keep working on it, but if you have thoughts on the subject, please share them! Jason Garber -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/redcloth-upwards/attachments/20080107/746a4aa8/attachment-0001.html From nickretallack at gmail.com Fri Jan 18 17:36:45 2008 From: nickretallack at gmail.com (Nicholas Retallack) Date: Fri, 18 Jan 2008 14:36:45 -0800 Subject: A Simple Idea Message-ID: <66e809970801181436j31ec7332n66d68a2b9d48a772@mail.gmail.com> I had an idea to make the output of textile more meaningful and style-able, by adding automatic divs. I've made an example of what it would do: http://nickretallack.ao.net/projects/redclothplus/ View Source on the RedClothPlus page to see what I'm aiming for, and try out the various stylesheets to see some ideas of uses for this. Of course, there are a lot of other things you could do with this extra section/id/class information. Who likes this idea? Could I get some advice as to what stage in the program to add these rules? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/redcloth-upwards/attachments/20080118/3a4cd90b/attachment.html