Skip to content

mooniak/mlmd

 
 

Repository files navigation

Multilingual Markdown (MLMD)

License npm version downloads GitHub CI

Multilingual Markdown parser

  • Remove comments
  • Add break between paragraphs
  • Parse Multilingual content by locale
  • Parse links
  • Parse references
  • Parse multilingual names

Documentation

The documentation for mlmd is available on the documentation website of the ShennongAlpha (ShennongDoc):

You can also contribute to the documentation on the ShennongDoc GitHub repository by submitting a pull request:

Install

npm install mlmd

Use

import React from 'react'
import ReactDom from 'react-dom'
import { ReactMlmd } from 'mlmd'

const markdown = '[[中文|汉语]]'

ReactDom.render(<ReactMlmd locale="zh-en">{markdown}</ReactMlmd>, document.body)

API

ReactMlmd

Component to render markdown.

Parameters

  • locale (Locale, optional) Set scoped locale, e.g. zh-en, en-zh, zh, en

Returns

React element (JSX.Element).

Cite this work

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

About

Multilingual Markdown (MLMD, 多语Markdown)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%