vuepress-theme-plume/assets/shiki-B5oDaxVe.js

111 lines
53 KiB
JavaScript

import{$ as e,B as t,P as n,_ as r,f as ee,g as i,h as a,l as o}from"./runtime-core.esm-bundler-CZvn3YaB.js";import{t as s}from"./plugin-vue_export-helper-CxTVcLa7.js";var c=JSON.parse(`{"path":"/en/config/plugins/code-highlight/","title":"Code Highlighting | Config","lang":"en-US","frontmatter":{"title":"Code Highlighting","createTime":"2025/10/09 10:21:47","permalink":"/en/config/plugins/code-highlight/","description":"Overview The theme's built-in code highlighting plugin provides syntax highlighting for code blocks. Related plugin: @vuepress/plugin-shiki The theme uses Shiki to implement syn...","head":[["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"Code Highlighting\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2025-10-09T13:39:17.000Z\\",\\"author\\":[]}"],["meta",{"property":"og:url","content":"https://theme-plume.vuejs.press/en/config/plugins/code-highlight/"}],["meta",{"property":"og:site_name","content":"Plume Theme"}],["meta",{"property":"og:title","content":"Code Highlighting"}],["meta",{"property":"og:description","content":"Overview The theme's built-in code highlighting plugin provides syntax highlighting for code blocks. Related plugin: @vuepress/plugin-shiki The theme uses Shiki to implement syn..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"en-US"}],["meta",{"property":"og:locale:alternate","content":"zh-CN"}],["meta",{"property":"og:updated_time","content":"2025-10-09T13:39:17.000Z"}],["meta",{"property":"article:modified_time","content":"2025-10-09T13:39:17.000Z"}],["link",{"rel":"alternate","hreflang":"zh-cn","href":"https://theme-plume.vuejs.press/config/plugins/code-highlight/"}]]},"readingTime":{"minutes":1.3,"words":391},"git":{"createdTime":1712341095000,"updatedTime":1760017157000,"contributors":[{"name":"pengzhanbo","username":"pengzhanbo","email":"volodymyr@foxmail.com","commits":6,"avatar":"https://avatars.githubusercontent.com/pengzhanbo?v=4","url":"https://github.com/pengzhanbo"},{"name":"Mister-Hope","username":"Mister-Hope","email":"mister-hope@outlook.com","commits":1,"avatar":"https://avatars.githubusercontent.com/Mister-Hope?v=4","url":"https://github.com/Mister-Hope"}],"changelog":[{"hash":"3b99ecc46fe85d73f8a52b179e1b336376720353","time":1760017157000,"email":"volodymyr@foxmail.com","author":"pengzhanbo","message":"docs: update docs"},{"hash":"385059f214cb07fc9a098859e889432fb81f998b","time":1759995965000,"email":"volodymyr@foxmail.com","author":"pengzhanbo","message":"docs: update en docs (#708)"},{"hash":"4d2361a7046214fe0f4e4af01831107fd00e38ad","time":1759849989000,"email":"volodymyr@foxmail.com","author":"pengzhanbo","message":"feat(theme)!: add collections support (#704)"},{"hash":"b8b32201efc390e45b6f0c2aa71b9ea0b8c866c6","time":1741149413000,"email":"mister-hope@outlook.com","author":"Mister-Hope","message":"feat!: remove plugin-shikiji, migrate to @vuepress/plugin-shiki, close #489 (#508)","coAuthors":[{"name":"pengzhanbo","email":"volodymyr@foxmail.com"}]},{"hash":"1ff7796d57246388619451291c9dcba90a2be5f0","time":1723578965000,"email":"volodymyr@foxmail.com","author":"pengzhanbo","message":"docs: update docs"},{"hash":"67ab7c734adada6d80f059a2e2cce3b04b0534a4","time":1712341095000,"email":"volodymyr@foxmail.com","author":"pengzhanbo","message":"docs: update doc"}]},"autoDesc":true,"filePathRelative":"en/config/plugins/shiki.md","headers":[],"bulletin":false}`),l={name:`shiki.md`},u={class:`code-block-title`,"data-title":`.vuepress/config.ts`},d={class:`code-block-title-bar`},f={class:`title`},p={class:`language-ts`,"data-highlighter":`shiki`,"data-ext":`ts`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`}},m={class:`shiki shiki-themes vitesse-light vitesse-dark vp-code twoslash lsp`},h={class:`language-ts`},g={class:`line`},_={style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},v={class:`line`},y={style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},b={class:`line`},x={style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},S={class:`line`},C={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},w={style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},T={class:`line`},E={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},D={class:`line`},O={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},k={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},A={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},j={class:`line`},M={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},te={class:`line`},N={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},P={class:`line`},F={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},I={class:`line`},L={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},R={class:`line`},z={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},B={class:`line`},V={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},H={class:`line`},U={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},W={class:`line`},G={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},K={class:`line`},q={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},J={class:`line`},Y={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}};function X(s,c,l,X,Z,ne){let Q=t(`VPLink`),re=t(`VPIcon`),$=t(`v-menu`);return n(),ee(`div`,null,[c[127]||=a(`<h2 id="overview" tabindex="-1"><a class="header-anchor" href="#overview"><span>Overview</span></a></h2><p>The theme&#39;s built-in code highlighting plugin provides syntax highlighting for code blocks.</p><p>Related plugin: <a href="https://ecosystem.vuejs.press/zh/plugins/markdown/shiki.html" target="_blank" rel="noopener noreferrer">@vuepress/plugin-shiki</a></p><p>The theme uses <a href="https://github.com/shikijs/shiki" target="_blank" rel="noopener noreferrer">Shiki</a> to implement syntax highlighting with colored text in Markdown code blocks. Shiki supports multiple programming languages.</p><p>You can find the <a href="https://shiki.style/languages" target="_blank" rel="noopener noreferrer">list of supported languages</a> in Shiki&#39;s repository.</p><h2 id="features" tabindex="-1"><a class="header-anchor" href="#features"><span>Features</span></a></h2>`,6),o(`ul`,null,[o(`li`,null,[r(Q,{href:`../../guide/code/features.md#code-block-titles`},{default:e(()=>[...c[0]||=[i(`Code Block Titles`,-1)]]),_:1})]),o(`li`,null,[r(Q,{href:`../../guide/code/features.md#line-highlighting-in-code-blocks`},{default:e(()=>[...c[1]||=[i(`Line Highlighting`,-1)]]),_:1})]),o(`li`,null,[r(Q,{href:`../../guide/code/features.md#focus-in-code-blocks`},{default:e(()=>[...c[2]||=[i(`Code Focus`,-1)]]),_:1})]),o(`li`,null,[r(Q,{href:`../../guide/code/features.md#color-differences-in-code-blocks`},{default:e(()=>[...c[3]||=[i(`Code Diff`,-1)]]),_:1})]),o(`li`,null,[r(Q,{href:`../../guide/code/features.md#highlighting-errors-and-warnings`},{default:e(()=>[...c[4]||=[i(`Error and Warning Highlighting`,-1)]]),_:1})]),o(`li`,null,[r(Q,{href:`../../guide/code/features.md#word-highlighting-in-code-blocks`},{default:e(()=>[...c[5]||=[i(`Word Highlighting`,-1)]]),_:1})]),o(`li`,null,[r(Q,{href:`../../guide/code/features.md#collapsing-code-blocks`},{default:e(()=>[...c[6]||=[i(`Code Block Folding`,-1)]]),_:1})]),o(`li`,null,[r(Q,{href:`../../guide/code/twoslash.md#twoslash`},{default:e(()=>[...c[7]||=[i(`twoslash`,-1)]]),_:1}),c[8]||=i(`: Provides inline type hints within code blocks.`,-1)])]),c[128]||=o(`h2`,{id:`configuration`,tabindex:`-1`},[o(`a`,{class:`header-anchor`,href:`#configuration`},[o(`span`,null,`Configuration`)])],-1),c[129]||=o(`p`,null,`Default configuration:`,-1),o(`div`,u,[o(`div`,d,[o(`span`,f,[r(re,{provider:`iconify`,name:`vscode-icons:file-type-typescript`}),c[9]||=i(`.vuepress/config.ts`,-1)])]),o(`div`,p,[o(`pre`,m,[o(`code`,h,[o(`span`,g,[c[12]||=o(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`,-1),c[13]||=o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`,-1),c[14]||=o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` `,-1),o(`span`,_,[r($,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...c[10]||=[o(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[o(`code`,{class:`twoslash-popup-code`},[o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`const `),o(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`defineUserConfig`),o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: (`),o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`config`),o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),o(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`UserConfig`),o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`) => `),o(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`UserConfig`)])],-1)]]),default:e(()=>[c[11]||=o(`span`,null,`defineUserConfig`,-1)]),_:1})]),c[15]||=a(`<span style="--shiki-light:#999999;--shiki-dark:#666666;"> }</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;"> from</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;"> &#39;</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">vuepress</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span>`,5)]),c[105]||=i(`
`,-1),o(`span`,v,[c[18]||=o(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`,-1),c[19]||=o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`,-1),c[20]||=o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` `,-1),o(`span`,y,[r($,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...c[16]||=[o(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[o(`code`,{class:`twoslash-popup-code`},[o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`function`),o(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` plumeTheme`),o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`(`),o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`options`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?`),o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),o(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`ThemeOptions`),o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`):`),o(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},` Theme`)]),o(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[o(`p`,null,`VuePress Theme Plume`),i(`
`),o(`p`,null,`VuePress 主题 Plume`)]),o(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[o(`span`,{class:`twoslash-popup-docs-tag`},[o(`span`,{class:`twoslash-popup-docs-tag-name`},`@param`),o(`span`,{class:`twoslash-popup-docs-tag-value`},[o(`code`,null,`options`),i(` Theme options / 主题配置`)])]),o(`span`,{class:`twoslash-popup-docs-tag`},[o(`span`,{class:`twoslash-popup-docs-tag-name`},`@example`),o(`span`,{class:`twoslash-popup-docs-tag-value`},[o(`div`,{class:`language-ts`,"data-ext":`ts`,"data-title":`ts`,"data-highlighter":`shiki`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`}},[o(`pre`,{class:`shiki shiki-themes vitesse-light vitesse-dark`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`},tabindex:`0`},[o(`code`,null,[o(`span`,{class:`line`},[o(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`),o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`),o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` defineUserConfig`),o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` }`),o(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` from`),o(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`),o(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`vuepress`),o(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`)]),i(`
`),o(`span`,{class:`line`},[o(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`),o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`),o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` plumeTheme`),o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` }`),o(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` from`),o(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`),o(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`vuepress-theme-plume`),o(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`)]),i(`
`),o(`span`,{class:`line`}),i(`
`),o(`span`,{class:`line`},[o(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`export`),o(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` default`),o(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` defineUserConfig`),o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`)]),i(`
`),o(`span`,{class:`line`},[o(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` theme`),o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),o(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`plumeTheme`),o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`)]),i(`
`),o(`span`,{class:`line`},[o(`span`,{style:{"--shiki-light":`#A0ADA0`,"--shiki-dark":`#758575DD`}},` // ...options`)]),i(`
`),o(`span`,{class:`line`},[o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` })`)]),i(`
`),o(`span`,{class:`line`},[o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`})`)])])])])])])])],-1)]]),default:e(()=>[c[17]||=o(`span`,null,`plumeTheme`,-1)]),_:1})]),c[21]||=a(`<span style="--shiki-light:#999999;--shiki-dark:#666666;"> }</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;"> from</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;"> &#39;</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">vuepress-theme-plume</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span>`,5)]),c[106]||=i(`
`,-1),c[107]||=o(`span`,{class:`line`},null,-1),c[108]||=i(`
`,-1),o(`span`,b,[c[24]||=o(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`export`,-1),c[25]||=o(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` default`,-1),c[26]||=o(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` `,-1),o(`span`,x,[r($,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...c[22]||=[o(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[o(`code`,{class:`twoslash-popup-code`},[o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`function`),o(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` defineUserConfig`),o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`(`),o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`config`),o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),o(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`UserConfig`),o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`):`),o(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},` UserConfig`)])],-1)]]),default:e(()=>[c[23]||=o(`span`,null,`defineUserConfig`,-1)]),_:1})]),c[27]||=o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`,-1)]),c[109]||=i(`
`,-1),o(`span`,S,[c[32]||=o(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),o(`span`,C,[r($,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...c[28]||=[o(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[o(`code`,{class:`twoslash-popup-code`},[o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`theme`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` Theme`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),o(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[o(`p`,null,`Vuepress theme`)]),o(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[o(`span`,{class:`twoslash-popup-docs-tag`},[o(`span`,{class:`twoslash-popup-docs-tag-name`},`@required`)])])],-1)]]),default:e(()=>[c[29]||=o(`span`,null,`theme`,-1)]),_:1})]),c[33]||=o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `,-1),o(`span`,w,[r($,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...c[30]||=[o(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[o(`code`,{class:`twoslash-popup-code`},[o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`function`),o(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` plumeTheme`),o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`(`),o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`options`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?`),o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),o(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`ThemeOptions`),o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`):`),o(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},` Theme`)]),o(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[o(`p`,null,`VuePress Theme Plume`),i(`
`),o(`p`,null,`VuePress 主题 Plume`)]),o(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[o(`span`,{class:`twoslash-popup-docs-tag`},[o(`span`,{class:`twoslash-popup-docs-tag-name`},`@param`),o(`span`,{class:`twoslash-popup-docs-tag-value`},[o(`code`,null,`options`),i(` Theme options / 主题配置`)])]),o(`span`,{class:`twoslash-popup-docs-tag`},[o(`span`,{class:`twoslash-popup-docs-tag-name`},`@example`),o(`span`,{class:`twoslash-popup-docs-tag-value`},[o(`div`,{class:`language-ts`,"data-ext":`ts`,"data-title":`ts`,"data-highlighter":`shiki`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`}},[o(`pre`,{class:`shiki shiki-themes vitesse-light vitesse-dark`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`},tabindex:`0`},[o(`code`,null,[o(`span`,{class:`line`},[o(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`),o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`),o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` defineUserConfig`),o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` }`),o(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` from`),o(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`),o(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`vuepress`),o(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`)]),i(`
`),o(`span`,{class:`line`},[o(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`),o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`),o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` plumeTheme`),o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` }`),o(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` from`),o(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`),o(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`vuepress-theme-plume`),o(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`)]),i(`
`),o(`span`,{class:`line`}),i(`
`),o(`span`,{class:`line`},[o(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`export`),o(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` default`),o(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` defineUserConfig`),o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`)]),i(`
`),o(`span`,{class:`line`},[o(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` theme`),o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),o(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`plumeTheme`),o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`)]),i(`
`),o(`span`,{class:`line`},[o(`span`,{style:{"--shiki-light":`#A0ADA0`,"--shiki-dark":`#758575DD`}},` // ...options`)]),i(`
`),o(`span`,{class:`line`},[o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` })`)]),i(`
`),o(`span`,{class:`line`},[o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`})`)])])])])])])])],-1)]]),default:e(()=>[c[31]||=o(`span`,null,`plumeTheme`,-1)]),_:1})]),c[34]||=o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`,-1)]),c[110]||=i(`
`,-1),o(`span`,T,[c[37]||=o(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),o(`span`,E,[r($,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...c[35]||=[o(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[o(`code`,{class:`twoslash-popup-code`},[o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`ThemeFeatureOptions`),o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`.`),o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`codeHighlighter`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),o(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` false`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` ShikiPluginOptions`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),o(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[o(`p`,null,[i(`Code block highlight configuration
Theme uses `),o(`code`,null,`shiki`),i(` as the code block highlighter
代码块高亮配置,主题使用 `),o(`code`,null,`shiki`),i(` 作为代码块高亮器`)])])],-1)]]),default:e(()=>[c[36]||=o(`span`,null,`codeHighlighter`,-1)]),_:1})]),c[38]||=o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: {`,-1)]),c[111]||=i(`
`,-1),o(`span`,D,[c[45]||=o(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),o(`span`,O,[r($,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...c[39]||=[o(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[o(`code`,{class:`twoslash-popup-code`},[o(`pre`,{class:`shiki shiki-themes vitesse-light vitesse-dark`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`},tabindex:`0`},[o(`code`,null,[o(`span`,{class:`line`},[o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`ShikiDualThemeOptions`),o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`.`),o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`themes`),o(`span`,{style:{"--shiki-light":`#393A34`,"--shiki-dark":`#DBD7CAEE`}},`:`),o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`)]),i(`
`),o(`span`,{class:`line`},[o(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` dark`),o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`ShikiTheme`),o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`;`)]),i(`
`),o(`span`,{class:`line`},[o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` light`),o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`ShikiTheme`),o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`;`)]),i(`
`),o(`span`,{class:`line`},[o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`}`)])])])]),o(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[o(`p`,null,`The dark and light themes to use`)]),o(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[o(`span`,{class:`twoslash-popup-docs-tag`},[o(`span`,{class:`twoslash-popup-docs-tag-name`},`@see`),o(`span`,{class:`twoslash-popup-docs-tag-value`},[o(`a`,{href:`https://shiki.style/themes`},`https://shiki.style/themes`)])])])],-1)]]),default:e(()=>[c[40]||=o(`span`,null,`themes`,-1)]),_:1})]),c[46]||=o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: { `,-1),o(`span`,k,[r($,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...c[41]||=[o(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[o(`code`,{class:`twoslash-popup-code`},[o(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`light`),o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`:`),o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` ShikiTheme`)])],-1)]]),default:e(()=>[c[42]||=o(`span`,null,`light`,-1)]),_:1})]),c[47]||=a(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">vitesse-light</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">, </span>`,5),o(`span`,A,[r($,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...c[43]||=[o(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[o(`code`,{class:`twoslash-popup-code`},[o(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`dark`),o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`:`),o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` ShikiTheme`)])],-1)]]),default:e(()=>[c[44]||=o(`span`,null,`dark`,-1)]),_:1})]),c[48]||=a(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">vitesse-dark</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span><span style="--shiki-light:#999999;--shiki-dark:#666666;"> },</span>`,5)]),c[112]||=i(`
`,-1),o(`span`,j,[c[51]||=o(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),o(`span`,M,[r($,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...c[49]||=[o(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[o(`code`,{class:`twoslash-popup-code`},[o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`notationDiff`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` boolean`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),o(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[o(`p`,null,`Enable notation diff transformer`),i(`
`),o(`p`,null,`是否启用差异标记转换器`)]),o(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[o(`span`,{class:`twoslash-popup-docs-tag`},[o(`span`,{class:`twoslash-popup-docs-tag-name`},`@default`),o(`span`,{class:`twoslash-popup-docs-tag-value`},`false`)]),o(`span`,{class:`twoslash-popup-docs-tag`},[o(`span`,{class:`twoslash-popup-docs-tag-name`},`@see`),o(`span`,{class:`twoslash-popup-docs-tag-value`},[o(`a`,{href:`https://shiki.style/packages/transformers#transformernotationdiff`},`https://shiki.style/packages/transformers#transformernotationdiff`)])])])],-1)]]),default:e(()=>[c[50]||=o(`span`,null,`notationDiff`,-1)]),_:1})]),c[52]||=o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `,-1),c[53]||=o(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`true`,-1),c[54]||=o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`,`,-1)]),c[113]||=i(`
`,-1),o(`span`,te,[c[57]||=o(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),o(`span`,N,[r($,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...c[55]||=[o(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[o(`code`,{class:`twoslash-popup-code`},[o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`notationErrorLevel`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` boolean`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),o(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[o(`p`,null,`Enable notation error level transformer`),i(`
`),o(`p`,null,`是否启用错误级别标记转换器`)]),o(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[o(`span`,{class:`twoslash-popup-docs-tag`},[o(`span`,{class:`twoslash-popup-docs-tag-name`},`@default`),o(`span`,{class:`twoslash-popup-docs-tag-value`},`false`)]),o(`span`,{class:`twoslash-popup-docs-tag`},[o(`span`,{class:`twoslash-popup-docs-tag-name`},`@see`),o(`span`,{class:`twoslash-popup-docs-tag-value`},[o(`a`,{href:`https://shiki.style/packages/transformers#transformernotationerrorlevel`},`https://shiki.style/packages/transformers#transformernotationerrorlevel`)])])])],-1)]]),default:e(()=>[c[56]||=o(`span`,null,`notationErrorLevel`,-1)]),_:1})]),c[58]||=o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `,-1),c[59]||=o(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`true`,-1),c[60]||=o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`,`,-1)]),c[114]||=i(`
`,-1),o(`span`,P,[c[63]||=o(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),o(`span`,F,[r($,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...c[61]||=[o(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[o(`code`,{class:`twoslash-popup-code`},[o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`notationFocus`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` boolean`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),o(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[o(`p`,null,`Enable notation focus transformer`),i(`
`),o(`p`,null,`是否启用聚焦标记转换器`)]),o(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[o(`span`,{class:`twoslash-popup-docs-tag`},[o(`span`,{class:`twoslash-popup-docs-tag-name`},`@default`),o(`span`,{class:`twoslash-popup-docs-tag-value`},`false`)]),o(`span`,{class:`twoslash-popup-docs-tag`},[o(`span`,{class:`twoslash-popup-docs-tag-name`},`@see`),o(`span`,{class:`twoslash-popup-docs-tag-value`},[o(`a`,{href:`https://shiki.style/packages/transformers#transformernotationfocus`},`https://shiki.style/packages/transformers#transformernotationfocus`)])])])],-1)]]),default:e(()=>[c[62]||=o(`span`,null,`notationFocus`,-1)]),_:1})]),c[64]||=o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `,-1),c[65]||=o(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`true`,-1),c[66]||=o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`,`,-1)]),c[115]||=i(`
`,-1),o(`span`,I,[c[69]||=o(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),o(`span`,L,[r($,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...c[67]||=[o(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[o(`code`,{class:`twoslash-popup-code`},[o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`notationHighlight`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` boolean`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),o(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[o(`p`,null,`Enable notation highlight transformer`),i(`
`),o(`p`,null,`是否启用高亮标记转换器`)]),o(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[o(`span`,{class:`twoslash-popup-docs-tag`},[o(`span`,{class:`twoslash-popup-docs-tag-name`},`@default`),o(`span`,{class:`twoslash-popup-docs-tag-value`},`false`)]),o(`span`,{class:`twoslash-popup-docs-tag`},[o(`span`,{class:`twoslash-popup-docs-tag-name`},`@see`),o(`span`,{class:`twoslash-popup-docs-tag-value`},[o(`a`,{href:`https://shiki.style/packages/transformers#transformernotationhighlight`},`https://shiki.style/packages/transformers#transformernotationhighlight`)])])])],-1)]]),default:e(()=>[c[68]||=o(`span`,null,`notationHighlight`,-1)]),_:1})]),c[70]||=o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `,-1),c[71]||=o(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`true`,-1),c[72]||=o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`,`,-1)]),c[116]||=i(`
`,-1),o(`span`,R,[c[75]||=o(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),o(`span`,z,[r($,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...c[73]||=[o(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[o(`code`,{class:`twoslash-popup-code`},[o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`notationWordHighlight`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` boolean`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),o(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[o(`p`,null,`Enable notation word highlight transformer`),i(`
`),o(`p`,null,`是否启用单词高亮标记转换器`)]),o(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[o(`span`,{class:`twoslash-popup-docs-tag`},[o(`span`,{class:`twoslash-popup-docs-tag-name`},`@default`),o(`span`,{class:`twoslash-popup-docs-tag-value`},`false`)]),o(`span`,{class:`twoslash-popup-docs-tag`},[o(`span`,{class:`twoslash-popup-docs-tag-name`},`@see`),o(`span`,{class:`twoslash-popup-docs-tag-value`},[o(`a`,{href:`https://shiki.style/packages/transformers#transformernotationwordhighlight`},`https://shiki.style/packages/transformers#transformernotationwordhighlight`)])])])],-1)]]),default:e(()=>[c[74]||=o(`span`,null,`notationWordHighlight`,-1)]),_:1})]),c[76]||=o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `,-1),c[77]||=o(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`true`,-1),c[78]||=o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`,`,-1)]),c[117]||=i(`
`,-1),o(`span`,B,[c[81]||=o(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),o(`span`,V,[r($,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...c[79]||=[o(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[o(`code`,{class:`twoslash-popup-code`},[o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`highlightLines`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` boolean`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),o(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[o(`p`,null,`Enable highlight lines or not`),i(`
`),o(`p`,null,`是否启用行高亮`)]),o(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[o(`span`,{class:`twoslash-popup-docs-tag`},[o(`span`,{class:`twoslash-popup-docs-tag-name`},`@default`),o(`span`,{class:`twoslash-popup-docs-tag-value`},`true`)])])],-1)]]),default:e(()=>[c[80]||=o(`span`,null,`highlightLines`,-1)]),_:1})]),c[82]||=o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `,-1),c[83]||=o(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`true`,-1),c[84]||=o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`,`,-1)]),c[118]||=i(`
`,-1),o(`span`,H,[c[87]||=o(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),o(`span`,U,[r($,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...c[85]||=[o(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[o(`code`,{class:`twoslash-popup-code`},[o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`collapsedLines`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` number`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` boolean`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),o(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},` "`),o(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`disable`),o(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`"`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),o(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[o(`p`,null,`Whether to collapse code blocks when they exceed a certain number of lines`),i(`
`),o(`p`,null,`当代码块超过一定行数时是否折叠`),i(`
`),o(`ul`,null,[i(`
`),o(`li`,null,[i(`
`),o(`p`,null,[i(`If `),o(`code`,null,`number`),i(`, collapse starts from line `),o(`code`,null,`number`),i(`.`)]),i(`
`)]),i(`
`),o(`li`,null,[i(`
`),o(`p`,null,[i(`If `),o(`code`,null,`true`),i(`, collapse starts from line 15 by default.`)]),i(`
`)]),i(`
`),o(`li`,null,[i(`
`),o(`p`,null,[i(`If `),o(`code`,null,`false`),i(`, do not enable code block collapsing globally, but you can enable it for individual code blocks using `),o(`code`,null,`:collapsed-lines`)]),i(`
`)]),i(`
`),o(`li`,null,[i(`
`),o(`p`,null,[i(`If `),o(`code`,null,`'disable'`),i(`, Completely disable code block collapsing`)]),i(`
`)]),i(`
`),o(`li`,null,[i(`
`),o(`p`,null,[i(`如果是 `),o(`code`,null,`number`),i(`,从第 `),o(`code`,null,`number`),i(` 行开始折叠`)]),i(`
`)]),i(`
`),o(`li`,null,[i(`
`),o(`p`,null,[i(`如果是 `),o(`code`,null,`true`),i(`,默认从第 15 行开始折叠`)]),i(`
`)]),i(`
`),o(`li`,null,[i(`
`),o(`p`,null,[i(`如果是 `),o(`code`,null,`false`),i(`,不全局启用代码块折叠,但你可以为单个代码块使用 `),o(`code`,null,`:collapsed-lines`),i(` 启用`)]),i(`
`)]),i(`
`),o(`li`,null,[i(`
`),o(`p`,null,[i(`如果是 `),o(`code`,null,`'disable'`),i(`,完全禁用代码块折叠`)]),i(`
`)]),i(`
`)])]),o(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[o(`span`,{class:`twoslash-popup-docs-tag`},[o(`span`,{class:`twoslash-popup-docs-tag-name`},`@default`),o(`span`,{class:`twoslash-popup-docs-tag-value`},`'disable'`)])])],-1)]]),default:e(()=>[c[86]||=o(`span`,null,`collapsedLines`,-1)]),_:1})]),c[88]||=o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `,-1),c[89]||=o(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`false`,-1),c[90]||=o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`,`,-1)]),c[119]||=i(`
`,-1),o(`span`,W,[c[93]||=o(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),o(`span`,G,[r($,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...c[91]||=[o(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[o(`code`,{class:`twoslash-popup-code`},[o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`MarkdownItLineNumbersOptions`),o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`.`),o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`lineNumbers`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` number`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` boolean`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),o(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},` "`),o(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`disable`),o(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`"`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),o(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[o(`p`,null,`Show line numbers in code blocks`),i(`
`),o(`p`,null,`在代码块中显示行号`),i(`
`),o(`ul`,null,[i(`
`),o(`li`,null,[i(`
`),o(`p`,null,[i(`If `),o(`code`,null,`number`),i(`, show line numbers with code block lines not less than `),o(`code`,null,`number`),i(`.`)]),i(`
`)]),i(`
`),o(`li`,null,[i(`
`),o(`p`,null,[i(`If `),o(`code`,null,`true`),i(`, show line number always`)]),i(`
`)]),i(`
`),o(`li`,null,[i(`
`),o(`p`,null,[i(`If `),o(`code`,null,`false`),i(`, do not enable line numbers globally, but you can enable it for individual code blocks using `),o(`code`,null,`:line-numbers`)]),i(`
`)]),i(`
`),o(`li`,null,[i(`
`),o(`p`,null,[i(`If `),o(`code`,null,`'disable'`),i(`, Completely disable line number`)]),i(`
`)]),i(`
`),o(`li`,null,[i(`
`),o(`p`,null,[i(`如果是 `),o(`code`,null,`number`),i(`,当代码块行数不少于该数字时显示行号`)]),i(`
`)]),i(`
`),o(`li`,null,[i(`
`),o(`p`,null,[i(`如果是 `),o(`code`,null,`true`),i(`,总是显示行号`)]),i(`
`)]),i(`
`),o(`li`,null,[i(`
`),o(`p`,null,[i(`如果是 `),o(`code`,null,`false`),i(`,不全局启用行号,但你可以为单个代码块使用 `),o(`code`,null,`:line-numbers`),i(` 启用`)]),i(`
`)]),i(`
`),o(`li`,null,[i(`
`),o(`p`,null,[i(`如果是 `),o(`code`,null,`'disable'`),i(`,完全禁用行号`)]),i(`
`)]),i(`
`)])]),o(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[o(`span`,{class:`twoslash-popup-docs-tag`},[o(`span`,{class:`twoslash-popup-docs-tag-name`},`@default`),o(`span`,{class:`twoslash-popup-docs-tag-value`},`'disable'`)])])],-1)]]),default:e(()=>[c[92]||=o(`span`,null,`lineNumbers`,-1)]),_:1})]),c[94]||=o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `,-1),c[95]||=o(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`true`,-1),c[96]||=o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`,`,-1)]),c[120]||=i(`
`,-1),c[121]||=o(`span`,{class:`line`},[o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` },`)],-1),c[122]||=i(`
`,-1),c[123]||=o(`span`,{class:`line`},[o(`span`,{style:{"--shiki-light":`#A0ADA0`,"--shiki-dark":`#758575DD`}},` // Can also be configured via plugins.shiki, but not recommended`)],-1),c[124]||=i(`
`,-1),o(`span`,K,[c[99]||=o(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),o(`span`,q,[r($,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...c[97]||=[o(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[o(`code`,{class:`twoslash-popup-code`},[o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`ThemeOptions`),o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`.`),o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`plugins`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` ThemeBuiltinPlugins`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),o(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[o(`p`,null,[i(`Theme built-in plugins configuration
Do not confuse this with `),o(`a`,{href:`https://v2.vuepress.vuejs.org/zh/reference/config.html#plugins`},`vuepress plugins`)]),i(`
`),o(`p`,null,[i(`主题内置插件配置
请勿将此配置与 `),o(`a`,{href:`https://v2.vuepress.vuejs.org/zh/reference/config.html#plugins`},`vuepress plugins`),i(` 混淆`)])])],-1)]]),default:e(()=>[c[98]||=o(`span`,null,`plugins`,-1)]),_:1})]),c[100]||=o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: {`,-1)]),c[125]||=i(`
`,-1),o(`span`,J,[c[103]||=o(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),o(`span`,Y,[r($,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...c[101]||=[o(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[o(`code`,{class:`twoslash-popup-code`},[o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`ThemeBuiltinPlugins`),o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`.`),o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`shiki`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),o(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` false`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),o(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` ShikiPluginOptions`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),o(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),o(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[o(`p`,null,`Code highlighting configuration`),i(`
`),o(`p`,null,`代码高亮 配置`)])],-1)]]),default:e(()=>[c[102]||=o(`span`,null,`shiki`,-1)]),_:1})]),c[104]||=o(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: {}`,-1)]),c[126]||=a(`
<span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;"> }</span></span>
<span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;"> }),</span></span>
<span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;">})</span></span>`,6)])])])]),c[130]||=a(`<h3 id="themes" tabindex="-1"><a class="header-anchor" href="#themes"><span>themes</span></a></h3><ul><li>Type: <code>{ light: string, dark: string }</code></li><li>Default: <code>{ light: &#39;vitesse-light&#39;, dark: &#39;vitesse-dark&#39; }</code></li></ul><p>Code highlighting themes supporting light/dark dual themes.</p><p>You can choose your preferred themes from the <a href="https://shiki.style/themes" target="_blank" rel="noopener noreferrer">list of supported themes</a>.</p><h3 id="langs" tabindex="-1"><a class="header-anchor" href="#langs"><span>langs</span></a></h3><ul><li>Type: <code>string[]</code></li><li>Default: <code>[]</code></li></ul><p>Programming languages to be highlighted, such as <code>javascript</code>, <code>typescript</code>, <code>python</code>, <code>java</code>, <code>c++</code>, <code>c#</code>, etc. By default, languages are automatically detected based on code block language identifiers.</p><p>You can find the <a href="https://shiki.style/languages" target="_blank" rel="noopener noreferrer">list of supported languages</a> in Shiki&#39;s repository.</p><h3 id="defaultlang" tabindex="-1"><a class="header-anchor" href="#defaultlang"><span>defaultLang</span></a></h3><ul><li>Type: <code>string</code></li><li>Default: <code>text</code></li></ul><p>Fallback language to use when the specified language is not available.</p><h3 id="linenumbers" tabindex="-1"><a class="header-anchor" href="#linenumbers"><span>lineNumbers</span></a></h3><ul><li>Type: <code>boolean | number</code></li><li>Default: <code>true</code></li></ul><p>Whether to display line numbers.</p><p><code>true</code>: Display line numbers<br><code>false</code>: Hide line numbers<br><code>number</code>: Minimum number of lines required to display line numbers.</p><h3 id="twoslash" tabindex="-1"><a class="header-anchor" href="#twoslash"><span>twoslash</span></a></h3><ul><li>Type: <code>boolean | ShikiTwoslashOptions</code></li><li>Default: <code>false</code></li></ul><p>Whether to enable type hint support for <code>typescript</code> and <code>vue</code> languages.</p><h3 id="whitespace" tabindex="-1"><a class="header-anchor" href="#whitespace"><span>whitespace</span></a></h3><ul><li>Type: <code>boolean | &#39;all&#39; | &#39;boundary&#39; | &#39;trailing&#39;</code></li><li>Default: <code>false</code></li></ul><p>Render whitespace characters (tabs and spaces) as separate spans (with <code>tab</code> or <code>space</code> class names).</p><p>Effect:</p><div class="language-xml" data-highlighter="shiki" data-ext="xml" style="--shiki-light:#393a34;--shiki-dark:#dbd7caee;--shiki-light-bg:#ffffff;--shiki-dark-bg:#121212;"><pre class="shiki shiki-themes vitesse-light vitesse-dark vp-code"><code class="language-xml"><span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;">&lt;</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;">catalog</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">&gt;</span></span>
<span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;"> &lt;</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;">book</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">&gt;</span></span>
<span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;"> &lt;</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;">title</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">&gt;</span><span style="--shiki-light:#393A34;--shiki-dark:#DBD7CAEE;">Everyday Italian</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">&lt;/</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;">title</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">&gt;</span></span>
<span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;"> &lt;/</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;">book</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">&gt;</span></span>
<span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;">&lt;/</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;">catalog</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">&gt;</span></span></code></pre></div><h3 id="collapsedlines" tabindex="-1"><a class="header-anchor" href="#collapsedlines"><span>collapsedLines</span></a></h3><ul><li>Type: <code>boolean | number</code></li><li>Default: <code>false</code></li></ul><p>Collapse code blocks to the specified number of lines.</p><h3 id="transformers" tabindex="-1"><a class="header-anchor" href="#transformers"><span>transformers</span></a></h3><ul><li>Type: <code>ShikiTransformer[]</code></li><li>Default: <code>[]</code></li></ul><p>Code transformers. Refer to <a href="https://shiki.style/guide/transformers" target="_blank" rel="noopener noreferrer">shiki transformers</a> for more information.</p>`,29)])}var Z=s(l,[[`render`,X]]);export{c as _pageData,Z as default};