Skip to content

godwei123/javascript-guide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

fb960c7 · Sep 20, 2024
May 14, 2024
Jun 17, 2022
Mar 14, 2024
Sep 20, 2024
Jun 25, 2024
Apr 14, 2024
Jan 13, 2024
Oct 21, 2023
Oct 21, 2023
Jun 25, 2024
May 12, 2024
Jun 25, 2024

Repository files navigation

JavaScriptGuide dev

img.png

markdown-it-plugin

@vitepress-demo-preview/plugin @ruabick/md-demo-plugins vitepress-demo-block


'<demo src="../demo.vue" title="Demo block" desc="use demo"></demo>'

 "```vue:demo"
 '<script lang="ts" setup>'
 "  const number = 1;"
 "</script>"

 "<template>"
 "  <span>The number is {{number}}</span>"
 "</template>"
 "```"
 "```"

 ' "============================="'

 ":::pro-table"

 "```json5"
 "{"
 "  columns: ["
 '    { title: "No", key: "no" },'
 '    { title: "Title", key: "title", resizable: true },'
 '    { title: "Length", key: "length" },'
 "  ],"
 "  data: ["
 '    { no: 1, title: "Introduction", length: "1 min" },'
 '    { no: 2, title: "Getting Started", length: "2 min" },'
 '    { no: 3, title: "Basic Usage", length: "3 min" },'
 '    { no: 4, title: "Advanced Usage", length: "4 min" },'
 '    { no: 5, title: "API", length: "5 min" },'
 "  ],"
 "  bordered: false,"
 "}"
 "```"

 ":::"

 "<!-- Tip: Support for closed tags -->"

 '<preview path="./xxx/xx.vue"></preview>'

 '<preview path="./xxx/xx.vue" title="title"></preview>'

 '<preview path="./xxx/xx.vue" title="title" description="component description content"></preview>'

 ":::preview"

 "demo-preview=./xxx/xx.vue"

 ":::"

 ":::preview title"

 "demo-preview=./xxx/xx.vue"

 ":::"

 ":::preview title || component description content"

 "demo-preview=./xxx/xx.vue"

 ":::"

 "```"