mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-02-04 07:13:25 +08:00
Sanitize text of the box
This commit is contained in:
parent
117f0ab6da
commit
7b5bebd9c4
@ -240,7 +240,10 @@ export const parseBoxData = function (str) {
|
|||||||
|
|
||||||
const boxData = {
|
const boxData = {
|
||||||
color: color,
|
color: color,
|
||||||
text: title !== undefined ? title.replace(/^:?(?:no)?wrap:/, '') : undefined,
|
text:
|
||||||
|
title !== undefined
|
||||||
|
? sanitizeText(title.replace(/^:?(?:no)?wrap:/, ''), configApi.getConfig())
|
||||||
|
: undefined,
|
||||||
wrap:
|
wrap:
|
||||||
title !== undefined
|
title !== undefined
|
||||||
? title.match(/^:?wrap:/) !== null
|
? title.match(/^:?wrap:/) !== null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user