public static Single<CharSequence> load(Context context, String raw, Repository repository,
                              ImageGetter imageGetter, boolean encode) {
        RequestMarkdown markdown = RequestMarkdown.builder()
                .mode(RequestMarkdown.MODE_GFM)
                .text(raw)
                .context(repository != null ? String.format("%s/%s", repository.owner().login(), repository.name()) : null)
                .build();

        return ServiceGenerator.createService(context, MarkdownService.class)
                .renderMarkdown(markdown)
                .map(Response::body)
                .map(html -> encode ? HtmlUtils.encode(html, imageGetter) : html);
    }
Fetches html
@param context
@param raw
@param repository
@param imageGetter
@param encode
@return
app/src/main/java/com/github/pockethub/android/util/MarkdownLoader.java