re-added markdown support under EJS

This commit is contained in:
2025-07-23 02:49:05 +01:00
parent 306adf3943
commit 40e0cc80a3
5 changed files with 8 additions and 5 deletions

View File

@@ -1,11 +1,10 @@
<h1>
<%= post.title %>
</h1>
<%= post.content %><br/>
<%- converter.makeHtml(post.content) %><br/>
<i>
By <a href="/user/<%= user.username %>"><%= user.username %></a><br/>
</i>
<br/>
<%- func.hyperlink_tags(post.tags) %><br/>
<a href="<%= config.edit_post_base_url %>/<%= postID %>">Edit</a><br/>
<i>Published: <%= func.unix_time_to_date_format(post.pubdate) %></i><br/>