Skip to content
\n

\"image\"

\n
<!-- only use katex -->\n<!DOCTYPE html>\n<html>\n  <head>\n    <link\n      rel=\"stylesheet\"\n      href=\"https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css\"\n    />\n    <script\n      defer\n      src=\"https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js\"\n    ></script>\n    <script\n      defer\n      src=\"https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/mhchem.min.js\"\n    ></script>\n    <script\n      defer\n      src=\"https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/auto-render.min.js\"\n      onload=\"renderMathInElement(document.body);\"\n    ></script>\n  </head>\n  <body>\n    <span>\n      $$\\ce{N2 + 3H2 <=>T[High temperature Pressurized][Catalyst] 2NH3}$$\n    </span>\n  </body>\n</html>
\n

\"image\"

\n\n

Hello,

\n

How can I use mhchem macros in the options to parse chemical formulas properly? I saw in the official documentation that it can be directly included, but I am having trouble getting it to work with Vue 3. Could you please provide me some assistance in making \"use macros with mhchem\" function correctly? I greatly appreciate your help.

","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"

thanks all. it is working. see here

","upvoteCount":0,"url":"https://github.com/KaTeX/KaTeX/discussions/3915#discussioncomment-8043120"}}}
Discussion options

You must be logged in to vote

thanks all. it is working. see here

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@jiaopengzi
Comment options

@jiaopengzi
Comment options

@edemaine
Comment options

@jiaopengzi
Comment options

Answer selected by jiaopengzi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3914 on January 05, 2024 07:38.