mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-16 14:26:52 +08:00
fix: replace old-style <br> tags to fix Mermaid rendering issues (#13792)
This commit is contained in:
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/>')
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user