disable markdown as unsafe for remote content without additional filters implementation

This commit is contained in:
ghost 2023-12-08 04:09:38 +02:00
parent fe608cff8f
commit 6603790aba

View File

@ -238,7 +238,9 @@
{{ 'Source' | trans }} {{ 'Source' | trans }}
</td> </td>
<td> <td>
{{ file.source | url_to_markdown | markdown_to_html }} {# disable markdown as unsafe for unfiltered content #}
{#{{ file.source | url_to_markdown | markdown_to_html }}#}
{{ file.source }}
</td> </td>
</tr> </tr>
{% endif %} {% endif %}
@ -248,7 +250,9 @@
{{ 'Software' | trans }} {{ 'Software' | trans }}
</td> </td>
<td> <td>
{{ file.software | url_to_markdown | markdown_to_html }} {# disable markdown as unsafe for unfiltered content #}
{#{{ file.software | url_to_markdown | markdown_to_html }}#}
{{ file.software }}
</td> </td>
</tr> </tr>
{% endif %} {% endif %}
@ -258,7 +262,9 @@
{{ 'Comment' | trans }} {{ 'Comment' | trans }}
</td> </td>
<td> <td>
{{ file.comment | url_to_markdown | markdown_to_html }} {# disable markdown as unsafe for unfiltered content #}
{#{{ file.comment | url_to_markdown | markdown_to_html }}#}
{{ file.comment }}
</td> </td>
</tr> </tr>
{% endif %} {% endif %}