Automatically add properties from a formatted md file

What I’m trying to do

Hi, I have a system where I OCR my physical notes and generate a .md file. I add the YAML header to the file with the properties I want (specifically, tags).

However, when adding the file to the obsidian vault, the properties are ignored.

Am I missing something simple? Is it possible to do what I wanna do - have obsidian automatically read the properties from an externally created md file?

Thanks.

You don’t need to create properties inside Obsidian for them to work.
Properties are just YAML keys and values.

Valid YAML in Obsidian:

---
tags:
  - sometag1
---
  • You need to use tags in the plural as opposed to tag.
  • That’s two spaces before the hyphen.
  • You need zero lines above the first --- of course. Any other markdown content will come after the YAML block.

The following syntax is still supported (but the above method with list item array is recommended):

---
tags: sometag1 sometag2
---
---
tags: [sometag1, sometag2]
---

Thanks Yurcee. That’s exactly what I did, but probably something was amiss (maybe I formatted the YAML wrong) cause they wouldn’t show up. They do now! Thanks again!

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.