From fd1ff4d1488db04811a98eea0096d8b44a3f5166 Mon Sep 17 00:00:00 2001 From: Waylon Flinn Date: Fri, 22 Apr 2016 14:06:27 -0500 Subject: [PATCH] wrap display block in paragraph tag closes #1 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 897a183..92c0866 100644 --- a/index.js +++ b/index.js @@ -152,7 +152,7 @@ module.exports = function math_plugin(md, options) { var katexBlock = function(latex){ options.displayMode = true; try{ - return katex.renderToString(latex, options); + return "

" + katex.renderToString(latex, options) + "

"; } catch(error){ if(options.throwOnError){ console.log(error); }