\u003C!-- result: \u003Cdiv a=\"1\" b=\"2\">\u003C/div> -->\n\u003Cdiv t-att=\"['a', 'b']\"/> \u003C!-- \u003Cdiv a=\"b\">\u003C/div> -->\n```\nmd文档中有以上内容则会报错\n\n\n\n### Describe the solution you'd like\n\n要通过怎么样的配置可以让其支持OdooOWL的Qweb语法\n\n### Describe alternatives you've considered\n\n_No response_\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.dev).\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.",[],4823,"无法解析OdooOWL中的Qweb语法","2025-07-03T09:43:57Z","https://github.com/vuejs/vitepress/issues/4823",0.75176036,{"description":3102,"labels":3103,"number":3104,"owner":3029,"repository":3030,"state":3031,"title":3105,"updated_at":3106,"url":3107,"score":3108},"### Is your feature request related to a problem? Please describe.\r\n\r\n\"Previous page\" and \"Next page\" may need translation to other language.\r\n\r\nAt this point we one can configure \"On this page\" (with `outlineTitle`), but not yet \"Previous page\" and \"Next page\".\r\n\r\nPossibly `previousPageTitle` and `nextPageTitle` are needed.\r\n\r\n\r\n### Describe the solution you'd like\r\n\r\nAs in https://github.com/vuejs/vitepress/issues/689#issuecomment-1144611412\r\n\r\n### Describe alternatives you've considered\r\n\r\n_No response_\r\n\r\n### Additional context\r\n\r\nIssue discussed at https://github.com/vuejs/vitepress/issues/689 with making \"On this page\" text configurable, but closed without going forward.\r\n\r\n### Validations\r\n\r\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\r\n- [X] Read the [docs](https://vitepress.vuejs.org).\r\n- [X] Read the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/main/.github/contributing.md).\r\n- [X] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.",[],1883,"Translate Previous page and Next page (make the text configurable)","2023-02-10T00:04:36Z","https://github.com/vuejs/vitepress/issues/1883",0.7518418,{"description":3110,"labels":3111,"number":3113,"owner":3029,"repository":3030,"state":3031,"title":3114,"updated_at":3115,"url":3116,"score":3117},"### Describe the bug\n\nI have customized a component to display a summary of a post and bind it with a click event to navigate to the details page. However, I encountered an error on the line `const router = useRouter()` : \"useRouter() is called without provider.\" Can you please help me understand the reason behind this?\r\n\r\nThis's my code here:\r\n```vue\r\n\u003Cscript setup>\r\nimport { useRouter } from 'vitepress'\r\n\r\ndefineProps({\r\n posts: {\r\n type: Array,\r\n default: NaN,\r\n }\r\n})\r\n\r\nfunction toDetail(url) {\r\n const router = useRouter()\r\n // ...\r\n}\r\n\r\n\u003Ctemplate>\r\n\u003Cdiv>\r\n \u003Cdiv v-for=\"item of posts\" @click=\"toDetail(item.url)\" class=\"post-slider\" :key=\"item.frontmatter.id\" >\r\n \u003C!-- -->\r\n \u003C/div>\r\n\u003C/div>\r\n\u003C/template>\r\n```\r\n\r\nI found the definition of this method in the source code:\r\n```javascript\r\nexport function useRouter(): Router {\r\n const router = inject(RouterSymbol)\r\n if (!router) {\r\n throw new Error('useRouter() is called without provider.')\r\n }\r\n return router\r\n}\r\n```\r\nClearly, the router is not properly initialized, but I'm unsure of the further reason behind it.\n\n### Reproduction\n\nAs the description shows.\n\n### Expected behavior\n\nThe reason for the bug.\n\n### System Info\n\n```sh\nwindows11\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.dev).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3112],{"name":3059,"color":3060},2391,"Bug: useRouter() is called without provider.","2023-05-28T00:04:36Z","https://github.com/vuejs/vitepress/issues/2391",0.75362027,["Reactive",3119],{},["Set"],["ShallowReactive",3122],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fwJ7lIF5wv-_1oFjZULYiCygKGna-_Bet8DtgwkA4lj0":-1},"/vuejs/vitepress/4787"]