]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
docs: fix index.md to avoid horizontal scrolling in code (#2129)
authorLeo <3853621+leoelz@users.noreply.github.com>
Tue, 13 Feb 2024 15:52:04 +0000 (12:52 -0300)
committerGitHub <noreply@github.com>
Tue, 13 Feb 2024 15:52:04 +0000 (16:52 +0100)
* Fix: index.md - split comment to avoid horizontal scrolling

* docs: fix index.md to avoid horizontal scrolling

packages/docs/guide/index.md

index 2d826e71ef9ba2b4af0eb25b54b7e8c301b5b061..3ba003da29b93d0f700d4421d6e47b556aaeba26 100644 (file)
@@ -17,7 +17,8 @@ Creating a Single-page Application with Vue + Vue Router feels natural: with Vue
   <p>
     <!-- use the router-link component for navigation. -->
     <!-- specify the link by passing the `to` prop. -->
-    <!-- `<router-link>` will render an `<a>` tag with the correct `href` attribute -->
+    <!-- `<router-link>` will render an `<a>` tag with -->
+    <!-- the correct `href` attribute -->
     <router-link to="/">Go to Home</router-link>
     <router-link to="/about">Go to About</router-link>
   </p>
@@ -57,7 +58,8 @@ const routes = [
 // You can pass in additional options here, but let's
 // keep it simple for now.
 const router = VueRouter.createRouter({
-  // 4. Provide the history implementation to use. We are using the hash history for simplicity here.
+  // 4. Provide the history implementation to use. We
+  // are using the hash history for simplicity here.
   history: VueRouter.createWebHashHistory(),
   routes, // short for `routes: routes`
 })