Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Svelte Markdown PreprocessorNew to Visual Studio Code? Get it now.
Svelte Markdown Preprocessor

Svelte Markdown Preprocessor

samplekit

|
79 installs
| (0) | Free
Syntax highlighting for Markdown in Svelte HTML comments.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Syntax Highlighting for Markdown in Svelte Templates

This extension adds syntax highlighting to – and snippets for – the @samplekit/preprocess-markdown NPM package.

The NPM package allows you to write Markdown (via Marked) directly in Svelte templates without disrupting other tools like svelte-check, Prettier, ESLint, TypeScript, etc.

Examples

Without Extension

Markdown in HTML comment without extension.

With Extension

Markdown in HTML comment with extension.

Supported Syntax

The supported syntax matches that of the NPM package's preprocessor.

In Svelte markup, wrap Markdown with <!-- md-start md-end -->.

Links

  • Docs
  • Extension on the VSCode Marketplace
  • Extension Source
  • Companion NPM Package
  • Companion Package Source
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft