Skip to content
Snippets Groups Projects
Unverified Commit 4ceb2b74 authored by Opportunity's avatar Opportunity Committed by GitHub
Browse files

Update index.js

parent 91337b6b
No related branches found
No related tags found
No related merge requests found
......@@ -174,7 +174,7 @@ module.exports = function math_plugin(md, options) {
}
catch(error){
if(options.throwOnError){ console.log(error); }
return `<span class='katex-error' title='${escapeHtml(error)}'>${escapeHtml(latex)}</span>`;
return `<span class='katex-error' title='${escapeHtml(error.toString())}'>${escapeHtml(latex)}</span>`;
}
};
......@@ -189,7 +189,7 @@ module.exports = function math_plugin(md, options) {
}
catch(error){
if(options.throwOnError){ console.log(error); }
return `<p class='katex-block katex-error' title='${escapeHtml(error)}'>${escapeHtml(latex)}</p>`;
return `<p class='katex-block katex-error' title='${escapeHtml(error.toString())}'>${escapeHtml(latex)}</p>`;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment