Skip to content

CustomCSS.getSnippetPath method

CustomCSS › getSnippetPath

Unofficial

Convert snippet name to its corresponding filepath (relative to vault root).

Signature:

getSnippetPath(snippetName: string): string

Parameters:

ParameterTypeDescription
snippetNamestringName of the snippet.

Returns: stringString .obsidian/snippets/${snippetName}.css.