Marked.js extension for Misskey-flavored Markdown
Go to file
Sol Fisher Romanoff f19d22dc89
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/tag/woodpecker Pipeline was successful Details
Support multiline markup, to an extent
2022-07-08 12:14:17 +00:00
src Support multiline markup, to an extent 2022-07-08 12:14:17 +00:00
test Support multiline markup, to an extent 2022-07-08 12:14:17 +00:00
.editorconfig Initial commit 2022-07-08 11:32:20 +03:00
.eslintrc.cjs Initial commit 2022-07-08 11:32:20 +03:00
.gitignore Initial commit 2022-07-08 11:32:20 +03:00
.woodpecker.yml Add woodpecker config 2022-07-08 15:04:24 +03:00
LICENSE Initial commit 2022-07-08 11:32:20 +03:00
README.md Correct README to use _mfm_ class 2022-07-08 13:59:40 +03:00
babel.config.json Initial commit 2022-07-08 11:32:20 +03:00
jest.config.js Initial commit 2022-07-08 11:32:20 +03:00
package-lock.json Initial commit 2022-07-08 11:32:20 +03:00
package.json Initial commit 2022-07-08 11:32:20 +03:00

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>