Add `--linked-attachments-only` option
Adds support for #217 via a --linked-attachments-only flag. When enabled, any non-markdown files will only be included if they are linked or embedded within a markdown file.
I've just worked out that this approach doesn't work with the tag filtering options, I will try fix this now.
Sure, I'll be able to write some tests in a few days. By the way, the way it's currently implemented, any attachments detected during markdown parsing are added to a HashSet. Once parsing is complete for that file, the export_note method is called for each of its attachments. So potentially, the same attachment is getting exported more than once, if it is linked in multiple markdown files. Could this, to your knowledge, cause any issues? Ideally there would be a centralized HashSet collated over all markdown files which is then iterated over at the end, but I didn't come up with an easy solution for this with the way the Exporter is currently setup with parallelism.