private TextView textView;
public Markdown2SpannedParser(TextView textView) {
this.textView = textView;
}
@Override
<BUG>public Spanned parse(String source, final ImageGetterWrapper imageGetter) {
return MarkDown.fromMarkdown(source, new Html.ImageGetter() {</BUG>
@Override
public Drawable getDrawable(String source) {
return imageGetter.getDrawable(source);

private TextView textView;
public Markdown2SpannedParser(TextView textView) {
this.textView = textView;
}
@Override
public Spanned parse(String source, final ImageGetterWrapper imageGetter) {
if (imageGetter == null) {
return MarkDown.fromMarkdown(source, null, textView);
}
return MarkDown.fromMarkdown(source, new Html.ImageGetter() {
@Override
public Drawable getDrawable(String source) {
return imageGetter.getDrawable(source);
