Explorar el Código

fixing anchor

Rodja Trappe hace 2 años
padre
commit
7ecb1a7cd1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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