Refactor anchor link handling and enhance scrolling functionality. Update markdown processing to support GitHub-style anchor links and improve user experience with smooth scrolling to headings. Add debugging utilities for anchor links in development.
This commit is contained in:
101
posts/anchor-test.md
Normal file
101
posts/anchor-test.md
Normal file
@@ -0,0 +1,101 @@
|
||||
---
|
||||
title: Anchor Link Test
|
||||
date: '2025-01-20'
|
||||
tags:
|
||||
- test
|
||||
- anchors
|
||||
summary: Testing anchor link functionality
|
||||
author: Test Author
|
||||
---
|
||||
|
||||
# Anchor Link Test
|
||||
|
||||
This is a test page to verify that anchor links work correctly.
|
||||
|
||||
## Table of Contents
|
||||
|
||||
- [Overview](#overview)
|
||||
- [Basic Headings](#basic-headings)
|
||||
- [Special Characters](#special-characters)
|
||||
- [Numbers and Symbols](#numbers-and-symbols)
|
||||
- [Long Headings](#long-headings)
|
||||
- [Nested Sections](#nested-sections)
|
||||
|
||||
## Overview
|
||||
|
||||
This section tests basic anchor linking functionality.
|
||||
|
||||
## Basic Headings
|
||||
|
||||
### Simple Heading
|
||||
This is a simple heading with basic text.
|
||||
|
||||
### Another Heading
|
||||
This is another heading to test multiple anchors.
|
||||
|
||||
## Special Characters
|
||||
|
||||
### Heading with Special Chars: @#$%^&*()
|
||||
This heading contains special characters that should be properly slugified.
|
||||
|
||||
### Heading with Spaces and Dashes
|
||||
This heading has spaces and should be converted to dashes.
|
||||
|
||||
### Heading_with_Underscores
|
||||
This heading uses underscores instead of spaces.
|
||||
|
||||
## Numbers and Symbols
|
||||
|
||||
### Heading with Numbers 123
|
||||
This heading includes numbers.
|
||||
|
||||
### Heading with Symbols !@#$%^&*()
|
||||
This heading has various symbols.
|
||||
|
||||
## Long Headings
|
||||
|
||||
### This is a Very Long Heading That Should Still Work Properly Even When It Contains Many Words and Characters
|
||||
This heading is intentionally long to test slugification with extended text.
|
||||
|
||||
## Nested Sections
|
||||
|
||||
### Level 3 Heading
|
||||
This is a level 3 heading.
|
||||
|
||||
#### Level 4 Heading
|
||||
This is a level 4 heading.
|
||||
|
||||
##### Level 5 Heading
|
||||
This is a level 5 heading.
|
||||
|
||||
###### Level 6 Heading
|
||||
This is a level 6 heading.
|
||||
|
||||
### Another Level 3
|
||||
This is another level 3 heading.
|
||||
|
||||
## Test Links
|
||||
|
||||
You can test the anchor links by clicking on these:
|
||||
|
||||
- [Go to Overview](#overview)
|
||||
- [Go to Basic Headings](#basic-headings)
|
||||
- [Go to Special Characters](#special-characters)
|
||||
- [Go to Numbers and Symbols](#numbers-and-symbols)
|
||||
- [Go to Long Headings](#long-headings)
|
||||
- [Go to Nested Sections](#nested-sections)
|
||||
- [Go to Level 3 Heading](#level-3-heading)
|
||||
- [Go to Level 4 Heading](#level-4-heading)
|
||||
- [Go to Level 5 Heading](#level-5-heading)
|
||||
- [Go to Level 6 Heading](#level-6-heading)
|
||||
|
||||
## Simple Test
|
||||
|
||||
### Test Heading
|
||||
This is a simple test heading to verify anchor linking works.
|
||||
|
||||
- [Go to Test Heading](#test-heading)
|
||||
|
||||
## Conclusion
|
||||
|
||||
If all the links above work correctly, the anchor linking system is functioning properly!
|
||||
Reference in New Issue
Block a user