Open tylerjames opened 6 years ago
have you found a solution for this?
Unfortunately not. I ended up switching over to this: https://github.com/raspu/Highlightr
It's been pretty decent so far, but honestly it's a somewhat small part of my app so I really haven't stress tested it much. The only reason I found out about the previous bug was that one of my users pasted in a good sized chunk of text.
Good luck
I'm looking for a markdown highlighter on-the-fly, similar to the Apollo iOS app or iA Writer, which highlights markdown syntax as the user types in. Marklight seems to be exactly what I need, but it seems to have small issues as well.
Does Highlightr supports markdown?
Marklight is nice because it’s written in Swift. However that Highlightr library uses a JavaScript engine for syntax highlighting. It should work for your purposes though and it comes with many themes On Tue, May 15, 2018 at 8:16 AM Ivan-Cantarino notifications@github.com wrote:
I'm looking for a markdown highlighter on-the-fly, similar to the Apollo iOS app or iA Writer, which highlights markdown syntax as the user types in. Marklight seems to be exactly what I need, but it seems to have small issues as well.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/macteo/Marklight/issues/20#issuecomment-389145347, or mute the thread https://github.com/notifications/unsubscribe-auth/ABFfjTpGWg8GM7R1cZRmskq6Fl7o43gkks5tyscCgaJpZM4QT0go .
I'm testing Highlightr right now and in their Sample project it supports markdown
syntax highlight on the fly, so it should solve my issues.
Thanks for pointing it out ;)
I can reliably crash my app with the following error if I try to edit a textview containing >4096 characters:
It seems to have a problem processing longer text, the -4097 is suspicious, it makes it look like there is an overflow or something.
In order to achieve this I copied a few paragraphs of text, pasted them into Sublime until I got to 4096 or so, and then pasted them into my text view in the simulator. After pasting things will work fine, but then after typing some more characters or possibly backspacing or dismissing the keyboard the crash will happen. It seems to occur during the processEditing() method