1.0.2 • Published 7 months ago

svelte-mdx v1.0.2

Weekly downloads
-
License
-
Repository
-
Last release
7 months ago

Svelte MDX

MDX preprocessor for Svelte Kit

Installation

Install with your favourite package manager: npm, pnpm or bun.

npm i svelte-mdx

Getting started

Limitations

  • svelte:... or on:... don't work.
  • {#if} etc. also don't

How does it work?

stateDiagram-v2
    state "Transformed" as t0
    state "Transformed" as t1
    state "Svelte Compiler" as svelte

    [*] --> Markdown: Parse .md file
    state Markdown {
        [*] --> Cleaned: Parse and remove frontmatter
        Cleaned --> t0: User markdown (remark) plugins
        t0 --> [*]
    }
    Markdown --> HTML: Conversion
    state HTML {
        [*] --> t1: User html (rehype) plugins
        t1 --> t1: Inject glue code
        t1 --> [*]
    }
    HTML --> svelte: Stringify
1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago

1.0.0-rc.7

8 months ago

1.0.0-rc.6

8 months ago

1.0.0-rc.5

8 months ago

1.0.0-rc.4

8 months ago

1.0.0-rc.3

8 months ago

1.0.0-rc.2

8 months ago

1.0.0-rc.0

8 months ago