From 60e08a6c0a227fcb875b5c8c3be1583283f13f10 Mon Sep 17 00:00:00 2001 From: Joonatan Jakobson <52051107+joonatanjak@users.noreply.github.com> Date: Thu, 19 Nov 2020 02:43:00 +0200 Subject: [PATCH] Fix subpage links in tables This makes the subpage links in tables not look like default HTML links. --- loconotion/notionparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loconotion/notionparser.py b/loconotion/notionparser.py index a9eec07..d1be1fe 100644 --- a/loconotion/notionparser.py +++ b/loconotion/notionparser.py @@ -464,7 +464,7 @@ class Parser: table_row_href = "/" + table_row_block_id.replace("-", "") row_target_span = table_row.find("span") row_link_wrapper = soup.new_tag( - "a", attrs={"href": table_row_href, "style": "cursor: pointer;"} + "a", attrs={"href": table_row_href, "style": "cursor: pointer; color: inherit; text-decoration: none; fill: inherit;"} ) row_target_span.wrap(row_link_wrapper)