From f188da0d530002aa6c46640bbd9810136c59718d Mon Sep 17 00:00:00 2001 From: Abiria Date: Thu, 2 Nov 2023 12:18:23 +0900 Subject: [PATCH] docs: update reference documentation to reflect type definition correctly (#3167) --- docs/reference/site-config.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/reference/site-config.md b/docs/reference/site-config.md index 18814dd0..57920952 100644 --- a/docs/reference/site-config.md +++ b/docs/reference/site-config.md @@ -480,7 +480,7 @@ interface MarkdownOptions extends MarkdownIt.Options { // Add support for your own languages. // https://github.com/shikijs/shiki/blob/main/docs/languages.md#supporting-your-own-languages-with-shiki - languages?: Shiki.ILanguageRegistration + languages?: Shiki.ILanguageRegistration[] // markdown-it-anchor plugin options. // See: https://github.com/valeriangalliat/markdown-it-anchor#usage @@ -491,7 +491,7 @@ interface MarkdownOptions extends MarkdownIt.Options { attrs?: { leftDelimiter?: string rightDelimiter?: string - allowedAttributes?: string[] + allowedAttributes?: Array disable?: boolean } @@ -504,7 +504,7 @@ interface MarkdownOptions extends MarkdownIt.Options { // @mdit-vue/plugin-headers plugin options. // See: https://github.com/mdit-vue/mdit-vue/tree/main/packages/plugin-headers#options - headers?: HeadersPluginOptions + headers?: HeadersPluginOptions | boolean // @mdit-vue/plugin-sfc plugin options. // See: https://github.com/mdit-vue/mdit-vue/tree/main/packages/plugin-sfc#options @@ -531,7 +531,7 @@ interface MarkdownOptions extends MarkdownIt.Options { // You need to install `markdown-it-mathjax3` and set `math` to `true` to enable it. // You can also pass options to `markdown-it-mathjax3` here. // See: https://github.com/tani/markdown-it-mathjax3#customization - math?: any + math?: boolean | any // Global custom container titles container?: {