-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Markdown: Enable wrapping in code blocks and a color tweak #13894
Conversation
silverwind
commented
Dec 7, 2020
- Enable wrapping of long lines in code blocks like already done in code view.
- Slightly lighten the background of code blocks on default theme.
- Darken the background on inline code and kbd elements on arc-green.
- Enable wrapping of long lines in code blocks like already done in code view. - Slightly lighten the background of code blocks on default theme - Darken the background on inline code and kbd elements on arc-green
@silverwind can we somehow indicate if it's an auto linebreak? so you can see the difference between
and
|
Hmm, I don't think it's possible to interact with forced linebreaks in CSS. Would probably be even hard to do in JS. How would you want indicate it? Icon on the end of the line? |
not a bad idear - but if it will create thousand of js/css lines then forgett it |
I don't think that's possible to add something like that |
Yeah, not easily possible. If we were to split each line into a |
@silverwind thanks for the info :) |
For reference, something like https://github.com/xdamman/js-line-wrap-detector might be of use but it's a rather flimsy thing to do in JS and I'd certainly expect it to break on edge cases. |