You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An attributed string implementation for Ruby.[](https://github.com/instruct-rb/attributed-string/actions/workflows/ruby.yml)
4
4
5
-
An attributed string contains key-value pairs known as attributes that specify additional information related to ranges of characters within the string. Attributed strings support any key-value pair, but are often used for:
5
+
An attributed string contains key-value pairs known as attributes that specify additional information related to ranges of characters within the string. Attributed strings support any key-value pair, but are often used for:
6
6
7
7
- Rendering attributes such as font, color, and other details.
8
-
- Attributes for inline-attachments such as images, videos, files, etc.
8
+
- Attributes for inline-attachments such as images, videos, files, etc.
9
9
- Semantic attributes such as link URLs or tool-tip information
10
-
- Language attributes to support automatic gender agreement or verb agreement.
10
+
- Language attributes to support automatic gender agreement or verb agreement.
11
11
- Accessibility attributes that provide information for assistive technologies
12
12
- Custom attributes you define
13
13
14
-
You will typically need to create a presenter for an attributed string, as the default shows no attribute information and inspect shows all attributes.
14
+
You will typically need to create a presenter for an attributed string, as the default shows no attribute information and inspect shows all attributes.
15
+
16
+
This gem is inspired by Apple's [NSAttributedString](https://developer.apple.com/documentation/foundation/nsattributedstring)
0 commit comments