Fix dynamic memoir image limits
This commit is contained in:
@@ -23,7 +23,7 @@ def parse_image_placeholders(content: str, max_images: int) -> list[dict[str, An
|
||||
"start_offset": match.start(),
|
||||
}
|
||||
)
|
||||
if len(items) >= max_images:
|
||||
if max_images is not None and len(items) >= max_images:
|
||||
break
|
||||
return items
|
||||
|
||||
|
||||
Reference in New Issue
Block a user