No description
Find a file
2025-07-08 17:51:35 +02:00
assets working builder for my blog 2025-07-08 17:51:35 +02:00
highlighter initial commit 2025-03-08 22:39:43 +01:00
packages working builder for my blog 2025-07-08 17:51:35 +02:00
src working builder for my blog 2025-07-08 17:51:35 +02:00
test switch to syntect 2025-03-08 23:37:50 +01:00
.envrc initial commit 2025-03-08 22:39:43 +01:00
.gitignore working builder for my blog 2025-07-08 17:51:35 +02:00
build.rs working builder for my blog 2025-07-08 17:51:35 +02:00
Cargo.lock working builder for my blog 2025-07-08 17:51:35 +02:00
Cargo.toml working builder for my blog 2025-07-08 17:51:35 +02:00
pnpm-workspace.yaml working builder for my blog 2025-07-08 17:51:35 +02:00
README.md working builder for my blog 2025-07-08 17:51:35 +02:00
shell.nix add wasm and vite clients 2025-03-09 00:24:25 +01:00

MDSvexRS

A faster markdown preprocessor for svelte. Compiles .md files into .svelte with non-reactive blocks wrapped in direct HTML for faster compilation and rendering.

Note that this, like the original MDSvex, trusts it's input and doesn't escape HTML or script files.

This version is not yet tested and published.

Note that not all svelte syntax is supported yet. Notably, only HTML-like content is handled. If you get invalid syntax, try moving it into a component and just referencing that component. Templates, Ifs etc are not supported.

Not all languages may be highlighted as syntect doesn't include support for all languages. Sublime syntax is supported and can be added on Context.syntax_set, but WASM don't have a way to set it - make an issue to embed the language instead.