mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1829] [CLOSED] Add shared LaTeX/web math core without a rendering engine #3705
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3705
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1829
Author: @CC-David-CC
Created: 10/10/2026
Status: ❌ Closed
Base:
main← Head:feat/web-math-common📝 Commits (3)
56063f3web: isolate shared chat math foundation and adapter contract253ea8cMerge remote-tracking branch 'upstream/main' into HEAD4010abeMerge Strata v0.1.43 into feat/web-math-common📊 Changes
9 files changed (+408 additions, -4 deletions)
View changed files
➕
docs/WEB_MATH_INTERFACE.md(+22 -0)➕
serve/fixtures/math.json(+12 -0)📝
serve/server.py(+18 -0)📝
serve/web/app.css(+8 -0)📝
serve/web/app.js(+18 -4)📝
serve/web/index.html(+4 -0)➕
serve/web/math-adapter.js(+6 -0)➕
serve/web/math.js(+113 -0)➕
tools/test_web_math.py(+207 -0)📄 Description
Adds the shared web chat integration for future math renderers. This PR contains no viewer, typesetting engine, fonts, or TeX compiler. The placeholder adapter reports unavailable and leaves equations as readable source. Related to #1769 and #1780; rendering support will come in separate follow-up PRs.
\(...\)and conservative$...$, plus display\[...\]and$$...$$. Protects equation source before Markdown formatting and keeps code and currency literal.Core smoke-tested in Chromium for default-off behavior, unavailable-engine source fallback, persistence, API source preservation, and disabling round-trip without engine assets. The shared acceptance suite also passed on the KaTeX implementation in Chromium, Firefox, and Playwright WebKit. Timers cannot interrupt synchronous JavaScript; adapters must bound macro expansion. Macro isolation is an adapter requirement.
See the interface and branch structure. The full browser acceptance suite requires a real implementation adapter; this foundation deliberately does not typeset equations.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.