inkdropapp / inkdropapp/inkdrop-math
Using mhchem extension
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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
