Skip to content

Custom frontmatter property "title" is removed when editing through LeafWiki UI #1168

Description

@bengreeno

Bug Report

What happened?

When editing a note through the LeafWiki UI, a custom frontmatter property named title appears to be removed from the note.

I’m not sure whether this is intentional behavior or a bug, but I wanted to report it because I’m intentionally using title as my own custom frontmatter field, separately from leafwiki_title.

Related context: I mentioned this separately in #1161, but I’m opening this as its own issue so it can be tracked independently.

Version

v0.10.2

Platform

  • Desktop Web
  • Mobile Web
  • iOS
  • Android

Steps to reproduce

  1. Create or edit a note that includes both a custom title property and a leafwiki_title property in frontmatter, for example:

    ---
    title: My Title
    leafwiki_title: My Title
    ---
  2. Open the note in the LeafWiki UI.

  3. Make an edit to the note content.

  4. Save the note.

  5. Check the note’s frontmatter afterward.

Expected behavior

LeafWiki should preserve the custom title frontmatter property when saving the note, especially when leafwiki_title is being used separately for LeafWiki’s own title behavior.

If title is intentionally reserved or unsupported, it would be helpful for that to be documented, or for the UI to avoid silently removing it.

Screenshots / recording

  1. Before editing: the raw markdown includes a custom title property.
Image
  1. After editing through the LeafWiki UI: the custom title property is gone, while permalink, tags, type, and the leafwiki_* fields remain.
Image

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions