Merge pull request #16 from joonatanjak/patch-2

Fix subpage links in tables for Safari
This commit is contained in:
Leonardo Cavaletti 2020-11-20 09:40:26 +00:00 committed by GitHub
commit 16bb75dfd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;"}
)