2000calories / flutter_easy_rich_text

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

Add default EasyRichTextPatterns for bold and italics #59

Closed leewrigg closed 6 months ago

leewrigg commented 6 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