Parenting database entities from Markdown structure

In the markdown import documentation you describe that folder-structures are supported, however as far as I can see, this only imports the folder name into a string field, not the actual relationship to another entity.

Is there a way to import from Markdown where we can automatically assign the parent of a new entity based on the folder it is in?

I realize / know that I can do this using a rule / automation, but it would be nice to do this during the import process