Fix subpage links in tables

This makes the subpage links in tables not look like default HTML links.
This commit is contained in:
Joonatan Jakobson 2020-11-19 02:43:00 +02:00 committed by GitHub
parent 58e776b423
commit 60e08a6c0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)