First, get Ankify here.
~because this is the least used symbol. You can use any other symbol, but it must be only one character. When in doubt, just leave it as is.
Once you have selected the options, click “Preview” to preview the cards:
Ankify really shines when you have thousands of notes. I usually just point it to my entire note folder and convert all my notes in one go.
You can see here that tags are automatically added. The first tag will be the folder name the note is in. The second tag will be the markdown file name. After that, #tags within the file will be added.
Once you are happy with the preview, click “Convert” to generate the html files for import into Anki.