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.

About

mfm parser for dart.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages