Creating and converting documents is not trivial. I have a bunch of links that have helped me before.
Folder Structure control
flatpak install -y flathub net.cozic.joplin_desktop