diff --git a/module/VuFind/src/VuFind/View/Helper/Root/MarkdownFactory.php b/module/VuFind/src/VuFind/View/Helper/Root/MarkdownFactory.php
index 2bc862ec476ba10c77a06c3feb2524dfa5aedf8a..a92819c7a3aefdfe16849631b44d411e092eda08 100644
--- a/module/VuFind/src/VuFind/View/Helper/Root/MarkdownFactory.php
+++ b/module/VuFind/src/VuFind/View/Helper/Root/MarkdownFactory.php
@@ -57,6 +57,6 @@ class MarkdownFactory implements FactoryInterface
         ContainerInterface $container, $requestedName, array $options = null
     ) {
         $markdownService = $container->get('League\CommonMark\ConverterInterface');
-        return new Markdown($markdownService);
+        return new $requestedName($markdownService);
     }
 }