Dynamic Latex

I have tried exactly that unsure if im missing something
md"“”

\lim_{h\to $(var)}

“”"
Outputs the equation with $(var) in it