feat(apollo-react): add markdown formatting utilities for sticky notes (1/3) [MST-7636]#427
Open
david-rios-uipath wants to merge 1 commit intomainfrom
Open
feat(apollo-react): add markdown formatting utilities for sticky notes (1/3) [MST-7636]#427david-rios-uipath wants to merge 1 commit intomainfrom
david-rios-uipath wants to merge 1 commit intomainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Dependency License Review
License distribution
Excluded packages
|
Contributor
Author
Current Stack
|
5 tasks
ca92f6e to
15037a1
Compare
5 tasks
Add pure utility functions for inline markdown formatting and list management, extracted into a markdown-formatting/ module. - toggleBold/toggleItalic/toggleStrikethrough with smart unwrap - toggleBulletList/toggleNumberedList with prefix-aware toggling - continueListOnEnter with auto-increment and empty-item exit - detectActiveFormats for cursor-position-aware format detection - List-aware inline formatting that protects bullet/number prefixes Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
15037a1 to
870f3d6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
NOTE: this PR is focused on the formatting/interaction logic that's consumed by the sticky note markdown toolbar in the top PR.
Adds markdown editor logic to support bold, italic, strikethrough, bullet lists, and numbered lists.
Final UI (both PRs):

2026-03-30.17.37.18.mp4
Changes
***combined***markers in toolbar state-andN.prefixes from being wrappedFlow
flowchart TD A[User action: click toolbar / keyboard shortcut] --> B{Has selection?} B -->|No| C{Cursor inside formatted region?} C -->|Yes| D[Remove surrounding markers] C -->|No| E{On list line?} E -->|Yes| F[Wrap line content after prefix] E -->|No| G[Insert empty markers at cursor] B -->|Yes| H{Multi-line with list items?} H -->|Yes| I[Apply formatting per-line, protect prefixes] H -->|No| J[Wrap/unwrap selection] D --> K[Update activeFormats + set cursor via rAF] F --> K G --> K I --> K J --> KTesting
pnpm run testpasses (67 suites, 1344 tests)pnpm run typecheckpassespnpm run lintpasses