parent
a89d306414
commit
fd1ff4d148
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -152,7 +152,7 @@ module.exports = function math_plugin(md, options) {
|
||||||
var katexBlock = function(latex){
|
var katexBlock = function(latex){
|
||||||
options.displayMode = true;
|
options.displayMode = true;
|
||||||
try{
|
try{
|
||||||
return katex.renderToString(latex, options);
|
return "<p>" + katex.renderToString(latex, options) + "</p>";
|
||||||
}
|
}
|
||||||
catch(error){
|
catch(error){
|
||||||
if(options.throwOnError){ console.log(error); }
|
if(options.throwOnError){ console.log(error); }
|
||||||
|
|
Reference in a new issue