diff --git a/scripts/ci/post_benchmark_results.py b/scripts/ci/post_benchmark_results.py
index 8ccbc2023..13769b863 100644
--- a/scripts/ci/post_benchmark_results.py
+++ b/scripts/ci/post_benchmark_results.py
@@ -14,9 +14,9 @@ def create_markdown_table(results):
header = "| Benchmark | Base | PR |\n|-----------|------|----|"
rows = []
for result in results:
- base = result['base']
- pr = result['pr']
- row = f"| {result['name']} | ```\n{base}\n``` | ```\n{pr}\n``` |"
+ base = result['base'].replace('\n', '
')
+ pr = result['pr'].replace('\n', '
')
+ row = f"| {result['name']} |
{base}|
{pr}|" rows.append(row) return f"{header}\n" + "\n".join(rows)