Skip to content

Commit ed32dbc

Browse files
author
fmoronzirfas
committed
feat(inline markdown): finally add the inline markdown conversion for all descriptions
1 parent 1f5892a commit ed32dbc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_includes/entry-card.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{% assign eid = include.entry.name | downcase %}
33
<h4 id="{{eid}}" class="entries-title">{% if include.ispage == false %}<a href="/reference/{{id}}/{{include.entry.name}}.html">{% endif %}{{include.entry.codetitle}}{% if include.ispage == false %}</a>{% endif %}</h4>
44
{% if include.entry.description != null %}
5-
<p class="descriptions">{{include.entry.description}}</p>
5+
<p class="descriptions">{{include.entry.description | markdownify }}</p>
66
{% endif %}
77
<!-- we test if the include.entry has a parameters -->
88
<div class="type">
@@ -13,7 +13,7 @@ <h4 id="{{eid}}" class="entries-title">{% if include.ispage == false %}<a href="
1313
<p><strong>Parameter(s):</strong></p>
1414
<ul>
1515
{% for param in include.entry.parameters %}
16-
<li><strong>{{param.name}}</strong> {% raw %}{{% endraw %}{% for type in param.type %}{{type}}{% unless forloop.last %} | {% endunless %}{% endfor %}{% raw %}}{% endraw %}{% if param.optional %} <em>Optional:</em>{%else%}:{% endif %}<br>{{param.description}}</li>{% endfor %}
16+
<li><strong>{{param.name}}</strong> {% raw %}{{% endraw %}{% for type in param.type %}{{type}}{% unless forloop.last %} | {% endunless %}{% endfor %}{% raw %}}{% endraw %}{% if param.optional %} <em>Optional:</em>{%else%}:{% endif %}<br>{{param.description | markdownify }}</li>{% endfor %}
1717
</ul>
1818
</div> <!-- end parameters div -->
1919
{% endif %}
@@ -23,7 +23,7 @@ <h4 id="{{eid}}" class="entries-title">{% if include.ispage == false %}<a href="
2323
<ul>
2424
<li>
2525
{% raw %}{{% endraw %}{% for type in include.entry.returns.type %}{{type}}{% unless forloop.last %} | {% endunless %}{% endfor %}{% raw %}}{% endraw %}:<br>
26-
{{include.entry.returns.description}}
26+
{{include.entry.returns.description | markdownify }}
2727
</li>
2828
</ul>
2929
</div>

0 commit comments

Comments
 (0)