Closed thofma closed 3 months ago
Thanks for the debugging! I should be able to get this done today.
Looks like the function in LaTeXWriter is:
function join_multiblock(node::Node)
@assert node.element isa Documenter.MultiCodeBlock
io = IOBuffer()
codeblocks = [n.element::MarkdownAST.CodeBlock for n in node.children]
for (i, thing) in enumerate(codeblocks)
print(io, thing.code)
if i != length(codeblocks)
println(io)
if findnext(x -> x.info == node.element.language, codeblocks, i + 1) == i + 1
println(io)
end
end
end
return MarkdownAST.CodeBlock(node.element.language, String(take!(io)))
end
@thofma does this work for you?
Thanks for the fix! I will check it later today
The following
julia> x Documenter.MultiCodeBlock([...])
julia> x.codeblock MarkdownAST.CodeBlock("@repl", "1 + 1\n2 + 3\n4 + 5")
julia> x.content Markdown.Code[]