@astrojs/markdown-remark
Advanced tools
+3
-2
@@ -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 @@ /** |
+2
-1
| { | ||
| "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", |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
39426
0.74%935
0.32%21
5%+ Added