Multilingual Markdown parser
- Remove comments
- Add break between paragraphs
- Parse Multilingual content by locale
- Parse links
- Parse references
- Parse multilingual names
Documentation lives in docs/ and is served with Docsify. It is published via GitHub Pages (see the repository Pages settings for the URL). To preview locally:
npx docsify-cli serve docsnpm install mlmdTo run the test suite during development:
npm testimport React from 'react'
import ReactDom from 'react-dom'
import { ReactMlmd } from 'mlmd'
const markdown = '[[中文|汉语]]'
ReactDom.render(<ReactMlmd locale="zh-en">{markdown}</ReactMlmd>, document.body)Component to render markdown.
locale(Locale, optional) Set scoped locale, e.g.zh-en,en-zh,zh,en
React element (JSX.Element).
Yang, Z., Yin, Y., Kong, C. et al. ShennongAlpha: an AI-driven sharing and collaboration platform for intelligent curation, acquisition, and translation of natural medicinal material knowledge. Cell Discov 11, 32 (2025). https://doi.org/10.1038/s41421-025-00776-2