diff --git a/package.json b/package.json index e6139011a6b..d5670d24a06 100644 --- a/package.json +++ b/package.json @@ -129,7 +129,7 @@ "typescript": "5.4.5", "validator": "13.12.0", "vite": "5.2.11", - "vitepress": "1.2.0", + "vitepress": "1.2.2", "vitest": "1.6.0", "vue": "3.4.27" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b195ee1571a..78b313cd233 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -126,8 +126,8 @@ importers: specifier: 5.2.11 version: 5.2.11(@types/node@20.12.12) vitepress: - specifier: 1.2.0 - version: 1.2.0(@algolia/client-search@4.23.3)(@types/node@20.12.12)(postcss@8.4.38)(search-insights@2.14.0)(typescript@5.4.5) + specifier: 1.2.2 + version: 1.2.2(@algolia/client-search@4.23.3)(@types/node@20.12.12)(postcss@8.4.38)(search-insights@2.14.0)(typescript@5.4.5) vitest: specifier: 1.6.0 version: 1.6.0(@types/node@20.12.12)(@vitest/ui@1.6.0)(jsdom@23.2.0) @@ -3601,8 +3601,8 @@ packages: terser: optional: true - vitepress@1.2.0: - resolution: {integrity: sha512-m/4PAQVyPBvKHV7sFKwcmNmrsoSxdjnw/Eg40YyuBSaBHhrro9ubnfWk5GT0xGfE98LqjZkHCWKNJlR6G/7Ayg==} + vitepress@1.2.2: + resolution: {integrity: sha512-uZ3nXR5NY4nYj3RJWCo5jev9qlNZAQo5SUXu1U0QSUx84cUm/o7hCTDVjZ4njVSVui+PsV1oAbdQOg8ygbaf4w==} hasBin: true peerDependencies: markdown-it-mathjax3: ^4 @@ -7487,7 +7487,7 @@ snapshots: '@types/node': 20.12.12 fsevents: 2.3.3 - vitepress@1.2.0(@algolia/client-search@4.23.3)(@types/node@20.12.12)(postcss@8.4.38)(search-insights@2.14.0)(typescript@5.4.5): + vitepress@1.2.2(@algolia/client-search@4.23.3)(@types/node@20.12.12)(postcss@8.4.38)(search-insights@2.14.0)(typescript@5.4.5): dependencies: '@docsearch/css': 3.6.0 '@docsearch/js': 3.6.0(@algolia/client-search@4.23.3)(search-insights@2.14.0) diff --git a/scripts/apidocs/utils/markdown.ts b/scripts/apidocs/utils/markdown.ts index b0cc68beeb8..2787a611bf4 100644 --- a/scripts/apidocs/utils/markdown.ts +++ b/scripts/apidocs/utils/markdown.ts @@ -31,7 +31,7 @@ const htmlSanitizeOptions: sanitizeHtml.IOptions = { a: ['href', 'target', 'rel'], button: ['class', 'title'], div: ['class'], - pre: ['class', 'v-pre'], + pre: ['class', 'v-pre', 'tabindex'], span: ['class', 'style'], }, selfClosing: [],