From f8fa2e3ff109962b41859ce84e80abb7ef2495cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Mon, 30 Oct 2023 10:58:01 +0100 Subject: [PATCH] Get only the table in the SECURITY.md --- c2cciutils/security.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c2cciutils/security.py b/c2cciutils/security.py index c0bfd725a..d9e35c1c8 100644 --- a/c2cciutils/security.py +++ b/c2cciutils/security.py @@ -32,7 +32,7 @@ def __init__(self, status: str): markdown_instance = markdown.Markdown(extensions=[TableExtension()]) elem = markdown_instance.parser.parseDocument( - [s for s in status.split("\n") if s != "" and s[0] != "#" and s[0] != "["] + [s for s in status.split("\n") if s != "" and s[0] == "|"] ) self._pe(elem.getroot())