Added additional check to prevent modifying canvas files during their creation.
Canvas files appear to be created as Canvas.md and renamed to Canvas.canvas after the fact. However, the plugin updates the file's "frontmatter" during creation, which makes the file invalid.
Added additional check to prevent modifying canvas files during their creation.
Canvas files appear to be created as
Canvas.md
and renamed toCanvas.canvas
after the fact. However, the plugin updates the file's "frontmatter" during creation, which makes the file invalid.Also use
file.extension
instead ofendsWith
.