mirror of
https://github.com/kotaindah55/extended-markdown-syntax.git
synced 2026-07-22 05:38:06 +00:00
feat: extend plugin with facet storing "this.app"
This commit is contained in:
parent
50a209a589
commit
c8ab1273bf
1 changed files with 9 additions and 0 deletions
9
src/editor-mode/facets/appFacet.ts
Normal file
9
src/editor-mode/facets/appFacet.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { Facet } from "@codemirror/state";
|
||||
import { App } from "obsidian";
|
||||
|
||||
export const appFacet = Facet.define<App, App>({
|
||||
combine(value) {
|
||||
return value[0];
|
||||
},
|
||||
static: true
|
||||
});
|
||||
Loading…
Reference in a new issue