Skip to content
Snippets Groups Projects
Commit 8ce0c482 authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Debugging links

parent 5d1492b9
No related branches found
No related tags found
No related merge requests found
Pipeline #1391 passed
...@@ -79,7 +79,8 @@ def processDocument(args:argparse.Namespace) -> None: ...@@ -79,7 +79,8 @@ def processDocument(args:argparse.Namespace) -> None:
if (headline := _l.lstrip('#').strip()) == 'Contents' and not args.contents: if (headline := _l.lstrip('#').strip()) == 'Contents' and not args.contents:
continue continue
headers.append((headline, level, prepareTOClink(h[0]))) headers.append((headline, level, prepareTOClink(h[0])))
f.write(line+f'\{#{h[2]}\}') heading_with_anchor = line + "{#" + f'{h[2]}'+ "}"
f.write(heading_with_anchor)
continue continue
f.write(line) f.write(line)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment