Add ZaTeX math-fence consult seam (dynamic plugin, code-card fallback) - #349
Open
gregoreesmaa wants to merge 1 commit into
Open
gregoreesmaa wants to merge 1 commit into
gregoreesmaa wants to merge 1 commit into
Conversation
Math fences (math/tex/latex/katex) consult the ZaTeX subset engine, loaded as a dynamic plugin outside the size budget; subset-accepted fences are native-eligible (display arm: read#348), everything else keeps today's code-card fallback byte-identical. An absent dylib is a clean fallback, so CI without a sibling checkout stays green. - src/core/math_fence.zig: dlopen loader (loadFrom/loadDefault/ close, twin-stubbed), subset consult (classify), token mapping. - docs/plugins-async-spec.md: external KaTeX/MathJax rows marked SUPERSEDED in favor of the native direction. - No viewport behavior change; no build.zig.zon change (runtime loading keeps the build hermetic). Verified: strict gate 497/497 (ReleaseFast, incl. 4 new tests with live-engine consult), size gate PASS (core 154174/204800, plugin 5700/12288).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Native math direction per zatex#12 (that issue tracks the cross-repo work): math fences consult the ZaTeX subset engine, loaded as a dynamic plugin outside the size budget. Subset-accepted fences are native-eligible (display arm: read#348); everything else keeps today's code-card fallback byte-identical. Absent dylib is a clean fallback.
Verified locally: strict gate 497/497 ReleaseFast (incl. 4 new tests, live-engine consult proven), size gate PASS (core 154174/204800, plugin 5700/12288).