Marked.js extension for Misskey-flavored Markdown
Find a file
2022-07-09 14:29:13 +03:00
lib Fix search not working properly 2022-07-09 14:29:13 +03:00
src Fix search not working properly 2022-07-09 14:29:13 +03:00
test Fix search not working properly 2022-07-09 14:29:13 +03:00
.editorconfig Initial commit 2022-07-08 11:32:20 +03:00
.eslintignore Add bundler 2022-07-08 23:51:13 +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 bundler 2022-07-08 23:51:13 +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
LICENSE Initial commit 2022-07-08 11:32:20 +03:00
package-lock.json Add bundler 2022-07-08 23:51:13 +03:00
package.json Remove all style and use data-* attributes 2022-07-08 23:51:13 +03:00
README.md Remove all style and use data-* attributes 2022-07-08 23:51:13 +03:00
rollup.config.umd.js Add bundler 2022-07-08 23:51:13 +03:00

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 class="_mfm_x2_" >beeg text</span></p>