Skip to content

Mermaid block#2886

Merged
matthewlipski merged 12 commits into
code-block-previewsfrom
mermaid-block
Jul 7, 2026
Merged

Mermaid block#2886
matthewlipski merged 12 commits into
code-block-previewsfrom
mermaid-block

Conversation

@YousefED

@YousefED YousefED commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

builds on #2883

wip work is mostly exporters related (docx / pdf / odt)

YousefED and others added 6 commits July 3, 2026 14:53
Extracts the math block's React popup UI into reusable components and
hooks in @blocknote/react: the PreviewWithSourcePopup shell, the
SourceBlockWithPreview/SourceInlineContentWithPreview wrappers, and the
useSourceBlockPreviewPopup/useSourceInlineContentPreviewPopup hooks.
Moves the generic SourceInlineContentWithPreviewExtension to core after
splitting its math-specific input rules into a new
MathInlineInputRulesExtension. Also fixes exported inline math HTML
rendering as selected with an open popup, and reads getPos() fresh in
popup actions instead of capturing it at render time.

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

vercel Bot commented Jul 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
blocknote Ready Ready Preview Jul 7, 2026 1:35pm
blocknote-website Ready Ready Preview Jul 7, 2026 1:35pm

Request Review

@coderabbitai

coderabbitai Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 07eb7c0a-b815-4a9d-b10f-3dc48ca3f737

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch mermaid-block

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-07-07 18:16 UTC

@pkg-pr-new

pkg-pr-new Bot commented Jul 7, 2026

Copy link
Copy Markdown

Open in StackBlitz

@blocknote/ariakit

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/ariakit@2886

@blocknote/code-block

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/code-block@2886

@blocknote/core

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/core@2886

@blocknote/diagram-block

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/diagram-block@2886

@blocknote/mantine

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/mantine@2886

@blocknote/math-block

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/math-block@2886

@blocknote/react

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/react@2886

@blocknote/server-util

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/server-util@2886

@blocknote/shadcn

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/shadcn@2886

@blocknote/xl-ai

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/xl-ai@2886

@blocknote/xl-docx-exporter

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/xl-docx-exporter@2886

@blocknote/xl-email-exporter

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/xl-email-exporter@2886

@blocknote/xl-multi-column

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/xl-multi-column@2886

@blocknote/xl-odt-exporter

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/xl-odt-exporter@2886

@blocknote/xl-pdf-exporter

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/xl-pdf-exporter@2886

commit: 6fff28f

@matthewlipski matthewlipski marked this pull request as ready for review July 7, 2026 18:10
@matthewlipski matthewlipski changed the base branch from source-preview-react-api to code-block-previews July 7, 2026 18:10
@matthewlipski matthewlipski merged commit 7469662 into code-block-previews Jul 7, 2026
10 of 31 checks passed
@matthewlipski matthewlipski deleted the mermaid-block branch July 7, 2026 18:16
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