You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ok!
I am no regex expert but (using your code) does the following would be acceptable
adm_to_QuartoCallout =function (s)
m =match(r, s)::RegexMatch
io =IOBuffer()
print(io, "::: {.callout-") # to open the calloutprint(io, string(m[:type]))
println(io, "}") # not sure how to detect the Quarto `collapse` option if anyif (title = m[:title]; title !==nothing)
print(io, "## ")
print(io, title)
endfor l ineachline(IOBuffer(m[:lines]); keep =true)
print(io, replace(l, r"^# "=>""))
endprint("\n :::") # to close the calloutreturnString(take!(io))
end
with a isQuartoFlavor option somewhere ? Or another kwarg to select the type of admonitions wanted.
It seems that Quarto format for callout blocks is different that usual markdown flavor, see here.
Example instead of
It is with Quarto
Currently, using Literate.jl with Quarto flavor on
produces in the
qmd
Which is not exactly the intended result.
It would be nice to support all the callout blocks (note, warning etc) !
The text was updated successfully, but these errors were encountered: