From 9dee4d4f8e1258e99c19dc7b2b18d3e9090de79b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Mazzucotelli?= Date: Mon, 14 Oct 2024 13:33:45 +0200 Subject: [PATCH] fix: Don't escape parameter default values Issue-191: https://github.com/mkdocstrings/python/issues/191 --- .../python/templates/material/_base/signature.html.jinja | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mkdocstrings_handlers/python/templates/material/_base/signature.html.jinja b/src/mkdocstrings_handlers/python/templates/material/_base/signature.html.jinja index 04379d0..641b8b8 100644 --- a/src/mkdocstrings_handlers/python/templates/material/_base/signature.html.jinja +++ b/src/mkdocstrings_handlers/python/templates/material/_base/signature.html.jinja @@ -106,7 +106,7 @@ Context: {%- include "expression"|get_template with context -%} {%- endwith -%} {%- else -%} - {{ parameter.default }} + {{ parameter.default|safe }} {%- endif -%} {%- endif -%}