-
Notifications
You must be signed in to change notification settings - Fork 0
Geminification #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
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
…ation - Typography: Switched to Crimson Pro (math/content) and Inter (UI). - Layout: Centered equation display, cleaner sidebar styles. - Navigation: Removed category grouping for a simpler flat list of equations. - Visuals: Modernized color scheme, hover effects, and controls.
- Toolbar: Replaced dropdown menu with a direct format selector and export button. - Interaction: Allows switching formats instantly while in export mode. - Visuals: Consistent Inter font for all UI controls.
- Export: Selecting a format now immediately downloads the file (no preview). - UI: Removed redundant 'Export' button and download preview state. - Code: Simplified export logic in export-controls.ts.
- Logic: Implemented explicit cursor save/restore during syntax highlighting updates. - Safety: Added check to prevent overwriting editor content if user typed during async parsing. - CodeJar: Correctly use updateCode API instead of manual DOM manipulation.
- Issue: CodeJar's updateCode threw 'error1' when called recursively inside debounce/preview loop. - Fix: Replaced updateCode call with manual highlightEditor + cursor restore in app.ts. - Logging: Added better error traces in editor.ts and app.ts to catch future issues.
Child tokens inside colored parents (.latex-mark, .md-ref, .heading-class) now inherit color instead of using their own CSS rules. This ensures \mark keywords, punctuation, and other nested elements display in the same color as their parent token. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Two issues were fixed: 1. Changed initializeEditor to accept a getColors() getter function instead of a static colors array, ensuring the highlight callback always uses the current color scheme (not a stale closure). 2. Added a 50ms delayed re-application of colors after Prism highlighting. On initial page load, the browser/CodeJar re-renders the contenteditable element shortly after our highlight function runs, which strips inline styles. The delayed re-application ensures colors persist. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Updated all test files and validation script to use the new src/examples/ location instead of public/examples/. Also improved validate-content.ts to scan the directory directly instead of relying on the removed equations.json file. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
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.
No description provided.