summaryrefslogtreecommitdiffstats
path: root/templates/file.md
diff options
context:
space:
mode:
Diffstat (limited to 'templates/file.md')
-rw-r--r--templates/file.md4
1 files changed, 4 insertions, 0 deletions
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' %}