MarkdownKit
MarkdownKit copied to clipboard
App crashes when running MarkdownKit version 1.6
After upgrading from version 1.5 to 1.6 via cocoapods, my app crashed when trying to parse markdown text. The error was thrown when this method in the MarkdownParser was called:
open func removeCustomElement(_ element: MarkdownElement) {
guard let index = customElements.index(where: { someElement -> Bool in
return element === someElement
}) else {
return
}
customElements.remove(at: index)
}
The error was because element
was not retained. Downgrading to 1.5 fixed the issue for me. Please let me know if I can provide any more helpful information.