mirror of
https://github.com/Juicysteak117/pghrt.git
synced 2025-12-21 15:35:25 +00:00
fixed the menu button whoops
This commit is contained in:
3
soup.py
3
soup.py
@@ -18,6 +18,9 @@ header.append(menu)
|
||||
# Extract nav
|
||||
toc = soup.body.find('div', class_='ltx_page_main').nav.extract()
|
||||
|
||||
# need id to grab to make the menu button work
|
||||
toc['id'] = 'sidebar'
|
||||
|
||||
# correcting a bug in latexml that drops em dash prefixes on toc in html output
|
||||
toc_emdashes = toc.select('a[href*="SSx"] > span')
|
||||
for line in toc_emdashes:
|
||||
|
||||
Reference in New Issue
Block a user