BMPixel / moffee

moffee: Make Markdown Ready to Present
https://moffee.readthedocs.io
MIT License
913 stars 41 forks source link

Image does not load #7

Open botkero opened 3 months ago

botkero commented 3 months ago

Hi,

I've tried a bit, but I'm having trouble displaying an image.

# Hello World

Hello World

![example](example.png)

I created a virtual environment with .venv and installed moffee via pip. example.png is in the same directory as my start.md

I don't get an error message either. Only the alt text is displayed.

Maybe I'm doing something wrong?

btw. I have the same result with background-image property.


Apart from that, I really like the way you can configure the layout here. It's simple, although I don't know if the selected characters are that ideal, but it feels more intuitive than on marp.

BMPixel commented 3 months ago

I see. Is it possible for you to share the content of the generated html? You can find the html file in the output of the cli command. It looks like Generated html written to [path]. And if possible, can you also share the content in the directory of [path]?

botkero commented 3 months ago

yea sure

markdown-slides-moffee.zip

BMPixel commented 3 months ago

I find the problem. Is your image located at "C:\Users\Kero\source\repos\markdown-slides-moffee\example.png"? If this is the case, maybe moffee handles file path in windows format incorrectly. I will fix this ASAP.

botkero commented 3 months ago

yea location is right and I'm using windows 10 atm.

Another question is, does moffee already support syntax highlighting inside code blocks?

aceliuchanghong commented 1 month ago

the same question! hope it can be fix quick,thankyou for your work