diff --git a/crates/treehouse/src/html/tree.rs b/crates/treehouse/src/html/tree.rs
index 83f8a62..4037f3e 100644
--- a/crates/treehouse/src/html/tree.rs
+++ b/crates/treehouse/src/html/tree.rs
@@ -122,8 +122,6 @@ pub fn branch_to_html(
);
s.push_str("");
markdown::push_html(s, treehouse, config, markdown_parser);
- s.push_str("");
-
if let Content::Link(link) = &branch.attributes.content {
write!(
s,
@@ -134,6 +132,7 @@ pub fn branch_to_html(
)
.unwrap();
}
+ s.push_str("");
s.push_str("");
{