Skip to content

Note creation template placeholder differs from the YAML-safe default #390

Closed

Description

@chhoumann

The Note creation template placeholder includes url: "{{url}}" in YAML frontmatter. The shipped default keeps {{url}} in the body because local-file URLs are vault wikilinks and pass through without YAML escaping.

At PodNotesSettingsTab.ts, the placeholder claims to mirror the default but uses the older layout. constants.ts contains the current default. TemplateEngine.ts preserves genuine local-file links verbatim.

Copying the hint into a template can produce invalid YAML for a local filename containing a literal double quote. Update the hint to match the shipped default, with URLs in the body.

Found during the DOCS2 source audit. This is a source-based finding. Real Obsidian reproduction has not been performed. Plugin source is outside this docs unit's scope.

Activity

  1. chhoumann commented on Oct 14, 2026

    @chhoumann
    OwnerAuthor

    Fixed by the settings rewrite in #468 and already present on current master d5022199ca5adecca8cf2fbc69fe013820ebd0fa.

    The Episode note template field calls this.text((settings) => settings.note, "template"). The shared field helper sets placeholder: section(DEFAULT_SETTINGS)[key], so the placeholder comes directly from the shipped default. That default places {url} in the note body.

    Verified from current master source during NOTE2. No further settings change is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions