diff --git a/core/modules/filter/src/Element/TextFormat.php b/core/modules/filter/src/Element/TextFormat.php
index 000984a..25ef62c 100644
--- a/core/modules/filter/src/Element/TextFormat.php
+++ b/core/modules/filter/src/Element/TextFormat.php
@@ -83,6 +83,8 @@ public static function processFormat(&$element, FormStateInterface $form_state,
       // Do not copy this #process function to prevent
       // \Drupal::formBuilder()->doBuildForm() from recursing infinitely.
       '#process',
+      // Ensure #pre_render functions will be run.
+      '#pre_render',
       // Description is handled by theme_text_format_wrapper().
       '#description',
       // Ensure proper ordering of children.
