From 81819c61cafe51ee73fe0f44d10513a969613c8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20M=C3=A9tivier?= <46794064+dmetivie@users.noreply.github.com> Date: Tue, 21 Jan 2025 09:55:40 +0100 Subject: [PATCH] add test for quarto callout block --- test/runtests.jl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/runtests.jl b/test/runtests.jl index 2040685..f505fd7 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1531,6 +1531,20 @@ end > on multiple lines. """ @test occursin(expected, output) + # Literate.markdown Literate.QuartoFlavor() + Literate.markdown(inputfile, sandbox; flavor = Literate.QuartoFlavor()) + output = read(joinpath(sandbox, "input.qmd"), String) + expected = """ + ::: {.callout-note} + This is a note on one line. + ::: + + ::: {.callout-warn title="Warning title text"} + This is a warning + on multiple lines. + ::: + """ + @test occursin(expected, output) # Literate.notebook Literate.notebook(inputfile, sandbox) output = read(joinpath(sandbox, "input.ipynb"), String)