Skip to content

shiosyakeyakini-info/dart_mfm_parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mfm_parser

MFM (Misskey Flavor Markdown) parser implementation for dart.

This package is not renderer of the mfm.

Features

This package was ported from typescript project of misskey-dev/mfm.js and depended on twitter/twemoji-parser too.

Getting started

dart pub add mfm_parser

if you use flutter,

flutter pub add mfm_parser

Usage

you can use MfmParser().parse() or MfmParser().parseSimple(). simpleParser is only supported to the text and emoji. you can used it for such as user name.

final text = r"""
<center>$[x2 **What's @ai**]</center>
@ai is official mascot character of the Misskey.
you can see more information from <https://xn--931a.moe/>
""";

final list = const MfmParser().parse(text);

print(list);

TODO

These feature will be supported in the future.

  • This package is not compatible with 'toString()' and many api from the official mfm.js.

Releases

No releases published

Packages

No packages published

Languages