Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 1.27 KB

File metadata and controls

43 lines (34 loc) · 1.27 KB

SpannableConfiguration

In order to render correctly markdown, this library needs a SpannableConfiguration instance. It has 2 factory methods:

// creates default instance
SpannableConfiguration.create(Context);

// returns configurable Builder
SpannableConfiguration.builder(Context);

SpannableConfiguration.Builder class has these configurable properties (which are described in more detail further):

public Builder theme(SpannableTheme theme);
public Builder asyncDrawableLoader(AsyncDrawable.Loader asyncDrawableLoader);
public Builder syntaxHighlight(SyntaxHighlight syntaxHighlight);
public Builder linkResolver(LinkSpan.Resolver linkResolver);
public Builder urlProcessor(UrlProcessor urlProcessor);
public Builder htmlParser(SpannableHtmlParser htmlParser);

// and obviously:
public SpannableConfiguration build();

Contents