My first attempt was only to add angle brackets to the auto bracket code but
that caused surprising odd behavior in the normal edit flow, so it needs to be
done in a special way which obviously cause no trouble.
Once done this way, I had the idea to add much more char to this special
handling. Some of these may handy when write Markdown, some perhaps elsewhere.
- Improve readability of auto bracket code
- Harmonize QChar param as const value, not reference
- Remove unneeded code
- Avoid chars[0]