-
-
Notifications
You must be signed in to change notification settings - Fork 51
Closed
Description
Hi. Consider this custom directive:
val demoDirective = Blocks.create("demo") {
import Blocks.dsl._
attribute(0).as[String].map { arg =>
BlockSequence(
Paragraph("before"),
Header(1, "Arg = " + arg),
Paragraph("after"),
)
}
}when I used it like this
# Test
# Here we go...
@:demo(hello)for some reason the header disappears. The output is
Test
Here we go...
before
after
instead of
Test
Here we go...
before
Arg = hello
after