feat: add GitHub Alert blocks and editor behavior by Jocs · Pull Request #5775 · marktext/marktext · GitHub
Skip to content

feat: add GitHub Alert blocks and editor behavior - #5775

Merged
Jocs merged 7 commits into
developfrom
feat/github-alerts-editing
Oct 17, 2026
Merged

Jocs merged 7 commits into
developfrom
feat/github-alerts-editing

Conversation

@Jocs

@Jocs Jocs commented Oct 17, 2026 •

Copy link
Copy Markdown
Member

Builds on the merged #5774 and targets develop. Part 2/4 of GitHub Alerts support, split from #5770. Related to #3764 and #1240.

Summary

Connect the format support from #5774 to Muya's live editor. The option remains off by default; the desktop preference follows in Part 3 and menus follow in #5771.

  • Register the dedicated github-alert block and share quote-container structure with ordinary blockquotes.
  • Handle marker + Enter, empty-paragraph exit and Backspace through the existing paragraph dispatch, unwrapping inner blocks first.
  • Preserve the existing direct state-loading API; desktop documents continue to enter through Markdown parsing.
  • Add shared local conversion commands that preserve adjacent nodes and selection, with ordinary undo/redo behavior.
  • Support rich HTML paste, partial/full copy and cut, nested-container demotion and Markdown export.
  • Add editor styling, live parser-option forwarding and integration tests. Setting changes follow the existing reparse/render path without special selection or history migration.

Validation

  • Full Muya unit suite: 2,693 passed.
  • Full desktop/Muya type check, Muya lint, circular dependency check and build:unpack passed.
  • Full standalone Chromium E2E: 483 passed.

Tests use an isolated worktree. Temporary local dependency-access configuration is not committed.

Review order

#5774 (syntax/conversion) → this PR (editor behavior) → #5776 (desktop integration) → #5771 (menus).

Merge each predecessor first, then retarget its immediate follow-up to develop. The base branch keeps this diff limited to editor integration and its tests.

…-editing

# Conflicts:
#	packages/muya/src/utils/githubAlerts.ts
@Jocs
Jocs changed the base branch from feat/github-alerts-syntax to develop October 17, 2026 14:07
@Jocs
Jocs merged commit 0b1af09 into develop Oct 17, 2026
8 checks passed
@Jocs Jocs mentioned this pull request Oct 18, 2026
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