Fix: Assets Tab empty Summary panel and text formatting Bug (#20305)

* bug fix for editor and assets tab

* update markdownPatterns
This commit is contained in:
Shrushti Polekar 2025-03-18 17:59:39 +05:30 committed by GitHub
parent 09743368b0
commit 1869bcbecd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 10 deletions

View File

@ -175,16 +175,20 @@ export const DataAssetSummaryPanel = ({
case EntityType.TOPIC:
return (
<>
<Row
className="p-md border-radius-card summary-panel-card"
gutter={[0, 4]}>
<Col span={24}>
<CommonEntitySummaryInfo
componentType={componentType}
entityInfo={entityInfo}
/>
</Col>
</Row>
{entityInfo.some((info) =>
info.visible?.includes(componentType)
) && (
<Row
className="p-md border-radius-card summary-panel-card"
gutter={[0, 4]}>
<Col span={24}>
<CommonEntitySummaryInfo
componentType={componentType}
entityInfo={entityInfo}
/>
</Col>
</Row>
)}
{entityType === EntityType.TABLE && (
<TableSummary entityDetails={dataAsset as Table} />
)}

View File

@ -148,6 +148,7 @@ export const isHTMLString = (content: string) => {
/^\s*>{1,}\s/, // Blockquotes
/^---|\*\*\*|___/, // Horizontal rules
/`{1,3}[^`]+`{1,3}/, // Code blocks
/(\*\*)[^*]+(\*\*)|(__)[^_]+(__)/, // Bold/Strong text
];
const hasMarkdownSyntax = markdownPatterns.some((pattern) =>