From 3426388f3a5bcc452b411c71e652b80785b5c016 Mon Sep 17 00:00:00 2001 From: fynnbe Date: Thu, 14 Nov 2024 23:01:21 +0100 Subject: [PATCH] fix rendering recommended env --- bioimageio/spec/summary.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bioimageio/spec/summary.py b/bioimageio/spec/summary.py index e5103182..1d25f01d 100644 --- a/bioimageio/spec/summary.py +++ b/bioimageio/spec/summary.py @@ -345,7 +345,9 @@ def format_loc(loc: Loc): [ "🐍", "recommended conda env", - f"```yaml\n{rec_env.read()}\n```".replace("\n", "
"), + f'
{rec_env.getvalue().replace(
+                            '\n', '
' + )}
', ] )