1
0
Fork 0

wrap display block in paragraph tag

closes #1
This commit is contained in:
Waylon Flinn 2016-04-22 14:06:27 -05:00
parent a89d306414
commit fd1ff4d148

View file

@ -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 "<p>" + katex.renderToString(latex, options) + "</p>";
}
catch(error){
if(options.throwOnError){ console.log(error); }