Adding image in Markdown

hello,
I would like to know how can I add a file in Markdown. I'm using the CLI app.
As command, this works:
attach $c </path/to_file>

While editing a note this doesn't work:
![test.png](resources/test.png)
nor
![test.png](/full_path/test.png)

Can someone help me with this?
thanks

It seems like you did it correctly, once a resource is attached you just need to use its new ID.

i.e.
attach $n /path/to/file.png

will display in the CLI app as (for example)
[file.png](http://127.0.0.1:9167/0
As that is a link for the mini server it uses to display resources.

Editing the note in an external app will show the direct path to the resource e.g.
![file.png](resources/dcec47337fcd4d8295e7c01e7d6ff01c)

But internally it should be stored as:
![file.png](:/dcec47337fcd4d8295e7c01e7d6ff01c)

I don't think the CLI app has the ability to start a mini-server for local resource links other than its own internal ones, it will work for links to online resources but not with local paths.

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