From: glin <gl...@se...> - 2008-05-02 08:11:12
|
Hi, on your wiki you have extension mdx_tables (http://www.freewisdom.org/projects/python-markdown/mdx_tables). When I use some inline mark (like *something*, link etc.) in table cell, the cell content renders in reverse order. And I can use only one inline mark (others are not taken in account). IMHO this extension shouldn't use _handleInline method, but _handleInlineWrapper2. I went through the source code of markdown and it appears, that _handleInline is only some 'private' function used by _handleInlineWrapper2 - so _handleInline applies only one pattern and returns chunks in reverse order, which is completely wrong and will do mess when you use any inline pattern in table. So I think, that you should replace: for n in self.md._handleInline(t): if(type(n) == unicode): td.appendChild(doc.createTextNode(n)) else: td.appendChild(n) with: for item in self.md._handleInlineWrapper2(t) : td.appendChild(item) I don't have permission to wiki so I cannot write it there, so I'm sending this email to mailinglist. Glin |