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
main after #817. Found by the agent working on #822, and confirmed by reading packages/core/src/docs-search.ts:102-106.
Minimal reproduction
sectionAt finds headings with /^#{1,6}[ \t]+(.+?)…$/gm across the whole document. So a # comment line inside a fenced code block (for example # or, in an existing site: in a shell example) counts as a heading.
Example: searching maxRecordsPerOwner in the store README reports the match under the section "or, in an existing site:", which comes from a shell comment. It should be the real Markdown section.
Expected: headings inside fenced code blocks (``` or ~~~) are ignored when choosing the section title and index for search excerpts.
Relevant output
Affects search_docs and the MCP docs search results for any document with shell or YAML comments in code blocks. Not measured beyond the store README example.
Activity
init --no-mcp and EPERM diagnostics, fence-aware docs search, fixed-c…
Shared Markdown fence/link readers, strict newestVersion, middleware …