private void step_4() {

        final String markdown = "[a link without scheme](github.com)";

        final Markwon markwon = Markwon.builder(this)
                // please note that Markwon does not handle MovementMethod,
                // so if your markdown has links your should apply MovementMethod manually
                // or use MovementMethodPlugin (which uses system LinkMovementMethod by default)
                .usePlugin(MovementMethodPlugin.create())
                .usePlugin(new AbstractMarkwonPlugin() {
                    @Override
                    public void configureConfiguration(@NonNull MarkwonConfiguration.Builder builder) {
                        // for example if specified destination has no scheme info, we will
                        // _assume_ that it's network request and append HTTPS scheme
                        builder.urlProcessor(destination -> {
                            final Uri uri = Uri.parse(destination);
                            if (TextUtils.isEmpty(uri.getScheme())) {
                                return "https://" + destination;
                            }
                            return destination;
                        });
                    }
                })
                .build();

        markwon.setMarkdown(textView, markdown);
    }
private void step_4() {

        final String markdown = "[a link without scheme](github.com)";

        final Markwon markwon = Markwon.builder(this)
                
                
                
                .usePlugin(MovementMethodPlugin.create())
                .usePlugin(new AbstractMarkwonPlugin() {
                    @Override
                    public void configureConfiguration(@NonNull MarkwonConfiguration.Builder builder) {
                        
                        
                        builder.urlProcessor(destination -> {
                            final Uri uri = Uri.parse(destination);
                            if (TextUtils.isEmpty(uri.getScheme())) {
                                return "https:
                            }
                            return destination;
                        });
                    }
                })
                .build();

        markwon.setMarkdown(textView, markdown);
    }
private void step_4 ( ) { final String markdown = "[a link without scheme](github.com)" ; final Markwon markwon = Markwon . builder ( this ) // please note that Markwon does not handle MovementMethod, // so if your markdown has links your should apply MovementMethod manually // or use MovementMethodPlugin (which uses system LinkMovementMethod by default) . usePlugin ( MovementMethodPlugin . create ( ) ) . usePlugin ( new AbstractMarkwonPlugin ( ) { @ Override public void configureConfiguration ( @ NonNull MarkwonConfiguration . Builder builder ) { // for example if specified destination has no scheme info, we will // _assume_ that it's network request and append HTTPS scheme builder . urlProcessor ( destination -> { final Uri uri = Uri . parse ( destination ) ; if ( TextUtils . isEmpty ( uri . getScheme ( ) ) ) { return "https://" + destination ; } return destination ; } ) ; } } ) . build ( ) ; markwon . setMarkdown ( textView , markdown ) ; }
MarkwonConfiguration contains these <em>utilities</em>:
<ul>
<li>SyntaxHighlight</li>
<li>LinkSpan.Resolver</li>
<li>UrlProcessor</li>
<li>ImageSizeResolver</li>
</ul>
<p>
In order to customize them a custom plugin should be used
MarkwonConfiguration contains these <em > utilities< / em > : <ul > <li > SyntaxHighlight< / li > <li > LinkSpan . Resolver< / li > <li > UrlProcessor< / li > <li > ImageSizeResolver< / li > < / ul > <p > In order to customize them a custom plugin should be used