\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.7330631,{"description":2931,"labels":2932,"number":2936,"owner":2874,"repository":2875,"state":2906,"title":2937,"updated_at":2938,"url":2939,"score":2940},"### Describe the bug\n\nTrying to upgrade a pre-alpha VitePress documentation to latest alpha, build fails. Issue seems related to `@vueuse/core` but I'm unsure what's the actual issue.\r\n\r\n```\r\n➜ nr docs:build\r\n\r\n> @preset/monorepo@ docs:build /Users/enzoinnocenzi/Code/projects/preset/preset\r\n> vitepress build docs\r\n\r\nvitepress v1.0.0-alpha.36\r\n✓ building client + server bundles...\r\nbuild error:\r\n file:///Users/enzoinnocenzi/Code/projects/preset/preset/node_modules/@vueuse/shared/index.mjs:1\r\nimport { shallowRef, watchEffect, readonly, unref, ref, isVue3, version, watch, customRef, getCurrentScope, onScopeDispose, effectScope, provide, inject, isRef, computed, reactive, toRefs as toRefs$1, toRef, isVue2, set as set$1, getCurrentInstance, onBeforeMount, nextTick, onBeforeUnmount, onMounted, onUnmounted, isReactive } from 'vue-demi';\r\n ^^^^^^^^\r\nSyntaxError: Named export 'computed' not found. The requested module 'vue-demi' is a CommonJS module, which may not support all module.exports as named exports.\r\nCommonJS modules can always be imported via the default export, for example using:\r\n\r\nimport pkg from 'vue-demi';\r\nconst { shallowRef, watchEffect, readonly, unref, ref, isVue3, version, watch, customRef, getCurrentScope, onScopeDispose, effectScope, provide, inject, isRef, computed, reactive, toRefs: toRefs$1, toRef, isVue2, set: set$1, getCurrentInstance, onBeforeMount, nextTick, onBeforeUnmount, onMounted, onUnmounted, isReactive } = pkg;\r\n\r\n at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21)\r\n at async ModuleJob.run (node:internal/modules/esm/module_job:190:5)\r\n ELIFECYCLE Command failed with exit code 1.\r\n```\r\n\r\nNote that the development server works as expected, only the build fails.\n\n### Reproduction\n\nSee the following repository: https://github.com/preset/preset\r\nClone it, install dependencies using `pnpm` and build the docs using `pnpm run docs:build`.\n\n### Expected behavior\n\nThe build should work.\n\n### System Info\n\n```shell\nSystem:\r\n OS: macOS 13.1\r\n CPU: (10) arm64 Apple M1 Pro\r\n Memory: 276.63 MB / 16.00 GB\r\n Shell: 5.8.1 - /bin/zsh\r\n Binaries:\r\n Node: 19.2.0 - /opt/homebrew/bin/node\r\n Yarn: 1.22.18 - /opt/homebrew/bin/yarn\r\n npm: 8.19.3 - /opt/homebrew/bin/npm\r\n Browsers:\r\n Chrome: 108.0.5359.124\r\n Firefox: 108.0.2\r\n Safari: 16.2\r\n npmPackages:\r\n vitepress: 1.0.0-alpha.36 => 1.0.0-alpha.36\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.",[2933],{"name":2934,"color":2935},"build","377ba8",1791,"Build fails using 1.0.0-alpha.36","2023-01-21T14:16:42Z","https://github.com/vuejs/vitepress/issues/1791",0.7354664,{"description":2942,"labels":2943,"number":2944,"owner":2874,"repository":2875,"state":2906,"title":2945,"updated_at":2946,"url":2947,"score":2948},"I noticed that `VitePress` imports `@vue/shared`, but it appears to only use one of its methods. However, there are more methods available in `@vue/shared`. Should `VitePress` directly import these additional methods from `@vue/shared` to reduce redundancy in the code?\r\n\r\nHere is one case of what I mentioned:\r\n\r\n`vitepress`:\r\nhttps://github.com/vuejs/vitepress/blob/a6a7645e942cc63c57ca5d79da4b76dee76d8a96/src/node/config.ts#L229\r\n\r\n`@vue/shared`:\r\nhttps://github.com/vuejs/core/blob/db374e54c9f5e07324728b85c74eca84e28dd352/packages/shared/src/general.ts#L52\r\n\r\nSeems that can directly use `import { isObject } from '@vue/shared`.",[],3720,"Reuse some of the existing methods in `@vue/shared`","2024-04-28T12:24:53Z","https://github.com/vuejs/vitepress/issues/3720",0.74106926,{"description":2950,"labels":2951,"number":2955,"owner":2874,"repository":2875,"state":2906,"title":2956,"updated_at":2957,"url":2958,"score":2959},"### Describe the bug\n\n在md文件中,标题为中文时,点击文章左侧的锚点跳转报错\r\n\r\n报错内容:app.64b74b54.js:1 DOMException: Failed to execute 'querySelector' on 'Document': '#%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8' is not a valid selector.\r\n\r\n\r\n\n\n### Reproduction\n\n1、新建一个md文章\r\n2、一级标题# 二级标题## 设置为中文\r\n3、启动vitepress,点击左侧锚点\r\n4、控制台查看报错\n\n### Expected behavior\n\n控制台正常不报错\n\n### System Info\n\n```shell\n浏览器:Google Chrome v106\r\nvitepress: \"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.",[2952],{"name":2953,"color":2954},"need more info","bdbefc",1513,"vitepress中使用中文锚点时,控制台会报错","2023-01-21T14:23:05Z","https://github.com/vuejs/vitepress/issues/1513",0.75009596,{"description":2961,"labels":2962,"number":2964,"owner":2874,"repository":2875,"state":2906,"title":2965,"updated_at":2966,"url":2967,"score":2968},"### Describe the bug\n\n\r\n\r\n\r\n\r\n\r\n\n\n### Reproduction\n\nJS files prefixed with an underscore name will have the html suffix added.\n\n### Expected behavior\n\nN/A\n\n### System Info\n\n```shell\nN/A\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.",[2963],{"name":2915,"color":2916},1393,"JS files prefixed with an underscore name will have the html suffix added","2023-01-21T14:25:27Z","https://github.com/vuejs/vitepress/issues/1393",0.75465333,["Reactive",2970],{},["Set"],["ShallowReactive",2973],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fpjFy0huJgrnNnjPdX1x55PPhwyBeB2wbxCxH3DXSPe4":-1},"/vuejs/vitepress/1481"]