Inline math like and display math both work:
And here is a chart you can hover, zoom, and pan. It is a normal component call inside the Markdown — the data is just a JavaScript literal:
To use another library (D3, three.js, Observable Plot), npm install it and
write a component the same way: server-render a container, hydrate it in a
<script>.