@barocss/math-editor-prosemirror
v1.0.4
Published
Barocss math editing integration for ProseMirror.
Maintainers
Readme
@barocss/math-editor-prosemirror
Math editing for ProseMirror. Install alongside @barocss/math-editor and the host editor SDK.
This workspace package owns its source and tests. This package ships generated JavaScript, TypeScript declarations, and styles. Its host SDK and @barocss/math-editor remain external peers.
Install
npm install @barocss/math-editor-prosemirror @barocss/math-editor \
prosemirror-model prosemirror-state prosemirror-view prosemirror-historyInstall this package, the core, and the host dependencies listed in peerDependencies. Import the adapter from @barocss/math-editor-prosemirror, common helpers from @barocss/math-editor-prosemirror/shared, and styles from @barocss/math-editor-prosemirror/style.css. Also load @barocss/math-editor/style.css.
All math editor packages · Integration guide · Release preparation
The documentation and unified editor samples are hosted at math-editor.barocss.com. Host SDK versions are listed in peerDependencies.
Development
Workspace exports, main and types point to src/, so apps import this
package without building it first. publishConfig overrides those fields with
dist/ paths for npm consumers. The release pipeline validates the packed paths.
This package owns its host implementation in src/prosemirror.ts, its tests in
test/, and its TypeScript build configuration. From the repository root:
pnpm --filter @barocss/math-editor-prosemirror build
pnpm --filter @barocss/math-editor-prosemirror type-check
pnpm --filter @barocss/math-editor-prosemirror testThe build includes private common helpers and their declarations while keeping
the math core and host SDKs external. Add a Changeset for this package when its
published behavior changes. Shared-helper changes must name every affected plugin.
The local pnpm release:math command publishes only new math package versions.
License
MIT. Copyright (c) 2026 barocss.com. See LICENSE, included in this package. The math-editor core is also MIT licensed. Host editor SDKs retain their own licenses.
