Added default new line in the diagram text before parsing for special case where code is trimmed

This commit is contained in:
ashishj 2022-04-28 20:09:42 +02:00
parent bada661bd0
commit b30790cac4
1 changed files with 1 additions and 0 deletions

View File

@ -69,6 +69,7 @@ import DOMPurify from 'dompurify';
* @returns {any}
*/
function parse(text) {
text = text + '\n';
const cnf = configApi.getConfig();
const graphInit = utils.detectInit(text, cnf);
if (graphInit) {