waylan/Python-Markdown — pull request #267 by ryneeverett (2013-11-13 20:52:59+00:00)
Title: tables and attr_list compatibility

Treats `	` as an inline element even though it's a block element. As far as I know, there's no way to have multi-line cells with the tables extension, and simply using an html `	` gets wrapped in an additional `	`, so I think there's a case for an exception. [This deficiency has practical consequences.](http://stackoverflow.com/questions/18901540/how-do-i-add-attributes-to-tables-in-python-markdown/19615075#19615075)

Example:
```
import markdown

example = """\
First Header | Second Header
------------------------------------------------------ | -------------
Content Cell{: class="foo bar" title="Some title!" } | Content Cell
Content Cell | Content Cell{: class="foo bar" title="Some title!" }
"""

output = markdown.markdown(example, extensions=['extra'])
print """-----------------------------------------------
EXAMPLE OUTPUT:
%s
-------------------------------------------------""" % output
```

Output Before:
```
-----------------------------------------------
EXAMPLE OUTPUT:

First Header
Second Header

Content Cell{: class="foo bar" title="Some title!" }
Content Cell

Content Cell
Content Cell{: class="foo bar" title="Some title!" }

-------------------------------------------------
```

Output After:
```
-----------------------------------------------
EXAMPLE OUTPUT:

First Header
Second Header

Content Cell/n
Content Cell

Content Cell
Content Cell

-------------------------------------------------
```