Skip to content

Conversation

@stared
Copy link
Owner

@stared stared commented Nov 30, 2025

No description provided.

stared and others added 23 commits November 23, 2025 19:05
…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]>
@stared stared merged commit 539c932 into main Nov 30, 2025
2 checks passed
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.

2 participants