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
531 stars 112 forks source link

[Bug] Profile and Banner Image Adjustments not allowing image to resize #123

Closed berot3 closed 1 year ago

berot3 commented 1 year ago

Describe the bug

Can not change picture-size when there is the word "profile" in the image-text.

Expected behavior It should be always possible to resize images.

To Reproduce

try this: ![Engelbart|10](https://history-computer.com/ModernComputer/Basis/images/Engelbart.jpg)

and than add "profile" to the text: ![Engel profile bart|10](https://history-computer.com/ModernComputer/Basis/images/Engelbart.jpg)

As you can see it doesn't resize anymore.

Same for when "banner" appears somewhere in the text.

This comes from here: Guide/Image-Positions.md

But I don't think this is the wanted behavior?

OS

Where does the bug occur?

Obsidian Version: 0.15.8

SlRvb commented 1 year ago

Escaping the word profile should help. ![Engel \profile bart|10](https://history-computer.com/ModernComputer/Basis/images/Engelbart.jpg)

For external images I targeted the alias because it usually doesn't have text that appears and makes it a good place to allow for image adjustments.

I'm not sure which course would be the best to fix this issue. Should I implement an |unset to undo any Image Adjustment stuff or should I have the option for a toggle/class to remove it from affecting images everywhere in my theme?