When parsing the attached file a StringIndexOutOfBoundsException is thrown.
flexmark_sioobe.zip
Kotlin code to reproduce assuming the string x contains the file contents:
Parser.builder().extensions(listOf(AbbreviationExtension.create())).build().parse(x)
Should the input be invalid Markdown, an IllegalArgumentException is more appropriate.
When parsing the attached file a
StringIndexOutOfBoundsExceptionis thrown.flexmark_sioobe.zip
Kotlin code to reproduce assuming the string
xcontains the file contents:Parser.builder().extensions(listOf(AbbreviationExtension.create())).build().parse(x)Should the input be invalid Markdown, an
IllegalArgumentExceptionis more appropriate.