Skip to content

Conversation

WuYuanhun
Copy link

Fix Latex auto complete bug ( Issue #57)
Successfully Tested Locally.

Fix Issue lukakerr#57 by add '$' in isWhiteSpace check list.
@lukakerr
Copy link
Owner

Thanks for this. Unfortunately the fix is going to be a little harder than just changing this one line. Also, it doesn’t make sense for isWhitespace to return true when there is a $ sign, since a $ is not whitespace.

The fix would most likely involve looking and the current line, and checking whether the cursor is within two $ signs. If so, this means the user is inside an inline math block, and we then want autocomplete to succeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants