bmoliveira / MarkdownKit

A simple and customizable Markdown Parser for Swift
MIT License
783 stars 136 forks source link

App Crash on MarkdownLink.formatText() #76

Open lillybeans opened 4 years ago

lillybeans commented 4 years ago

Our app relies on MarkdownKit for parsing and formatting articles, some of which containing links. Through crash reports, we learned that some of our users are experiencing crashes in MarkdownLink's formatText() method. We have been unable to reproduce this error.

Details of the stack trace of our crash are shown below:

image

Any insights as to why this is occurring, or how we should go about troubleshooting this crash?

Thank you for your help.

@bmoliveira

linsyorozuya commented 3 years ago

Maybe your range has changed. I met the same problem when I changed stinrg.

gaebel commented 3 years ago

Seems related to #66. Do your links contain parantheses in the text or url?

guillaumealgis commented 3 years ago

Stack trace look similar to https://github.com/bmoliveira/MarkdownKit/pull/94