f19d22dc89
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/tag/woodpecker Pipeline was successful
Details
|
||
---|---|---|
src | ||
test | ||
.editorconfig | ||
.eslintrc.cjs | ||
.gitignore | ||
.woodpecker.yml | ||
LICENSE | ||
README.md | ||
babel.config.json | ||
jest.config.js | ||
package-lock.json | ||
package.json |
README.md
marked-mfm
a Marked.js custom extension for Misskey-flavored Markdown.
this is a reimplementation of the original MFM parser, which was written from the ground up using PEG.js instead of as an extension of CommonMark, and therefore was not up to spec.
usage
const marked = require('marked')
const markedMfm = require('marked-mfm')
marked.use(markedMfm)
marked.parse('$[x2 beeg text]')
// <p><span style="display: inline-block" class="_mfm_x2_">beeg text</span></p>