We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdd5a58 commit 5179720Copy full SHA for 5179720
1 file changed
foliant/partial_copy.py
@@ -34,7 +34,7 @@ def partial_copy(
34
root_path = Path(root)
35
image_extensions = {'.jpg', '.jpeg', '.png', '.svg', '.gif', '.bmp', '.webp'}
36
image_pattern = re.compile(
37
- r'!\[.*?\]\((.*?)\)|<img.*?src=["\'](.*?)["\']',
+ r'!\[.*?\]\((.*?)( \"(.+)\"|)\)|<img.*?src=[\"\'](.*?)[\"\']',
38
re.IGNORECASE
39
)
40
include_statement_pattern = re.compile(
0 commit comments