feat: update TableOfContents component for improved heading indentation and add new post "Qui Sumus"
All checks were successful
Build and Deploy Blog / build-and-deploy-local (push) Successful in 6m14s
All checks were successful
Build and Deploy Blog / build-and-deploy-local (push) Successful in 6m14s
This commit is contained in:
@@ -33,7 +33,7 @@ export interface PostMeta {
|
||||
}
|
||||
|
||||
function extractHeadings(content: string): Heading[] {
|
||||
const regex = /^(#{2,3})\s+(.+)$/gm;
|
||||
const regex = /^(#{1,3})\s+(.+)$/gm;
|
||||
const headings: Heading[] = [];
|
||||
let match;
|
||||
while ((match = regex.exec(content)) !== null) {
|
||||
|
||||
Reference in New Issue
Block a user