\r\n\u003C/div>\r\n```\r\n但显然`# 标题一 `可以被成功渲染为标题,而`## {{item[0].title}}`却只能是纯文本,因为这部分根本不会经过`markdown`渲染器的渲染。\n\n### Describe the solution you'd like\n\n我理解是否可以添加一个标识,比如:\r\n```js\r\n\u003Cdiv v-for='item in beijing'>\r\n ## {{item[0].title}}\r\n ::: markdown-block\r\n ## title\r\n // content\r\n ::: \r\n \u003Cmany-pictures :srcImgs='item' :lazy='true' />\r\n\u003C/div>\r\n\r\n```\r\n然后预期中这个块会被`markdown`渲染器渲染之后再交给`vue`相关的编译器去解析。\r\n如果可以支持这个功能,结合`vue`中的`v-if/v-for`等条件控制语句,可以帮助我实现许多页面的快速编写\n\n### Describe alternatives you've considered\n\n目前我只能直接在`v-for`语句中编写纯`html`语法的内容,这对于我来说有一定的心智负担,还是以上述的例子来说,这是我目前的替代方案:\r\n```html\r\n---\r\nsidebar: false\r\n---\r\n\u003Cscript setup>\r\nimport { beijing } from '../const/imgLink.ts'\r\n\u003C/script>\r\n# 标题一\r\n\u003Cdiv v-for='item in beijing'>\r\n \u003Ch2 :id=\"item[0].title\" tabindex=\"-1\">\r\n {{item[0].title}}\r\n \u003Ca class=\"header-anchor\" :href=\"`#${item[0].title}`\" aria-hidden=\"true\">#\u003C/a>\r\n \u003C/h2>\r\n \u003Cmany-pictures :srcImgs='item' :lazy='true' />\r\n\u003C/div>\r\n```\n\n### Additional context\n\n我也许可以尝试实现该功能\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.vuejs.org).\n- [X] Read the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/main/.github/contributing.md).\n- [X] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.",[],1570,"在模板语法或标签语法中,是否可以增加一个类似块一样的标识,以至于块中的内容可以被`markdown`解析器识别并渲染为`html`","2023-01-21T14:20:46Z","https://github.com/vuejs/vitepress/issues/1570",0.6985388,{"description":2956,"labels":2957,"number":2959,"owner":2874,"repository":2875,"state":2899,"title":2960,"updated_at":2961,"url":2962,"score":2963},"### Describe the bug\n\nMigration from VitePress 0.x to 1.0.0-alpha.12\r\n\r\n**config.ts**\r\n```\r\nimport fs from 'fs'\r\nimport path from 'path'\r\nimport { defineConfigWithTheme } from 'vitepress'\r\nimport type { Config as ThemeConfig } from './theme/lib'\r\nimport baseConfig from './theme/lib/vitepress/config/baseConfig'\r\nimport { headerPlugin } from './headerMdPlugin'\r\n\r\nconst nav = [\r\n\r\n {\r\n text: '卷集',\r\n activeMatch: `^/(guide|style-guide|cookbook|examples|cryptocurrency)/`,\r\n items: [\r\n { text: '💰 加密货币', link: '/cryptocurrency/money' },\r\n { text: '🚚 工具使用', link: '/tools/emulator' },\r\n { text: '💡 Idea日志 ', link: '/log/敏捷项目管理' },\r\n ]\r\n },\r\n {\r\n text: '笔记',\r\n activeMatch: `^/note/`,\r\n link: '/note/cert'\r\n },\r\n {\r\n text: '作品集',\r\n activeMatch: `^/products/`,\r\n items: [\r\n {\r\n text: '代表作',\r\n items: [\r\n { text: 'Gettr', link: '/products/gettr' },\r\n { text: '叮铃医生', link: '/products/doctor' },\r\n\r\n ]\r\n },\r\n {\r\n text: '商业作品',\r\n items: [\r\n {\r\n text: 'Fas基金研究平台',\r\n link: '/products/fas'\r\n },\r\n { text: '币傲交易所', link: '/products/btcalory' },\r\n {\r\n text: 'Open Alpha ',\r\n link: '/products/openalpha'\r\n },\r\n { text: '基金大V入驻小程序', link: '/products/bigv' },\r\n { text: '净值预估', link: '/products/valuation' }\r\n ]\r\n },\r\n {\r\n text: '个人作品',\r\n items: [\r\n {\r\n text: 'Wall Paper',\r\n link: '/products/wallpaper'\r\n },\r\n { text: 'Note Music', link: '/products/notemusic' },\r\n { text: '优惠券小程序', link: '/products/coupon' },\r\n ]\r\n },\r\n ]\r\n },\r\n // {\r\n // text: '我',\r\n // activeMatch: `^/about/`,\r\n // items: [\r\n // { text: 'FAQ', link: '/about/faq' },\r\n // { text: 'Team', link: '/about/team' },\r\n // { text: 'Releases', link: '/about/releases' },\r\n // {\r\n // text: 'Community Guide',\r\n // link: '/about/community-guide'\r\n // },\r\n // { text: 'Code of Conduct', link: '/about/coc' },\r\n // {\r\n // text: 'The Documentary',\r\n // link: 'https://www.youtube.com/watch?v=OrxmtDw4pVI'\r\n // }\r\n // ]\r\n // },\r\n]\r\n\r\nexport const sidebar = {\r\n '/log/': [{\r\n text: '开发日志',\r\n items: [\r\n { text: '西筹FAS平台', link: '/log/西筹FAS平台' },\r\n ]\r\n }, {\r\n text: 'PMP',\r\n items: [\r\n { text: '敏捷项目管理', link: '/log/敏捷项目管理' },\r\n ]\r\n }],\r\n '/cryptocurrency/': [{\r\n text: '基础',\r\n items: [\r\n { text: '钱', link: '/cryptocurrency/money' },\r\n ]\r\n },\r\n {\r\n text: '杂谈',\r\n items: [\r\n {\r\n text: '比特币十年回顾',\r\n link: '/cryptocurrency/bitcoin-ten-years'\r\n },\r\n { text: '价值千万的炒币经验', link: '/cryptocurrency/sell-buy-express' },\r\n {\r\n text: '奶的底层逻辑就是奶',\r\n link: '/cryptocurrency/up'\r\n }\r\n ]\r\n }, {\r\n text: '公链可视化',\r\n items: [\r\n {\r\n text: '应用案例',\r\n link: '/cryptocurrency/web3应用'\r\n },\r\n ]\r\n }],\r\n '/tools/': [{\r\n text: '图表类',\r\n items: [\r\n { text: 'echarts', link: '/tools/echarts' },\r\n ]\r\n },\r\n {\r\n text: 'APP',\r\n items: [\r\n { text: '模拟器', link: '/tools/emulator' },\r\n ]\r\n },\r\n ],\r\n '/note/': [\r\n {\r\n text: '📚 使用指南',\r\n items: [\r\n { text: 'liunx 指南', link: '/note/Liunx常用命令' },\r\n\r\n ]\r\n },\r\n {\r\n text: '📚 代码规范',\r\n items: [\r\n { text: 'JS不优雅教程', link: '/note/js不优雅教程' },\r\n \r\n ]\r\n }],\r\n}\r\n\r\nexport default defineConfigWithTheme\u003CThemeConfig>({\r\n extends: baseConfig,\r\n lang: 'en-US',\r\n title: '笔记本 📚',\r\n description: '笔记本 📚',\r\n srcDir: 'src',\r\n srcExclude: ['tutorial/**/description.md'],\r\n scrollOffset: 'header',\r\n head: [\r\n\r\n ],\r\n themeConfig: {\r\n nav,\r\n sidebar,\r\n\r\n algolia: {\r\n indexName: 'Notebook',\r\n appId: '3II0BF621L',\r\n apiKey: 'f0f82443dd1e3bb2738c4e904221fc97',\r\n searchParameters: {\r\n facetFilters: ['version:v3']\r\n }\r\n },\r\n\r\n // carbonAds: {\r\n // code: 'CEBDT27Y',\r\n // placement: 'vuejsorg'\r\n // },\r\n\r\n socialLinks: [\r\n // { icon: 'languages', link: '/translations/' },\r\n { icon: 'github', link: 'https://github.com/AliMales/NoteBook' },\r\n // { icon: 'twitter', link: 'https://twitter.com/vuejs' },\r\n // { icon: 'discord', link: 'https://discord.com/invite/HBherRA' }\r\n ],\r\n\r\n editLink: {\r\n repo: 'vuejs/docs',\r\n text: 'Edit this page on GitHub'\r\n },\r\n\r\n footer: {\r\n license: {\r\n text: 'MIT License',\r\n link: 'https://opensource.org/licenses/MIT'\r\n },\r\n copyright: `Copyright © 2018-${new Date().getFullYear()} TigerZH`\r\n }\r\n },\r\n\r\n markdown: {\r\n config(md) {\r\n md.use(headerPlugin)\r\n }\r\n },\r\n\r\n vite: {\r\n define: {\r\n __VUE_OPTIONS_API__: false\r\n },\r\n optimizeDeps: {\r\n include: ['gsap', 'dynamics.js'],\r\n exclude: ['@vue/repl']\r\n },\r\n // @ts-ignore\r\n ssr: {\r\n external: ['@vue/repl']\r\n },\r\n server: {\r\n host: true,\r\n fs: {\r\n // for when developing with locally linked theme\r\n allow: ['../..']\r\n }\r\n },\r\n build: {\r\n minify: 'terser',\r\n chunkSizeWarningLimit: Infinity\r\n },\r\n json: {\r\n stringify: true\r\n }\r\n },\r\n vue: {\r\n reactivityTransform: true\r\n }\r\n})\r\n\r\n\r\n```\r\n![Uploading image.png…]()\r\n\r\nIt's looks not working.\r\n\r\n\n\n### Reproduction\n\nUse VitePress generate Project vitepress@^0.22.2 and update VitePress to 1.0.0-alpha.12\n\n### Expected behavior\n\nIt's work\n\n### System Info\n\n```shell\nSystem:\r\n OS: macOS 12.5\r\n CPU: (8) x64 Apple M1\r\n Memory: 18.84 MB / 16.00 GB\r\n Shell: 5.8.1 - /bin/zsh\r\n Binaries:\r\n Node: 16.16.0 - ~/.nvm/versions/node/v16.16.0/bin/node\r\n Yarn: 1.22.19 - ~/Library/pnpm/yarn\r\n npm: 8.11.0 - ~/.nvm/versions/node/v16.16.0/bin/npm\r\n Watchman: 2022.08.08.00 - /usr/local/bin/watchman\r\n Browsers:\r\n Brave Browser: 102.1.39.122\r\n Chrome: 104.0.5112.101\r\n Safari: 15.6\r\n npmPackages:\r\n vitepress: 1.0.0-alpha.12\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.vuejs.org).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[2958],{"name":2896,"color":2897},1250,"[plugin:vitepress] Cannot read properties of undefined (reading 'call')","2023-01-21T14:26:48Z","https://github.com/vuejs/vitepress/issues/1250",0.7014368,["Reactive",2965],{},["Set"],["ShallowReactive",2968],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fjtj5Gv9LZ3_fuWT5hnhKmQIfSYuDxqFHFHt4hC4_RY0":-1},"/vuejs/vitepress/1529"]