From 239a060d5995dbb81a13ef291a254f6a9ccb1d46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Andr=C3=A9?= Date: Thu, 20 Mar 2025 08:35:48 +0100 Subject: [PATCH] fix: update extension references in docs to use backticks --- doc/api.rst | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/api.rst b/doc/api.rst index bbc4c5c3b..5469dca72 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -327,23 +327,23 @@ extension via the ``addExtension()`` method:: Twig comes bundled with the following extensions: -* *Twig\Extension\CoreExtension*: Defines all the core features of Twig. +* ``\Twig\Extension\CoreExtension``: Defines all the core features of Twig. -* *Twig\Extension\DebugExtension*: Defines the ``dump`` function to help debug +* ``\Twig\Extension\DebugExtension``: Defines the ``dump`` function to help debug template variables. -* *Twig\Extension\EscaperExtension*: Adds automatic output-escaping and the +* ``\Twig\Extension\EscaperExtension``: Adds automatic output-escaping and the possibility to escape/unescape blocks of code. -* *Twig\Extension\SandboxExtension*: Adds a sandbox mode to the default Twig +* ``\Twig\Extension\SandboxExtension``: Adds a sandbox mode to the default Twig environment, making it safe to evaluate untrusted code. -* *Twig\Extension\ProfilerExtension*: Enables the built-in Twig profiler. +* ``\Twig\Extension\ProfilerExtension``: Enables the built-in Twig profiler. -* *Twig\Extension\OptimizerExtension*: Optimizes the node tree before +* ``\Twig\Extension\OptimizerExtension``: Optimizes the node tree before compilation. -* *Twig\Extension\StringLoaderExtension*: Defines the ``template_from_string`` +* ``\Twig\Extension\StringLoaderExtension``: Defines the ``template_from_string`` function to allow loading templates from string in a template. The Core, Escaper, and Optimizer extensions are registered by default.