fix: resolve post-PR#116 regressions in markdown rendering, mermaid, …#117
Merged
Merged
Conversation
…and offline desktop mode BREAKING FIXES: - Fix ReferenceError: Defer marked.Renderer instantiation and marked.use() configuration into initializeMarked(), called only after core libraries (marked, hljs, DOMPurify) are lazy-loaded. Prevents synchronous access to undefined globals on page load. - Fix Mermaid v11 compatibility: Replace deprecated m.init() with m.run() API, matching Mermaid v11.6.0 shipped via CDN. - Add Neutralino offline routing: loadDependency() and loadStylesheet() now detect the Neutralino desktop runtime and redirect CDN URLs to local /libs/<filename> paths, skipping SRI integrity checks that would fail on local file:// or localhost origins. - Extend prepare.js: Scan script.js for CDN URLs in addition to index.html, ensuring all dynamically loaded dependencies are downloaded to resources/libs/ for offline desktop builds. - Add network resilience: ensureEmoji(), ensurePako(), and ensurePdfExportDependencies() now clear their cached promise on failure, allowing retry on subsequent calls. - Optimize PDF export: Remove unnecessary pdfmake/vfs_fonts/html2pdf from ensurePdfExportDependencies() since only jspdf + html2canvas are used by the active export pipeline.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
BREAKING FIXES:
Fix ReferenceError: Defer marked.Renderer instantiation and marked.use() configuration into initializeMarked(), called only after core libraries (marked, hljs, DOMPurify) are lazy-loaded. Prevents synchronous access to undefined globals on page load.
Fix Mermaid v11 compatibility: Replace deprecated m.init() with m.run() API, matching Mermaid v11.6.0 shipped via CDN.
Add Neutralino offline routing: loadDependency() and loadStylesheet() now detect the Neutralino desktop runtime and redirect CDN URLs to local /libs/ paths, skipping SRI integrity checks that would fail on local file:// or localhost origins.
Extend prepare.js: Scan script.js for CDN URLs in addition to index.html, ensuring all dynamically loaded dependencies are downloaded to resources/libs/ for offline desktop builds.
Add network resilience: ensureEmoji(), ensurePako(), and ensurePdfExportDependencies() now clear their cached promise on failure, allowing retry on subsequent calls.
Optimize PDF export: Remove unnecessary pdfmake/vfs_fonts/html2pdf from ensurePdfExportDependencies() since only jspdf + html2canvas are used by the active export pipeline.