Skip to content

feat(open-knowledge): math WYSIWYG autoconvert + inline popover polish (#2715)#677

Merged
inkeep-oss-sync[bot] merged 1 commit into
mainfrom
copybara/sync
Jul 18, 2026
Merged

feat(open-knowledge): math WYSIWYG autoconvert + inline popover polish (#2715)#677
inkeep-oss-sync[bot] merged 1 commit into
mainfrom
copybara/sync

Conversation

@inkeep-oss-sync

Copy link
Copy Markdown
Contributor

Copybara-translated 1 Inkeep OSS change. Rebase-merge this PR so the prepared commit lands directly on public main.

…h (#2715)

* feat(open-knowledge): autoconvert $$…$$ / $…$ in WYSIWYG and polish the inline math popover

Adds a TipTap InputRule that collapses $$…$$ and (currency-safe) $…$
to a mathInline atom on the closing delimiter, using the same
dispatchAsOwnUndoStep contract inline-link-input-rule uses so Ctrl+Z
restores the raw literal without also undoing the preceding typing.

Inline-math edit popover now closes on Enter (via PropPanel's onDismiss
wiring) and gains a Done button matching the JsxComponentView pattern.
On close the caret lands right after the atom so typing continues
inline instead of the NodeSelection swallowing the next keystroke.

* test(open-knowledge): cover math input rule + refresh i18n catalogs

Adds 10 vitest cases mirroring inline-link-input-rule.test.ts:
conversion for $$…$$ and $…$, currency-safety ($5.00, foo$x$,
$ x $ all stay literal), code-block exclusion, and the
one-undo-restores-the-literal contract against a real y-undo binding.

Also picks up the two new po entries lingui extract generates for the
Inline Math Properties popover header and the Done button.

GitOrigin-RevId: e5f7aa04f32b3253d5cd1d6ab0f4288b9168e253
@inkeep-oss-sync
inkeep-oss-sync Bot merged commit 096773d into main Jul 18, 2026
@inkeep-oss-sync
inkeep-oss-sync Bot deleted the copybara/sync branch July 18, 2026 00:10
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