FIX: Do not autocomplete categories or emojis in code blocks (PR #8433)

Emojis and category autocomplete show up often when writing code snippets, which makes it easy to insert unwanted text by mistake.

GitHub

You’ve signed the CLA, udan11. Thank you! This pull request is ready for review.

This is not a bad solution, but I do think getCodeBlocks or inCodeBlock needs to be tested

Very nice!