diff --git a/core/src/main/kotlin/eu/iamgio/quarkdown/rendering/html/QuarkdownHtmlNodeRenderer.kt b/core/src/main/kotlin/eu/iamgio/quarkdown/rendering/html/QuarkdownHtmlNodeRenderer.kt index 547ef5f7..48e51ac3 100644 --- a/core/src/main/kotlin/eu/iamgio/quarkdown/rendering/html/QuarkdownHtmlNodeRenderer.kt +++ b/core/src/main/kotlin/eu/iamgio/quarkdown/rendering/html/QuarkdownHtmlNodeRenderer.kt @@ -121,7 +121,7 @@ class QuarkdownHtmlNodeRenderer(context: Context) : BaseHtmlNodeRenderer(context override fun visit(node: MathSpan) = INLINE_MATH_FENCE + "$" + node.expression + "$" + INLINE_MATH_FENCE override fun visit(node: SlidesFragment): CharSequence = - tagBuilder("p", node.children) + tagBuilder("div", node.children) .classes("fragment", node.behavior.asCSS) .build() diff --git a/stdlib/src/main/kotlin/eu/iamgio/quarkdown/stdlib/Slides.kt b/stdlib/src/main/kotlin/eu/iamgio/quarkdown/stdlib/Slides.kt index 74502a3d..0fec8296 100644 --- a/stdlib/src/main/kotlin/eu/iamgio/quarkdown/stdlib/Slides.kt +++ b/stdlib/src/main/kotlin/eu/iamgio/quarkdown/stdlib/Slides.kt @@ -1,6 +1,6 @@ package eu.iamgio.quarkdown.stdlib -import eu.iamgio.quarkdown.ast.InlineMarkdownContent +import eu.iamgio.quarkdown.ast.MarkdownContent import eu.iamgio.quarkdown.ast.quarkdown.SlidesConfigurationInitializer import eu.iamgio.quarkdown.ast.quarkdown.SlidesFragment import eu.iamgio.quarkdown.document.slides.Transition @@ -44,10 +44,10 @@ fun setSlidesConfiguration( * shows its content when the user attempts to go to the next slide. * Multiple fragments in the same slide are shown in order on distinct user interactions. * @param behavior visibility type of the fragment and how it reacts to user interactions - * @param content content to show + * @param content content to show/hide * @return the fragment node */ fun fragment( behavior: SlidesFragment.Behavior = SlidesFragment.Behavior.SHOW, - content: InlineMarkdownContent, + content: MarkdownContent, ) = SlidesFragment(behavior, content.children).wrappedAsValue()