feat(ui): add native github-flavored markdown tables with typography styling#330
Merged
jordan-dalby merged 1 commit intojordan-dalby:mainfrom Mar 8, 2026
Merged
Conversation
Owner
|
Very nice! Would you mind rebasing this branch with the current version of main, I merged your other PR separately. Thanks! :) |
ebea5dd to
c75d7eb
Compare
Contributor
Author
|
All set! I've rebased the branch with the current main as requested. Let me know if you need anything else. @jordan-dalby |
Owner
Hi! I think you kept the wrong commit, this commit is from the previous PR. |
c75d7eb to
bfd3f50
Compare
Contributor
Author
|
You're right, thanks for catching that. I've removed the unrelated commit and updated the PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR significantly enhances the Markdown rendering capabilities of ByteStash by introducing native support for GitHub-Flavored Markdown (GFM) tables and fixing layout breaking issues caused by plain text/ASCII tables.
Changes Made
remark-gfminto the React MarkdownRenderer component allowing standard Markdown tables to be parsed into actual HTML table elements.@tailwindcss/typographyplugin to the Tailwind configuration. This automatically applies beautiful, cohesive styles (borders, alternating rows, paddings) to the newly rendered Markdown tables through the.proseclass wrapper.word-break: break-allbehavior from FullCodeBlock and PreviewCodeBlock. Replaced it with native horizontal scrolling (overflow-x: auto), which prevents long lines of code, logs, and wide ASCII text-tables from breaking their structural shape when reaching the container's edge.Testing Instructions
| Header | Header |) and save.Type of Change