Coincidently, I was looking for the same thing and came across this reply. Liquid tags (in the editor guide) are the ones to go with. Unfortunately, I wanted to do this within another Markdown document, outside of Dev.to, so that will not work for me :)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.