MCPcopy Create free account
hub / github.com/UNLINEARITY/Obsidian-CodeSpace / getThemeExtension

Method getThemeExtension

src/code_view.ts:841–845  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

839 }
840
841 getThemeExtension() {
842 const ownerDoc = this.rootEl?.ownerDocument ?? activeDocument;
843 const isDark = ownerDoc.body.classList.contains("theme-dark");
844 return syntaxHighlighting(isDark ? myDarkHighlightStyle : myLightHighlightStyle);
845 }
846
847 getLineNumbersExtension(): Extension {
848 const plugin = this.getPlugin();

Callers 2

initCodeMirrorMethod · 0.95
setupZoomHandlerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected