Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App crashes when running MarkdownKit version 1.6 #63

Open
neilpoulin opened this issue Feb 5, 2020 · 0 comments
Open

App crashes when running MarkdownKit version 1.6 #63

neilpoulin opened this issue Feb 5, 2020 · 0 comments

Comments

@neilpoulin
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant