-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
feat: implement underline functionality to markdown editor #7626
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
|
@penglezos, why is it called |
Hey Martin, thanks for the feedback! Just to clarify, the first PR I opened was for underline, which applies inline text decoration. The second commit that I pushed is a separate feature that inserts a divider (currently named horizontal-line). You're right that the name could be clearer. I think its better to rename it to horizontal-rule to better reflect its semantic meaning. That should avoid any confusion between actual text underlines and dividers. |
|
Ah, I get it now. Horizontal rule is better, yes. @demshy will review this PR then, he is the master of the editor. |
Done. Renamed |
|
Thanks @penglezos. I noticed you added |
|
I have two considerations about this, now that I have all the icons enabled in the editor:
|
|
I agree with moving HR to components. Let's not invest in a second level, because a new editor is coming up. I propose making all icons a little smaller, so that they still look okay on smaller screens. |
|
@demshy and @martinjagodic thanks for your feedback! I think we can abandon this PR in favor of the new editor and focus our efforts on contributing to that instead. It doesn’t make much sense to keep refining the current Markdown editor since it’ll be replaced soon. #7162 If you need any help with the new editor, just let me know! |
|
@penglezos, the new editor is not coming to production immediately. And when it does, it will exist alongside the old editor for backward compatibility. So this feature could still be useful for many users. |
Summary
This PR addresses the missing underline formatting option in the markdown editor's visual toolbar. While underline functionality was already available via keyboard shortcut (Ctrl+U), there was no visual button for users who prefer mouse interactions or are unaware of the hotkey.
Test plan
npm run startPreview
underline.mov
Checklist