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

Jekyll: Add support for fixing the URLs in <img srcset> attribute #514

Open
markstos opened this issue Jun 7, 2022 · 0 comments
Open

Jekyll: Add support for fixing the URLs in <img srcset> attribute #514

markstos opened this issue Jun 7, 2022 · 0 comments

Comments

@markstos
Copy link
Contributor

markstos commented Jun 7, 2022

mg-jekyll-export currently handles updating URLS in ` "src" attributes. It would be great of the "srcset" attribute was handled as well.

In the #506 PR, there's now an HTML processing function that takes an old blogs's HTML input and produces cleaned / migrated HTML as output. This function is not specific to Jekyll at all. A lot of other import sources could use the same kind of HTML processing, so it seems like it makes sense to have that logic to a shared location, the way that mg-linkfixer is handled. The HTML processing code in the Jekyll export tool is mostly concerned with link processing, but it also handles some other kinds of bad HTML, otherrwise I would suggest putting the code in mg-linkfixer.

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