Perf/shiki singleton - #74
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughThis pull request adds a complete document export system (HTML, PDF, DOCX) to the Electron markdown reader, refactors the renderer UI layer into composable hooks, fixes a Shiki instance-caching bug and heading HTML escaping vulnerability, and updates the documentation website. ChangesDocument Export Feature
Renderer UI Refactoring and Bug Fixes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 4❌ Failed checks (3 warnings, 1 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
This PR solves the issue(#73 ) , by refactoring shiki highlighter initialization and escaping HTML characters in heading content before rendering.
Type of Change
Related Issue
Closes #73
Changes Made
Checklist
Summary by CodeRabbit
Release Notes
New Features
Improvements
Tests