I am able to put SVG code directly in a markdown file so long as I am careful with white space. No blank lines.
I can add links to SVG file. For now, I'm using inline SVG in HTML files only, not in markdown.
Here are some examples of SVG files embedded directly in HTML.
Here are some examples of linking to SVG files.