private void step_2() {

        final String markdown = "# Heading 1\n\n## Heading 2\n\n**other** content [here](#)";

        final Markwon markwon = Markwon.builder(this)
                .usePlugin(new AbstractMarkwonPlugin() {
                    @Override
                    public void configureVisitor(@NonNull MarkwonVisitor.Builder builder) {

                        // for example to disable rendering of heading:
                        // try commenting this out to see that otherwise headings will be rendered
                        builder.on(Heading.class, null);

                        // same method can be used to override existing visitor by specifying
                        // a new NodeVisitor instance
                    }
                })
                .build();

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

        final String markdown = "# Heading 1\n\n## Heading 2\n\n**other** content [here](#)";

        final Markwon markwon = Markwon.builder(this)
                .usePlugin(new AbstractMarkwonPlugin() {
                    @Override
                    public void configureVisitor(@NonNull MarkwonVisitor.Builder builder) {

                        
                        
                        builder.on(Heading.class, null);

                        
                        
                    }
                })
                .build();

        markwon.setMarkdown(textView, markdown);
    }
private void step_2 ( ) { final String markdown = "# Heading 1\n\n## Heading 2\n\n**other** content [here](#)" ; final Markwon markwon = Markwon . builder ( this ) . usePlugin ( new AbstractMarkwonPlugin ( ) { @ Override public void configureVisitor ( @ NonNull MarkwonVisitor . Builder builder ) { // for example to disable rendering of heading: // try commenting this out to see that otherwise headings will be rendered builder . on ( Heading . class , null ) ; // same method can be used to override existing visitor by specifying // a new NodeVisitor instance } } ) . build ( ) ; markwon . setMarkdown ( textView , markdown ) ; }
To disable some nodes from rendering another custom plugin can be used
To disable some nodes from rendering another custom plugin can be used