Comparing version 0.11.0 to 0.11.1
@@ -88,3 +88,3 @@ import { VFileMessage } from 'vfile-message'; | ||
} | ||
declare type Highlighter = (code: string, lang: string | undefined, metastring: string | undefined) => string | Promise<string>; | ||
declare type Highlighter = (code: string, lang: string | null | undefined, metastring: string | null | undefined, filename?: string) => string | Promise<string>; | ||
interface HighlightOptions { | ||
@@ -91,0 +91,0 @@ /** |
@@ -88,3 +88,3 @@ import { VFileMessage } from 'vfile-message'; | ||
} | ||
declare type Highlighter = (code: string, lang: string | undefined, metastring: string | undefined) => string | Promise<string>; | ||
declare type Highlighter = (code: string, lang: string | null | undefined, metastring: string | null | undefined, filename?: string) => string | Promise<string>; | ||
interface HighlightOptions { | ||
@@ -91,0 +91,0 @@ /** |
{ | ||
"name": "mdsvex", | ||
"version": "0.11.0", | ||
"version": "0.11.1", | ||
"description": "Markdown preprocessor for Svelte", | ||
@@ -23,4 +23,6 @@ "main": "dist/main.cjs.js", | ||
"devDependencies": { | ||
"@rollup/plugin-commonjs": "^25.0.7", | ||
"@rollup/plugin-node-resolve": "^15.2.3", | ||
"@rollup/plugin-replace": "^2.4.2", | ||
"@rollup/plugin-sucrase": "^3.1.0", | ||
"@rollup/plugin-sucrase": "^5.0.2", | ||
"@starptech/prettyhtml-hast-to-html": "^0.10.0", | ||
@@ -47,7 +49,5 @@ "@types/acorn": "^4.0.5", | ||
"retext-smartypants": "^4.0.0", | ||
"rollup-plugin-commonjs": "^10.1.0", | ||
"rollup-plugin-json": "^4.0.0", | ||
"rollup-plugin-node-builtins": "^2.1.2", | ||
"rollup-plugin-node-globals": "^1.4.0", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"rollup-plugin-svelte": "^5.1.1", | ||
@@ -61,3 +61,3 @@ "shiki": "^0.9.3", | ||
"peerDependencies": { | ||
"svelte": ">=3 <5" | ||
"svelte": ">=3 <6" | ||
}, | ||
@@ -64,0 +64,0 @@ "dependencies": { |
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
4520976
143091
9
4