feat: implement underline functionality to markdown editor#7626
feat: implement underline functionality to markdown editor#7626penglezos wants to merge 2 commits intodecaporg:mainfrom
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. |
|
@penglezos will you abandon the PR or proceed with addressing the comments? I don't mean to press you, just wondering what to do with this PR. |
|
Let's focus on Platejs migration instead. |
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