SlRvb / Obsidian--ITS-Theme

Theme designed with readability and customizability in mind. Change it easily to your liking with the Style Settings plugin installed.
https://publish.obsidian.md/slrvb-docs/ITS+Theme/ITS+Theme
GNU General Public License v2.0
523 stars 112 forks source link

[Bug] Can't position web-based images in live preview #186

Closed Antyos closed 1 year ago

Antyos commented 1 year ago

Describe the bug

Position tags (left | right | center) don't work on embedded web-based images (from a URL) in Live Preview.

Expected behavior The left, right, and center tags in images should appropriately position the image in Live Preview mode.

To Reproduce

Include in any markdown file:

![img|center](https://www.dummyimage.com/400x400)

OS

Where does the bug occur?

Versions

SlRvb commented 1 year ago

https://github.com/SlRvb/Obsidian--ITS-Theme/issues/165

Antyos commented 1 year ago

Oops. I feel dumb. I even saw the other thread. Thanks!

Antyos commented 1 year ago

Actually, wait, it's still not working. There doesn't appear to be a center lp alt tag in the S - Image Adjustments.css snippet. Also, this bug only occurs for embedded web images. If the image is stored locally in my vault, e.g., ![[dummyImage.png|center]], then it works fine.