sample/src/main/java/ru/noties/markwon/sample/core/CoreActivity.java
private void step_3() {

        final String markdown = "*Toast* __here__!\n\n> And a quote!";

        final Markwon markwon = Markwon.create(this);

        final Spanned spanned = markwon.toMarkdown(markdown);

        Toast.makeText(this, spanned, Toast.LENGTH_LONG).show();
    }
private void step_3() {

        final String markdown = "*Toast* __here__!\n\n> And a quote!";

        final Markwon markwon = Markwon.create(this);

        final Spanned spanned = markwon.toMarkdown(markdown);

        Toast.makeText(this, spanned, Toast.LENGTH_LONG).show();
    }
private void step_3 ( ) { final String markdown = "*Toast* __here__!\n\n> And a quote!" ; final Markwon markwon = Markwon . create ( this ) ; final Spanned spanned = markwon . toMarkdown ( markdown ) ; Toast . makeText ( this , spanned , Toast . LENGTH_LONG ) . show ( ) ; }
To apply markdown in a different context (other than textView) use {@link Markwon#toMarkdown(String)}
<p>
Please note that some features won't work unless they are used in a TextView context. For example
there might be misplaced ordered lists (ordered list must have TextPaint in order to properly measure
its number). But also images and tables (they belong to independent modules now). Images and tables
are using some work-arounds in order to be displayed in relatively limited context without proper way
of invalidation. But if a Toast for example is created with a custom view
({@code new Toast(this).setView(...) }) and has access to a TextView everything <em>should</em> work.
To apply markdown in a different context ( other than textView ) use {