if (config.richType != RichType.MARKDOWN) {
analyzeImages(source);
} else {
imageHolderMap = new HashMap<>();
}
<BUG>Spanned spanned = spannedParser.parse(source, this);
</BUG>
SpannableStringBuilder spannableStringBuilder;
if (spanned instanceof SpannableStringBuilder) {
spannableStringBuilder = (SpannableStringBuilder) spanned;

if (config.richType != RichType.MARKDOWN) {
analyzeImages(source);
} else {
imageHolderMap = new HashMap<>();
}
Spanned spanned = spannedParser.parse(source, config.noImage ? null : this);
SpannableStringBuilder spannableStringBuilder;
if (spanned instanceof SpannableStringBuilder) {
spannableStringBuilder = (SpannableStringBuilder) spanned;
