Skip to main content

misskey_mfm_renderer

Render Misskey Flavored Markdown (MFM) in Flutter with MfmText. MFM extends familiar text formatting with features such as custom emoji, transformations, and animations.

The library turns MFM text or parsed nodes into Flutter widgets. It does not fetch a timeline or provide a complete Misskey application. Your application supplies the text, chooses the rendering settings, and handles interactions.

Start here​

  • Getting started: display your first MFM text without setting up a server connection.
  • Example app: browse the catalog and try text and settings in the Playground.
  • Rendering: inputs, display modes, supported syntax and limitations.
  • Configuration: shared styles, colors, fonts and cat-language conversion.
  • Custom emoji: setup, ownership, remote posts and custom builders.
  • Interactions: callbacks and application navigation policy.
  • Animation and accessibility: reduced motion and reading limitations.
  • API reference: the generated API documentation for the latest published package.

The copyable guide examples target the published package in Getting started. Development-only features and screenshots are identified separately on the example page.

What you can render​

  • Text formatting, quotes, code, links, mentions, and hashtags.
  • Unicode emoji and custom emoji, with configurable resolution and rendering.
  • MFM fn functions for size, transforms, styles, and animation.

Rendering can be customized with colors, text styles, callbacks, and animation settings. The rendering guide describes the supported functions and limitations; this is not a promise that every Misskey feature is implemented.

Supported environments​

The package supports Android, iOS, macOS, Linux, and Windows. It requires Flutter 3.38.1 or later and Dart 3.10.0 or later.

Web is not supported. Although Web builds can compile, the default custom-emoji setup has no Web store and Web rendering has not been tested. This website is documentation, not a browser version of the Flutter example.

Rendered text does not support text selection. Applications that need a copy action should use the original MFM text.

Custom emoji support uses misskey_emoji, which is included with this package. The default setup owns a persistent SQLite store and requires initialization and disposal. It is not needed for the minimal text example. See the custom-emoji guide before configuring native storage and image loading.

Published package and development examples​

The installation guide uses a published package dependency. The repository's develop branch, its README, and its bundled example can include changes that have not yet been published. Check the CHANGELOG before relying on a feature marked as unreleased.