Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tools/markdown-to-html/docs-marked-renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class DocsMarkdownRenderer extends Renderer {
// We only want to fix up markdown links that are relative and do not refer to guides already.
// Otherwise we always map the link to the "guide/" path.
// TODO(devversion): remove this logic and just disallow relative paths.
if (!href.startsWith('http') && !href.includes('guide/')) {
if (!href.startsWith('http') && !href.startsWith('#') && !href.includes('guide/')) {
return super.link(`guide/${basename(href, extname(href))}`, title, text);
}

Expand Down