diff --git a/doc/filters/html_to_markdown.rst b/doc/filters/html_to_markdown.rst
index 7750d619d..d9f1f48ac 100644
--- a/doc/filters/html_to_markdown.rst
+++ b/doc/filters/html_to_markdown.rst
@@ -43,7 +43,7 @@ You can also use the filter on an included file:
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
explictly on the Twig environment::
- use Twig\Extra\Markdown\MarkdownMarkdownExtension;
+ use Twig\Extra\Markdown\MarkdownExtension;
$twig = new \Twig\Environment(...);
$twig->addExtension(new MarkdownExtension());
diff --git a/doc/filters/markdown_to_html.rst b/doc/filters/markdown_to_html.rst
index 0aafcb7bb..397890775 100644
--- a/doc/filters/markdown_to_html.rst
+++ b/doc/filters/markdown_to_html.rst
@@ -42,7 +42,7 @@ You can also use the filter on an included file:
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
explictly on the Twig environment::
- use Twig\Extra\Markdown\MarkdownMarkdownExtension;
+ use Twig\Extra\Markdown\MarkdownExtension;
$twig = new \Twig\Environment(...);
$twig->addExtension(new MarkdownExtension());