In data/icons.yam
l I have the following:
info: <i class="fas fa-book"></i>
assignment: <i class="fas fa-check"></i>
optional-assignment: <i class="fas fa-flask"></i>
I use the following shortcode to select one of the icons:
{{ safeHTML (index .Site.Data.icons (.Get 0))}}
When I use the shortcode with %
as delimiters, for example:
This is the info icon: {{% icon info %}}
| Symbol | Description |
| :-----: | -------- |
| {{% icon "info" %}} | Nam euismod tellus id erat. |
| <i class="fas fa-book"></i> | Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. |
| <i class="fas fa-flask"></i> | Sed id ligula quis est convallis tempor. |
, the table doesn’t render properly. The first row is broken up into two rows.
If I use the < >
delimiters the table renders correctly.
This is the info icon: {{< icon info >}}
| Symbol | Description |
| :-----: | -------- |
| {{< icon "info" >}} | Nam euismod tellus id erat. |
| <i class="fas fa-book"></i> | Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. |
| <i class="fas fa-flask"></i> | Sed id ligula quis est convallis tempor. |
Is this expected behaviour? If so, what causes the %
delimiters to cause the table to “break”?