Working in Svelte

The render function can be imported from mathsvex to convert Markdown into HTML. This allows us to still use Markdown when working within a Svelte file to coordinate state.

We also use the math function provided by mathlifier to render purely mathematical content in this demo.

Demo

The formula for the area of a circle is

A=πr2

r=3

If the radius is r=3 cm, then the area is 9π cm2.

Source Code

View the source code on GitHub