VYASA
PostsVyasa Manual
Advanced Behavior
←18 / 21→

Advanced FeaturesURL copied

Heading AnchorsURL copied

All headings (h1 through h6) automatically get id attributes based on their text content using the text_to_anchor() function:

  • Removes special characters
  • Converts to lowercase
  • Replaces spaces with hyphens
  • Enables direct linking via #anchor-slug
  • Powers TOC navigation with smooth scrolling (scroll margin 7rem for navbar offset)
2✦
3✦ > Index/README behavior
4✦ > Smart 404
5✦ > Performance
6✦ > Performance > 🚀 Technical Highlights
7✦ > Performance > Quick Usage Examples
8✦ > Technical Implementation Details > Markdown Processing Pipeline
9✦ > Technical Implementation Details > Custom Renderers
10✦ > Technical Implementation Details > Caching Strategy
11✦ > Technical Implementation Details > HTMX Integration
12✦ > Technical Implementation Details > Logging & Debugging
13✦ > Technical Implementation Details > Responsive Breakpoints
14✦ > Technical Implementation Details > Font Stack
15✦ > Advanced Features > Index/README Files
16✦ > Advanced Features > Smart 404 Page
17✦ > Advanced Features > Code Highlighting
18✦ > Advanced Features > Heading Anchors
19✦ > Advanced Features > Image Handling
20✦ > Advanced Features > Frontmatter Support
Back to doc view