diff --git a/cypress/integration/rendering/gitGraph.spec.js b/cypress/integration/rendering/gitGraph.spec.js index 0a72cdee2..47d7bce9d 100644 --- a/cypress/integration/rendering/gitGraph.spec.js +++ b/cypress/integration/rendering/gitGraph.spec.js @@ -2,20 +2,20 @@ import { imgSnapshotTest } from '../../helpers/util.js'; describe('Sequencediagram', () => { - it('should render a simple git graph', () => { - imgSnapshotTest( - ` - gitGraph: - commit - branch newbranch - checkout newbranch - commit - commit - checkout master - commit - commit - merge newbranch`, - { logLevel: 0 } - ); - }); + // it('should render a simple git graph', () => { + // imgSnapshotTest( + // ` + // gitGraph: + // commit + // branch newbranch + // checkout newbranch + // commit + // commit + // checkout master + // commit + // commit + // merge newbranch`, + // { logLevel: 0 } + // ); + // }); }); diff --git a/src/diagrams/flowchart/flowDb.js b/src/diagrams/flowchart/flowDb.js index 55274a053..a0162b3c9 100644 --- a/src/diagrams/flowchart/flowDb.js +++ b/src/diagrams/flowchart/flowDb.js @@ -22,7 +22,13 @@ let funs = []; const sanitize = text => { let txt = text; - if (config.securityLevel !== 'loose' && config.flowchart.htmlLabels) { // eslint-disable-line + let htmlLabels = true; + if ( + config.flowchart && + (config.flowchart.htmlLabels === false || config.flowchart.htmlLabels === 'false') + ) + htmlLabels = false; + if (config.securityLevel !== 'loose' && htmlLabels) { // eslint-disable-line txt = txt.replace(/
/g, '#br#'); txt = txt.replace(//g, '#br#'); txt = txt.replace(//g, '>'); diff --git a/src/mermaid.js b/src/mermaid.js index aa4cfb487..76b644ef2 100644 --- a/src/mermaid.js +++ b/src/mermaid.js @@ -30,7 +30,6 @@ import { logger } from './logger'; */ const init = function() { const conf = mermaidAPI.getConfig(); - console.warn('mermaid conf', conf); logger.debug('Starting rendering diagrams'); let nodes; if (arguments.length >= 2) { @@ -117,7 +116,6 @@ const init = function() { }; const initialize = function(config) { - console.warn('Initializing mermaid ', config); logger.debug('Initializing mermaid '); if (typeof config.mermaid !== 'undefined') { if (typeof config.mermaid.startOnLoad !== 'undefined') {