Skip to content

demo: toolbar mode toggles and a richer sample document - #104

Merged
Nicolas-Py merged 3 commits into
feat/custom-task-checkbox-symbolsfrom
upgrade-demo-project
Jul 20, 2026
Merged

Nicolas-Py merged 3 commits into
feat/custom-task-checkbox-symbolsfrom
upgrade-demo-project

Conversation

@Nicolas-Py

@Nicolas-Py Nicolas-Py commented Jul 20, 2026 •

Copy link
Copy Markdown
Member

Summary

Stacked on #103; merges into that branch.

The demo now covers more of the engine's surface:

  • Toolbar buttons flip engine modes at runtime: read-only, raw markdown source, and a centered reading column. The scroll-away-header controls are consolidated into a single Header menu
  • Empty documents show a placeholder
  • New "Blockquotes & lists" sample section: blockquote styling, nested bullets, ordered-list renumbering
  • The sample tables compare Der Zauberberg, The Master and Margarita, and The Picture of Dorian Gray: famous long opening lines show cell wrapping, and a seven-column comparison shows the horizontal-scroll breakout for wide tables

🤖 Generated with Claude Code

Nicolas-Py and others added 2 commits July 20, 2026 14:09
Three engine modes become toolbar toggles: isEditable, rawSourceMode,
and readingWidth (620pt centered column). readingWidth is only read at
makeNSView time, so the reading-column toggle recreates the editor via
.id(). The two scroll-away-header toggles fold into a Header menu, and
the editor gains a styled placeholder for the emptied document.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…tables

New Blockquotes & lists section (nesting, renumbering), and the table
demo swaps the placeholder German cost tables for literature
comparisons (Der Zauberberg, The Master and Margarita, The Picture of
Dorian Gray) — long opening lines exercise cell wrapping, hyphenated
scholarly terms keep the many-column table wide enough to scroll.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Nicolas-Py

Copy link
Copy Markdown
Member Author

@luca-chen198, pls have a look. While working on "custom" checkboxes i reworked the demo project a bit. If your fine with this i will merge this into my other PR (#103)

@luca-chen198 luca-chen198 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Nicolas-Py
Nicolas-Py merged commit 894de73 into feat/custom-task-checkbox-symbols Jul 20, 2026
1 check passed
@xandaaaa
xandaaaa deleted the upgrade-demo-project branch July 22, 2026 09:59
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.

2 participants