\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.7033408,{"description":2916,"labels":2917,"number":2919,"owner":2877,"repository":2878,"state":2891,"title":2920,"updated_at":2921,"url":2922,"score":2923},"### Describe the bug\n\nWhen I enable the `ignoreDeadLinks` option in `/docs/.vitepress/config.js`, `yarn docs:build` still fails with the reason being `One or more pages contain dead links.`\n\n### Reproduction\n\nCreate a new vitepress project.\r\nIn `/docs/.vitepress/config.js`:\r\n```js\r\nexport default {\r\n ignoreDeadLinks: true,\r\n title: \"test\",\r\n description: \"test stuff\"\r\n}\r\n```\r\n\r\nIn `/docs/api/index.md`:\r\n```md\r\n[test](./test)\r\n```\n\n### Expected behavior\n\nIt is expected that the build process will succeed, because it should ignoreDeadLinks instead of failing because of them.\n\n### System Info\n\n```shell\nSystem:\r\n OS: Windows 10 10.0.19044\r\n CPU: (12) x64 Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz \r\n Memory: 6.63 GB / 15.93 GB\r\n Binaries:\r\n Node: 18.5.0 - C:\\Program Files\\nodejs\\node.EXE\r\n Yarn: 1.22.19 - C:\\Program Files\\nodejs\\yarn.CMD\r\n npm: 8.15.0 - C:\\Program Files\\nodejs\\npm.CMD\r\n Browsers:\r\n Edge: Spartan (44.19041.1266.0), Chromium (103.0.1264.71) \r\n Internet Explorer: 11.0.19041.1566\r\n npmPackages:\r\n vitepress: ^1.0.0-alpha.4 => 1.0.0-alpha.4\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.",[2918],{"name":2888,"color":2889},1084,"ignoreDeadLinks doesn't work","2023-01-21T14:30:01Z","https://github.com/vuejs/vitepress/issues/1084",0.7103048,{"description":2925,"labels":2926,"number":2927,"owner":2877,"repository":2878,"state":2891,"title":2928,"updated_at":2929,"url":2930,"score":2931},"### Describe the bug\n\nWhen navigating to a VitePress site from any other domain (e.g. this link: [https://vitepress.vuejs.org/](https://vitepress.vuejs.org/)), the VitePress router adds a duplicate entry to the browser session's history stack. This occurs because [`history.pushState()` is called via `router.go()` ](https://github.com/vuejs/vitepress/blob/3b890e81774740bb92baf9ac305c1f9fb11d3d2f/src/client/app/index.ts#L132) on the initial page load.\r\n\r\nThe effect of this depends on the browser.\r\n\r\n- In Chromium-based browsers, due to implementing [History Manipulation Intervention](https://groups.google.com/a/chromium.org/g/blink-dev/c/T8d4_BRb2xQ/m/WSdOiOFcBAAJ), the back button works as expected and the user returns to the previous page (e.g. this page).\r\n \r\n- Safari implements something similar and the back button also works as expected.\r\n \r\n- In Firefox, the user has to click the back button twice to return.\r\n \r\nIn all cases, the duplicate entry is still visible in the history stack.\n\n### Reproduction\n\n1. Visit [https://vitepress.vuejs.org/](https://vitepress.vuejs.org/) by left clicking the link.\r\n2. Right click (if Safari, long press) on the browser's back button and notice there is an extra entry.\n\n### Expected behavior\n\nThe extra entry is not added, like when visiting [https://developer.mozilla.org/en-US/](https://developer.mozilla.org/en-US/).\n\n### System Info\n\n```shell\nSystem:\r\n OS: Linux 6.1 Arch Linux\r\n CPU: (16) x64 AMD Ryzen 7 5700G with Radeon Graphics\r\n Memory: 23.05 GB / 30.74 GB\r\n Container: Yes\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 16.19.0 - /usr/bin/node\r\n npm: 8.19.2 - /usr/bin/npm\r\n Browsers:\r\n Chromium: 109.0.5414.74\r\n Firefox: 108.0.2\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.",[],1792,"Router adds duplicate entry to session history stack","2023-01-29T00:04:24Z","https://github.com/vuejs/vitepress/issues/1792",0.7183661,{"description":2933,"labels":2934,"number":2936,"owner":2877,"repository":2878,"state":2891,"title":2937,"updated_at":2938,"url":2939,"score":2940},"### Describe the bug\n\nI am trying to embed a `// #region` snippet, but no matter what I do, it insists on embedding the entire file.\r\n\r\nWith this snippet:\r\n\u003Cimg width=\"254\" alt=\"image\" src=\"https://user-images.githubusercontent.com/847742/187148926-d1d02428-3f8e-4b27-a0be-db45cb0de4a4.png\">\r\n\r\nI get this result:\r\n\r\n\r\nThe only related issue I can find is #600 which is marked as resolved but that was seemingly about highlighting lines. What am I missing?\r\n\n\n### Reproduction\n\nCreate an `md` file with a region-specific imported snippet from a typescript file.\n\n### Expected behavior\n\nOnly the region should appear in the output, not the entire file.\n\n### System Info\n\n```shell\nSystem:\r\n OS: Linux 5.11 Ubuntu 21.04 (Hirsute Hippo)\r\n CPU: (4) arm64 unknown\r\n Memory: 1.15 GB / 7.75 GB\r\n Container: Yes\r\n Shell: 5.1.4 - /bin/bash\r\n Binaries:\r\n Node: 16.10.0 - /usr/bin/node\r\n Yarn: 1.22.15 - /usr/bin/yarn\r\n npm: 7.18.1 - ~/.npm-global/bin/npm\r\n npmPackages:\r\n vitepress: ^1.0.0-alpha.12 => 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.",[2935],{"name":2888,"color":2889},1251,"#region doesn't seem to be respected..","2023-01-21T14:26:51Z","https://github.com/vuejs/vitepress/issues/1251",0.7196556,{"description":2942,"labels":2943,"number":2945,"owner":2877,"repository":2878,"state":2891,"title":2946,"updated_at":2947,"url":2948,"score":2949},"### 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.",[2944],{"name":2888,"color":2889},1250,"[plugin:vitepress] Cannot read properties of undefined (reading 'call')","2023-01-21T14:26:48Z","https://github.com/vuejs/vitepress/issues/1250",0.7317597,{"description":2951,"labels":2952,"number":2953,"owner":2877,"repository":2878,"state":2891,"title":2954,"updated_at":2955,"url":2956,"score":2957},"https://github.com/vuejs/vitepress/blob/e6f9dd33c73411ded5461670f68ed4fe8c5923fa/src/node/plugin.ts#L405-L408\r\n\r\nthis doesn't consider rewrites",[],4172,"watchers not being triggered on data updates in pages with rewrites","2024-09-09T04:43:00Z","https://github.com/vuejs/vitepress/issues/4172",0.7319244,{"description":2959,"labels":2960,"number":2964,"owner":2877,"repository":2878,"state":2891,"title":2965,"updated_at":2966,"url":2967,"score":2968},"### Describe the bug\n\nvitepress build docs 打包可能会报错,提示 Error: Missing \"./preload-helper\" export in \"vite\" package ,\n\n### Reproduction\n\nvitepress build docs 打包可能会报错,提示 Error: Missing \"./preload-helper\" export in \"vite\" package ,\n\n### Expected behavior\n\n打包没有错误\n\n### System Info\n\n```shell\nError: Missing \"./preload-helper\" export in \"vite\" package ,\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.",[2961],{"name":2962,"color":2963},"need more info","bdbefc",1414,"打包可能会报错,提示 Error: Missing \"./preload-helper\" export in \"vite\" package ,","2023-01-21T14:22:52Z","https://github.com/vuejs/vitepress/issues/1414",0.7326145,["Reactive",2970],{},["Set"],["ShallowReactive",2973],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fgBiGRVFX9NqEMaxudCn6B6hhBohHfd5iYrU2ntDCELE":-1},"/vuejs/vitepress/1256"]