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). <ul> <li>You can put HTML code right in Textile.</li> <li>It will not insert a break between elements</li> <li>or wrap it all in a p tag.</li> </ul> But it won't let you <div> This is one paragraph. This is another. </div> becomes <p><div> This is one paragraph.</p> This is another. </div> 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 <em>asd</em> blabla or indeed even <em>something<em>. 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? <div>sometext</div> is perfectly valid, too. I'll keep working on it, but if you have thoughts on the subject, please share them! Jason G.
on 2008-01-07 17:14