-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Add markdown code block wrap toggle #35529
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
base: main
Are you sure you want to change the base?
Conversation
| const wrapBtn = makeCodeBlockButton('code-wrap', 'material-wrap-text'); | ||
| const wrap = getMarkupCodeWrap(); | ||
| wrapBtn.setAttribute('data-active', String(wrap)); | ||
| updateWrap(container, wrap); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This causes a flicker on page load, but I think it's okay for now. Moving the initial classes to backend will be more work and I don't know how to use the backend user setting storage.
|
I plan to do 2 more improvements:
|
|
Octicons now has this icon available with primer/octicons#1134 and in turn #35978. |
Fixes: #35314