added markdown formatter

This commit is contained in:
2025-06-10 20:49:47 +02:00
parent f119511ed9
commit 63576e8cd4
2 changed files with 12 additions and 5 deletions

View File

@@ -28,7 +28,7 @@
<% recipes.forEach(recipe => { %>
<div class="recipe-card">
<h2><%= recipe.title %></h2>
<p><%- recipe.content.replace(/\n/g, "<br />") %></p>
<div class="markdown"><%- recipe.content %></div>
</div>
<% }) %>
</section>