Browse Source

add test for quarto callout block

pull/268/head
David Métivier 11 months ago
parent
commit
81819c61ca
  1. 14
      test/runtests.jl

14
test/runtests.jl

@ -1531,6 +1531,20 @@ end
> on multiple lines. > on multiple lines.
""" """
@test occursin(expected, output) @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
Literate.notebook(inputfile, sandbox) Literate.notebook(inputfile, sandbox)
output = read(joinpath(sandbox, "input.ipynb"), String) output = read(joinpath(sandbox, "input.ipynb"), String)

Loading…
Cancel
Save