MarkdownKit icon indicating copy to clipboard operation
MarkdownKit copied to clipboard

App crashes when running MarkdownKit version 1.6

Open neilpoulin opened this issue 5 years ago • 0 comments

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.

neilpoulin avatar Feb 05 '20 08:02 neilpoulin