-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Markdown for images isn't playing well with HTML anymore #667
Comments
Found out this markedjs/marked#488 (comment).
![Docsify logo](https://docsify.js.org/_media/icon.svg)
![Docsify logo](https://docsify.js.org/_media/icon.svg) I would say let's stay with the mainstream, so it's not a bug. What do you think? @QingWei-Li |
@cheng-kang you're right. |
But I will add a new custom component feature so that we can use markdown in HTML. |
I found this can be rendered by adding spaces in html... https://codesandbox.io/s/z2k36lqlrp # Quick start
<div style='color: red;'>
- a
- b
- c
</div> |
thank you for the tip, @QingWei-Li! |
@cheng-kang your proposed way doesn't work for me in docsify <br/>
![logo](../assets/logo_srz.svg) |
Hi, Code looks like this:
Localhost inspect source:
Hosted (doesn't show image)
Any advice? why is the local preview not the same as github pages? |
Not sure what's up with your images. I would check what errors you see in console. Maybe where you serve them from the same URLs are not valid |
If you use the image markdown syntax to render an image and put it near HTML code, Docsify will render it as text. The problem was introduced in version 4.8.0.
For example, this would not render the image:
This would also not render the image:
But this would (empty line between HTML and markdown):
The text was updated successfully, but these errors were encountered: