You need to use joplin web clipper api to scan markdown, then parse the local resources and upload them to joplin and replace them, and finally upload markdown itself as a note