This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default class IndexedDB { | |
constructor(dbName, dbVersion, stores) { | |
this.db; | |
this.dbName = dbName; | |
this.dbVersion = dbVersion; | |
this.stores = stores; | |
} | |
openDB(callback=(()=>{})) { | |
if (!window.indexedDB) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.ProseMirror .Math { | |
display: contents; | |
} | |
.ProseMirror .Math .katex-editor { | |
display: inline; | |
} | |
.ProseMirror .Math .katex-render .katex { | |
font-size: 1em; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.ProseMirror .MathBlock pre { | |
background: var(--default-back); | |
color: rgb(var(--default-font)); | |
font-size: 0.8em; | |
display: flex; | |
padding: 1em; | |
} | |
.ProseMirror .MathBlock { | |
display: flex; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Plugin, PluginKey, Extension } from 'tiptap' | |
import { Decoration, DecorationSet } from 'prosemirror-view' | |
import { findBlockNodes } from 'prosemirror-utils' | |
import CodeMirror from 'codemirror/addon/runmode/runmode.node.js'; | |
import "codemirror/mode/meta"; | |
/* | |
* Global set of CodeMirror languages to dynamically import. | |
*/ |
OlderNewer