Skip to content

[ZAMB-257] Add MathJax rich-text support - #559

Draft
ocorona92 wants to merge 1 commit into
v0from
codex/zamb-257-mathjax-rich-text
Draft

ocorona92 wants to merge 1 commit into
v0from
codex/zamb-257-mathjax-rich-text

Conversation

@ocorona92

Copy link
Copy Markdown
Collaborator

Summary

  • add an official MathJax plugin for the rich-text editor
  • preserve inline and display delimiters across Markdown and Rich Text modes
  • support live typing, Markdown paste, escaped dollars, and code spans
  • delegate typesetting and cleanup to host-provided callbacks

Context

Enterprise editors do not have access to the optional Markdown preview mode, so MathJax needs to render directly in Rich Text. The StackOverflow integration will be submitted separately after this editor API is reviewed.

Validation

  • npm run test:unit -- --runInBand --testPathIgnorePatterns=/node_modules/ \\.e2e\\.test /dist/ — 51 suites passed, 1,130 tests passed
  • npm run lint — passed with two unrelated existing test warnings
  • npm run prepublishOnly — Webpack and TypeScript passed
  • manually verified typing, multiline paste, escaped dollars, code spans, mode round-tripping, and persistence on stackenterprise.local with MathJax 3.2.2

@changeset-bot

changeset-bot Bot commented Oct 18, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 08d5d64

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@stackoverflow/stacks-editor Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify

netlify Bot commented Oct 18, 2026

Copy link
Copy Markdown

✅ Deploy Preview for stacks-editor ready!

Name Link
🔨 Latest commit 08d5d64
🔍 Latest deploy log https://app.netlify.com/projects/stacks-editor/deploys/6ad54b2efdc53a3f9756b37c
😎 Deploy Preview https://deploy-preview-559--stacks-editor.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

This branch has not been deployed

No deployments
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