As a programmer, I tend to write a lot of my code and non-code in VSCode or light-weight tools. And this extends to my Medium articles. Medium used to let you upload Markdown directly into their editor or import the story from a Markdown gist. I believe I’ve found an acceptable alternative to importing Markdown that some developers may appreciate.
In VSCode if you install the Markdown All in One tool, you can get a preview of your Markdown as you type it.
You can see things like:
- unordered lists
- … although I don’t think Medium supports sub-bullets
- or numbered lists with
in-line code snippetsor
with multiple lines.
All you need to do from here is select-all from the preview and paste is into a new story and much of the Markdown formatting should persist!
You may need to read through your article and fix some formatting issues. Code blocks tend to have about two extra line tacked onto the end, but if you want to write for certain publications they will want you to use gists anyway. If that is the case, you can just:
- copy and paste your code into a gist,
- grab the link,
- replace your code block with the link,
- and hit enter to populate with a pretty gists-style snippet.
It requires a little bit of effort after the fact, but I’ve used this method a couple of times now and it really seems to help me out since I like to write Markdown and don’t particularly like the Medium editor. I hope this helps you or someone you know simplify their writing process!
P.S. I just look through the search tool or upload images after the fact. You can use something like
![text-here](path-to-image-here) if you want to have images within your Markdown locally, but it won't translate into Medium.
A. McFee, How to import Markdown into Medium (2015), Medium
 Z. Shapiro, Write For Us (2020), Better Programming, Medium