public HttpImageGetter bind(final TextView view, final String html,
            final Object id) {
        if (TextUtils.isEmpty(html)) {
            return hide(view);
        }

        CharSequence encoded = fullHtmlCache.get(id);
        if (encoded != null) {
            return show(view, encoded);
        }

        encoded = rawHtmlCache.get(id);
        if (encoded == null) {
            if (!html.matches("<[a-z][\\s\\S]*>")) {
                RequestMarkdown requestMarkdown = RequestMarkdown.builder()
                        .text(html)
                        .build();

                ServiceGenerator.createService(context, MarkdownService.class)
                        .renderMarkdown(requestMarkdown)
                        .subscribeOn(Schedulers.io())
                        .observeOn(AndroidSchedulers.mainThread())
                        .subscribe(data -> continueBind(view, data.body(), id),
                                e -> continueBind(view, html, id));
            } else {
                return continueBind(view, html, id);
            }
        }
        return continueBind(view, html, id);
    }
Bind text view to HTML string

@param view
@param html
@param id
@return this image getter
app/src/main/java/com/github/pockethub/android/util/HttpImageGetter.java