Loading generateBaseline/pandocFilter.py +7 −0 Original line number Diff line number Diff line Loading @@ -277,6 +277,12 @@ def instertLineAfterTableOrCodeBlock(progress:Progress, mdLines:list[str]) -> li matchNote = re.compile(r'^\s*>\s*', re.IGNORECASE) matchNoteStart = re.compile(r'^\s*>\s*(note)?\s*[:]?\s*', re.IGNORECASE) inCodefence = False inTable = False inGridTable = False inNote = False tableHasSeparator = False _lines:list[str] = [] for line in mdLines: # Detect and handle codefences Loading Loading @@ -360,6 +366,7 @@ def instertLineAfterTableOrCodeBlock(progress:Progress, mdLines:list[str]) -> li _lines.append(line) progress.stop_task(_taskID) return _lines def process(args) -> None: with Progress(TextColumn('{task.description}'), TimeElapsedColumn()) as progress: Loading Loading
generateBaseline/pandocFilter.py +7 −0 Original line number Diff line number Diff line Loading @@ -277,6 +277,12 @@ def instertLineAfterTableOrCodeBlock(progress:Progress, mdLines:list[str]) -> li matchNote = re.compile(r'^\s*>\s*', re.IGNORECASE) matchNoteStart = re.compile(r'^\s*>\s*(note)?\s*[:]?\s*', re.IGNORECASE) inCodefence = False inTable = False inGridTable = False inNote = False tableHasSeparator = False _lines:list[str] = [] for line in mdLines: # Detect and handle codefences Loading Loading @@ -360,6 +366,7 @@ def instertLineAfterTableOrCodeBlock(progress:Progress, mdLines:list[str]) -> li _lines.append(line) progress.stop_task(_taskID) return _lines def process(args) -> None: with Progress(TextColumn('{task.description}'), TimeElapsedColumn()) as progress: Loading