#3527544 - Improve Hook Alterations and Cache Metadata Handling in Markdownify Module
Closes #3527544
Summary of Changes:
- Added
hook_markdownify_entity_build_alterto allow modules to modify the render array before converting it to HTML for Markdown transformation. - Enhanced
hook_markdownify_entity_html_alterto include support forBubbleableMetadata, improving cache handling during HTML alterations. - Updated
MarkdownifyEntityRendererservice:- Modified
toHtmlmethod to capture and merge cacheable metadata during rendering. - Updated
renderEntitymethod to support render array alteration and consistent cache metadata integration.
- Modified
- Improved documentation in
markdownify.api.phpand service class methods.
Closes #3527544