Convert Text to frontmatter

Things I have tried

  • Using the search function and google :smiley:

What I’m trying to do

I want to create specific lines (that could be grabbed via regexp) into frontmatter

Specifically those are lines describing when I created the original note and edited it last.
My notes are converted from OneNote, and I ended up with those lines in a format like this

# Title
Created: 2021-08-02 15:28:00 +0200

Modified: 2021-08-16 12:52:42 +0200

---
text

I could handle transforming them into yaml tags like I see them from Markdown prettifier:
date updated: 'DIFFERENTDATEFORMAT'
But I can’t think of how to handle moving them above the title, and into the frontmatter block - if it exists, and creating the frontmatter block if not.

I’ve seen that there are plugins that handle creation of such data, but these would be false because the note creation does not correspond with the markdown file creation.

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