From: Eduardo San Martin Morote Date: Wed, 5 Apr 2023 10:26:36 +0000 (+0200) Subject: docs: fix escaped titles X-Git-Tag: v4.2.0~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0affd6e42ec15a0b5bd72d05a9f3208baaf6aeed;p=thirdparty%2Fvuejs%2Frouter.git docs: fix escaped titles Fix #1743 --- diff --git a/packages/docs/api/index.md b/packages/docs/api/index.md index 8947377f..3c315188 100644 --- a/packages/docs/api/index.md +++ b/packages/docs/api/index.md @@ -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) diff --git a/packages/docs/typedoc-markdown.js b/packages/docs/typedoc-markdown.js index 1b2257ef..f8ee0942 100644 --- a/packages/docs/typedoc-markdown.js +++ b/packages/docs/typedoc-markdown.js @@ -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)