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

Debugging links

parent 3d363f5f
No related branches found
No related tags found
No related merge requests found
Pipeline #1383 passed
......@@ -85,14 +85,13 @@ def processDocument(args:argparse.Namespace) -> None:
for h in headers:
# _h = re.sub('\[', '%5B', h[0])
# _h = re.sub('\]', '%5D', _h)
_h = re.sub('\[', '%5B', h[0])
_h = re.sub('\]', '%5D', _h)
_h = re.sub('\[', '\\[', h[0])
#_h = re.sub('\]', '\\]', _h)
heading_link=prepareTOClink(_h)
print(_h)
print(heading_link)
# toc += ' ' * (h[1] * args.indent) + f'[{h[0]}](#{prepareTOClink(h[0])}) \n'
#toc += ' ' * (h[1] * args.indent) + f'[{_h}](#{heading_link}) \n'
toc += ' ' * (h[1] * args.indent) + f'[{_h}] \n'
toc += ' ' * (h[1] * args.indent) + f'[{_h}](#{heading_link}) \n'
toc = re.sub('<[^<]+?>', '', toc)
toc += '\n'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment