soffes / MarkdownKit

Fancy Markdown input with TextKit powered by CommonMark
MIT License
45 stars 6 forks source link

Guard assertions #3

Closed soffes closed 4 years ago

soffes commented 4 years ago

It seems like sometimes these get triggered in production. Maybe we should guard and return instead of crashing. The user will likely be left in an inconsistent state but it will likely recover as they keep typing.

taki-on commented 4 years ago

This is what I thought, too! Thank you for this!