Skip to content

MarkdownEditableTextInput is a TextField Widget that allow you to convert easily what's in the TextField to Markdown.

License

Notifications You must be signed in to change notification settings

micahmo/markdown-editor

 
 

Repository files navigation

Markdown Editor

A set of utility widgets that convert Text to Markdown. Extended to support custom Lemmy syntax.

Provides MarkdownToolbar and MarkdownTextInputField widgets.

Markdown Support

The following markdown syntax is supported by this package:

  • Bold: MarkdownType.bold
  • Italics: MarkdownType.italic
  • Strikethrough: MarkdownType.strikethrough
  • Links: MarkdownType.link
  • Headings: MarkdownType.title
  • Lists: MarkdownType.list
  • Code: MarkdownType.code
  • Block quotes: MarkdownType.blockquote
  • Dividers: MarkdownType.separator
  • Images: MarkdownType.image

Custom Markdown

Custom markdown actions have been added to handle Lemmy specific syntax. This includes

  • User format @user@instance.tld
  • Community format !community@instance.tld
  • Spoiler tags

Acknowledgements

Original implementation by Playmoweb.

About

MarkdownEditableTextInput is a TextField Widget that allow you to convert easily what's in the TextField to Markdown.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 56.2%
  • C++ 22.4%
  • CMake 17.2%
  • HTML 1.8%
  • Swift 1.5%
  • C 0.8%
  • Other 0.1%