<kbd> tags work in Markdown component<svelte:head>hljs.highlightElement in Markdown 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 pageconnect.sid not accessible via javascript.run from svelte/legacy instead of $effect because the migration break them and I have to look into it.createEventDispatcher by callback propsfetch 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 environment variables are all public (only the backend url so far) and can have different values depending on the environment:
env.localenv.prodA script in svelte.config.js copies the file corresponding to the environment 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