Skip to content

Commit

Permalink
Fix symbols rendering problems
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl-Hugo committed May 27, 2020
1 parent d86e4c3 commit 6d343ad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion _includes/text-with-symbols.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
{{ symbol.dest }}
{%- endif -%}
{%- endcapture -%}
{%- assign text = text | markdownify | replace: symbol.source, htmlValue -%}
{%- if include.markdownify -%}
{%- assign text = text | markdownify | replace: symbol.source, htmlValue -%}
{%- else -%}
{%- assign text = text | replace: symbol.source, htmlValue -%}
{%- endif -%}
{%- endfor -%}
{{ text }}
4 changes: 2 additions & 2 deletions _layouts/npc.html
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ <h3>(GM)</h3>
{% for talent in data.talents %}
<div class="talent">
<strong>{{ talent.name }}</strong>
<p>{% include text-with-symbols.html content=talent.effect %}</p>
<p>{% include text-with-symbols.html content=talent.effect markdownify=true %}</p>
</div>
{% endfor %}
</section>
Expand All @@ -219,7 +219,7 @@ <h3>(GM)</h3>
{% for ability in data.abilities %}
<div class="ability">
<strong>{{ ability.name }}</strong>
<p>{% include text-with-symbols.html content=ability.effect %}</p>
<p>{% include text-with-symbols.html content=ability.effect markdownify=true %}</p>
</div>
{% endfor %}
</section>
Expand Down

0 comments on commit 6d343ad

Please sign in to comment.