If you had a “key” that you used for the question and answer (or any other fields you wanted) in the file, you could use a python script to search all files for those “keys” using a regular expression then compile a list into a set of flashcards. You could have it also dump a set number of them into a new markdown file(s) with due-dates on them.
If you wanted to get fancy, you could take a CSS element that you generally don’t use (such as heading #6) and use if for the answer portion. Then you could style it to have a background color and font color that were the same (like many forums do with spoilers) that you would have to highlight with your mouse to see thus forcing active recall.
If it were me, I would recommend having a script that looks through all your files for any Q&A pairs and export them into a master csv file. Then you could run it repeatedly and it would compare the list to the master csv file and generate a second file called “newentries-yyyymmdd”. The first time you ran it, both files would match, but after than the second would only contain new entries. Then you could import the csv into a program like ANKI for spaced repetition.