<kbd>
tags work in Markdown component<svelte:head>
hljs.highlightElement
in Mardown to avoid calling highlight
on already highlighted code. Maybe replace hljs
by prism
as I do on www.statox.fr because the highlighting is slightly betteraudioContext
on iOS Safari in Metronome pagefetch
calls into a framework for unified access to api.statox.frgetAccessToken()
function so that it doesn't return string | undefined
and handle errors properly.For now environement variables are all public (only the backend url so far) and can have different values depending on the environement:
env.local
env.prod
A script in svelte.config.js
copies the file corresponding to the environement in .env
.
The variables can then be read from components with:
import { PUBLIC_API_URL } from '$env/static/public';
When adding a new value run npx svelte-kit sync
to avoid errors like
Module '"$env/static/public"' has no exported member VARIABLE_NAME
Notes about CSS and markdown https://joshcollinsworth.com/blog/build-static-sveltekit-markdown-blog