* Please note that currently only `setSpan` and `removeSpan` actions will be recorded (and thus dispatched).
- * make sure you use only these methods in your {@link EditSpanHandler}, or implement the required
- * functionality in some other way.
+ * Make sure you use only these methods in your {@link EditSpanHandler}, or implement the required
+ * functionality some other way.
*
* @param editable to process and pre-render
* @param preRenderListener listener to be notified when pre-render result will be ready
@@ -88,40 +127,40 @@ public abstract class MarkwonEditor {
*/
public abstract void preRender(@NonNull Editable editable, @NonNull PreRenderResultListener preRenderListener);
+
public static class Builder {
private final Markwon markwon;
- private final EditSpanHandlerBuilder editSpanHandlerBuilder = new EditSpanHandlerBuilder();
private Class> punctuationSpanType;
- private Map
- * The span will be exposed via {@link SpanStore} in your custom {@link EditSpanHandler}.
+ * The span will be exposed via {@link EditSpanStore} in your custom {@link EditSpanHandler}.
* If you do not use a custom {@link EditSpanHandler} you do not need to specify any span here.
*
* @param type of a span to include
@@ -130,31 +169,50 @@ public abstract class MarkwonEditor {
@NonNull
public