Skip to content

Commit

Permalink
Accept only inline Markdown in box title
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgio committed Jul 31, 2024
1 parent 1aaf64e commit 5160ae1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stdlib/src/main/kotlin/eu/iamgio/quarkdown/stdlib/Layout.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package eu.iamgio.quarkdown.stdlib

import eu.iamgio.quarkdown.ast.InlineMarkdownContent
import eu.iamgio.quarkdown.ast.MarkdownContent
import eu.iamgio.quarkdown.ast.Table
import eu.iamgio.quarkdown.ast.quarkdown.Aligned
Expand Down Expand Up @@ -135,7 +136,7 @@ fun clip(
* @return the new box node
*/
fun box(
title: MarkdownContent? = null,
title: InlineMarkdownContent? = null,
padding: Size? = null,
@Name("background") backgroundColor: Color? = null,
@Name("foreground") foregroundColor: Color? = null,
Expand Down

0 comments on commit 5160ae1

Please sign in to comment.