Skip to content

Node.js based forum software built for the modern web

customising markdown parser to allow single line breaks

Julian Lam73fc0a36998e
diff --git a/src/posts.js b/src/posts.js
index 7541cb79d0..2bf20a9603 100644
--- a/src/posts.js
+++ b/src/posts.js
@@ -3,6 +3,10 @@ var RDB = require('./redis.js'),
marked = require('marked'),
user = require('./user.js');
+marked.setOptions({
+ breaks: true
+});
+
(function(Posts) {
//data structure
//*global:next_post_id