Prawn's inline formatting:
http://rubydoc.info/gems/prawn/0.12.0/Prawn/Text:text
Support formats:
- Bold:
<b>bold</b>
- Italic:
<i>italic</i>
- Underline:
<u>underline</u>
- Strikethrough:
<strikethrough>strikethrough</strikethrough>
- Subscript, Superscript:
<superscript>super</superscript>, <subscript>sub</subscript>
- Font style - Size, CharacterSpacing:
<font size="24">font style</font>
- Text color:
<color rgb="#ff0000">color</color>
- Link:
<link href="http://www.thinreports.org">thinreports.org</link>
Support table:
| Format |
TextBlock in global |
TextBlock in List |
Text |
<b> |
Yes |
Yes |
Yes |
<i> |
Yes |
Yes |
Yes |
<u> |
Yes |
Yes |
Yes |
<strikethrough> |
Yes |
Yes |
Yes |
<sub> |
Yes |
Yes |
Yes |
<sup> |
Yes |
Yes |
Yes |
<font> |
Yes |
Yes |
Yes |
<color> |
Yes |
Yes |
Yes |
<link> |
Yes |
Yes |
Yes |
Example:
page.item(:text).value('<b>ThinReports</b> official site is <i>thinreports.org</i>')
=> ThinReports official site is thinreports.org.
Prawn's inline formatting:
http://rubydoc.info/gems/prawn/0.12.0/Prawn/Text:text
Support formats:
<b>bold</b><i>italic</i><u>underline</u><strikethrough>strikethrough</strikethrough><superscript>super</superscript>,<subscript>sub</subscript><font size="24">font style</font><color rgb="#ff0000">color</color><link href="http://www.thinreports.org">thinreports.org</link>Support table:
<b><i><u><strikethrough><sub><sup><font><color><link>Example:
=> ThinReports official site is thinreports.org.