Files
misc-productivity-tools-OPEN/google-doc-md-conversion-with-images/__pycache__/extract_md_images.cpython-313.pyc
T

31 lines
4.1 KiB
Plaintext
Raw Normal View History

2026-09-03 06:58:59 -06:00
ó
6¢$jsãóâ•SSKrSSKrSSKJr \"S5r\S- S- r\R
SSS9 SS S S
S S S
.r\R"S\R5r
Sr S\4Sjr Sr
\S:Xa\
"5 gg)éN)ÚPathz+C:\Users\edsoe\Desktop\md_conversion_imagesÚassetsÚimagesT)ÚparentsÚexist_okÚpngÚjpgÚgifÚwebpÚsvg)z image/pngz
image/jpegz image/jpgz image/gifz
image/webpz
image/svg+xmlz-\[(.*?)\]:\s*<data:(image\/.*?);base64,(.*?)>cóx•UR5n[R"SSU5nURS5nU$)Nz
[^a-z0-9]+Ú-)ÚlowerÚreÚsubÚstrip)Útexts ÚoC:\projects\productivity\misc-productivity-tools-OPEN\google-doc-md-conversion-with-images\extract_md_images.pyÚslugifyr(s1€à �:‰:‹<€Dä
�6Š6�-  dÓ +€Dà �:‰:�c‹?€Dà €KóÚmd_pathcót•[SUR35 URSS9n[[R U55nU(d [S5 g[
UR5n/nUGHnURS5R5nURS5R5nURS5R5n[RU5n U (d[SU35 M�US US
U 3n
[U
- n [R"U5n [U S 5n
U
R!U 5 SSS5 [S U
35 URS
5nSUSU
3nUR#Xï45 GM UnUHunnUR'UU5nM UR)URS-5nUR+USS9 [S5 [SUR35 g!,(df  N¾=f![$an[SUSU35 SnAGMÀSnAff=f)Nz
Processing: zutf-8)Úencodingz" No embedded base64 images found.éééz Unsupported MIME type: rÚ.Úwbz
Extracted: rÚ[z]: /assets/images/z Failed to decode z: z _cleaned.mdz Clean markdown saved:z )ÚprintÚnameÚ read_textÚlistÚ
IMAGE_PATTERNÚfinditerrÚstemÚgrouprÚMIME_MAPÚgetÚ
ASSETS_DIRÚbase64Ú b64decodeÚopenÚwriteÚappendÚ ExceptionÚreplaceÚ with_nameÚ
write_text)rrÚmatchesÚ article_slugÚ replacementsÚmatchÚ image_keyÚ mime_typeÚ base64_dataÚ extensionÚimage_filenameÚ
image_pathÚ image_binaryÚfÚ
old_referenceÚ
new_referenceÚeÚ cleaned_textÚoldÚnewÚ output_mds rÚprocess_markdown_filerG6s&€ä ˆN˜7Ÿ<™<˜.Ð
)Ô*à × Ñ  gÐ Ð .€Dä”=×)Ñ)¨$Ó/Ó0€Gæ Ü