Skip to content

Conversation

jmooring
Copy link
Member

@jmooring jmooring commented Jun 22, 2025

@jmooring jmooring force-pushed the change-link-and-image-render-hook-enablement-to-enum-13535 branch 4 times, most recently from cd0b9a0 to 2a2c7d0 Compare June 25, 2025 21:34
@jmooring jmooring marked this pull request as ready for review June 25, 2025 21:42
@jmooring jmooring force-pushed the change-link-and-image-render-hook-enablement-to-enum-13535 branch 2 times, most recently from 8596c61 to d200d3d Compare June 26, 2025 15:22
@jmooring jmooring requested a review from bep June 26, 2025 15:23
@bep
Copy link
Member

bep commented Jul 5, 2025

I will have a closer look at this tomorrow. A side note, I'm planning on doing a v0.148.0 release on Monday with this and the other recent changes.

@jmooring
Copy link
Member Author

jmooring commented Jul 6, 2025

layouts/mysection/_markup/render-image.html

I did not consider higher-specificity user-defined templates when conceptualizing how this would work. To clarify, when renderHooks.link.useEmbedded is set to always, we must always use the embedded hook even if a higher-specificity user-defined template exists. I will fix this and add tests.

The auto, always, fallback, and never strings are used in enough places that I'm going to convert these to constants when used in a goldmark context.

@jmooring jmooring force-pushed the change-link-and-image-render-hook-enablement-to-enum-13535 branch from d200d3d to 08e03bd Compare July 6, 2025 23:16
@bep bep merged commit 84b3172 into gohugoio:master Jul 7, 2025
6 checks passed
@jmooring jmooring deleted the change-link-and-image-render-hook-enablement-to-enum-13535 branch July 7, 2025 13:32
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.

Rename config option for embedded renderhooks to useEmbedded ({never,always,fallback})
2 participants