Launch Week Day 3: Introducing Organization Notifications in Socket.Learn More
Socket
Book a DemoSign in
Socket

@astrojs/markdown-remark

Package Overview
Dependencies
Maintainers
2
Versions
179
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@astrojs/markdown-remark - npm Package Compare versions

Comparing version
7.0.1
to
7.1.0
+3
-2
dist/index.js

@@ -67,4 +67,5 @@ import rehypeRaw from "rehype-raw";

}
if (smartypants) {
parser.use(remarkSmartypants);
if (smartypants !== false) {
const smartypantsConfig = typeof smartypants === "object" ? smartypants : {};
parser.use(remarkSmartypants, smartypantsConfig);
}

@@ -71,0 +72,0 @@ }

+3
-1

@@ -5,2 +5,3 @@ import type { RemotePattern } from '@astrojs/internal-helpers/remote';

import type { Options as RemarkRehypeOptions } from 'remark-rehype';
import type { Options as SmartypantsOptions } from 'retext-smartypants';
import type { BuiltinTheme } from 'shiki';

@@ -25,2 +26,3 @@ import type * as unified from 'unified';

export type RemarkRehype = RemarkRehypeOptions;
export type Smartypants = SmartypantsOptions;
export type ThemePresets = BuiltinTheme | 'css-variables';

@@ -44,3 +46,3 @@ export type SyntaxHighlightConfigType = 'shiki' | 'prism';

gfm?: boolean;
smartypants?: boolean;
smartypants?: boolean | SmartypantsOptions;
}

@@ -47,0 +49,0 @@ /**

{
"name": "@astrojs/markdown-remark",
"version": "7.0.1",
"version": "7.1.0",
"type": "module",

@@ -44,2 +44,3 @@ "author": "withastro",

"remark-smartypants": "^3.0.2",
"retext-smartypants": "^6.2.0",
"shiki": "^4.0.0",

@@ -46,0 +47,0 @@ "smol-toml": "^1.6.0",