|
From: Yuri T. <qar...@gm...> - 2006-12-04 18:13:04
|
Yes, this is a known bug. Basically, nested tags don't work properly. This cannot be fixed in any easy way, because it has to do with the combination of using regular expression and a dom tree to represent half-processed text. Basically, once you convert a piece of text into a dom tree you can't runregular expressions over it. I've been toying with an idea of writing a hybrid tree/string structure that would support a subset of RE, but haven't gotten around to it. Myself, I find nested markdown tags largely unnecessary, since once you get there, using actual HTML tags makes it more readable. HTML tags do nest properly, your original example could be marked up as <b>(for all my *cookies*, I love)</b>, i.e. leaving MD inside by using HTML for the outside tag. - yuri On 12/4/06, Moritz Angermann <mor...@gm...> wrote: > yes that's what I guessed... > > Additionally I found that > > __\_\_init\ _\_.py__ does not work. > > There seem to be quite a few bugs once you get at the nested level :( > > I remember I had sleepless nightes when I did the xslt markdown parser ..= . > > Eventually I'll take a look at the code and maybe fix it... > > thanks, > kindest regards, > Moritz Angermann > > On 12/4/06, Waylan Limberg <wa...@gm...> wrote: > > I would consider this a known bug, although that specific example > > doesn't fall under some of the already filed bugs exactly. > > > > From my study of the code (some time ago) I seem to recall that when > > inline markup is found (strong in your case) the text wrapped inside > > is not processed further. I would suppose it should be just for cases > > like this and a few other bugs that have been filed. I suggest you > > file a bug report. > > https://sourceforge.net/tracker/?func=3Dbrowse&group_id=3D153041&atid= =3D790198 > > > > On 12/4/06, Moritz Angermann <mor...@gm...> wrote: > > > Hi all, > > > > > > I'm having trouble to get something like > > > > > > __(for all my *cookies*, I love)__ to be formated correctly into > > > <p><strong>(for all my <em>cookies</em>, I love)</strong></p> > > > > > > This is what I get > > > >>> markdown('__(for all my *cookies*, I love)__') > > > '\n<p><strong>(for all my *cookies*, I love)</strong>\n</p>\n\n\n' > > > > > > > > > I guess I'm just missing a switch or someting. I'd be really glad to > > > be enlightened ;) > > > > > > kindest regards, > > > Moritz Angermann > > > > > > -- > > > --------------- One Fish, Two Fish, Blowfish, Blue Fish -------------= --- > > > Moritz Angermann \ moritz.angermann\gmail.com > > > Barerstra=DFe 35 \ M:+49 (0) 176 24 81 59 42 / H:+49 (0) 89 12 13 83 = 56 > > > 80799 Munich \ http://www.lunatic-bumblebee.com > > > ---------------------------------------------------------------------= ---- > > > Take Surveys. Earn Cash. Influence the Future of IT > > > Join SourceForge.net's Techsay panel and you'll get the chance to sha= re your > > > opinions on IT & business topics through brief surveys - and earn cas= h > > > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CI= D=3DDEVDEV > > > _______________________________________________ > > > Python-markdown-discuss mailing list > > > Pyt...@li... > > > https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss > > > > > > > > > -- > > ---- > > Waylan Limberg > > wa...@gm... > > > > > -- > --------------- One Fish, Two Fish, Blowfish, Blue Fish ---------------- > Moritz Angermann \ moritz.angermann\gmail.com > Barerstra=DFe 35 \ M:+49 (0) 176 24 81 59 42 / H:+49 (0) 89 12 13 83 56 > 80799 Munich \ http://www.lunatic-bumblebee.com > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share y= our > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > Python-markdown-discuss mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss > --=20 http://www.freewisdom.org/ |