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 %>