Skip to content

feat: add GitHub Alerts syntax and format conversion - #5774

Merged
Jocs merged 1 commit into
developfrom
feat/github-alerts-syntax
Oct 17, 2026
Merged

Jocs merged 1 commit into
developfrom
feat/github-alerts-syntax

Conversation

@Jocs

@Jocs Jocs commented Oct 17, 2026 •

Copy link
Copy Markdown
Member

Part 1/4 of GitHub Alerts support. Related to #3764 and #1240. Splits the format layer out of #5770; menu integration remains in #5771.

Summary

Add the Markdown/HTML conversion primitives for GitHub's five alert types. This PR changes format conversion only; live editor integration and the desktop setting follow in separate PRs.

  • Recognize standalone valid alert markers in eligible top-level quotes, using shared Marked token normalization.
  • Add the alert token/state representation and portable Markdown serialization, including explicit marker spacing metadata.
  • Render alert HTML through static and clipboard converters; restore GitHub alert HTML to quoted Markdown before Turndown.
  • Add export styling and syntax cases for nested contexts, reference links, inline content, empty bodies and all five types.

The live editor retains its existing parsing-option forwarding until Part 2. No new desktop setting or menu entry is exposed here.

Validation

  • Full Muya unit suite: 2,635 passed.
  • CommonMark/GFM: 1,347 passed.
  • Full desktop/Muya type check, Muya lint and build:unpack passed.

Local tests used an isolated worktree with temporary Vite access settings for shared dependencies. No temporary test configuration is committed.

Review order

#5774 (syntax/conversion) → #5775 (editor behavior) → #5776 (desktop integration) → #5771 (menus). Each follow-up targets its predecessor so the diffs remain scoped.

@Jocs
Jocs merged commit 5101971 into develop Oct 17, 2026
8 checks passed
@Jocs Jocs mentioned this pull request Oct 18, 2026
@Jocs
Jocs deleted the feat/github-alerts-syntax branch October 23, 2026 08:32
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