New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mdsvex

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mdsvex - npm Package Compare versions

Comparing version 0.10.6 to 0.11.0

12

dist/main.cjs.d.ts

@@ -91,3 +91,3 @@ import { VFileMessage } from 'vfile-message';

/**
* **highlighter** - A custom highlight function for syntax highlighting. Two arguments are passed, both strings: the code to highlight and the language (if one is provided). It must return a string that will be injected into the document.
* **highlighter** - A custom highlight function for syntax highlighting. Two arguments are passed, both strings: the code to highlight and the language (if one is provided). It must return a string that will be injected into the document (or a promise that resolves to a string).
*

@@ -100,2 +100,4 @@ * *example:*

* ```
*
* Can be an async function.
*/

@@ -226,2 +228,3 @@ highlighter?: Highlighter;

interface Preprocessor {
name: string;
markup: (args: {

@@ -235,2 +238,5 @@ content: string;

declare const escape_svelty: (str: string) => string;
declare const code_highlight: Highlighter;
/**

@@ -270,4 +276,2 @@ * The svelte preprocessor for use with svelte.preprocess

declare const escape_svelty: (str: string) => string;
export { MdsvexCompileOptions, MdsvexLanguage, MdsvexOptions, _compile as compile, defineConfig as defineMDSveXConfig, escape_svelty as escapeSvelte, mdsvex };
export { MdsvexCompileOptions, MdsvexLanguage, MdsvexOptions, code_highlight as code_highlighter, _compile as compile, defineConfig as defineMDSveXConfig, escape_svelty as escapeSvelte, mdsvex };

@@ -91,3 +91,3 @@ import { VFileMessage } from 'vfile-message';

/**
* **highlighter** - A custom highlight function for syntax highlighting. Two arguments are passed, both strings: the code to highlight and the language (if one is provided). It must return a string that will be injected into the document.
* **highlighter** - A custom highlight function for syntax highlighting. Two arguments are passed, both strings: the code to highlight and the language (if one is provided). It must return a string that will be injected into the document (or a promise that resolves to a string).
*

@@ -100,2 +100,4 @@ * *example:*

* ```
*
* Can be an async function.
*/

@@ -226,2 +228,3 @@ highlighter?: Highlighter;

interface Preprocessor {
name: string;
markup: (args: {

@@ -235,2 +238,5 @@ content: string;

declare const escape_svelty: (str: string) => string;
declare const code_highlight: Highlighter;
/**

@@ -270,4 +276,2 @@ * The svelte preprocessor for use with svelte.preprocess

declare const escape_svelty: (str: string) => string;
export { MdsvexCompileOptions, MdsvexLanguage, MdsvexOptions, _compile as compile, defineConfig as defineMDSveXConfig, escape_svelty as escapeSvelte, mdsvex };
export { MdsvexCompileOptions, MdsvexLanguage, MdsvexOptions, code_highlight as code_highlighter, _compile as compile, defineConfig as defineMDSveXConfig, escape_svelty as escapeSvelte, mdsvex };
{
"name": "mdsvex",
"version": "0.10.6",
"version": "0.11.0",
"description": "Markdown preprocessor for Svelte",

@@ -53,3 +53,3 @@ "main": "dist/main.cjs.js",

"shiki": "^0.9.3",
"svelte": "^3.14.1",
"svelte": "^4.0.0",
"toml": "^3.0.0",

@@ -60,3 +60,3 @@ "unified": "^9.1.0",

"peerDependencies": {
"svelte": "3.x"
"svelte": ">=3 <5"
},

@@ -71,4 +71,3 @@ "dependencies": {

"build": "rollup -c"
},
"readme": "# MDsveX\n\n_do ya think I'm svexy?_\n\nA markdown preprocessor for Svelte components. Basically [MDX](https://github.com/mdx-js/mdx) for Svelte.\n\nThis preprocessor allows you use Svelte components in your markdown, or markdown in your svelte components.\n\n[Try it](https://mdsvex.com/)\n\nYou can do this:\n\n```jsx\n<script>\n import { Chart } from '../components/Chart.svelte';\n</script>\n\n# Here’s a chart\n\nThe chart is rendered inside our MDsveX document.\n\n<Chart />\n```\n\nhttps://mdsvex.com/\n"
}
}

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc