Merge Template includes Frontmatter in body of the note

Steps to reproduce

  • Create a template for Note Composer Plug in
  • Add {{fromTitle}} as a variable to the template
  • merge note with properties into another

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

Yes

Expected result

The title and origin of the origin note is merged to the target note. Properties of the origin note are merged with the properties of the target note.

Actual result

Title and content from origin note are merged into target note. Properties are pasted as plaintext between the title of the origin note and its content.

Environment

SYSTEM INFO:
Obsidian version: v1.9.1
Installer version: v1.7.7
Operating system: Darwin Kernel Version 24.5.0: Tue Apr 22 19:48:46 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T8103 24.5.0
Login status: logged in
Language: en
Catalyst license: insider
Insider build toggle: on
Live preview: on
Base theme: dark
Community theme: Primary v2.10.0
Snippets enabled: 2
Restricted mode: off
Plugins installed: 17
Plugins enabled: 17
1: Auto Link Title v1.5.5
2: Zotero Integration v3.2.1
3: Kanban v2.0.51
4: Vimrc Support v0.10.2
5: Spaced Repetition v1.13.3
6: Style Settings v1.0.9
7: List Callouts v1.2.9
8: Pandoc Plugin v0.4.1
9: Excalidraw v2.12.2
10: Minimal Theme Settings v8.1.1
11: Markitdown File Converter v1.0.2
12: Templater v2.11.3
13: Wayback Archiver v1.0.5
14: Keep the Rhythm v0.1.11
15: Writing Goals v0.10.11
16: QuickAdd v1.13.3
17: Janitor v1.1.1

I can confirm this. Properties are merged if you don’t use a template with the Note composer core plugin. However when you use a template that contains {{fromTitle}}, {{newTitle}} or {{date:FORMAT}} then properties are not merged and they are treated as part of the note content. This behavior is inconsistent since without using a template Note composer deals properties separately. One should expect that properties are dealt separately regardless if you use templates or not when using the Note composer core plugin.

1 Like