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

Image does not load #7

Open
botkero opened this issue Aug 23, 2024 · 5 comments
Open

Image does not load #7

botkero opened this issue Aug 23, 2024 · 5 comments

Comments

@botkero
Copy link

botkero commented Aug 23, 2024

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
Copy link
Owner

BMPixel commented Aug 24, 2024

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
Copy link
Author

botkero commented Aug 24, 2024

yea sure

markdown-slides-moffee.zip

@BMPixel
Copy link
Owner

BMPixel commented Aug 25, 2024

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
Copy link
Author

botkero commented Aug 25, 2024

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

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

@aceliuchanghong
Copy link

aceliuchanghong commented Oct 16, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants