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 being rendered as span tags #10

Open
p2kmgcl opened this issue Mar 14, 2023 · 2 comments
Open

Images are being rendered as span tags #10

p2kmgcl opened this issue Mar 14, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@p2kmgcl
Copy link

p2kmgcl commented Mar 14, 2023

When using class:something before an embedded image (![[some-image.jpg]]), the image element is rendered as a span.

Steps to reproduce the behavior:

  1. Create a note
  2. Embed some image file
  3. Add class:something before it.

Expected behavior
There should be an <img> tag inside <div class="something">

Screenshots

image

image

Device:

  • Operating System: Linux
  • Obsidian version: 1.1.16
@p2kmgcl p2kmgcl added the bug Something isn't working label Mar 14, 2023
@p2kmgcl
Copy link
Author

p2kmgcl commented Mar 14, 2023

@LilaRest I'd be happy to investigate more and try to send a PR if you are fine with it. Thanks so much for the plugin!

@LilaRest
Copy link
Owner

@p2kmgcl Ehh what a weird bug ! I've actually no idea from where it could come from ^^

Sure feel free to investigate, I'll be happy to accept your PR !

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