Skip to content

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

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

Merged
merged 1 commit into from
Apr 28, 2025

Conversation

bugparty
Copy link
Contributor

@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

@devbean devbean merged commit 2f6b6f5 into devbean:main Apr 28, 2025
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.

2 participants