some script to convert mermaid diagram to pngs from a folder that contains .mmd
used to ease the pain of manually placing stuff to make a diagram (draw.io is still cool tho)
note: no you cannot use this to convert your code into diagram directly, ask chatgpt to convert it into mermaid diagram syntax and modify the clean_mermaid_file
func to properly clean the result
import pathlib
import tempfile
import subprocess
import re
import sys