Skip to content

Add search and LaTeX support#14

Open
DeepCogNeural wants to merge 1 commit into
marswaveai:mainfrom
DeepCogNeural:codex/search-latex-support
Open

Add search and LaTeX support#14
DeepCogNeural wants to merge 1 commit into
marswaveai:mainfrom
DeepCogNeural:codex/search-latex-support

Conversation

@DeepCogNeural

Copy link
Copy Markdown

Summary

  • Add Cmd/Ctrl+F search with match count, next/previous navigation, Escape close, and highlighting in the Milkdown editor.
  • Add LaTeX support using Milkdown math + KaTeX, including an Insert Formula modal via Cmd/Ctrl+Shift+E and click-to-edit rendered formulas.
  • Preserve v1.5.0 slides/source mode: search targets the visible source textarea, and formula insertion writes Markdown into the textarea there.
  • Include KaTeX styling in the editor bundle and HTML export output.

Testing

  • npx tsc -p tsconfig.preload.json --noEmit
  • npx tsc -p tsconfig.renderer.json --noEmit
  • npm run build
  • Playwright smoke test against the built renderer with mocked Electron APIs:
    • editor search opens, finds Welcome, and closes with Escape
    • source mode search supports typed queries without losing focus
    • formula modal inserts, renders, and serializes $E=mc^2$
    • source mode formula insertion saves Markdown text
    • HTML export includes KaTeX CSS

Note

npx tsc -p tsconfig.main.json --noEmit still fails on current main due to existing main-process type issues (fs.createServer and PrintToPDFOptions.marginType). This PR does not change those paths.

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.

1 participant