diff --git a/matrix_webhook/formatters.py b/matrix_webhook/formatters.py index 2d52788..c59249e 100644 --- a/matrix_webhook/formatters.py +++ b/matrix_webhook/formatters.py @@ -5,7 +5,7 @@ def grafana(data, headers): """Pretty-print a grafana notification.""" text = "" if "title" in data: - text = "### " + data["title"] + "\n" + text = "#### " + data["title"] + "\n" if "message" in data: text = text + data["message"] + "\n\n" if "evalMatches" in data: diff --git a/tests/test_grafana.py b/tests/test_grafana.py index 6cd04cf..5c7cbd5 100644 --- a/tests/test_grafana.py +++ b/tests/test_grafana.py @@ -42,5 +42,5 @@ class GrafanaFormatterTest(unittest.IsolatedAsyncioTestCase): self.assertEqual(message.sender, FULL_ID) self.assertEqual( message.body, - "### [Alerting] Panel Title alert\nNotification Message\n\n* Count: 1\n", + "#### [Alerting] Panel Title alert\nNotification Message\n\n* Count: 1\n", )