Home / Function/ selectTocLink() — astro Function Reference

selectTocLink() — astro Function Reference

Architecture documentation for the selectTocLink() function in mdx-plugins.test.js from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  6091f30a_ffb7_7650_6d1e_c559779b7f4c["selectTocLink()"]
  e8760276_ae78_8548_876c_cdc1c14c40af["mdx-plugins.test.js"]
  6091f30a_ffb7_7650_6d1e_c559779b7f4c -->|defined in| e8760276_ae78_8548_876c_cdc1c14c40af
  style 6091f30a_ffb7_7650_6d1e_c559779b7f4c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/integrations/mdx/test/mdx-plugins.test.js lines 288–290

function selectTocLink(document) {
	return document.querySelector('ul a[href="#section-1"]');
}

Domain

Subdomains

Frequently Asked Questions

What does selectTocLink() do?
selectTocLink() is a function in the astro codebase, defined in packages/integrations/mdx/test/mdx-plugins.test.js.
Where is selectTocLink() defined?
selectTocLink() is defined in packages/integrations/mdx/test/mdx-plugins.test.js at line 288.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free