Minor bug fixes

- Removed marking of first word when closing.
- Blocked ::before, ::after.
- Other minor fixes.