You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							19 lines
						
					
					
						
							724 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							19 lines
						
					
					
						
							724 B
						
					
					
				
								#!/usr/bin/env bash
							 | 
						|
								set -euo pipefail
							 | 
						|
								
							 | 
						|
								echo "🔧 Auto-fixing markdown formatting..."
							 | 
						|
								
							 | 
						|
								# Check if markdownlint is available
							 | 
						|
								if ! command -v npx &> /dev/null; then
							 | 
						|
								    echo "❌ npx not found. Please install Node.js and npm first."
							 | 
						|
								    exit 1
							 | 
						|
								fi
							 | 
						|
								
							 | 
						|
								# Run markdownlint with auto-fix on project markdown files (exclude node_modules)
							 | 
						|
								echo "📝 Fixing project markdown files..."
							 | 
						|
								npx markdownlint "*.md" "*.mdc" "scripts/**/*.md" "src/**/*.md" "test-playwright/**/*.md" "resources/**/*.md" --config .markdownlint.json --fix 2>/dev/null || {
							 | 
						|
								    echo "⚠️  Some issues could not be auto-fixed. Check manually."
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								echo "✅ Markdown auto-fix complete!"
							 | 
						|
								echo "💡 Run 'npm run markdown:check' to verify all issues are resolved."
							 | 
						|
								
							 |