Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images are "undefined" #89

Open
prof-robert opened this issue Jul 13, 2024 · 5 comments
Open

Images are "undefined" #89

prof-robert opened this issue Jul 13, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@prof-robert
Copy link

When exporting a markdown, that contains images the following problem occurs:
The images are copied (and renamed) correctly, however in the copied markdown file the images will not be included (either notation). Where the reference to the image should be, there is only "undefined".

@bingryan
Copy link
Owner

show your screenshot?

@prof-robert
Copy link
Author

This is a sample file in Obsidian:
image

The resulting file looks like this:

Just an example to see how obsidian-markdown-export-plugin is doing.

Image:

undefined

Other text.

The image has been copied to the same destination and has been renamed, but in the markdown-File it says "undefined".

@prof-robert
Copy link
Author

I just found out, that it works when I switch on "Github Flavour Markdown". It does not work using Wikilink-Style Alt-Text:

![[image.png|Alt-Text]]

and it yields no output at all using this notation:

![Alt-Text](image.png)

@bingryan bingryan added the bug Something isn't working label Aug 1, 2024
@bingryan bingryan mentioned this issue Aug 6, 2024
@bingryan
Copy link
Owner

bingryan commented Aug 6, 2024

@prof-robert update this plugin, and try again :)

@prof-robert
Copy link
Author

@bingryan Thanks, and it works well without alternative text!

There are still some errors with alternative text:
Example text:

image

Output:

Just an example to see how obsidian-markdown-export-plugin is doing.

Image:

![](images/3c7a21d04c50afe6e8ab65d78a177dec.png)

Other text.

Wikilink-Style Image ![](images/3c7a21d04c50afe6e8ab65d78a177dec.png)

Wikilink-Style Image with Alt-Text undefined

The alternative Text in the first and case is not present in the output, and the Wikilink-style alt-text usage yields "undefined".

But in general, copying the images and putting in the correct links is working! Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants