Improved parsing of source BBCodes