- Issue created by @vegardjo
- Status changed to Needs review
over 1 year ago 8:35am 1 August 2023 - Open on Drupal.org →Core: 9.5.x + Environment: PHP 7.4 & MySQL 5.7last update
over 1 year ago Waiting for branch to pass - 🇩🇪Germany szeidler Berlin
I can confirm the problem. The reason is, that the Media block does not store the caption in the block markup, but in a block attribute. The block attribute is then passed over to
gutenberg-block--drupalmedia--drupal-media-entity.html.twig
file and rendered in Twig. Twig does not parse HTML in a string, it needs to be formatted markup.Here's a patch, that processes the caption as markup and therefore render the simple markup that is available for captions correctly.
Please review.
- Status changed to RTBC
over 1 year ago 10:23am 1 August 2023 - First commit to issue fork.
- Merge request !132Issue #3378183 by szeidler: Render caption for media block. → (Merged) created by marcofernandes
- Status changed to Fixed
8 months ago 7:53am 20 May 2024 -
marcofernandes →
committed 766e9eab on 8.x-2.x
Issue #3378183 by szeidler: Render caption for media block.
-
marcofernandes →
committed 766e9eab on 8.x-2.x
-
marcofernandes →
committed b3d34e1e on 3.0.x
Issue #3378183 by szeidler: Render caption for media block.
-
marcofernandes →
committed b3d34e1e on 3.0.x
Automatically closed - issue fixed for 2 weeks with no activity.