Refactor BitmapFontCache color markup

Extract TextMarkup
fixing tint and #2433
Merge pull request #2677 from alex-dorokhov/bfc-markdown-fixes

Refactor BitmapFontCache color markup and fix #2433