Plugin code needs review/corrections
The python code in the attached plugin is based on input from Chat GPT (unfortunately I am not a developer myself). It needs review/corrections, as it does not process properly. Is there anyone willing to help me with this?
The plugin is supposed to create a table of contents in the <nav> section of every html file. This TOC shall include references/hyperlinks to all H1, H2 and H3 headings of the current page itself and all other pages that have the first 11 characters of the file name in common (this identifies these files as part of the same main chapter).
Any advise is very much appreciated.
|