Installation
npm install @the-sumeet/sveltedownsvelte@^5.40 is a peer dependency. The editor is built on Lexical and
uses CodeMirror for code blocks and the source view; both are installed
with it.
Styles
Section titled “Styles”The editor imports its stylesheet itself, so most setups need nothing more. If your bundler drops CSS imported from packages, import it once in your app:
import '@the-sumeet/sveltedown/editor.css';Server rendering
Section titled “Server rendering”The editor renders its container on the server and creates the Lexical editor in the browser, so it works in SvelteKit pages without extra setup.