Skip to content

Commit

Permalink
Render markdown for additional descriptions (#529)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpolidori committed May 23, 2022
1 parent 17b9ff5 commit 4ee77ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckanext/querytool/templates/querytool/public/read.html
Original file line number Diff line number Diff line change
Expand Up @@ -371,10 +371,10 @@ <h3 id="item-title-{{chart_id}}" style="display:none">{{ item.map_custom_title_f

<div class="report_caption">{{ caption or '' }}</div>

{% set additional_description = h.render_markdown(h.get_translated(item, 'additional_description'), True, True) %}
{% set additional_description = h.render_markdown(item.additional_description) %}

{% if additional_description != "<p>None</p>" %}
<div class='additional_desc' id='item-desc-{{chart_id}}' style="display:none;">{{ additional_description }}</div>
{{ additional_description }}
{% endif %}
<p class="clearfix"></p>
{% endif %}
Expand Down

0 comments on commit 4ee77ff

Please sign in to comment.