BearToCode / carta

A lightweight, fast and extensible Svelte Markdown editor and viewer.
https://beartocode.github.io/carta/
MIT License
264 stars 10 forks source link

Small correction in docs #58

Closed KyleFontenot closed 1 month ago

KyleFontenot commented 1 month ago

import type { CartaExtension } from 'carta-md'; looks like the correct import for TS, just some small tweaks to the docs that might save someone a minute.

BearToCode commented 1 month ago

Hello, thanks for taking the time to create a PR. However, Plugin should be the correct type for extensions. It got changed in the latest major update, so you are probably still on v3.x.x.

https://github.com/BearToCode/carta/blob/34d4f400e6675914daf87651b60a6df1ebe996a4/packages/carta-md/src/lib/internal/carta.ts#L137-L140

If you need to, you can update follow the migration guide here.

KyleFontenot commented 1 month ago

Oh my! I didn't even notice, sorry and thank you