Fix suggestion effected by react-markdown-preview library upgrade (#2063)

hackweek-2024-team-14
Tan Nhu 2024-05-23 22:54:45 +00:00 committed by Harness
parent ed484b0d44
commit cc471d0876
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ export function MarkdownViewer({
if (
typeof code === 'string' &&
typeof _className === 'string' &&
'language-suggestion' === _className.toLocaleLowerCase()
'language-suggestion' === _className.split(' ')[0].toLocaleLowerCase()
) {
return (
<CodeSuggestionBlock