From 92473cdc45ac418357136b124dd877b21116ec98 Mon Sep 17 00:00:00 2001 From: Joonatan Jakobson <52051107+joonatanjak@users.noreply.github.com> Date: Thu, 19 Nov 2020 23:57:11 +0200 Subject: [PATCH] Fix subpage links in tables for Safari The `pointer-events: none;` style tag will make the link unclickable by some browsers (tested on iOS and MacOS Safari). This pull request adds a line of code, which will delete this tag. --- loconotion/notionparser.py | 1 + 1 file changed, 1 insertion(+) diff --git a/loconotion/notionparser.py b/loconotion/notionparser.py index d1be1fe..31a3477 100644 --- a/loconotion/notionparser.py +++ b/loconotion/notionparser.py @@ -463,6 +463,7 @@ class Parser: table_row_block_id = table_row["data-block-id"] table_row_href = "/" + table_row_block_id.replace("-", "") row_target_span = table_row.find("span") + row_target_span["style"] = row_target_span["style"].replace("pointer-events: none;","") row_link_wrapper = soup.new_tag( "a", attrs={"href": table_row_href, "style": "cursor: pointer; color: inherit; text-decoration: none; fill: inherit;"} )