Skip to content
Snippets Groups Projects
Commit fd1ff4d1 authored by Waylon Flinn's avatar Waylon Flinn
Browse files

wrap display block in paragraph tag

closes #1
parent a89d3064
No related branches found
No related tags found
No related merge requests found
......@@ -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); }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment