const transformImagePaths = (markdown) => {
	// Transform ./img/image-name to /posts/img/image-name
	return markdown.replace(
		/!\[([^\]]*)\]\(\.\/img\/([^)]+)\)/g,
		"![$1](/posts/img/$2)"
	)
}

export { transformImagePaths }
