docs-and-graphs
Advanced tools
Comparing version 0.1.20 to 0.1.21
{ | ||
"name": "docs-and-graphs", | ||
"version": "0.1.20", | ||
"version": "0.1.21", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "", |
@@ -44,4 +44,4 @@ const PARENTHESIS_TYPES = [ | ||
const result = [] | ||
for (const line of str.split('\n')) { | ||
function extract (line) { | ||
const result = [] | ||
for (const inline of parseWithParenthesis(line)) { | ||
@@ -59,5 +59,7 @@ if (inline.chunks.length > 1) { | ||
} | ||
return result | ||
} | ||
return result | ||
return str.split('\n').map(extract).flat() | ||
} | ||
@@ -64,0 +66,0 @@ |
@@ -29,3 +29,3 @@ import { expect } from 'expect' | ||
'a::b\nc::d\nafter', | ||
'lives in :: [Test with relative](../houses/BobHouse.md)' | ||
'lives in :: [Test with relative](../houses/BobHouse.md)', | ||
] | ||
@@ -32,0 +32,0 @@ |
Sorry, the diff of this file is not supported yet
278511
5890