Skip to content

feat: add formatting marks toggle (SD-2939)#3147

Merged
caio-pizzol merged 13 commits intomainfrom
caio-pizzol/SD-2939-show-formatting-marks
May 5, 2026
Merged

feat: add formatting marks toggle (SD-2939)#3147
caio-pizzol merged 13 commits intomainfrom
caio-pizzol/SD-2939-show-formatting-marks

Conversation

@caio-pizzol
Copy link
Copy Markdown
Contributor

Summary

Adds a view-only formatting marks toggle for SuperDoc.

  • Adds setShowFormattingMarks() and toggleFormattingMarks() to the SuperDoc API.
  • Wires state through PresentationEditor into DomPainter without changing document content or DOCX export.
  • Renders marks for spaces, tabs, list marker suffix spacing, and paragraph endings.
  • Adds toolbar and headless-toolbar support, a pilcrow icon, and Ctrl/Cmd+Shift+8 shortcut.
  • Adds theme token --sd-formatting-mark-color and hides marks in print output.

Validation

  • pnpm --filter @superdoc/painter-dom test -- formatting-marks.test.ts
  • pnpm --filter @superdoc/super-editor test -- headless-toolbar/create-headless-toolbar.test.ts headless-toolbar/toolbar-registry.test.ts editors/v1/core/presentation-editor/rendering/PresentationPainterAdapter.test.ts
  • pnpm --filter superdoc exec vitest run src/core/SuperDoc.test.js
  • pnpm --filter @superdoc/painter-dom build
  • pnpm --filter superdoc build:es
  • Browser verified toolbar toggle, shortcut, spaces, paragraph marks, and numbered-list tab arrows in the dev app.

Note: superdoc build:es still reports the existing soft style.css size budget warning, but no fail-level findings.

@linear
Copy link
Copy Markdown

linear Bot commented May 5, 2026

@caio-pizzol caio-pizzol marked this pull request as ready for review May 5, 2026 11:04
@caio-pizzol caio-pizzol requested a review from a team as a code owner May 5, 2026 11:04
@codecov-commenter

This comment was marked as outdated.

@caio-pizzol caio-pizzol self-assigned this May 5, 2026
@caio-pizzol caio-pizzol merged commit 8a7396d into main May 5, 2026
68 checks passed
@caio-pizzol caio-pizzol deleted the caio-pizzol/SD-2939-show-formatting-marks branch May 5, 2026 20:18
@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 5, 2026

🎉 This PR is included in @superdoc-dev/mcp v0.3.0-next.61

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 5, 2026

🎉 This PR is included in @superdoc-dev/react v1.2.0-next.103

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 5, 2026

🎉 This PR is included in vscode-ext v2.3.0-next.105

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 5, 2026

🎉 This PR is included in superdoc-cli v0.8.0-next.77

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 5, 2026

🎉 This PR is included in superdoc v1.30.0-next.59

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 5, 2026

🎉 This PR is included in superdoc-sdk v1.8.0-next.59

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants