Code Block Behavior Enhancements
<code> within <pre> doesn’t wrap that I’m aware of.
A white-space: pre-wrap; declaration could work as a basic fix (that’s what I’m currently injecting) or see what options are available if we want to support proper indentation and such.
Ideal world it would work like Notion’s editor where a user can choose whether they want their code to wrap or not.
Other
Syntax support is a nice-to-have but not necessary.
A copy button is a nice-to-have from a UX standpoint.
Log in to comment and vote
No comments yet
Be the first to share your thoughts.