EasySci commited on
Commit
772de5b
·
1 Parent(s): 34e6f26

Update TLDR.py

Browse files
Files changed (1) hide show
  1. TLDR.py +2 -2
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),