Browse Source

fixing anchor

Rodja Trappe 2 năm trước cách đây
mục cha
commit
7ecb1a7cd1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      api_docs_and_examples.py

+ 1 - 1
api_docs_and_examples.py

@@ -27,7 +27,7 @@ def example(content: Union[Callable, type, str]):
             return
 
         icon = '<span class="material-icons">link</span>'
-        anchor = f'<a href="#{headline_id}" class="text-gray-300 hover:text-black">{icon}</a>'
+        anchor = f'<a href="reference#{headline_id}" class="text-gray-300 hover:text-black">{icon}</a>'
         html = html.replace('<h4', f'<h4 id="{headline_id}"', 1)
         html = html.replace('</h4>', f' {anchor}</h4>', 1)
         element.view.inner_html = html