Skip to content

Using mhchem extension #12

Description

@erning

To write nice chemical equations easily, we can use mhchem extension. Please see the following example.

markup

$\ce{2HCl + Na2CO3 = H2O + CO2 ^ + 2NaCl}$

rendered

According to KaTex's documentation, I just added require('katex/dist/contrib/mhchem.js') to this plugin and it works perfectly. Is it possible to formally add the mhchem support? It might be an option in the plugin settings. What is your opinion?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions