Skip to content

Commit

Permalink
feat: process descriptions as markdown (#2009)
Browse files Browse the repository at this point in the history
* feat: process descriptions as markdown
  • Loading branch information
M7mdisk authored Oct 7, 2024
1 parent 0d2562e commit 2ffbcaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/details/configure-charm.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
{% if value.default %}
<p style="overflow-wrap: break-word; white-space: pre-wrap;"><span class="u-text--muted">Default:</span> {{ value.default }}</p>
{% endif %}
<p style="overflow-wrap: break-word; white-space: pre-wrap;">{{ value.description | linkify | safe }}</p>
<p style="overflow-wrap: break-word; white-space: pre-wrap;">{{ value.description | markdown | safe }}</p>
</li>
{% endfor %}
</ul>
Expand Down
2 changes: 1 addition & 1 deletion templates/details/overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h2 class="p-heading--4">Charms in the {{ package.store_front["display-name"] }}
{% endif %}
<div class="js-readme-content">
{% if summary %}
<h4>{{summary | safe }}</h4>
<h4>{{ summary | safe }}</h4>
{% endif %}
{% if description %}
<p>{{ description | safe }}</p>
Expand Down

0 comments on commit 2ffbcaf

Please sign in to comment.