Wrong title for imported md file with YAML front matter

Hi folks, I’ve just noticed a behavior that is making my attempt at moving lots of notes to Inkdrop a lot more annoying than it should. When importing a md file with a proper YAML front matter, the imported note ends up with a correctly-recognized YAML front matter (since it doesn’t show up in Preview mode) but the title is set to ‘—’, so it looks like it isn’t taken neither from the YAML front matter nor from the first H1 line found.

The md file to be imported:

---
title: In-text title
created: '2020-10-04T14:54:24.114Z'
modified: '2020-10-04T14:54:46.789Z'
---

# In-text title

Content.

The result:

Info

  • Platform: macOS
  • Platform version: Catalina 10.15.7
  • App Version: 5.1.1

Reproduce

  • File -> Import -> Markdown
  • Select the bogus md file shown above
  • Imported note ends up with ‘—’ as title

Hi Federico,

Thank you for reporting it.
Yeah, it looks like a bug.
It doesn’t properly deal with YAML frontmatters at the moment.