Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MHChem chemical bonds are not rendering properly #1647

Closed
RobinPayne opened this issue Sep 29, 2022 · 2 comments
Closed

MHChem chemical bonds are not rendering properly #1647

RobinPayne opened this issue Sep 29, 2022 · 2 comments
Assignees
Labels

Comments

@RobinPayne
Copy link

Description

Math live does not properly display chemical bond equations from the mhchem package

image

Steps to Reproduce

  1. navigate to CortexJS
  2. copy $\ce{A\bond{--}B\bond{=}C\bond{-~-}D}$
  3. paste it into the latex text area at the end of the page

Actual Behavior

\bond command does not render properly
image

Expected Behavior

Should render like this:
image

Environment

MathLive version 81
Operating System macos
Browser Chrome

@mhchem
Copy link

mhchem commented Oct 11, 2022

The issue is that ~ (tilde) is replaced by a space before it is handed to mhchemParser.
Might be related to bad handling of ~ #1668

arnog added a commit that referenced this issue May 17, 2023
@arnog
Copy link
Owner

arnog commented May 19, 2023

The bonds now render correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants