MCPcopy Create free account
hub / github.com/ZenNotes/zennotes /

Class

packages/app-core/src/lib/cm-frontmatter.ts:55–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53
54export const frontmatterStyle = ViewPlugin.fromClass(
55 class {
56 decorations: DecorationSet
57 constructor(view: EditorView) {
58 this.decorations = buildFrontmatterDeco(view)
59 }
60 update(update: ViewUpdate): void {
61 if (update.docChanged) this.decorations = buildFrontmatterDeco(update.view)
62 }
63 },
64 { decorations: (v) => v.decorations }
65)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected