File tree 3 files changed +5
-2
lines changed
opencti-platform/opencti-front/src
3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,13 @@ import MarkdownDisplay from './MarkdownDisplay';
7
7
interface ExpandableMarkdownProps {
8
8
source ?: string | null ;
9
9
limit : number ;
10
+ removeLinks ?: boolean ;
10
11
}
11
12
12
13
const ExpandableMarkdown : FunctionComponent < ExpandableMarkdownProps > = ( {
13
14
source,
14
15
limit,
16
+ removeLinks = false ,
15
17
} ) => {
16
18
const [ expand , setExpand ] = useState ( false ) ;
17
19
const onClick = ( ) => setExpand ( ! expand ) ;
@@ -30,6 +32,7 @@ const ExpandableMarkdown: FunctionComponent<ExpandableMarkdownProps> = ({
30
32
content = { expand ? emptyFilled ( source ) : truncate ( source , limit ) }
31
33
remarkGfmPlugin = { true }
32
34
commonmark = { true }
35
+ removeLinks = { removeLinks }
33
36
/>
34
37
</ div >
35
38
</ div >
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ const IndicatorDetailsComponent: FunctionComponent<IndicatorDetailsComponentProp
140
140
>
141
141
{ t_i18n ( 'Description' ) }
142
142
</ Typography >
143
- < ExpandableMarkdown source = { indicator . description } limit = { 400 } />
143
+ < ExpandableMarkdown source = { indicator . description } limit = { 400 } removeLinks />
144
144
< Typography
145
145
variant = "h3"
146
146
gutterBottom = { true }
Original file line number Diff line number Diff line change @@ -273,7 +273,7 @@ NotificationLineProps
273
273
{ events . length > 1 ? (
274
274
< i > { t_i18n ( 'Digest with multiple notifiers' ) } </ i >
275
275
) : (
276
- < MarkdownDisplay content = { firstEvent ?. message ?? '-' } remarkGfmPlugin = { true } commonmark = { true } />
276
+ < MarkdownDisplay content = { firstEvent ?. message ?? '-' } remarkGfmPlugin commonmark removeLinks />
277
277
) }
278
278
</ div >
279
279
< div className = { classes . bodyItem } style = { { width : dataColumns . created . width } } >
You can’t perform that action at this time.
0 commit comments