ci/woodpecker/push/woodpecker Pipeline was successful Details
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.
this extension is mostly compatible with the original, except it only implements
$[tags]. mentions, hashtags and the
search markup are out of scope.
const marked = require('marked') const markedMfm = require('marked-mfm') marked.use(markedMfm) marked.parse('$[x2 beeg text]') // <p><span class="mfm _mfm_x2_" >beeg text</span></p>
there is also an interactive CLI:
$ npm run dingus marked-mfm interactive parser version 0.0.0 > $[x2 beeg text] <p><span class="mfm _mfm_x2_" >beeg text</span></p>
you should use it to figure out whether a bug is with marked-mfm or with the frontend it's used on.