sample/src/main/java/ru/noties/markwon/sample/customextension/CustomExtensionActivity.java
@Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_text_view);

        final TextView textView = findViewById(R.id.text_view);

        // note that we haven't registered CorePlugin, as it's the only one that can be
        // implicitly deducted and added automatically. All other plugins require explicit
        // `usePlugin` call
        final Markwon markwon = Markwon.builder(this)
                // try commenting out this line to see runtime dependency resolution
                .usePlugin(ImagesPlugin.create(this))
                .usePlugin(IconPlugin.create(IconSpanProvider.create(this, 0)))
                .build();

        markwon.setMarkdown(textView, getString(R.string.input));
    }
@Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_text_view);

        final TextView textView = findViewById(R.id.text_view);

        // note that we haven't registered CorePlugin, as it's the only one that can be
        // implicitly deducted and added automatically. All other plugins require explicit
        // `usePlugin` call
        final Markwon markwon = Markwon.builder(this)
                // try commenting out this line to see runtime dependency resolution
                .usePlugin(ImagesPlugin.create(this))
                .usePlugin(IconPlugin.create(IconSpanProvider.create(this, 0)))
                .build();

        markwon.setMarkdown(textView, getString(R.string.input));
    }
@ Override public void onCreate ( @ Nullable Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( R . layout . activity_text_view ) ; final TextView textView = findViewById ( R . id . text_view ) ; // note that we haven't registered CorePlugin, as it's the only one that can be // implicitly deducted and added automatically. All other plugins require explicit // `usePlugin` call final Markwon markwon = Markwon . builder ( this ) // try commenting out this line to see runtime dependency resolution . usePlugin ( ImagesPlugin . create ( this ) ) . usePlugin ( IconPlugin . create ( IconSpanProvider . create ( this , 0 ) ) ) . build ( ) ; markwon . setMarkdown ( textView , getString ( R . string . input ) ) ; }
used, this is fully functional sample on all SDK levels
used this is fully functional sample on all SDK levels