]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
docs: fix escaped titles
authorEduardo San Martin Morote <posva13@gmail.com>
Wed, 5 Apr 2023 10:26:36 +0000 (12:26 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Wed, 5 Apr 2023 10:26:36 +0000 (12:26 +0200)
Fix #1743

packages/docs/api/index.md
packages/docs/typedoc-markdown.js

index 8947377f9563bc0b6ede6a0ca58bad3fbc93e950..3c315188c11028a7176d3c3287af15959b5d1987 100644 (file)
@@ -130,7 +130,7 @@ Component to display the current route the user is at.
 
 ___
 
-### START\_LOCATION %{#Variables-START\_LOCATION}%
+### START\_LOCATION %{#Variables-START_LOCATION}%
 
 • `Const` **START\_LOCATION**: [`RouteLocationNormalizedLoaded`](interfaces/RouteLocationNormalizedLoaded.md)
 
index 1b2257ef3bcdc0dbcfb0cbdfab095a29f3116e64..f8ee0942a1e33e52108941e3cefa35f2db8fb496 100644 (file)
@@ -80,6 +80,8 @@ exports.createTypeDocApp = function createTypeDocApp(config = {}) {
 
           // ignore the root level (h1) to match the sidebar
           const slugifiedTitle = slugify(titleStack.slice(1).join('-'))
+            // ensure the link is valid #1743
+            .replaceAll('\\', '')
           let id
           if (existingIds.has(slugifiedTitle)) {
             const current = existingIds.get(slugifiedTitle)