import{_ as a}from"./chunks/PageInfo.vue_vue_type_script_setup_true_lang.250b3e56.js";import{_ as l,o as n,c as t,H as r,k as s,a as e,Q as i}from"./chunks/framework.b7580407.js";import"./chunks/commonjsHelpers.725317a4.js";const D=JSON.parse('{"title":"Markdown Extensions","description":"","frontmatter":{"title":"Markdown Extensions"},"headers":[],"relativePath":"application/vitepress-plugin-shiki-twoslash/guide/markdown-extensions.md","filePath":"application/vitepress-plugin-shiki-twoslash/guide/markdown-extensions.md","lastUpdated":1710267506000}'),p={name:"application/vitepress-plugin-shiki-twoslash/guide/markdown-extensions.md"},c=s("h1",{id:"markdown-extensions",tabindex:"-1"},[e("Markdown Extensions "),s("a",{class:"header-anchor",href:"#markdown-extensions","aria-label":'Permalink to "Markdown Extensions"'},"​")],-1),d=s("h2",{id:"code-groups",tabindex:"-1"},[e("Code Groups "),s("a",{class:"header-anchor",href:"#code-groups","aria-label":'Permalink to "Code Groups"'},"​")],-1),h=s("p",null,[s("a",{href:"https://vitepress.dev/guide/markdown#code-groups",target:"_blank",rel:"noreferrer"},"Code Groups"),e(" and Twoslash "),s("a",{href:"/api/multi-file"},"multi-file"),e(" support.")],-1),m=s("div",{class:"vp-code-group vp-adaptive-theme"},[s("div",{class:"tabs"},[s("input",{type:"radio",name:"group-7-O6w",id:"tab-KGP4bkV",checked:"checked"}),s("label",{for:"tab-KGP4bkV"},"index.ts"),s("input",{type:"radio",name:"group-7-O6w",id:"tab-ZS7ulbW"}),s("label",{for:"tab-ZS7ulbW"},"name.ts")]),s("div",{class:"blocks"},[s("div",{class:"language-ts vp-adaptive-theme active line-numbers-mode"},[s("button",{title:"Copy Code",class:"copy"}),s("span",{class:"lang"},"ts"),s("pre",{class:"shiki github-dark-dimmed twoslash lsp",style:{"background-color":"#22272e",color:"#adbac7"}},[s("div",{class:"language-id"},"ts"),s("div",{class:"code-container"},[s("code",null,[s("div",{class:"line"},[s("span",{style:{color:"#F47067"}},"import"),s("span",{style:{color:"#ADBAC7"}},[e(" { "),s("data-lsp",{lsp:`(alias) const name: "twoslash"
import name`},"name"),e(" } ")]),s("span",{style:{color:"#F47067"}},"from"),s("span",{style:{color:"#ADBAC7"}}," "),s("span",{style:{color:"#96D0FF"}},"'./name'")]),s("div",{class:"line"},[s("span",{style:{color:"#F47067"}},"export"),s("span",{style:{color:"#ADBAC7"}}," "),s("span",{style:{color:"#F47067"}},"function"),s("span",{style:{color:"#ADBAC7"}}," "),s("span",{style:{color:"#DCBDFB"}},[s("data-lsp",{lsp:"function hello(name: string): void"},"hello")]),s("span",{style:{color:"#ADBAC7"}},"("),s("span",{style:{color:"#F69D50"}},[s("data-lsp",{lsp:"(parameter) name: string"},"name")]),s("span",{style:{color:"#F47067"}},":"),s("span",{style:{color:"#ADBAC7"}}," "),s("span",{style:{color:"#6CB6FF"}},"string"),s("span",{style:{color:"#ADBAC7"}},") {")]),s("div",{class:"line"},[s("span",{style:{color:"#ADBAC7"}},[e("    "),s("data-lsp",{lsp:"var console: Console"},"console"),e(".")]),s("span",{style:{color:"#DCBDFB"}},[s("data-lsp",{lsp:"(method) Console.log(...data: any[]): void"},"log")]),s("span",{style:{color:"#ADBAC7"}},"("),s("span",{style:{color:"#96D0FF"}},"`Hello, ${"),s("span",{style:{color:"#ADBAC7"}},[s("data-lsp",{lsp:"(parameter) name: string"},"name")]),s("span",{style:{color:"#96D0FF"}},"}!`"),s("span",{style:{color:"#ADBAC7"}},")")]),s("div",{class:"line"},[s("span",{style:{color:"#ADBAC7"}},"}")]),s("div",{class:"line"},[s("span",{style:{color:"#DCBDFB"}},[s("data-lsp",{lsp:"function hello(name: string): void"},"hello")]),s("span",{style:{color:"#ADBAC7"}},[e("("),s("data-lsp",{lsp:`(alias) const name: "twoslash"
import name`,style:{"border-bottom":"solid 2px lightgrey"}},"name"),e(")")])]),s("div",{class:"meta-line"},[s("span",{class:"popover-prefix"},"       "),s("span",{class:"popover"},[s("div",{class:"arrow"}),e(`(alias) const name: "twoslash"
import name`)])])])])]),s("pre",{class:"shiki github-light twoslash lsp",style:{"background-color":"#fff",color:"#24292e"}},[s("div",{class:"language-id"},"ts"),s("div",{class:"code-container"},[s("code",null,[s("div",{class:"line"},[s("span",{style:{color:"#D73A49"}},"import"),s("span",{style:{color:"#24292E"}},[e(" { "),s("data-lsp",{lsp:`(alias) const name: "twoslash"
import name`},"name"),e(" } ")]),s("span",{style:{color:"#D73A49"}},"from"),s("span",{style:{color:"#24292E"}}," "),s("span",{style:{color:"#032F62"}},"'./name'")]),s("div",{class:"line"},[s("span",{style:{color:"#D73A49"}},"export"),s("span",{style:{color:"#24292E"}}," "),s("span",{style:{color:"#D73A49"}},"function"),s("span",{style:{color:"#24292E"}}," "),s("span",{style:{color:"#6F42C1"}},[s("data-lsp",{lsp:"function hello(name: string): void"},"hello")]),s("span",{style:{color:"#24292E"}},"("),s("span",{style:{color:"#E36209"}},[s("data-lsp",{lsp:"(parameter) name: string"},"name")]),s("span",{style:{color:"#D73A49"}},":"),s("span",{style:{color:"#24292E"}}," "),s("span",{style:{color:"#005CC5"}},"string"),s("span",{style:{color:"#24292E"}},") {")]),s("div",{class:"line"},[s("span",{style:{color:"#24292E"}},[e("    "),s("data-lsp",{lsp:"var console: Console"},"console"),e(".")]),s("span",{style:{color:"#6F42C1"}},[s("data-lsp",{lsp:"(method) Console.log(...data: any[]): void"},"log")]),s("span",{style:{color:"#24292E"}},"("),s("span",{style:{color:"#032F62"}},"`Hello, ${"),s("span",{style:{color:"#24292E"}},[s("data-lsp",{lsp:"(parameter) name: string"},"name")]),s("span",{style:{color:"#032F62"}},"}!`"),s("span",{style:{color:"#24292E"}},")")]),s("div",{class:"line"},[s("span",{style:{color:"#24292E"}},"}")]),s("div",{class:"line"},[s("span",{style:{color:"#6F42C1"}},[s("data-lsp",{lsp:"function hello(name: string): void"},"hello")]),s("span",{style:{color:"#24292E"}},[e("("),s("data-lsp",{lsp:`(alias) const name: "twoslash"
import name`,style:{"border-bottom":"solid 2px lightgrey"}},"name"),e(")")])]),s("div",{class:"meta-line"},[s("span",{class:"popover-prefix"},"       "),s("span",{class:"popover"},[s("div",{class:"arrow"}),e(`(alias) const name: "twoslash"
import name`)])])])])]),s("div",{class:"line-numbers-wrapper","aria-hidden":"true"},[s("span",{class:"line-number"},"1"),s("br"),s("span",{class:"line-number"},"2"),s("br")])]),s("div",{class:"language-ts vp-adaptive-theme line-numbers-mode"},[s("button",{title:"Copy Code",class:"copy"}),s("span",{class:"lang"},"ts"),s("pre",{class:"shiki github-dark-dimmed twoslash lsp",style:{"background-color":"#22272e",color:"#adbac7"}},[s("div",{class:"language-id"},"ts"),s("div",{class:"code-container"},[s("code",null,[s("div",{class:"line"},[s("span",{style:{color:"#F47067"}},"export"),s("span",{style:{color:"#ADBAC7"}}," "),s("span",{style:{color:"#F47067"}},"const"),s("span",{style:{color:"#ADBAC7"}}," "),s("span",{style:{color:"#6CB6FF"}},[s("data-lsp",{lsp:'const name: "twoslash"'},"name")]),s("span",{style:{color:"#ADBAC7"}}," "),s("span",{style:{color:"#F47067"}},"="),s("span",{style:{color:"#ADBAC7"}}," "),s("span",{style:{color:"#96D0FF"}},"'twoslash'")])])])]),s("pre",{class:"shiki github-light twoslash lsp",style:{"background-color":"#fff",color:"#24292e"}},[s("div",{class:"language-id"},"ts"),s("div",{class:"code-container"},[s("code",null,[s("div",{class:"line"},[s("span",{style:{color:"#D73A49"}},"export"),s("span",{style:{color:"#24292E"}}," "),s("span",{style:{color:"#D73A49"}},"const"),s("span",{style:{color:"#24292E"}}," "),s("span",{style:{color:"#005CC5"}},[s("data-lsp",{lsp:'const name: "twoslash"'},"name")]),s("span",{style:{color:"#24292E"}}," "),s("span",{style:{color:"#D73A49"}},"="),s("span",{style:{color:"#24292E"}}," "),s("span",{style:{color:"#032F62"}},"'twoslash'")])])])]),s("div",{class:"line-numbers-wrapper","aria-hidden":"true"},[s("span",{class:"line-number"},"1"),s("br")])])])],-1),u=i("",4);function g(y,v,k,b,f,w){const o=a;return n(),t("div",null,[c,r(o,{readTime:"1",words:"181"}),d,h,m,u])}const x=l(p,[["render",g]]);export{D as __pageData,x as default};
