Comparing version 0.9.7 to 0.9.8
# mdsvex | ||
## 0.9.8 | ||
### Patch Changes | ||
- [#274](https://github.com/pngwn/MDsveX/pull/274) [`b253bb0`](https://github.com/pngwn/MDsveX/commit/b253bb0e402d109a62f8ad33f96943672d65cc1e) Thanks [@pngwn](https://github.com/pngwn)! - Custom highlight functions now receive the metastring as an additional argument. | ||
## 0.9.7 | ||
@@ -4,0 +10,0 @@ |
@@ -79,3 +79,3 @@ import { VFileMessage } from 'vfile-message'; | ||
} | ||
declare type Highlighter = (code: string, lang: string | undefined) => string | Promise<string>; | ||
declare type Highlighter = (code: string, lang: string | undefined, metastring: string | undefined) => string | Promise<string>; | ||
interface HighlightOptions { | ||
@@ -82,0 +82,0 @@ /** |
@@ -79,3 +79,3 @@ import { VFileMessage } from 'vfile-message'; | ||
} | ||
declare type Highlighter = (code: string, lang: string | undefined) => string | Promise<string>; | ||
declare type Highlighter = (code: string, lang: string | undefined, metastring: string | undefined) => string | Promise<string>; | ||
interface HighlightOptions { | ||
@@ -82,0 +82,0 @@ /** |
{ | ||
"name": "mdsvex", | ||
"version": "0.9.7", | ||
"version": "0.9.8", | ||
"description": "Markdown preprocessor for Svelte", | ||
@@ -5,0 +5,0 @@ "main": "dist/main.cjs.js", |
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
Sorry, the diff of this file is too big to display
4187161
131100