Fixed an issue with flowchart rendering. Remember to render html, securityLevel='loose' must be set by the siteConfig. The default securityLevel as of now is 'strict'. This causes html to be url encoded.

This commit is contained in:
chris moran
2020-07-27 05:29:21 -04:00
parent c8f652aaa8
commit 38d4b5be1a
19 changed files with 1258 additions and 833 deletions

View File

@@ -2,6 +2,7 @@
*
*/
import { logger } from '../../logger';
import mermaidAPI from '../../mermaidAPI';
let entities = {};
let relationships = [];
@@ -19,6 +20,10 @@ const Identification = {
IDENTIFYING: 'IDENTIFYING'
};
export const parseDirective = function(statement, context, type) {
mermaidAPI.parseDirective(statement, context, type);
};
const addEntity = function(name) {
if (typeof entities[name] === 'undefined') {
entities[name] = name;
@@ -67,6 +72,7 @@ const clear = function() {
export default {
Cardinality,
Identification,
parseDirective,
addEntity,
getEntities,
addRelationship,