-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code-generated Markdown tables do not render correctly #4
Comments
If you copy-paste the generated markdown in for one of the tables, does it render correctly? Is it possible that we're not generating the correct markdown? |
If I copy the |
Can we render to RST or HTML? |
I was planning to try HTML. Hadn't thought of trying RST. |
I think one reasonable solution might be to use pandas Styling, like here. We'll need to figure out the optimal formatting for our tables though... |
One idea of @effigies' that seems to work is display(HTML(markdown(table.to_markdown(), extensions=['tables']))) The thing I'm stuck on now is including glossary links in the table. For example, having the string |
Here's a nuts idea: display(Markdown(markdown(table.to_markdown(), extensions=['tables']))) Probably won't work since the outer markdown will interpret the HTML as hands-off... |
Just tried it out, and the result was the same as the |
I don't know the |
I tried writing a function that would replace Even having EDIT: I've opened #8 about this problem.
This didn't work. |
It looks like we can use |
This is a known issue in MyST-NB. I want to figure out a workaround.
The text was updated successfully, but these errors were encountered: