abhiraj-blog-2
once we published the blog the image changed their names like this
#
has been changed to
we are making this blogging journey possible besause of

it is obsidian a note taker
and

Hugo is one of the most popular open-source project. With its amazing speed and flexibility, Hugo makes building websites fun again.
!
an example 👍
by a python scrip
import os
import re
# Path to folder with Markdown files
folder_path = r"C:\Users\path\to\Obsidian Vault\post"
# Regex to match the full Markdown image syntax with Pasted image pattern
pattern = re.compile(r'!\[Pasted image (\d+\.png)\]\(/images/Pasted%20image%20\d+\.png\)')
# Go through each .md file in the folder
for filename in os.listdir(folder_path):
if filename.endswith(".md"):
filepath = os.path.join(folder_path, filename)
with open(filepath, "r", encoding="utf-8") as f:
content = f.read()
# Replace with Obsidian-style embed
new_content = pattern.sub(r'![[Pasted image \1]]', content)
if new_content != content:
with open(filepath, "w", encoding="utf-8") as f:
f.write(new_content)
print(f"✅ Fixed: {filename}")
hope you like it from next blog we will be dam serious
Read other posts