Properties are not added from template when inserting into a note in Canvas

Steps to reproduce

  1. Create a template note with properties in it like:

---
foo: bar
---

Lorem Ipsum

  1. Create or open a canvas

  2. Add a new blank note to the canvas

  3. Insert the template from the test template note above. Properties are not added

Did you follow the troubleshooting guide? [Y/N]

Y

Expected result

Properties from template note added to the note in the canvas

Actual result

Properties are not added, all other text from template added correctly

Environment

SYSTEM INFO:
Obsidian version: v1.5.3
Installer version: v1.4.16
Operating system: Windows 10 Pro 10.0.19045
Login status: logged in
Catalyst license: none
Insider build toggle: off
Live preview: on
Base theme: dark
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none


Additional information

Works as expected if the whole text from the template note is copied in source mode and then pasted into the note

thank you