fix: improve word breaking for code blocks in markdown#2636
fix: improve word breaking for code blocks in markdown#2636sy-records merged 2 commits intodocsifyjs:developfrom
Conversation
|
@sy-records is attempting to deploy a commit to the Docsify Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Pull request overview
This PR addresses issue #2635 by adding word-break: break-word to inline code blocks and samp elements to improve text wrapping behavior in markdown content, preventing overflow issues with long unbroken text in code elements.
Key changes:
- Added
word-break: break-wordCSS property tocodeandsampelements in markdown styling
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
Thanks very much @sy-records ! I've made a sandbox to test with issue codeblock and additional examples: Things look good, but there does not seem to be a deployment with the most recent changes for me to Approve? |
|
I've reapproved it. Not sure why Vercel suddenly requires approval to build. |
paulhibbitts
left a comment
There was a problem hiding this comment.
Thanks for the updated deployment @sy-records . I re-tested the new build in codesandbox on desktop and mobile and all looks good:
https://sd3x9g.csb.app/#/
|
What exactly does this do? Can you post before/after shots? |


Summary
Related issue, if any:
Fix #2635
What kind of change does this PR introduce?
For any code change,
Does this PR introduce a breaking change?
Tested in the following browsers: