We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8f9475 commit b2f2bd3Copy full SHA for b2f2bd3
tools/markdown-to-html/docs-marked-renderer.ts
@@ -38,7 +38,7 @@ export class DocsMarkdownRenderer extends Renderer {
38
// We only want to fix up markdown links that are relative and do not refer to guides already.
39
// Otherwise we always map the link to the "guide/" path.
40
// TODO(devversion): remove this logic and just disallow relative paths.
41
- if (!href.startsWith('http') && !href.includes('guide/')) {
+ if (!href.startsWith('http') && !href.startsWith('#') && !href.includes('guide/')) {
42
return super.link(`guide/${basename(href, extname(href))}`, title, text);
43
}
44
0 commit comments