Skip to content

Commit

Permalink
Add #2639 to changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Jul 13, 2024
1 parent 946ea38 commit c1fb5bd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

- Constructor parameters which share a name with a property on a parent class will no longer inherit the comment on the parent class, #2636.
- Packages mode will now attempt to use the comment declared in the comment class for inherited members, #2622.
- TypeDoc no longer crashes when `@document` includes an empty file, #2638.

### Thanks!

- @bladerunner2020

## v0.26.4 (2024-07-10)

Expand Down
4 changes: 2 additions & 2 deletions src/lib/converter/comments/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ export function parseCommentString(

// Check for frontmatter
let frontmatterData: Record<string, unknown> = {};
const firstBlock = content[0];
if (firstBlock?.text?.startsWith("---\n")) {
const firstBlock = content.at(0);
if (firstBlock?.text.startsWith("---\n")) {
const end = firstBlock.text.indexOf("\n---\n");
if (end !== -1) {
const yamlText = firstBlock.text.slice("---\n".length, end);
Expand Down

0 comments on commit c1fb5bd

Please sign in to comment.