Skip to content
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

MdPreview not parsing tables #85

Open
kuhlaid opened this issue Oct 1, 2024 · 4 comments
Open

MdPreview not parsing tables #85

kuhlaid opened this issue Oct 1, 2024 · 4 comments

Comments

@kuhlaid
Copy link

kuhlaid commented Oct 1, 2024

I have a markdown file containing tables, but the MdPreview previewer is not parsing them. It would be ideal if the MdPreview parsed the markdown tables to prevent my repository users from thinking I formatted the document poorly. Below is a screenshot of the markdown preview in the Dataverse (https://dataverse.harvard.edu @ v. 6.3 build 8c99a74+10614+10720+10808+10797+10820-iqss)

image

Below is the markdown copied directly from the markdown file representing the screenshot above:

### General statistics



#### E03GENDER



|    | category   |   counts |
|---:|:-----------|---------:|
|  0 | Female     |      587 |
|  1 | Male       |      294 |



#### E03PASKR



|    | category    |   counts |
|---:|:------------|---------:|
|  0 | None        |      399 |
|  1 | Mild        |      196 |
|  2 | Moderate    |      181 |
|  3 | Severe      |      103 |
|  4 | No response |        2 |
@pdurbin
Copy link
Member

pdurbin commented Oct 1, 2024

Hmm, @ErykKul has an open PR for this:

@ErykKul
Copy link

ErykKul commented Oct 2, 2024

The mentioned PR makes tables look like the one on the bottom of the page (not perfect, it could use some css fixes, but better than what it is now):

image

@kuhlaid
Copy link
Author

kuhlaid commented Oct 23, 2024

Would ya'll consider using a Markdown previewer such as https://github.com/jbt/markdown-editor? Just the preview code not the 'editor' part. This would create a Markdown preview similar to the GitHub previewer that has spoiled most of us.

@pdurbin
Copy link
Member

pdurbin commented Oct 23, 2024

Mmm, GitHub flavored 😋

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants