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

fix when publishing to wordpress, it will lose the image size info in the img tag #95

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bugparty
Copy link

@bugparty bugparty commented Mar 9, 2025

fix when publishing to wordpress, it will bypass the markdown-image-plugin and lose the image size info

for example
![[Pasted image 20250219174543.png|640]]
will turn into
![Pasted image 20250219174543.png](url)
then render into html
<img src="https://your-domain.com/wp-content/uploads/20250219174543.png" >
the size info is lose, and the markdown-image plugin will do nothing.

I fixed it by make ![[Pasted image 20250219174543.png|640]] turn into ![[https://your-domain.com/wp-content/uploads/20250219174543.png|640]
so later the img tag will have the size info

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

Successfully merging this pull request may close these issues.

1 participant