On Wed, 2 Jan 2019 at 23:28, <
rand...@gmail.com> wrote:
>
> Hi,
>
> I don't think the above code works anymore and my markdown tables look terrible. I've used the following settings in conf.py
>
> MARKDOWN_EXTENSIONS = ['markdown.extensions.fenced_code', 'markdown.extensions.codehilite', 'markdown.extensions.extra','markdown.extensions.meta','markdown.extensions.tables']
>
> but it doesn't work. Please help!
>
> Thanks,
What do you mean by “terrible”? Using the example in the original
post, I get a properly formatted table with bold headers. If you want
it to look more like a table, you’d need to add a class.
Python-Markdown does not support this:
https://github.com/Python-Markdown/markdown/issues/312
A workaround that makes it look slightly better, although only due to
the way CSS is defined in Bootstrap, would be this:
<div class="table" markdown=1>
| state | population | economy |
|:------------|:--------------|:------------|
| Cordoba | 341 | 189 |
| Santa Fe | 628 | 313 |
| San Luis | 4669 | 6 |
</div>
PS. The `tables` extension is unnecessary if you have `extra` enabled.
--
Chris Warrick <
https://chriswarrick.com/>
PGP: 5EAAEA16