Skip to content

Frontmatter Variable Substitution doesn't work in V2 Preview/Publishing #1322

@aleksey-rowan

Description

@aleksey-rowan

Please select the area your Bug applys to. (Multiple selections are Possible)

  • Onboard. Initial vault setup and import/export pods
  • Create. Note creation, lookup, snippets and templates
  • Retrieve. Backlinks, references, graph view
  • Structure. Refactoring, multi-vault and schemas
  • Publish. Sharing your repo with the world
  • Misc (Choose this if your not sure)

Describe the bug

Frontmatter variable substitution doesn't work in V2 preview; it seems it hasn't been carried over from V1.

To Reproduce

Steps to reproduce the behavior:

  1. Add a new variable to the frontmatter (mood: ambivalent)
  2. Use the variable in the note ({{fm.mood}})
  3. Open V2 preview
  4. Observe that the variable value is not interpolated into the text and the note simply shows {{fm.mood}}

Expected behavior

Frontmatter variable substitution should work in V2 the same it does in V1.

Screenshots

Desktop (please complete the following information)

  • Version 0.58.1

Metadata

Metadata

Assignees

Labels

area.misckind.cropscope.publishStatic site generation, sending note links and anything to do with publishing your notes.type.bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions