Skip to content

Instantly share code, notes, and snippets.

@mablin7
Created March 27, 2021 02:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mablin7/47138642eb3720af7ce4871c74034e01 to your computer and use it in GitHub Desktop.
Save mablin7/47138642eb3720af7ce4871c74034e01 to your computer and use it in GitHub Desktop.
Joplin Crasher Plugin
module.exports = {
default: function () {
return {
plugin: function (CodeMirror) {
CodeMirror.defineMode('joplin-test', () => {
throw new Error('ERROR')
});
},
codeMirrorOptions: { mode: 'joplin-test' },
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment