Unverified Commit d6c0a01d authored by Lucio Maciel's avatar Lucio Maciel Committed by GitHub

Merge pull request #1540 from RocketChat/fix/cast-exception-on-md-parsing

[FIX] Fix cast exception when parsing an OrderedList object
parents 8dd30e58 721d0d2c
...@@ -159,7 +159,7 @@ class MessageParser @Inject constructor( ...@@ -159,7 +159,7 @@ class MessageParser @Inject constructor(
if (node is ListItem) { if (node is ListItem) {
newLine() newLine()
builder.append("$number$delimiter ") builder.append("$number$delimiter ")
super.visit(node.firstChild as Paragraph) super.visitChildren(node.firstChild)
newLine() newLine()
} }
number++ number++
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment