|
|
|
@ -78,17 +78,19 @@ function parse(content; allow_continued = true) |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
# find code chunks that are continued |
|
|
|
if allow_continued |
|
|
|
last_code_chunk = 0 |
|
|
|
# find code chunks that are continued |
|
|
|
for (i, chunk) in enumerate(chunks) |
|
|
|
last_code_chunk = 0 |
|
|
|
isa(chunk, MDChunk) && continue |
|
|
|
for (i, chunk) in enumerate(chunks) |
|
|
|
if startswith(last(chunk.lines)," ") |
|
|
|
isa(chunk, MDChunk) && continue |
|
|
|
chunk.continued = true |
|
|
|
if startswith(last(chunk.lines)," ") |
|
|
|
end |
|
|
|
chunk.continued = true |
|
|
|
if startswith(first(chunk.lines)," ") |
|
|
|
end |
|
|
|
chunks[last_code_chunk].continued = true |
|
|
|
if startswith(first(chunk.lines)," ") |
|
|
|
|
|
|
|
chunks[last_code_chunk].continued = true |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
last_code_chunk = i |
|
|
|
end |
|
|
|
end |
|
|
|
last_code_chunk = i |
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
# if we don't allow continued code blocks we need to merge MDChunks into the CodeChunks |
|
|
|
# if we don't allow continued code blocks we need to merge MDChunks into the CodeChunks |
|
|
|
|