LaTeX
The Astro D2 integration can be used to create diagrams with LaTeX:
```d2input -> output: electrolysis
input: { equation: |latex 2 \ce{NaCL} + 2 \ce{H2O} |}
output: { equation: |latex \ce{Cl2} + \ce{H2} + 2 \ce{NaOH} |}```The above code block will be rendered as the following diagram: