From 043d75519e10f9db89a83f0148c04fdfdec052c5 Mon Sep 17 00:00:00 2001
From: Menci
Date: Sat, 24 Nov 2018 23:48:14 +0800
Subject: [PATCH] Fix MathJax fail caused application crash
---
libs/markdown.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libs/markdown.js b/libs/markdown.js
index 7d4304f..9527145 100644
--- a/libs/markdown.js
+++ b/libs/markdown.js
@@ -65,7 +65,7 @@ function render(s, cb) {
},
mathRenderer: function(str, display) {
let mathFinish = (error, result) => {
- if (error) maths[id] = '' + data.errors.toString() + '
';
+ if (error) maths[id] = '' + error.toString() + '
';
else if (display) maths[id] = '' + result + '
';
else maths[id] = result;
if (cacheOption.math) cache.set('M_' + display + '_' + str, maths[id]);