mirror of
https://github.com/jimeh/commonflow.org.git
synced 2026-02-19 05:46:40 +00:00
feat: add v2.0.0 spec and fix related issues
- Fix update-specs to handle ATX-style headings (# Title) - Fix version selector dropdown to expand for longer version strings Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -179,7 +179,8 @@ async function fetchSpec(version: string): Promise<Spec> {
|
||||
}
|
||||
|
||||
// Extract title from first line (after version replacement)
|
||||
const title = lines[0];
|
||||
// Handle both ATX-style (# Title) and setext-style (Title\n===) headings
|
||||
const title = lines[0].replace(/^#\s+/, "");
|
||||
|
||||
// Build body with frontmatter
|
||||
const body = updateConfig.bodyTemplate
|
||||
|
||||
Reference in New Issue
Block a user