mirror of
https://github.com/konpa/devicon.git
synced 2025-08-22 22:24:43 +02:00
Added zoomed in snapshot for peek scripts
This commit is contained in:
16
.github/scripts/generate_screenshot_markdown.py
vendored
Normal file
16
.github/scripts/generate_screenshot_markdown.py
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
from typing import List
|
||||
|
||||
|
||||
def generate_screenshot_markdown(img_urls: List[str]):
|
||||
"""
|
||||
Generate the markdown for the screenshots using the
|
||||
img_urls then print it to the console.
|
||||
:param img_urls are valid image links.
|
||||
"""
|
||||
template = ""
|
||||
return [template.format(img_url) for img_url in img_urls]
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
markdown = generate_screenshot_markdown()
|
||||
print("\n\n".join(markdown)) # format it before printing
|
Reference in New Issue
Block a user