Giter Site home page Giter Site logo

dart_mfm_parser's Introduction

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.

dart_mfm_parser's People

Contributors

shiosyakeyakini-info avatar poppingmoon avatar

Stargazers

 avatar NPL avatar taisei avatar Nikodem Bernat avatar  avatar こけっち avatar Sandalots avatar syuilo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.