From c73ce69f9308f58330411fb37a10287fc6c8a11c Mon Sep 17 00:00:00 2001 From: DeaDvey Date: Wed, 27 Aug 2025 18:19:12 +0100 Subject: [PATCH] bug fix: postID -> post_index --- src/functions.js | 9 ++++++++- views/posts/tag.ejs | 2 +- views/posts/timeline.ejs | 2 +- views/posts/user.ejs | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/functions.js b/src/functions.js index 3b954d7..210c084 100644 --- a/src/functions.js +++ b/src/functions.js @@ -101,6 +101,13 @@ export function render_comment(comment_content) { }; export function render_md(content) { const markdownit = require("markdown-it") - const md = markdownit() + const md = markdownit({ + html: false, + xhtmlOut: false, + breaks: true, + linkify: false, + typographer: true, + quotes: true, + }) return md.render(content) }; diff --git a/views/posts/tag.ejs b/views/posts/tag.ejs index b7fd07e..9fa19bf 100644 --- a/views/posts/tag.ejs +++ b/views/posts/tag.ejs @@ -2,7 +2,7 @@ <%= post.title %> <%- func.render_md(post.content) %>
-<%= locale.edit_post %>
+<%= locale.edit_post %>
<%= locale.permalink %>
<%- func.hyperlink_tags(post.tags) %>
diff --git a/views/posts/timeline.ejs b/views/posts/timeline.ejs index 5ba72ff..e504d33 100644 --- a/views/posts/timeline.ejs +++ b/views/posts/timeline.ejs @@ -2,7 +2,7 @@ <%= post.title %> <%- func.render_md(post.content) %>
-<%= locale.edit_post %>
+<%= locale.edit_post %>
<%= locale.permalink %>
<%= locale.written_by %> <%= user.username %>
diff --git a/views/posts/user.ejs b/views/posts/user.ejs index a44837f..a6fb2db 100644 --- a/views/posts/user.ejs +++ b/views/posts/user.ejs @@ -2,7 +2,7 @@ <%= post.title %> <%- func.render_md(post.content) %>
-<%= locale.edit_post %>
+<%= locale.edit_post %>
<%= locale.permalink %>