Skip to content

Commit 78a59a3

Browse files
committed
Fix visitChildren logic in custom block rendering
1 parent 69af671 commit 78a59a3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • richtext-markdown/src/commonMain/kotlin/com/halilibo/richtext/markdown

richtext-markdown/src/commonMain/kotlin/com/halilibo/richtext/markdown/BasicMarkdown.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,15 +117,15 @@ internal fun RichTextScope.RecursiveRenderMarkdownAst(
117117
) {
118118
with(astNodeComposer) {
119119
Compose(astNode) {
120-
renderChildren(astNode, astNodeComposer)
120+
renderChildren(it, astNodeComposer)
121121
}
122122
}
123123
} else {
124124
with(DefaultAstNodeComposer) {
125125
Compose(
126126
astNode = astNode,
127127
visitChildren = {
128-
renderChildren(astNode, astNodeComposer)
128+
renderChildren(it, astNodeComposer)
129129
}
130130
)
131131
}

0 commit comments

Comments
 (0)