@markdy/core 0.8.21 → 0.8.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1917,7 +1917,8 @@ function parseStringToken(raw) {
|
|
|
1917
1917
|
return null;
|
|
1918
1918
|
}
|
|
1919
1919
|
function splitTargets(raw) {
|
|
1920
|
-
|
|
1920
|
+
const tokens = raw.match(/"(?:[^"\\]|\\.)*"|[^\s,]+/g) ?? [];
|
|
1921
|
+
return tokens.map((token) => token.trim()).filter((token) => token.length > 0 && !token.startsWith('"'));
|
|
1921
1922
|
}
|
|
1922
1923
|
function splitOutsideQuotes(raw, separator) {
|
|
1923
1924
|
const parts = [];
|
|
@@ -2375,7 +2376,8 @@ function validateReferences(ast) {
|
|
|
2375
2376
|
}
|
|
2376
2377
|
}
|
|
2377
2378
|
function detectFlowCycles(ast) {
|
|
2378
|
-
|
|
2379
|
+
const dtype = ast.meta.type ?? "architecture";
|
|
2380
|
+
if (dtype !== "architecture" && dtype !== "flowchart") return;
|
|
2379
2381
|
const seen = /* @__PURE__ */ new Set();
|
|
2380
2382
|
const adj = /* @__PURE__ */ new Map();
|
|
2381
2383
|
const ensure = (id) => {
|
package/package.json
CHANGED