Spaces:
Sleeping
Sleeping
Update TLDR.py
Browse files
TLDR.py
CHANGED
|
@@ -52,7 +52,7 @@ def update_mainTLDR(buttons_to_add, paper_list):
|
|
| 52 |
category_content = []
|
| 53 |
category_title = f"{buttons_to_add[i]}"
|
| 54 |
anchor_id = category_title.lower().replace(" ", "-") # Generate anchor ID from the title
|
| 55 |
-
table_of_contents.append(f"- [{category_title}](#{anchor_id})")
|
| 56 |
|
| 57 |
for paper in paper_list[i]:
|
| 58 |
|
|
@@ -72,7 +72,7 @@ def update_mainTLDR(buttons_to_add, paper_list):
|
|
| 72 |
category_content.append(paper_content)
|
| 73 |
|
| 74 |
category_column = pn.Column(
|
| 75 |
-
pn.pane.Markdown(f"## [{category_title}](#{anchor_id})"), # Add Markdown link with anchor ID to the category title
|
| 76 |
pn.layout.Spacer(height=20),
|
| 77 |
*category_content,
|
| 78 |
pn.layout.Spacer(height=10),
|
|
|
|
| 52 |
category_content = []
|
| 53 |
category_title = f"{buttons_to_add[i]}"
|
| 54 |
anchor_id = category_title.lower().replace(" ", "-") # Generate anchor ID from the title
|
| 55 |
+
table_of_contents.append(f"- [{category_title}](#{anchor_id}{{.anchor}})") # Add the anchor class to the link
|
| 56 |
|
| 57 |
for paper in paper_list[i]:
|
| 58 |
|
|
|
|
| 72 |
category_content.append(paper_content)
|
| 73 |
|
| 74 |
category_column = pn.Column(
|
| 75 |
+
pn.pane.Markdown(f"## [{category_title}](#{anchor_id}{{.anchor}})"), # Add Markdown link with anchor ID to the category title
|
| 76 |
pn.layout.Spacer(height=20),
|
| 77 |
*category_content,
|
| 78 |
pn.layout.Spacer(height=10),
|