Copy-And-Pasting Headers From ChatGPT -> formatting mess

Facing same issues and not only with headers, when copying from chatgpt app in macOS or iOS it also inserts blank lines after line breaks and I end up having to use vim :%s/… commands to avoid removing line by line manually. This does not happen if I paste gpt’s reply to vscode or neovim