Frontmatter
| id | 8068 |
| title | Refactor Markdown Component to Handle Headline Parsing |
| state | Closed |
| labels | airefactoringarchitecture |
| assignees | tobiu |
| createdAt | Dec 9, 2025, 3:15 PM |
| updatedAt | Dec 9, 2025, 3:16 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8068 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Dec 9, 2025, 3:16 PM |
The
updateContentSectionsStoremethod inContentComponentcurrently handles two responsibilities: parsing headlines to addneo-h*classes for styling, and updating the side navigation store.To improve separation of concerns and reuse, the headline parsing logic should be moved to the base
Neo.component.Markdownclass.Changes:
neo-h*class injection) toNeo.component.Markdown.ContentComponentto override the parsing method to handle its store updates while delegating the core parsing to the parent class.ContentComponentremoves the duplicatedupdateContentSectionsStoremethod.