mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-29 08:29:09 +00:00
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:
parent
09743368b0
commit
1869bcbecd
@ -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} />
|
||||
)}
|
||||
|
||||
@ -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) =>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user