mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-12 11:59:39 +02:00
Test fix + empty relation
This commit is contained in:
@@ -54,11 +54,7 @@
|
|||||||
// themeCSS: '.edgePath .path {stroke: red;} .arrowheadPath {fill: red;}',
|
// themeCSS: '.edgePath .path {stroke: red;} .arrowheadPath {fill: red;}',
|
||||||
logLevel: 0,
|
logLevel: 0,
|
||||||
state: {
|
state: {
|
||||||
<<<<<<< HEAD
|
|
||||||
defaultRenderer: 'dagre-d3',
|
defaultRenderer: 'dagre-d3',
|
||||||
=======
|
|
||||||
defaultRenderer: 'dagre-wrapper',
|
|
||||||
>>>>>>> master
|
|
||||||
},
|
},
|
||||||
flowchart: {
|
flowchart: {
|
||||||
// defaultRenderer: 'dagre-wrapper',
|
// defaultRenderer: 'dagre-wrapper',
|
||||||
|
@@ -65,6 +65,7 @@ const sanitizeMore = (text, config) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const sanitizeText = (text, config) => {
|
export const sanitizeText = (text, config) => {
|
||||||
|
if(!text) return text;
|
||||||
const txt = DOMPurify.sanitize(sanitizeMore(text, config));
|
const txt = DOMPurify.sanitize(sanitizeMore(text, config));
|
||||||
return txt;
|
return txt;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user