Markingbird icon indicating copy to clipboard operation
Markingbird copied to clipboard

Exception thrown in MarkdownRegex.init

Open bwake2012 opened this issue 8 years ago • 2 comments

pattern = "://www.rafaelsabatini.com/)" options = 0

The original text = "Rafael Sabatini was born April 29, 1875 in what was then the small town of Jesi, Italy, which is near the Adriatic and the seaport of Ancona. He passed away on February 13, 1950 and is buried in Adelboden, Switzerland. A popular author during his lifetime, he produced 31 novels, 8 short novel/short story collections, 6 nonfiction books, numerous short stories, and a play. (Source: http://www.rafaelsabatini.com/)"

bwake2012 avatar Jun 10 '16 16:06 bwake2012

It did not throw the exception once I turned autoHyperlink off.

var options = MarkdownOptions()
options.autoHyperlink = false
options.autoNewlines = true
options.emptyElementSuffix = ">"
options.encodeProblemUrlCharacters = true
options.linkEmails = false
options.strictBoldItalic = true

cacheMarkdown = Markdown( options: options )

bwake2012 avatar Jun 10 '16 17:06 bwake2012

Sorry that I haven't taken any action on this myself, but I really don't want to debug the regular expressions I copied from MarkdownSharp. I'm hoping someone else will be interested in doing this.

kristopherjohnson avatar Jun 17 '16 18:06 kristopherjohnson