Skip to content

Render tables in Markdown code outputs #322

@updiversity

Description

@updiversity

Describe the bug

While the table is properly displayed in Jupyter, but as well when using nbsphinx, it is not displayed properly when using myst-nb. Actually in this case, it shows simply the input string.

Please note the option myst_commonmark_only=True was set.

To Reproduce

from IPython.display import display, Markdown
display(Markdown(
    '| name                       | description   | formula   |\n|:---------------------------|:--------------|:-------|\n| blablabla              | blablabla     | $\hat p - p$      |\n| badaboum | badaboum      | $\hat p - p$      |'
))

Expected behavior

by using myst-nb sphinx plugin, the table should be properly exported and the mathjax formulas should be properly displayed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions