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.
The formula for the area of a circle is
If the radius is then the area is
View the source code on GitHub