Skip to content

Commit

Permalink
Merge pull request #1548 from gustavomm19/fix-table-content
Browse files Browse the repository at this point in the history
Fix table of content bug
  • Loading branch information
tommygonzaleza authored Jul 18, 2024
2 parents 3296589 + 08446d7 commit f1720a3
Show file tree
Hide file tree
Showing 2 changed files with 123 additions and 0 deletions.
120 changes: 120 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/common/components/MarkDownParser/MDComponents/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ export function generateId(children) {
} if (child?.props && typeof child?.props?.children?.[0] === 'string') {
return child.props.children[0];
}
if (child?.props && typeof child.props.alt === 'string') {
return child.props.alt;
}
return child;
})
.join('') : '';
Expand Down

0 comments on commit f1720a3

Please sign in to comment.