diff --git a/io/src/test/scala/laika/directive/std/IncludeDirectiveSpec.scala b/io/src/test/scala/laika/directive/std/IncludeDirectiveSpec.scala index 5b06f8ada..d763f8f27 100644 --- a/io/src/test/scala/laika/directive/std/IncludeDirectiveSpec.scala +++ b/io/src/test/scala/laika/directive/std/IncludeDirectiveSpec.scala @@ -25,7 +25,6 @@ import laika.format.{ HTML, Markdown } import laika.io.api.TreeParser import laika.io.helper.InputBuilder import laika.io.internal.errors.ConfigException -import laika.io.model.InputTree import laika.io.syntax.* import laika.theme.Theme import munit.CatsEffectSuite @@ -221,4 +220,45 @@ class IncludeDirectiveSpec extends CatsEffectSuite with InputBuilder { parseAndExtract("Text", Some(template)).assertEquals(Seq(embedTemplateResult("foo"))) } +// test("rommadomma") { +// +// val include = +// """Header 1 +// |======== +// |""".stripMargin +// +// val doc = +// """Title +// |===== +// | +// |@:include(inc.md) +// | +// |Header 2 +// |======== +// | +// |@:navigationTree { +// | entries = [ +// | { target = "#", excludeRoot = true } +// | ] +// |} +// |""".stripMargin +// +// val inputs = InputTree[IO] +// .addString(doc, Root / "doc.md") +// .addString(include, Root / "inc.md") +// +// val res = Transformer +// .from(Markdown) +// .to(HTML) +// .parallel[IO] +// .withTheme(Theme.empty) +// .build +// .use { t => +// t.fromInput(inputs).toMemory.transform +// } +// +// println(res.unsafeRunSync().allDocuments.head.content) +// +// } + }