Commit cd805f8c authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Fix to take into account indented figure captions

parent b38c7673
Loading
Loading
Loading
Loading
Loading
+1 −1
Changes for generateBaseline/pandocFilter.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -337,7 +337,7 @@ def replaceFigureCaptions(progress:Progress, mdLines:list[str]) -> list[str]:
	
	_lines:list[str] = []
	for line in mdLines:
		matches = re.findall(figureregex, line)
		matches = re.findall(figureregex, line.lstrip())
		_inCodeBlock = checkInCodeBlock(line)
		if _inCodeBlock:
			_lines.append(line)