Markdown import question

Hello,

Trying to move my markdown notes from Obsidian over into DT3 Pro for simplification. I just don’t want to have to deal with multiple apps all the time and since I am exclusively in the Apple ecosystem it makes sense to me.

However, I have yet to find a way to perform an easy import of my notes that also include images that are stored in separate Assets Folders in Obsidian.

I used Preferences > Files > Markdown > Images: Import assets to group
Setting in DT3 and tried importing the markdown notes and separate Assets folder from Obsidian into a Group called Obsidian but the image links do not work. If I move the images to the same group as the Markdown notes they work.

Am I doing something incorrectly? Will I have to relink all pictures? I would really like to avoid having to do that if there is any way around it.

Thank you so much for your help! Was looking through the Forum but didn’t have any luck.

1 Like

It’s possible to mass re-link pictures (e.g. change item.png to subgroup/item.png, provided that you want to put all linked images in a single subgroup) with AppleScript.

Hi there,

Thank you for your answer. That might be a good possibility if I can make it work.

I take it the way I import is the normal way and nothing else that I could/should do? Just import same structure and then rename with Applescript?

A screen capture of the preference and the group in the database would be helpful.

1 Like

I’m not an Obsidian expert, and I don’t know if there are convenient ways to “prepare” your files inside Obsidian. Depending on how you embed files in Obsidian, the renaming part can be as simple as replacing every occurrence of string ![[ with string ![[Assets/ , and it can be done with other scripting methods than AppleScript.

Will follow up with screenshots. I have two examples one working one not and would like to see if I can understand the difference.

Might take me until tomorrow though.

Thank you for trying to help!

Makes sense, will look into that as well as soon as I understand exactly what it is I need to do.

No rush. It’s the holidays still.

I know, I know…

So Preferences:

Then not working example

  1. Obisidian:


    Note with Screenshot… .png

  2. Looks like this in Devonthink:

Same group/folder structure, top level group “Log” then Subgroup “Assets” with the “Screenshot… .png” in it.

Working Example:
Same structure just different note linked to “IMG…028”

Don’t fully understand what the difference is and why one is working and the other one is not. I imported the entire folder including the Assets folder from the file structure within my obsidian vault.

Hopefully my screenshots are making sense to you.

Thank you for helping!

Spaces in file name… Not a good idea. URL escape them perhaps?

Redacting file names is not the best idea here, I think.

Can unredact the file names. That makes sense. Thank you

On a side note, the ![[some_image.png]] syntax is not standard Markdown. It’s an Obsidian convention. A standard Markdown image link is ![alternate text](path to image).
You should be aware of and consider this when trying to use the docs with other apps.

2 Likes

That is good to know. May be part of the problem. I may need to see if I can change that in Obsidian then…

Obisdian

Filenames and structure:

Devonthink:

Structure:
dt groups

Filenames:

And yes spaces…
Not very clean at the moment. Maybe I need to do some prepwork…

Please hold the Option key and choose Help > Report bug to start a support ticket. I have something to discuss off to the side. Thanks.

Ok, will do. Thank you!
Anything in particular that I should put in there?

Nope.

Done

Just wondering if there’s been any movement on this topic. I’ve been trying to figure out a good way to convert 20 years of OneNote notes into DEVONthink in a fairly automated fashion. I’ve got a tool that lets me convert from OneNote to markdown, with all my images for a given notebook in a single folder and linked relatively in all the MD files. But I’m stuck at the importing-into-DT step.

I though maybe I could simply drag and drop all the folders into DT, and that largely works. It creates new groups for each sub-folder and brings in all the MD content great. But it leaves my images and pages not linked properly. I can live without the page links because I can probably just figure those out as the years go by and fix them, but the image links would be a lot trickier and are more important. Thanks for any information.

It’s not clear to me how the files look on disk (i.e. before importing) and after. Nor what the image links look like exactly.

notebook
        |-- note1.md
        |-- note2.md
        |-- images
                 |-- image1.png
                 |-- image2.png

And then in note1.md

![](images/image1.png)

Or something like

parent
      |-- notebook
          |-- note1.md
          |-- note2.md
      |-- images
          |-- image1.png
          |-- image2.png

And then in note1.md

![](../images/image1.png)

Or something else? Screenshots (of the folders etc) and code samples (of the MD files) might help.