fix: var highlight problme (#214)
This commit is contained in:
parent
66782ef19c
commit
17a1c05728
2 changed files with 6 additions and 4 deletions
|
|
@ -56,10 +56,11 @@ const OpeningStatement: FC<IOpeningStatementProps> = ({
|
|||
}, [value])
|
||||
|
||||
const coloredContent = (tempValue || '')
|
||||
.replace(regex, varHighlightHTML({ name: '$1' })) // `<span class="${highLightClassName}">{{$1}}</span>`
|
||||
.replace(/\n/g, '<br />')
|
||||
.replace(/</g, '<')
|
||||
.replace(/>/g, '>')
|
||||
.replace(regex, varHighlightHTML({ name: '$1' })) // `<span class="${highLightClassName}">{{$1}}</span>`
|
||||
.replace(/\n/g, '<br />')
|
||||
|
||||
|
||||
|
||||
const handleEdit = () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue