From 97bdcd3289f29e56fa575fdacbf660154d0b081f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joshua=20Kobsch=C3=A4tzki?= Date: Thu, 8 Jun 2023 15:34:58 +0200 Subject: [PATCH] feat: Add support for network diagrams --- core.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core.js b/core.js index 214da5c..8b1d9c0 100644 --- a/core.js +++ b/core.js @@ -21,6 +21,8 @@ function formatContent(content) { if ( trimmedLine.startsWith('group') || trimmedLine.startsWith('alt') || + trimmedLine.startsWith('network') || + trimmedLine.startsWith('nwdiag') || trimmedLine.startsWith('opt') || trimmedLine.startsWith('skinparam') || trimmedLine === '{' || @@ -48,4 +50,4 @@ window.onload = function() { alert("An error occurred while formatting your code: " + error.message); } }); -}; \ No newline at end of file +};