https://github.com/steffan153/rehype-break-links
Adds <wbr> to links where the content is equal to the href of the link, to allow the link to break in more places.
https://github.com/steffan153/rehype-break-links
Last synced: about 1 month ago
JSON representation
Adds <wbr> to links where the content is equal to the href of the link, to allow the link to break in more places.
- Host: GitHub
- URL: https://github.com/steffan153/rehype-break-links
- Owner: Steffan153
- Created: 2023-10-03T21:29:52.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-01T18:57:07.000Z (over 1 year ago)
- Last Synced: 2023-11-02T19:00:32.203Z (over 1 year ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rehype-break-links
This package is a unified (rehype) plugin to use better line breaks for long URLs. Specifically, it applies to `a` tags where the content is the same as its `href`. See https://css-tricks.com/better-line-breaks-for-long-urls/