From 85da4abc206f2cc8819836bb0e8727de3a51d24c Mon Sep 17 00:00:00 2001 From: Christoph Schlosser Date: Fri, 10 Oct 2025 17:19:27 +0200 Subject: g2h: Render markdown files instead of putting them into code blocks --- templates/file.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'templates') diff --git a/templates/file.md b/templates/file.md index 5f4dcbd..39b3202 100644 --- a/templates/file.md +++ b/templates/file.md @@ -6,10 +6,14 @@ {% include '_breadcrumbs.md' %} {% if type == 'text' %} +{% if backtick_max >= 3 %} {% set backticks = '`' * backtick_max %} {{ backticks }}{{ file_extension }} +{% endif %} {{ content }} +{% if backtick_max >= 3 %} {{ backticks }} +{% endif %} {% elif type == 'image' %} ![](data:image/png;base64,{{ content }}) {% elif type == 'empty' %} -- cgit v1.2.3