Skip to content

Severe issues occur when title is tailed with a space! #4693

@Konfido

Description

@Konfido

What happened?

When the value of property "title" in yaml front matter is tailed with a space, some several issues will occur:

  • The source file can be viewed in external app, but the page content gets empty when it's opened in logseq.
  • It will generate two separate pages when you try to open/click the backlink without a tailing space, and neither of them has valid content.
  • Before I knew what's caused this problem, I've tried to reindex the whole graph, and it just delete the actual content.

Reproduce the Bug

  1. Just open a markdown source file, and tail a space to the "title" property on its yaml front matter.
  2. Then try to search/open it in logseq, but bug will be reproduced.

Expected Behavior

Just ignore the tailed space in the title or trim it automatically, but not delete the whole content.

Screenshots

No response

Desktop Platform Information

  • MacOS 10.15.7
  • logseq 0.6.4

Mobile Platform Information

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    :type/enhancementEnhancement to product. Does not affect the overall basic use.parserMarkdown/Org parser related

    Type

    No type

    Projects

    Status

    🗄 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions