smartypants 0.0.4 copy "smartypants: ^0.0.4" to clipboard
smartypants: ^0.0.4 copied to clipboard

A Dart package that provides text formatting similar to SmartyPants.

smartypants #

Pub Version GitHub License

A Dart package that implements SmartyPants text formatting. This package helps convert plain text into a more typographically correct format by replacing certain characters and symbols with their "smart" counterparts.

Features #

  • Replaces straight quotes with smart quotes.
  • Converts double and triple hyphens into en dash and em dash, respectively.
  • Replaces straight apostrophes with smart apostrophes.
  • Collapses multiple spaces into a single space.
  • Converts ellipses into a single ellipsis character.
  • Replaces mathematical symbols with their typographically correct versions.
  • Converts arrows into their respective symbols.
  • Supports CJK typography: normalizes CJK ellipsis (。。。 → …) and converts angle bracket citations (<
1
likes
160
points
186
downloads

Publisher

unverified uploader

Weekly Downloads

A Dart package that provides text formatting similar to SmartyPants.

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

meta

More

Packages that depend on smartypants