coddingtonbear / obsidian-local-rest-api

Unlock your automation needs by interacting with your notes in Obsidian over a secure REST API.
MIT License
607 stars 56 forks source link

Separate Frontmatter and Content #97

Closed profucius closed 8 months ago

profucius commented 8 months ago

Great plugin, I can really use this for a ton of use-cases.

I need the Content of an obsidian note to be separated from the Frontmatter. Currently, your plugin separates the Frontmatter, but the Content section contains plaintext of the same frontmatter text.

I imagine this would be fairly trivial to factor in, since the Frontmatter section is always preceded and followed by the standard --- text.

I hope that you'll be able to include this. I am struggling with separating this text myself with regex, as some files frontmatter section is longer and includes different symbols than others.