-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
logseq/mldoc
#122Labels
:type/enhancementEnhancement to product. Does not affect the overall basic use.Enhancement to product. Does not affect the overall basic use.parserMarkdown/Org parser relatedMarkdown/Org parser related
Description
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
- Just open a markdown source file, and tail a space to the "title" property on its yaml front matter.
- 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
Labels
:type/enhancementEnhancement to product. Does not affect the overall basic use.Enhancement to product. Does not affect the overall basic use.parserMarkdown/Org parser relatedMarkdown/Org parser related
Type
Projects
Status
🗄 Backlog