This could work like Tags > Convert Hashtags to Tags does now, except it would parse the front matter syntax which is
tag: ["tagname"] or tag: [tagname]
either seem to work in Obsidian
Use case: I use Obsidian alongside DEVONthink and this would allow me to tag using YAML Front Matter in Obsidian and easily turn them into usable tags in DEVONthink which is where I do my processing and searching for obvious reasons
Iām working around this by tagging outside of the front matter section, but Iād prefer to keep the tags hidden with the rest of the document meta inside the front matter.
PS: Obsidian is doing their own thing with Markdown. We try to follow standards and conventions when possible, even if the standard isnāt defined by anything more than the understanding and use of the majority.
Iām with you on standards. I totally agree. I believe I used that format based on this article and some template recommendations, but honestly I would use whatever is the more common approach.
Using tags in front matter in Obsidian and being able to easily capture them, preferably by a smart rule, as real tags in DEVONthink is my dream situation.
I donāt know if thatās possible directly with a rule.
It certainly is with a script which could be run from a smart rule: grab the love (edit: read ālineā) beginning with "tags: ", isolate the tags themselves and add them to the tags property of the record.
Just revisiting this topic. Iām new to Devonthink. Installed it two days ago, and indexed my Obsidian vault today. And realized that DT picks up #tags in text but doesnāt pick up tags in YAML frontmatter. I think that that would be a very good thing to have. But I donāt know how to script it. All and any help would be greatly and deeply appreciated.
Arenāt there multiple ways to format tags in YAML frontmatter? If all 3 formats below work:
tags: hello greeting
tags: [hello] [greeting]
tags: hello, greeting
how is Obsidian doing their own thing with respect to YAML frontmatter tags?
Which version of DEVONthink do you use, is the preference to convert hashtags to tags enabled? Finally, an example document would be useful as this seems to work as expected over here. Thanks!
#Tags work for me in YAML headers, but the standard YAML headers arenāt converted to Properties in the same way that they are in non-YAML headers. IndexRawMarkdownSource is enabled.
Create two brand new markdown files with exactly the same standard headers, Title, Authors and Keywords, the only difference being that one file has Yaml block separators (---) and the other doesnāt.
Secondly, as you can see from the second screenshot, YAML headers are not hidden in the Preview rendering. This doesnāt bother me particularly as I like seeing the headers, but it is a difference in treatment. Itās why I asked whether the behaviour is expected or not.
Yes, it works, but isnāt that because the only --- is treated as a simple divider? I.e. Itās not seen as a YAML block because of the absence of the first separator. (I could be wrong on this, Iām an expert in neither markdown nor yaml!)
I know multimarkdown accepts a subset of YAML metadata, but I donāt know how that translates to previews (and as I said, I actually donāt mind them being displayed).
My question was really why the properties are being ignored with the YAML headers and whether this is expected ā itās not referenced in the help as far as I can tell.
DEVONthinkās parsing is consistent to MultiMarkdownās rendering. If itās visible in the preview, then itās not metadata. But actually this works as expected over here:
For what itās worth, if I use the following YAML at the start of a markdown file DEVONthink does tag the record appropriately:
---
tags: Humour
---
If I copy the header from your post and add that at the top of a markdown file it is not picked up by DEVONthink as YAML and, as you say, appears in the preview.
Iām not quite sure why but I had to meddle quite a lot with your text to get rid of some strange emboldening (rogue code?). Iām unsure whether the initial lower case words make a material difference,