0.9.31#444
Merged
Merged
Conversation
The transformer's ^block-id regex incorrectly matched LaTeX like "a ^n" inside 51190...51190 display math blocks, injecting <span class="block-id"> tags and corrupting the formula before either KaTeX or MathJax could render it. Now track display math block boundaries via the configured mathBlockDelimiters and pass content through verbatim, matching the same protection already given to code blocks. Fixes #2321
…mplates head.html was injected raw into <head> without sanitization, executing before the React app and any DOMPurify/CSP defenses. A malicious repo could include scripts that traverse React internals to reach acquireVsCodeApi() and send arbitrary messages to the extension host. resolvePathsInHeader() now removes all <script> tags from the header content before injection, while preserving <style>, <meta>, and <link> tags. Thanks to @ritikchaddha for reporting. Fixes GHSA-mcwg-4j78-qwv3
The preview scrollbar thumb used a fixed gray color that blended into dark backgrounds, making it invisible unless hovered. Now uses VS Code's --vscode-scrollbarSlider-background and --vscode-scrollbarSlider-hoverBackground CSS variables which adapt to the active color theme, with the original gray as a fallback for non-VSCode contexts. Fixes #2322
Now that all <script> tags are stripped, the path resolution loop that loaded and inlined relative scripts was dead code — it read files from disk only to immediately discard them.
- Fix ^block-id injection inside $...$ display math blocks (#2321) - Fix invisible scrollbar thumb in dark mode (#2322) - Strip <script> tags from head.html (GHSA-mcwg-4j78-qwv3)
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.
No description provided.