You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bring the fork up to date with the latest upstream main while keeping the LaTeX/KaTeX math feature and upstream changes (mermaid, styling, build output).
Resolve merge conflicts in source files and regenerate dist so the built site matches the merged sources.
Description
Resolved source conflicts and preserved both upstream changes and the KaTeX feature in these files: index.html, public/css/style.css, src/main.js, package.json (and package-lock.json updated by npm install).
Kept the exact KaTeX stylesheet link and SRI in index.html and updated the module URL query versions to match upstream asset versioning; ensured the script entry remains the upstream bundle entry.
Merged KaTeX integration into the current upstream renderer in src/main.js: dynamic import of marked-katex-extension with throwOnError: false, PDF export now derives KaTeX stylesheet attributes from the DOM link and rewrites font URLs for PDFs, preserved DOMPurify sanitization and mermaid handling from upstream.
Merged styling: kept upstream Mermaid and other styling updates and merged math-specific styles (readable inline/display math) into public/css/style.css without reintroducing problematic overflow combos.
Rebuilt generated files using the project build (vite): regenerated dist/index.html and dist/css/style.css and rebuilt assets so dist comes from the build output rather than manual edits.
Commit created with message: Merge upstream main and resolve PR conflicts (hash: f93585bfe79e760f2028cb77d1c8c4e4b4254ea1).
Testing
Ran npm install to ensure dependencies (including mermaid and KaTeX-related runtime usage) are present; installation completed successfully.
Ran npm run build (Vite build) and the build succeeded; dist was regenerated and contains the KaTeX stylesheet link and merged CSS.
Started dev server with npm run dev and performed automated smoke checks: curl -I http://127.0.0.1:5173/ returned 200 OK and curl -I https://cdn.jsdelivr.net/npm/katex@0.16.22/dist/katex.min.css returned 200 OK.
Verified KaTeX SRI: computed SHA-384 for the CDN CSS matched the configured integrity value sha384-5TcZemv2l/9On385z///+d7MSYlvIEw9FuZTIdZ14vJLqWphw7e7ZPuOiCHJcFCP.
Searched for unresolved conflict markers (<<<<<<<, =======, >>>>>>>) and performed git diff --check; no conflict markers remain.
Local repository checks: git status clean prior to merge, created merge commit (hash above).
Notes/limitation: the push to origin main failed in this environment due to missing GitHub credentials (fatal: could not read Username for 'https://github.com': No such device or address), so the branch was updated locally and the merge commit is ready to be pushed from an authenticated environment to update PR tanabe#148 on GitHub.
Next steps: Take a moment to review the security alert above. Review
the linked package source code to understand the potential risk. Ensure the
package is not malicious before proceeding. If you're unsure how to proceed,
reach out to your security team or ask the Socket team for help at
support@socket.dev.
Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.
Mark the package as acceptable risk. To ignore this alert only
in this pull request, reply with the comment
@SocketSecurity ignore npm/cytoscape@3.33.4. You can
also ignore all packages with @SocketSecurity ignore-all.
To ignore an alert for all future pull requests, use Socket's Dashboard to
change the triage state of this alert.
Warn
Obfuscated code: npm mermaid is 90.0% likely obfuscated
Next steps: Take a moment to review the security alert above. Review
the linked package source code to understand the potential risk. Ensure the
package is not malicious before proceeding. If you're unsure how to proceed,
reach out to your security team or ask the Socket team for help at
support@socket.dev.
Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.
Mark the package as acceptable risk. To ignore this alert only
in this pull request, reply with the comment
@SocketSecurity ignore npm/mermaid@11.15.0. You can
also ignore all packages with @SocketSecurity ignore-all.
To ignore an alert for all future pull requests, use Socket's Dashboard to
change the triage state of this alert.
Warn
Obfuscated code: npm mermaid is 90.0% likely obfuscated
Next steps: Take a moment to review the security alert above. Review
the linked package source code to understand the potential risk. Ensure the
package is not malicious before proceeding. If you're unsure how to proceed,
reach out to your security team or ask the Socket team for help at
support@socket.dev.
Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.
Mark the package as acceptable risk. To ignore this alert only
in this pull request, reply with the comment
@SocketSecurity ignore npm/mermaid@11.15.0. You can
also ignore all packages with @SocketSecurity ignore-all.
To ignore an alert for all future pull requests, use Socket's Dashboard to
change the triage state of this alert.
Warn
Obfuscated code: npm mermaid is 90.0% likely obfuscated
Next steps: Take a moment to review the security alert above. Review
the linked package source code to understand the potential risk. Ensure the
package is not malicious before proceeding. If you're unsure how to proceed,
reach out to your security team or ask the Socket team for help at
support@socket.dev.
Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.
Mark the package as acceptable risk. To ignore this alert only
in this pull request, reply with the comment
@SocketSecurity ignore npm/mermaid@11.15.0. You can
also ignore all packages with @SocketSecurity ignore-all.
To ignore an alert for all future pull requests, use Socket's Dashboard to
change the triage state of this alert.
Warn
Obfuscated code: npm robust-predicates is 90.0% likely obfuscated
Next steps: Take a moment to review the security alert above. Review
the linked package source code to understand the potential risk. Ensure the
package is not malicious before proceeding. If you're unsure how to proceed,
reach out to your security team or ask the Socket team for help at
support@socket.dev.
Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.
Mark the package as acceptable risk. To ignore this alert only
in this pull request, reply with the comment
@SocketSecurity ignore npm/robust-predicates@3.0.3. You can
also ignore all packages with @SocketSecurity ignore-all.
To ignore an alert for all future pull requests, use Socket's Dashboard to
change the triage state of this alert.
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
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.
Motivation
mainwhile keeping the LaTeX/KaTeX math feature and upstream changes (mermaid, styling, build output).distso the built site matches the merged sources.Description
index.html,public/css/style.css,src/main.js,package.json(andpackage-lock.jsonupdated bynpm install).index.htmland updated the module URL query versions to match upstream asset versioning; ensured the script entry remains the upstream bundle entry.src/main.js: dynamic import ofmarked-katex-extensionwiththrowOnError: false, PDF export now derives KaTeX stylesheet attributes from the DOM link and rewrites font URLs for PDFs, preserved DOMPurify sanitization and mermaid handling from upstream.public/css/style.csswithout reintroducing problematic overflow combos.vite): regenerateddist/index.htmlanddist/css/style.cssand rebuilt assets sodistcomes from the build output rather than manual edits.Merge upstream main and resolve PR conflicts(hash:f93585bfe79e760f2028cb77d1c8c4e4b4254ea1).Testing
npm installto ensure dependencies (including mermaid and KaTeX-related runtime usage) are present; installation completed successfully.npm run build(Vite build) and the build succeeded;distwas regenerated and contains the KaTeX stylesheet link and merged CSS.npm run devand performed automated smoke checks:curl -I http://127.0.0.1:5173/returned200 OKandcurl -I https://cdn.jsdelivr.net/npm/katex@0.16.22/dist/katex.min.cssreturned200 OK.sha384-5TcZemv2l/9On385z///+d7MSYlvIEw9FuZTIdZ14vJLqWphw7e7ZPuOiCHJcFCP.<<<<<<<,=======,>>>>>>>) and performedgit diff --check; no conflict markers remain.git statusclean prior to merge, created merge commit (hash above).Notes/limitation: the push to
origin mainfailed in this environment due to missing GitHub credentials (fatal: could not read Username for 'https://github.com': No such device or address), so the branch was updated locally and the merge commit is ready to be pushed from an authenticated environment to update PR tanabe#148 on GitHub.Codex Task