Skip to content

0.9.31

Latest

Choose a tag to compare

@github-actions github-actions released this 08 Jun 02:53
8c55a2b

Bug fixes

  • Fix ^block-id being incorrectly injected inside $$...$$ display math blocks — When a display math block contained a line ending with ^<single-char> (e.g. a ^n for superscript), the transformer's ^block-id regex would match it and inject <span id="n" class="block-id"></span>, corrupting the LaTeX before it reached either the KaTeX or MathJax renderer. The transformer now tracks display math block boundaries (using the configured mathBlockDelimiters) and passes content inside them through verbatim. Fixes vscode-mpe#2321. Reported by @MZMTab.
  • Fix invisible scrollbar thumb in dark mode — The preview scrollbar thumb used a fixed rgba(150, 150, 150, 0.66) 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 vscode-mpe#2322. Reported by @deviesoft.

Security

  • Strip <script> tags from .crossnote/head.html content injected into webview templates.crossnote/head.html was read raw and injected into the webview's <head> without sanitization, executing before the React app and any DOMPurify or CSP defenses. A malicious repository could include scripts in head.html 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. <style>, <meta>, and <link> tags continue to work as before. Fixes GHSA-mcwg-4j78-qwv3. Thanks to @ritikchaddha for reporting the issue.