Skip to content

Commit

Permalink
fix: empty html message
Browse files Browse the repository at this point in the history
  • Loading branch information
Garzas committed Apr 26, 2024
1 parent 790f8b2 commit 473ab59
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ fun <T : Node> T.toContent(isParentDocument: Boolean = false): MarkdownNode {

is FencedCodeBlock -> MarkdownNode.Block.FencedCode(isParentDocument, literal)
is IndentedCodeBlock -> MarkdownNode.Block.IntendedCode(isParentDocument, literal)
is HtmlBlock -> MarkdownNode.Inline.Text(this.literal) // TODO unsupported html
is HtmlBlock -> MarkdownNode.Block.Paragraph(
children = listOf(MarkdownNode.Inline.Text(this.literal)), isParentDocument
) // TODO unsupported html

is TableBlock -> MarkdownNode.Block.Table(convertChildren<MarkdownNode.Block.TableContent>(), isParentDocument)
is TableHead -> MarkdownNode.Block.TableContent.Head(convertChildren<MarkdownNode.TableRow>())
Expand Down

0 comments on commit 473ab59

Please sign in to comment.