easy way to write LaTeX in Medium.com
- Go to https://quicklatex.com/
- Type the LaTeX code
- Click Render
- Right-click to copy the image, and paste it into the Medium article

For high-resolution and long blocks, I recommend OverLeaf. And screen grabs the LaTeX block and pastes it here.