lhybdv / mdbook-image-size

A mdbook preprocessor which support image size syntax
3 stars 0 forks source link

Need help with running this in my project #1

Open ld3z opened 1 month ago

ld3z commented 1 month ago

Hello!

I am currently having a bit of a problem regarding this plugin. I have installed the plugin through cargo and added the:

[preprocessor.image-size]
command = "mdbook-image-size"

to my book.toml. However, when I go to try and use it in my markdown, the image never actually shows up. Here is the markdown in question: ![Image](placehold.png =32x) Here is a picture to see what happens when it gets built or served: picture

Any help would be appreciated! <3

lhybdv commented 1 month ago

Sorry for the late reply. Please try

![Image](/placehold.png =32x)

if you have placed placehold.png under the src folder

ld3z commented 1 month ago

I did end up trying that but that also yielded the same results. The odd thing is, is I built the plugin from the repo itself and then did a mdbook serve and that made the image show up correctly and at its correct scale. So I have absolutely no clue why? 😂

lhybdv commented 1 month ago

I reinstalled version 0.1.0 again, and it works normally, so it is strange.

image

Maybe I made a mistake while doing cargo publish. Could you help try version 0.2.1 by cargo install?

ld3z commented 1 month ago

Just tried it and I did not see any change? I was running it under another action that cached the cargo install, and I removed that to see if that was an issue, but that also didn't fix it? latestVersionResult latest version I also just have very weird stuff happen to me lol