From 2aa94754c9a09e5ea707a30c6e937b7bfb3dd05a Mon Sep 17 00:00:00 2001 From: cel Date: Fri, 2 Jun 2017 18:34:51 -1000 Subject: Use existing function for rendering git commit bodies --- lib/serve.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/serve.js') diff --git a/lib/serve.js b/lib/serve.js index 9d5eb82..d2510e1 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -1438,7 +1438,8 @@ Serve.prototype.gitCommit = function (rev) { pull.once(commit.tree), self.gitObjectLinks(obj.msg.key, 'tree') )]) : '', - h('pre', self.app.render.linkify(commit.body)).outerHTML, + h('blockquote', + self.app.render.gitCommitBody(commit.body)).outerHTML, ] ]), self.wrapPage('git commit ' + rev), -- cgit v1.2.3