Improves the quiz insertion and verification processes by adding file type handling.
Now scripts can identify and process `.json`, `.qmd`, and `.md` files,
triggering specific logic for each type. This ensures proper handling
of both quiz files and associated markdown documents, including validation
steps and finding corresponding files.