fix: replace old-style <br> tags to fix Mermaid rendering issues (#13792)
This commit is contained in:
parent
58a74fe1fb
commit
49d0acd188
3 changed files with 13 additions and 1 deletions
8
web/app/components/base/mermaid/utils.spec.ts
Normal file
8
web/app/components/base/mermaid/utils.spec.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import { cleanUpSvgCode } from './utils'
|
||||
|
||||
describe('cleanUpSvgCode', () => {
|
||||
it('replaces old-style <br> tags with the new style', () => {
|
||||
const result = cleanUpSvgCode('<br>test<br>')
|
||||
expect(result).toEqual('<br/>test<br/>')
|
||||
})
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue