You can use the VSCode Extension Latex to Markdown Compiler
to convert a Markdown file that contains Latex equations into
another Markdown file that replaces the Latex equations to images.
https://marketplace.visualstudio.com/items?itemName=Blyxyas.simplelatex