How to add theme formatting to static files access through page link

Theme is hugo-coder. I have a link on a content page to a static file that is a md file. However when the link opens the doc, it is rendered as plain text without the theme formatting. How would I go about adding formatting to the static page?

I attempted to add the file as its own content page but the ref link returns a 404

There is no way to add “formatting” to an .md file. If it’s an HTML file you can add a link to your theme file (css). Without a concrete sample you won’t get much help for this very specific case.

I wouldn’t do a md-file as a static file though. Maybe rethink that part and put it into your content directory somewhere.