Skip to content

Commit 5179720

Browse files
committed
update: image pattren for image with annotation
1 parent cdd5a58 commit 5179720

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

foliant/partial_copy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def partial_copy(
3434
root_path = Path(root)
3535
image_extensions = {'.jpg', '.jpeg', '.png', '.svg', '.gif', '.bmp', '.webp'}
3636
image_pattern = re.compile(
37-
r'!\[.*?\]\((.*?)\)|<img.*?src=["\'](.*?)["\']',
37+
r'!\[.*?\]\((.*?)( \"(.+)\"|)\)|<img.*?src=[\"\'](.*?)[\"\']',
3838
re.IGNORECASE
3939
)
4040
include_statement_pattern = re.compile(

0 commit comments

Comments
 (0)