From: mario r. <ma...@ru...> - 2006-08-28 15:41:07
|
Ah, thanks. I see it is not assigned to anybody yet, so a fix is no likely to happen anytime soom. I do not promise to look at the code for a possible fix, but I will if I get some time. Is there any way to imply a div without actually writing out the div? Another thought, although not quite related to this -- is there (or could there be) some way, to pass a class attr value to elements generated by the markdown processor? E.g. What come to mind is to always precede the "decorated" element with the class name, something like: Paragraphs: @note This is the paragraph text... Lists: @myliststyle - one - two Links and imgs: @mylinkstyle[link text](url) @myimgstyle mario On Aug 28, 2006, at 4:16 PM, Waylan Limberg wrote: > This is a known bug. See the related bug reports: > > http://sourceforge.net/tracker/index.php? > func=detail&aid=1458140&group_id=153041&atid=790198 > http://sourceforge.net/tracker/index.php? > func=detail&aid=1458139&group_id=153041&atid=790198 > > My comments on the second link above best show what is causing the > problem. Unfortunetly, I have no concrete ideas for a fix. > > On 8/28/06, mario ruggier <ma...@ru...> wrote: >> Hello, >> >> I am trying to wrap sections of content into blocks, such that I can >> CSS each block liberally. So, in practice I expected that the HTML in >> the following sample will give me what I want: >> >> <div class="one"> >> >> a para >> >> another para >> >> </div><div class="two"> >> >> a para two >> >> another para >> >> </div> >> >> However, the div tags get wrapped in <p> elements. It seems that the >> parser does not keep track of when an inlined block level element is >> closed, at least not beyond the first blank line encountered. If, by >> first blank line, it is not closed, then it treats it just like >> paragraph text and wraps a <p> around it. Is this correct? >> >> Can I specify in some way to not touch "free-floating" html bits, >> whether the parser thinks they are well-formed or not? >> >> Any ideas how to achieve something like the above with the current >> version? >> >> Thanks for any hints... >> >> mario >> >> >> ---------------------------------------------------------------------- >> --- >> Using Tomcat but need to do more? Need to support web services, >> security? >> Get stuff done quickly with pre-integrated technology to make your >> job easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache >> Geronimo >> http://sel.as-us.falkag.net/sel? >> cmd=lnk&kid=120709&bid=263057&dat=121642 >> _______________________________________________ >> Python-markdown-discuss mailing list >> Pyt...@li... >> https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss >> > > > -- > ---- > Waylan Limberg > wa...@gm... |