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

Image Width Syntax Misinterpreted as Alt Text #624

Open
dmantula opened this issue Nov 11, 2024 · 0 comments
Open

Image Width Syntax Misinterpreted as Alt Text #624

dmantula opened this issue Nov 11, 2024 · 0 comments

Comments

@dmantula
Copy link

Background

In Obsidian, images can have their width set using a shorthand syntax:

![[image.png|250]]

Issue

The plugin currently misinterprets this syntax when converting to Anki. Instead of setting the width, it treats the value intended as the width (250 in this example) as the alt text. As a result, the converted Anki card contains the following HTML:

<img src="image.png" alt="250">

The plugin should interpret the value as the image width, resulting in the following HTML:

<img src="image.png" width="250">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant