Browse Source

Update src/Literate.jl

pull/145/head
Fredrik Ekre 4 years ago committed by GitHub
parent
commit
dc8fba024a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Literate.jl

2
src/Literate.jl

@ -440,7 +440,7 @@ function markdown(inputfile, outputdir=pwd(); config::Dict=Dict(), kwargs...) @@ -440,7 +440,7 @@ function markdown(inputfile, outputdir=pwd(); config::Dict=Dict(), kwargs...)
iocode = IOBuffer()
codefence = config["codefence"]::Pair
write(iocode, codefence.first)
# make sure the code block is finalized if we are printing to ```@example
# make sure the code block is finalized if we are printing to ```@example
# (or ````@example, any number of backticks >= 3 works)
if chunk.continued && startswith(codefence.first, r"`{3,}@example") && config["documenter"]::Bool
write(iocode, "; continued = true")

Loading…
Cancel
Save