Loading generateBaseline/pandocFilter.py +2 −1 Changes for generateBaseline/pandocFilter.py: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -572,8 +572,9 @@ def replaceBulletedLettersLists(progress:Progress, mdLines:list[str]) -> list[st _taskID = progress.add_task('[blue]Replacing bulleted letters lists', total=0) # progress.update() # Match "- " only when followed by a letter and either ")" (e.g. "- a) text" or "." (e.g. - a. text" ). # Match "- " only when followed by a letter and ")" or "." (e.g. "- a) text", "- a. text") bulletedLettersListRegex = re.compile(r'^([ \t]*)- (?=[A-Za-z]+[).])') _lines:list[str] = [] for line in mdLines: # If we are in a code block, we are not in a list Loading Loading
generateBaseline/pandocFilter.py +2 −1 Changes for generateBaseline/pandocFilter.py: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -572,8 +572,9 @@ def replaceBulletedLettersLists(progress:Progress, mdLines:list[str]) -> list[st _taskID = progress.add_task('[blue]Replacing bulleted letters lists', total=0) # progress.update() # Match "- " only when followed by a letter and either ")" (e.g. "- a) text" or "." (e.g. - a. text" ). # Match "- " only when followed by a letter and ")" or "." (e.g. "- a) text", "- a. text") bulletedLettersListRegex = re.compile(r'^([ \t]*)- (?=[A-Za-z]+[).])') _lines:list[str] = [] for line in mdLines: # If we are in a code block, we are not in a list Loading