Comparing version 0.8.9 to 0.9.0
# mdsvex | ||
## 0.9.0 | ||
### Minor Changes | ||
- [`99da8fe`](https://github.com/pngwn/MDsveX/commit/99da8fe17882d55ecb7ec0d5a64ee6a592fc17bc) [#207](https://github.com/pngwn/MDsveX/pull/207) Thanks [@pngwn](https://github.com/pngwn)! - User-provided remark plugins that modify code nodes now run before the builtin in code highlighting, allowing for custom code transformations. | ||
* [`aa8d825`](https://github.com/pngwn/MDsveX/commit/aa8d825a241b02a4387e2b034038b68d76ebe1b6) [#209](https://github.com/pngwn/MDsveX/pull/209) Thanks [@pngwn](https://github.com/pngwn)! - Asynchronous custom highlight functions are now supported. | ||
## 0.8.9 | ||
@@ -4,0 +12,0 @@ |
@@ -80,3 +80,3 @@ /// <reference types="node" /> | ||
} | ||
declare type Highlighter = (code: string, lang: string | undefined) => string; | ||
declare type Highlighter = (code: string, lang: string | undefined) => string | Promise<string>; | ||
interface HighlightOptions { | ||
@@ -83,0 +83,0 @@ /** |
@@ -80,3 +80,3 @@ /// <reference types="node" /> | ||
} | ||
declare type Highlighter = (code: string, lang: string | undefined) => string; | ||
declare type Highlighter = (code: string, lang: string | undefined) => string | Promise<string>; | ||
interface HighlightOptions { | ||
@@ -83,0 +83,0 @@ /** |
{ | ||
"name": "mdsvex", | ||
"version": "0.8.9", | ||
"version": "0.9.0", | ||
"description": "Markdown preprocessor for Svelte", | ||
@@ -57,2 +57,3 @@ "main": "dist/main.cjs.js", | ||
"rollup-plugin-svelte": "^5.1.1", | ||
"shiki": "^0.9.3", | ||
"svelte": "^3.14.1", | ||
@@ -59,0 +60,0 @@ "toml": "^3.0.0", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
2736942
36
88320