Unpopular use of joplin. Trying to read .md files used in webdav

Using joplin with webdav sync.

I have little project in mind where i can feth and only view not encrypted notes.

As a general idea i would read .md files in dav directory and present them in my php application. I know that this is not very practical...

My only question is:

How in backend joplin understand and seperates meta data, title and content in .md file?

is first line in file considered as title, and last 29 lines (like "created_time", "todo_completed:", "updated_time:" etc.) is red as meta data?

I wanted to know that so i will not mess up reading data in my php application.

See here joplin/packages/lib/models/BaseItem.ts at e6ec27a501cd41c2caabaab58b57e35ee20b04d6 · laurent22/joplin · GitHub

Something like this: read file from the last line backwards, everything up until an empty line is properties, everything after that is body, the 1st line is title

2 Likes