{%- if language -%}
{{text}}
{%- else -%}
diff --git a/tiptapy/templates/code_block.html b/tiptapy/templates/code_block.html
index cab56e3..8313a53 100644
--- a/tiptapy/templates/code_block.html
+++ b/tiptapy/templates/code_block.html
@@ -2,7 +2,7 @@
{%- if node.content -%}
{%- set text = node.content[0].text -%}
{%- if text -%}
-
+
{%- if language -%}
{{text}}
{%- else -%}
diff --git a/tiptapy/templates/embed.html b/tiptapy/templates/embed.html
index ee4437a..fe0d6f4 100644
--- a/tiptapy/templates/embed.html
+++ b/tiptapy/templates/embed.html
@@ -1,7 +1,7 @@
{%- set html = node.attrs.html -%}
{%- set provider_name = node.attrs.provider|default('link')|lower -%}
-
+
{%- for item in node.content -%}
{%- with template=item.type + '.html', node=item -%}
{%- include template -%}
diff --git a/tiptapy/templates/extras/audio.html b/tiptapy/templates/extras/audio.html
index e5ccbf2..433f9c6 100644
--- a/tiptapy/templates/extras/audio.html
+++ b/tiptapy/templates/extras/audio.html
@@ -3,7 +3,7 @@
{%- set audio_player_block = get_audio_player_block() -%}
{%- set src = node.attrs.src|trim -%}
-
+
{%- if caption -%}
{{audio_player_block}}
{{caption}}
{%- else -%}
diff --git a/tiptapy/templates/extras/document.html b/tiptapy/templates/extras/document.html
index 495f440..ef2344e 100644
--- a/tiptapy/templates/extras/document.html
+++ b/tiptapy/templates/extras/document.html
@@ -5,7 +5,7 @@
{%- set ext = node.attrs.format|trim -%}
{%- if src and size and fname and ext -%}
{%- set doc_block = get_doc_block(ext, fname, size, src) -%}
-
+
{%- if caption -%}
{{doc_block}}{{caption}}
{%- else -%}
diff --git a/tiptapy/templates/heading.html b/tiptapy/templates/heading.html
index e07223b..d700839 100644
--- a/tiptapy/templates/heading.html
+++ b/tiptapy/templates/heading.html
@@ -1,4 +1,4 @@
-
+
{%- for item in node.content -%}
{%- with template=item.type + '.html', node=item -%}
{%- include template -%}
diff --git a/tiptapy/templates/horizontalRule.html b/tiptapy/templates/horizontalRule.html
index cd2fffa..e9e397a 100644
--- a/tiptapy/templates/horizontalRule.html
+++ b/tiptapy/templates/horizontalRule.html
@@ -1 +1 @@
-
+
diff --git a/tiptapy/templates/horizontal_rule.html b/tiptapy/templates/horizontal_rule.html
index cd2fffa..e9e397a 100644
--- a/tiptapy/templates/horizontal_rule.html
+++ b/tiptapy/templates/horizontal_rule.html
@@ -1 +1 @@
-
+
diff --git a/tiptapy/templates/image.html b/tiptapy/templates/image.html
index b8c2793..1e210b0 100644
--- a/tiptapy/templates/image.html
+++ b/tiptapy/templates/image.html
@@ -9,7 +9,7 @@
{%- set fallback_type = url2mime(fallback_url) -%}
{%- if image_url or fallback_url -%}
- <{{ make_img_src(node.attrs) }}/>
+ <{{ make_img_src(node.attrs) }}/>
{%- if caption -%}
{{ caption }}
{%- endif -%}
diff --git a/tiptapy/templates/paragraph.html b/tiptapy/templates/paragraph.html
index d07a5e8..f3e31da 100644
--- a/tiptapy/templates/paragraph.html
+++ b/tiptapy/templates/paragraph.html
@@ -1,5 +1,5 @@
{%- if node.content -%}
-
+
{%- for item in node.content -%}
{%- with template=item.type + '.html', node=item -%}
{%- include template -%}