You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (configs.renderingConfig.codeSyntaxHighlighting) {
33
+
if (configs.renderingConfig&&configs.renderingConfig.codeSyntaxHighlighting) {
31
34
require.ensure([], () => {
32
35
var theme =configs.renderingConfig.highlightingTheme||'default'
33
36
window.hljs=require('highlight.js')
@@ -47,10 +50,10 @@ export default {
47
50
})
48
51
},
49
52
addPreviewClass () {
50
-
var _class =this.configs.renderingConfig.codeSyntaxHighlighting?this.previewClass+' hljs':this.previewClass
53
+
var _class =(this.configs.renderingConfig&&this.configs.renderingConfig.codeSyntaxHighlighting)?(this.previewClass||'') +' hljs':(this.previewClass||'')
51
54
var wrapper =this.simplemde.codemirror.getWrapperElement()
0 commit comments