You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Markdown-rendered headings have no id — Outline links never scroll to their target #4173
Outline's own docs state the id on an outline item "should match the target heading element id," and useOutlineFromMarkdown is provided specifically to derive that id list from markdown text. But Markdown never writes an id onto the h1–h6 elements it renders, and there's no supported way to inject one — MarkdownProps has no id/slug option, and the components.heading override only receives {level, children}, not a slug or index. As a result, clicking an Outline item built from useOutlineFromMarkdown output changes location.hash but never scrolls, because document.getElementById(id) returns null (Outline's click handler silently no-ops when that happens, so it falls back to whatever the browser's default anchor behavior is).
Expected: Markdown + useOutlineFromMarkdown + Outline used together navigate to the correct heading, matching what the docs imply.
Actual: navigation silently does nothing (hash changes, scroll position doesn't).
At minimum, this is a documentation/API-contract issue: the documented Markdown-derived outline IDs cannot be attached to headings through any supported Markdown API.
Expected: page scrolls to the "Installation" heading.
Actual: location.hash becomes #installation, but window.scrollY stays unchanged — no element in the DOM has id="installation" (confirmed via document.getElementById('installation') === null).
This reproduces with the official Outline doc example verbatim plus a bare render — no app-specific code involved.
Activity
cixzhang commentedon Jul 28, 2026
Tracked in the accessibility program tracker: #4475
cixzhang commentedon Jul 28, 2026
Tracked in the accessibility program tracker: #4475
fix(core): render Markdown heading ids so Outline links scroll (#4173) (