-
I'm using ETAPI to upload markdown files that contains images. https://github.com/Nriver/trilium-py/blob/main/src/trilium_py/client.py#L546 Here is what I did:
So far, the note contents are good, images are shown properly. However, the image sub-notes are not hidden as a normal note would do. I had to manually open the note, then modify it a bit, like enter a new line, then the sub-notes will go hidden. How can I trigger this process with code? It would be nice if I can trigger this in ETAPI. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, Trilium has a "system" relation This is used to decide whether the children should be shown or not. When you do the little edit, the note is parsed and the imageLink relations generated. To avoid having to do this, simply create these |
Beta Was this translation helpful? Give feedback.
Hi, Trilium has a "system" relation
~imageLink
in the direction from the text note pointing to the image note.This is used to decide whether the children should be shown or not.
When you do the little edit, the note is parsed and the imageLink relations generated.
To avoid having to do this, simply create these
~imageLink
relations using ETAPI.