`$\begin{array}{ll} d & t \\ d & g \\ 4 & 5 \end{array}$`
This tells the Markdown engine to regard the whole thing as code, so none of the special characters do anything weird (in particular, you don't have to escape anything).
]]>It seems use of an array would give a garbled output.
$\begin{array}{ll} d & t \ \ d & g \ \ 4 & 5 \end{array}$ renders d g d t 4 5 in one line.
Note: Here \ \ actually stands for two backslashes without a space. But if I type it that way it is not rendered properly in meta.
]]>