inkdropapp / inkdropapp/inkdrop-math

Using mhchem extension

Open
#12 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
28
Forks
8
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the plugin's KaTeX integration and settings entry points, then compare them with the documented require('katex/dist/contrib/mhchem.js') approach. Use the linked chemical-equation example to verify that mhchem syntax renders correctly, and ensure the intended plugin option controls the support.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.