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

Local relative path not working with img tag #84

Open
hirschi81 opened this issue Jun 14, 2023 · 2 comments
Open

Local relative path not working with img tag #84

hirschi81 opened this issue Jun 14, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@hirschi81
Copy link

Hello mohzy83,
this is working in the preview panel:
![Some text](./someimage.png "some mouse over text")

this is not working:
<img src="./someimage.png" width="10%" height="10%" alt="Some text"/>

Please, can you explain to me, how to get this to work, or fix the issue?
As you can see, the reason why I have to use the img tag is the possibility to change the viewing size of the image.

Thanks in advance!

@hirschi81 hirschi81 changed the title Local relative not working with img Tag Local relative path not working with img Tag Jun 14, 2023
@hirschi81 hirschi81 changed the title Local relative path not working with img Tag Local relative path not working with img tag Jun 14, 2023
@mohzy83 mohzy83 added the bug Something isn't working label Jul 25, 2023
@rdipardo
Copy link
Contributor

@hirschi81

this is not working: <img src="./someimage.png" width="10%" height="10%" alt="Some text"/>

You can use Markdown to control the size of an image, e.g.,

![100-px](./images/image.jpg){width=100}
![300-px](./images/image.jpg){width=300}
![500-px](./images/image.jpg){width=500}

mrkdpanel-0 7 3-imgs

This works because the plugin's rendering library (Markdig) supports attribute syntax, which the plugin activates by default.

@realjck
Copy link

realjck commented Jan 22, 2024

You can use Markdown to control the size of an image, e.g.,

![100-px](./images/image.jpg){width=100}
![300-px](./images/image.jpg){width=300}
![500-px](./images/image.jpg){width=500}

Unfortunately this is not (yet?) supported by GitHub nor by standard IDEs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
MarkdownPanel
Awaiting triage
Development

No branches or pull requests

4 participants