We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4eec083 commit da91f65Copy full SHA for da91f65
1 file changed
src/main.ts
@@ -41,7 +41,7 @@ export default class ObsidianFunctionPlot extends Plugin {
41
const config: HeaderOptions = Object.assign(
42
{},
43
DEFAULT_HEADER_OPTIONS,
44
- parseYaml(header.match(/-{3,}([^]+?)-{3,}/)[1] || '')
+ header ? parseYaml(header.match(/-{3,}([^]+?)-{3,}/)[1] || '') : {}
45
)
46
47
// prepare options for call to FunctionPlotya
0 commit comments