Skip to content

feat: custom visual divider line widgets (___ bold division, --- hairline split) in editor - #12

Merged
dariomory merged 1 commit into
masterfrom
feature/visual-divider-lines
Sep 2, 2026
Merged

feat: custom visual divider line widgets (___ bold division, --- hairline split) in editor#12
dariomory merged 1 commit into
masterfrom
feature/visual-divider-lines

Conversation

@dariomory

Copy link
Copy Markdown
Member

Summary

  • Visual Divider Distinction:
    • ___\ (triple underscore): Rendered with .cm-divider-bold\ as an impactful accent division with subtle glow.
    • ---\ (triple dash): Rendered with .cm-divider-subtle\ as a clean 1px hairline split.
    • Frontmatter delimiter protection: Opening/closing frontmatter ---\ lines are preserved and not replaced with widgets.
  • CodeMirror 6 Decorator & Cursor Reveal:
    • Custom \�isualDividers\ ViewPlugin and \DividerWidget\ in \Editor.tsx.
    • When the cursor is on the line, reveals the raw markdown text for smooth editing, and seamlessly restores the widget on blur.
  • Outline & Navigation Compatibility:
    • Dividers are treated as clean section splits and excluded from bubble outlines, metadata badges, and \Mod-a\ selection.
  • Tests: Comprehensive unit and visual decorator tests in \Editor.test.tsx\ (all tests passing, 0 build errors).

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
sudonotes-app 431fa2c Commit Preview URL

Branch Preview URL
Sep 02 2026, 12:39 AM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 2, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
sudonotes-site 431fa2c Commit Preview URL

Branch Preview URL
Sep 02 2026, 12:40 AM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 2, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
sudonotes-api 431fa2c Sep 02 2026, 12:40 AM

@dariomory
dariomory merged commit 5f466ad into master Sep 2, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant