BoostIO / BoostNote-Legacy

This repository is outdated and new Boost Note app is available! We've launched a new Boost Note app which supports real-time collaborative writing. https://github.com/BoostIO/BoostNote-App
Other
17.07k stars 1.47k forks source link

Text highlighting not working properly #3275

Open federicochiesa opened 4 years ago

federicochiesa commented 4 years ago

Current behavior

When I type, the text highlighting is wrong, as it doesn't take into account the fact that I'm typing math. image link

Expected behavior

It shouldn't highlight HTML syntax just because I type '<' in my note.

Steps to reproduce

  1. Open a note
  2. Type in '<'
  3. Highlighting stops working properly

Environment

federicochiesa commented 4 years ago

This is another example, but this time it seems like it doesn't understand the end of the code block and keeps highlighting text as if it was code. If I hit return anywhere on the sentence below the code block the highlighting goes back to normal until I restart Boostnote.

Flexo013 commented 4 years ago

Could you provide a shorter example display the same issue? I can't quite find what's wrong in the image provided.

For me highlighting seems line when adding <: image

federicochiesa commented 4 years ago

The problem started here: image

Maybe it's because it's in math mode? I can provide the cson file, it's on line 239.