Skip to content

markup/goldmark: Improve link and image render hook "always" enablement option #13844

@jmooring

Description

@jmooring

Low priority.

In 84b3172 we changed embedded link and image render hook enablement from booleans to enums. When set to "always" we override custom hooks with the names "render-link.html" and "render-image.html". This is sufficient for (I would guess) 95% of sites, if not more.

However, the override logic does not work for custom hook template names with higher specificity such as:

  • render-image.html.html
  • render-image.en.html
  • render-image.en.html.html
  • and maybe others that I'm not thinking of at the moment.

I'm not sure we should even do something about this, but wanted it logged.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions