Skip to content

Issue with Obsidian Properties/Front Matter #356

Description

@vinieux

So here's what happens. Pressing Enter after entering the PIN in Telegram Sync startup authentication prompt modifies the last open note which reopens behind the modal when Obsidian restarts.

When Obsidian restarts with Telegram Sync enabled, the plugin displays a prompt asking for an authentication code. If I enter the code and press Enter while the code textbox still has focus, the Enter key also affects the last opened note behind the modal.

Specifically, it inserts a line break immediately before the note’s YAML frontmatter. The frontmatter is then no longer recognized as Properties, and displays as plain text. Also, the property before the closing --- is rendered as Markdown with H2-like formatting because the note content below the end frontmatter --- does not appear to move down normally.

Pressing Enter after the closing --- and deleting the extra line break before the opening --- causes the note to reparse, after which the frontmatter looks like it should look.

Have crosschecked it in source code view too to see how the movement of the frontmatter happens.

Could you help with this, please?

telsync.mp4

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