Skip to content

[Snippet] Add support to csv file, and auto convert to markdown table #2273

Answered by facelessuser
copdips asked this question in Q&A
Discussion options

You must be logged in to vote

You still aren't giving me the root cause. Table sorting in Material is being done by a JS library once loading into the browser. So the JS library expects something in order to "prettify" the table. So that leads me to believe the output of df.to_html is different than what the Markdown table is rendered as. So my question is, what is the difference?

Basically, you haven't properly debugged the why. The why is everything in understanding the issue. Alternatively, you can have panda output the Markdown and just run it through Python Markdown with the tables extension and then return the HTML that way.


  1. Look at Material's docs on sorting: https://squidfunk.github.io/mkdocs-material/refere…

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@copdips
Comment options

@facelessuser
Comment options

@copdips
Comment options

@facelessuser
Comment options

Answer selected by copdips
@copdips
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
T: feature Feature. S: triage Issue needs triage.
2 participants
Converted from issue

This discussion was converted from issue #2272 on December 15, 2023 01:01.