fix: add mhchem support to markdown renderer#12612
Open
aaditmehtacoder wants to merge 1 commit into
Open
Conversation
Contributor
|
All contributors have signed the CLA ✍️ ✅ |
Author
|
I have read the CLA Document and I hereby sign the CLA |
4 tasks
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.
Description
Adds the KaTeX
mhchemcontrib import to the GUI markdown renderer so chemistry notation like\ce{H2O}and\pu{...}can render correctly instead of causing KaTeX parsing errors.Fixes #12561
AI Code Review
@continue-reviewChecklist
Screen recording or screenshot
Tested locally in the VS Code Extension Development Host. The block reaction
$$\ce{CO2 + C -> 2 CO}$$renders successfully as a typeset chemical reaction instead of crashing/stopping the message render.Tests
Manual testing in the locally-built Continue extension:
$\ce{H2O}$$\ce{Fe^{2+}}$$$\ce{CO2 + C -> 2 CO}$$$\pu{5 mol}$Confirmed the message renders without stopping mid-output.
Summary by cubic
Add
katex/contrib/mhchemto the GUI markdown renderer so chemistry notation (\ce{...},\pu{...}) renders correctly instead of throwing KaTeX parse errors. Fixes #12561.Written for commit dec323a. Summary will update on new commits.