2000calories / flutter_easy_rich_text

The EasyRichText widget provides an easy way to use RichText.
https://pub.dev/packages/easy_rich_text
MIT License
79 stars 34 forks source link

Add default EasyRichTextPatterns for bold and italics #59

Closed leewrigg closed 5 months ago

leewrigg commented 5 months ago

Hey @2000calories - thanks for your work on this plugin 🙏

This PR adds two default/pre-built EasyRichTextPatterns for bold (when text is surrounded with *asterisks*) and italics (when text is surrounded by _underscores_).

Can be used like this:

EasyRichText(
  "TEST *bold font*. test *boldfont*. TEST _italicised_. test _italics_.",
  patternList: [
    EasyRichTextPatterns.bold,
    EasyRichTextPatterns.italic,
  ],
),

Closes #56