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
You can use `<ruby=ice>fire</ruby>` tag or `<r=ice>fire</r>` tag. Both are the same.
61
-
62
-
It can also work with double quotes.
63
-
64
-
`<ruby="ice">fire</ruby>` tag or `<r="ice">fire</r>` tag.
60
+
Ruby tags allow you to annotate text with small "ruby" characters (e.g., for pronunciation or additional information). Various styles of ruby tags are supported, providing flexibility and backward compatibility.
61
+
62
+
### Supported Ruby Tag Formats
63
+
64
+
1.**Legacy Ruby Tag Styles**:
65
+
These styles have been supported since earlier versions and are fully compatible.
66
+
-`<ruby=ice>fire</ruby>`: Annotates "fire" with "ice".
67
+
-`<r=ice>fire</r>`: Equivalent to the above.
68
+
- These tags also support double quotes:
69
+
-`<ruby="ice">fire</ruby>`
70
+
-`<r="ice">fire</r>`
71
+
72
+
2.**Standard Ruby Tag Styles (from v1.3.0)**:
73
+
Starting from **v1.3.0**, the standard ruby tag format is supported. This enables additional features, such as the ability to use rich text formatting within ruby annotations.
74
+
-`<ruby>fire<rt>ice</rt></ruby>`: Annotates "fire" with "ice".
75
+
-`<r>fire<rt>ice</rt></r>`: Equivalent to the standard style.
76
+
-`<r>fire<rt><color="blue">ice</color></rt></r>`: Enables rich text formatting (e.g., coloring "ice" in blue).
> -**Rich Text Support**: The standard ruby tag style (`<ruby><rt>`) allows for advanced formatting such as color, bold, or italic within the ruby annotations.
94
+
> -**Backward Compatibility**: Legacy styles such as `<ruby="ice">` and `<r="ice">` are fully supported alongside the new standard ruby tag style.
95
+
> -**Standard Syntax Recommendation**: It is recommended to use the standard ruby tag style (`<ruby><rt>`) for new projects to take full advantage of the rich text features.
0 commit comments