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 starting an item #281

Open
blegat opened this issue Jan 10, 2024 · 0 comments
Open

Image starting an item #281

blegat opened this issue Jan 10, 2024 · 0 comments

Comments

@blegat
Copy link

blegat commented Jan 10, 2024

I'm unsure if it's a bug in PlutoUI or the Markdown stdlib but here it is:
When entering the following in a Pluto cell, we get the logo and the text on the same line:

md"""
* ![logo](https://julialang.org/assets/infra/logo.svg) Julia
"""

but with the Resource, they are split on different lines which is a bug IMO

md"""
* $(Resource("https://julialang.org/assets/infra/logo.svg")) Julia
"""

By adding anything before the image (including a space), it fixes the issue

md"""
*  $(Resource("https://julialang.org/assets/infra/logo.svg")) Julia
"""

Looking at the html, I have respectively
For the first one

<ul>
<li><p><img src="https://julialang.org/assets/infra/logo.svg" alt="logo" /> Julia</p>
</li>
</ul>

Second one

<ul>
<li><img controls='' src='https://julialang.org/assets/infra/logo.svg' type='image/svg+xml'></img>
<p>Julia</p>
</li>
</ul>

Third one

<ul>
<li><p><img controls='' src='https://julialang.org/assets/infra/logo.svg' type='image/svg+xml'></img> Julia</p>
</li>
</ul>

The issue in the second one is the misplaced <p>.

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

1 participant