mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
111 lines
54 KiB
JavaScript
111 lines
54 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":"/config/plugins/code-highlight/","title":"代码高亮 | 配置","lang":"zh-CN","frontmatter":{"title":"代码高亮","createTime":"2024/03/06 10:21:47","permalink":"/config/plugins/code-highlight/","description":"概述 主题内置的代码高亮插件, 对代码块进行代码高亮。 关联插件:@vuepress/plugin-shiki 主题 使用 Shiki 在 Markdown 代码块中使用彩色文本实现语法高亮。 Shiki 支持多种编程语言。 在 Shiki 的代码仓库中,可以找到 合法的编程语言列表 。 特性 :在代码块内提供内联类型提示。 配置 默认配置: .vue...","head":[["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"代码高亮\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2025-10-07T15:13:09.000Z\\",\\"author\\":[]}"],["meta",{"property":"og:url","content":"https://theme-plume.vuejs.press/config/plugins/code-highlight/"}],["meta",{"property":"og:site_name","content":"Plume 主题"}],["meta",{"property":"og:title","content":"代码高亮"}],["meta",{"property":"og:description","content":"概述 主题内置的代码高亮插件, 对代码块进行代码高亮。 关联插件:@vuepress/plugin-shiki 主题 使用 Shiki 在 Markdown 代码块中使用彩色文本实现语法高亮。 Shiki 支持多种编程语言。 在 Shiki 的代码仓库中,可以找到 合法的编程语言列表 。 特性 :在代码块内提供内联类型提示。 配置 默认配置: .vue..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:locale:alternate","content":"en-US"}],["meta",{"property":"og:updated_time","content":"2025-10-07T15:13:09.000Z"}],["meta",{"property":"article:modified_time","content":"2025-10-07T15:13:09.000Z"}],["link",{"rel":"alternate","hreflang":"en-us","href":"https://theme-plume.vuejs.press/en/config/plugins/code-highlight/"}]]},"readingTime":{"minutes":1.9,"words":571},"git":{"createdTime":1709915848000,"updatedTime":1759849989000,"contributors":[{"name":"pengzhanbo","username":"pengzhanbo","email":"volodymyr@foxmail.com","commits":15,"avatar":"https://avatars.githubusercontent.com/pengzhanbo?v=4","url":"https://github.com/pengzhanbo"},{"name":"RawDiamondMC","username":"RawDiamondMC","email":"RawDiamondMC@outlook.com","commits":1,"avatar":"https://avatars.githubusercontent.com/RawDiamondMC?v=4","url":"https://github.com/RawDiamondMC"},{"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":"4d2361a7046214fe0f4e4af01831107fd00e38ad","time":1759849989000,"email":"volodymyr@foxmail.com","author":"pengzhanbo","message":"feat(theme)!: add collections support (#704)"},{"hash":"74dfa34ceed33c3517fdf53abbc8897b95b3f94c","time":1743474214000,"email":"volodymyr@foxmail.com","author":"pengzhanbo","message":"docs: enable twoslash for code block"},{"hash":"4f5d37df6ea441050e9eaeb4ba9ed2518f18dffe","time":1742535516000,"email":"volodymyr@foxmail.com","author":"pengzhanbo","message":"docs: fix typo error"},{"hash":"0fd6cac57412002f4d72dc10378789b529adc357","time":1742063370000,"email":"volodymyr@foxmail.com","author":"pengzhanbo","message":"refactor(theme): improve types and flat config (#524)"},{"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":"877ee4c55b8ec772286d7b654ccbff9b99f57015","time":1740237582000,"email":"RawDiamondMC@outlook.com","author":"RawDiamondMC","message":"fix(docs): remove an incorrect link (#481)"},{"hash":"0c53be8f10bec3e943a493111b321be89a5952cf","time":1731083728000,"email":"volodymyr@foxmail.com","author":"pengzhanbo","message":"docs: improve docs (#332)"},{"hash":"520dce22c1b037232401c4b6ddf5a90346da41a0","time":1725984193000,"email":"volodymyr@foxmail.com","author":"pengzhanbo","message":"style: lint fix"},{"hash":"7c2e3d9f3943b9e6763b7c4b076f80b70bb75ad7","time":1725958052000,"email":"volodymyr@foxmail.com","author":"pengzhanbo","message":"docs: update docs"},{"hash":"1ff7796d57246388619451291c9dcba90a2be5f0","time":1723578965000,"email":"volodymyr@foxmail.com","author":"pengzhanbo","message":"docs: update docs"}]},"autoDesc":true,"filePathRelative":"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="概述" tabindex="-1"><a class="header-anchor" href="#概述"><span>概述</span></a></h2><p>主题内置的代码高亮插件, 对代码块进行代码高亮。</p><p>关联插件:<a href="https://ecosystem.vuejs.press/zh/plugins/markdown/shiki.html" target="_blank" rel="noopener noreferrer">@vuepress/plugin-shiki</a></p><p>主题 使用 <a href="https://github.com/shikijs/shiki" target="_blank" rel="noopener noreferrer">Shiki</a> 在 Markdown 代码块中使用彩色文本实现语法高亮。 Shiki 支持多种编程语言。</p><p>在 Shiki 的代码仓库中,可以找到 <a href="https://shiki.style/languages" target="_blank" rel="noopener noreferrer">合法的编程语言列表</a> 。</p><h2 id="特性" tabindex="-1"><a class="header-anchor" href="#特性"><span>特性</span></a></h2>`,6),o(`ul`,null,[o(`li`,null,[r(Q,{href:`../../guide/code/features.md#%E4%BB%A3%E7%A0%81%E5%9D%97%E6%A0%87%E9%A2%98`},{default:e(()=>[...c[0]||=[i(`代码块标题`,-1)]]),_:1})]),o(`li`,null,[r(Q,{href:`../../guide/code/features.md#%E5%9C%A8%E4%BB%A3%E7%A0%81%E5%9D%97%E4%B8%AD%E5%AE%9E%E7%8E%B0%E8%A1%8C%E9%AB%98%E4%BA%AE`},{default:e(()=>[...c[1]||=[i(`代码行高亮`,-1)]]),_:1})]),o(`li`,null,[r(Q,{href:`../../guide/code/features.md#%E4%BB%A3%E7%A0%81%E5%9D%97%E4%B8%AD%E8%81%9A%E7%84%A6`},{default:e(()=>[...c[2]||=[i(`代码聚焦`,-1)]]),_:1})]),o(`li`,null,[r(Q,{href:`../../guide/code/features.md#%E4%BB%A3%E7%A0%81%E5%9D%97%E4%B8%AD%E7%9A%84%E9%A2%9C%E8%89%B2%E5%B7%AE%E5%BC%82`},{default:e(()=>[...c[3]||=[i(`代码对比差异`,-1)]]),_:1})]),o(`li`,null,[r(Q,{href:`../../guide/code/features.md#%E9%AB%98%E4%BA%AE-%E9%94%99%E8%AF%AF-%E5%92%8C-%E8%AD%A6%E5%91%8A`},{default:e(()=>[...c[4]||=[i(`代码高亮“错误”和“警告”`,-1)]]),_:1})]),o(`li`,null,[r(Q,{href:`../../guide/code/features.md#%E4%BB%A3%E7%A0%81%E5%9D%97%E4%B8%AD-%E8%AF%8D%E9%AB%98%E4%BA%AE`},{default:e(()=>[...c[5]||=[i(`代码词高亮`,-1)]]),_:1})]),o(`li`,null,[r(Q,{href:`../../guide/code/features.md#%E6%8A%98%E5%8F%A0%E4%BB%A3%E7%A0%81%E5%9D%97`},{default:e(()=>[...c[6]||=[i(`代码块折叠`,-1)]]),_:1})]),o(`li`,null,[r(Q,{href:`../../guide/code/twoslash.md#twoslash`},{default:e(()=>[...c[7]||=[i(`twoslash`,-1)]]),_:1}),c[8]||=i(` :在代码块内提供内联类型提示。`,-1)])]),c[128]||=o(`h2`,{id:`配置`,tabindex:`-1`},[o(`a`,{class:`header-anchor`,href:`#配置`},[o(`span`,null,`配置`)])],-1),c[129]||=o(`p`,null,`默认配置:`,-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;"> '</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">vuepress</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</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;"> '</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">vuepress-theme-plume</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</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;">'</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">vitesse-light</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</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;">'</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">vitesse-dark</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</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`}},` // 也可以通过 plugins.shiki 配置,但不推荐`)],-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>类型: <code>{ light: string, dark: string }</code></li><li>默认值: <code>{ light: 'vitesse-light', dark: 'vitesse-dark' }</code></li></ul><p>代码高亮主题,支持 浅色/暗色 双主题。</p><p>可在 支持的 <a href="https://shiki.style/themes" target="_blank" rel="noopener noreferrer">主题列表</a> 中选择你喜欢的主题。</p><h3 id="langs" tabindex="-1"><a class="header-anchor" href="#langs"><span>langs</span></a></h3><ul><li>类型: <code>string[]</code></li><li>默认值: <code>[]</code></li></ul><p>需要高亮的编程语言, 例如 <code>javascript</code>、<code>typescript</code>、<code>python</code>、<code>java</code>、<code>c++</code>、<code>c#</code>等。 默认会根据代码块的语言自动识别。</p><p>在 Shiki 的代码仓库中,可以找到 <a href="https://shiki.style/languages" target="_blank" rel="noopener noreferrer">合法的编程语言列表</a> 。</p><h3 id="defaultlang" tabindex="-1"><a class="header-anchor" href="#defaultlang"><span>defaultLang</span></a></h3><ul><li>类型: <code>string</code></li><li>默认值: <code>text</code></li></ul><p>指定的语言不可用时所使用的备选语言。</p><h3 id="linenumbers" tabindex="-1"><a class="header-anchor" href="#linenumbers"><span>lineNumbers</span></a></h3><ul><li>类型:<code>boolean | number</code></li><li>默认值: <code>true</code></li></ul><p>是否显示行号。</p><p><code>true</code>: 显示行号<br><code>false</code>: 不显示行号<br><code>number</code>: 指定需要显式代码行号的最小行数。</p><h3 id="twoslash" tabindex="-1"><a class="header-anchor" href="#twoslash"><span>twoslash</span></a></h3><ul><li>类型: <code>boolean | ShikiTwoslashOptions</code></li><li>默认值: <code>false</code></li></ul><p>是否启用 对 <code>typescript</code> 和 <code>vue</code> 语言的 类型提示 支持。</p><h3 id="whitespace" tabindex="-1"><a class="header-anchor" href="#whitespace"><span>whitespace</span></a></h3><ul><li>类型: <code>boolean | 'all' | 'boundary' | 'trailing'</code></li><li>默认值: <code>false</code></li></ul><p>将空白字符(Tab 和空格)渲染为单独的标签(具有 tab 或 space 类名)。</p><p>效果:</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;"><</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;">catalog</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">></span></span>
|
||
<span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;"> <</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;">book</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">></span></span>
|
||
<span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;"> <</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;">title</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">></span><span style="--shiki-light:#393A34;--shiki-dark:#DBD7CAEE;">Everyday Italian</span><span style="--shiki-light:#999999;--shiki-dark:#666666;"></</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;">title</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">></span></span>
|
||
<span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;"> </</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;">book</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">></span></span>
|
||
<span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;"></</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;">catalog</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">></span></span></code></pre></div><h3 id="collapsedlines" tabindex="-1"><a class="header-anchor" href="#collapsedlines"><span>collapsedLines</span></a></h3><ul><li>类型: <code>boolean | number</code></li><li>默认值: <code>false</code></li></ul><p>将代码块折叠到指定行数。</p><h3 id="transformers" tabindex="-1"><a class="header-anchor" href="#transformers"><span>transformers</span></a></h3><ul><li>类型: <code>ShikiTransformer[]</code></li><li>默认值: <code>[]</code></li></ul><p>代码转换器, 查看 <a href="https://shiki.style/guide/transformers" target="_blank" rel="noopener noreferrer">shiki transformers</a> 了解更多信息。</p>`,29)])}var Z=s(l,[[`render`,X]]);export{c as _pageData,Z as default}; |