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

Support entry and image links in plain-HTML entries #162

Merged
merged 3 commits into from Feb 14, 2019

Conversation

fluffy-critter
Copy link
Collaborator

Summary

Supports rewriting link and image targets in HTML entries; fixes #136 and #154.

Detailed description

This adds a simple HTML transform step which scans all elements for href and src links, and rewrites their targets appropriately. In the case of <img> tags it also uses the width and height attributes in addition to the template configuration to select the appropriate renditions.

Developer/user impact

Adds a lot of functionality to HTML entries, but also changes the Image API somewhat. See PlaidWeb/publ-site@baaea3b for related documentation changes.

Test plan

Added tests in PlaidWeb/publ-site@baaea3b

@fluffy-critter fluffy-critter merged commit 2a777c6 into master Feb 14, 2019
@fluffy-critter fluffy-critter deleted the fluffy/136-html-renditions branch February 14, 2019 01:46
fluffy-critter added a commit that referenced this pull request Mar 4, 2019
Support entry and image links in plain-HTML entries
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.

Support image renditions from HTML documents
1 participant