Loading pandocFilter/pandocFilter.py +1 −0 Original line number Diff line number Diff line Loading @@ -58,6 +58,7 @@ def correctTOC(progress:Progress, mdLines:list[str], tocSection:str = 'Contents' if _inTOC: if line.startswith('#'): # End of TOC? _inTOC = False _lines.append(f'\n') _lines.append(line) continue matches = re.findall(tocregex, line) # Replace entry Loading Loading
pandocFilter/pandocFilter.py +1 −0 Original line number Diff line number Diff line Loading @@ -58,6 +58,7 @@ def correctTOC(progress:Progress, mdLines:list[str], tocSection:str = 'Contents' if _inTOC: if line.startswith('#'): # End of TOC? _inTOC = False _lines.append(f'\n') _lines.append(line) continue matches = re.findall(tocregex, line) # Replace entry Loading