From 0a99478d9f12cd4fc1218e0b4e23a1ef4905c7e1 Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 28 Sep 2017 11:50:35 +0200 Subject: [PATCH] catch diffdom errors and plow through --- www/slide/slide.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/slide/slide.js b/www/slide/slide.js index 3477a6a32..4bfcacc4f 100644 --- a/www/slide/slide.js +++ b/www/slide/slide.js @@ -83,7 +83,7 @@ define([ var c = Slide.content; var m = ''+DiffMd.render(c).replace(separatorReg, '')+''; - DiffMd.apply(m, $content); + try { DiffMd.apply(m, $content); } catch (e) { return console.error(e); } var length = getNumberOfSlides(); $modal.find('style.cp-app-slide-style').remove();