Package icyllis.modernui.markflow.core
Class CorePlugin
java.lang.Object
icyllis.modernui.markflow.core.CorePlugin
- All Implemented Interfaces:
MarkflowPlugin
-
Nested Class Summary
Nested classes/interfaces inherited from interface icyllis.modernui.markflow.MarkflowPlugin
MarkflowPlugin.Registry
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
beforeSetText
(TextView textView, Spanned markdown) This method will be called before callingTextView#setText
.void
configureConfig
(MarkflowConfig.Builder builder) Method to configure span factories and miscellaneous used for rendering of Markdown.void
configureVisitor
(MarkflowVisitor.Builder builder) Method to configure node visitors used for rendering of Markdown.static CorePlugin
create()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface icyllis.modernui.markflow.MarkflowPlugin
afterRender, afterSetText, beforeRender, configure, configureParser, configureTheme, processMarkdown
-
Field Details
-
CORE_ORDERED_LIST
- See Also:
-
CORE_ORDERED_LIST_ITEM_NUMBER
- See Also:
-
-
Method Details
-
create
-
configureConfig
Description copied from interface:MarkflowPlugin
Method to configure span factories and miscellaneous used for rendering of Markdown.- Specified by:
configureConfig
in interfaceMarkflowPlugin
-
configureVisitor
Description copied from interface:MarkflowPlugin
Method to configure node visitors used for rendering of Markdown.- Specified by:
configureVisitor
in interfaceMarkflowPlugin
-
beforeSetText
Description copied from interface:MarkflowPlugin
This method will be called before callingTextView#setText
.It can be useful to prepare a TextView for rendered Markdown.
This method will be called from UI thread.
- Specified by:
beforeSetText
in interfaceMarkflowPlugin
- Parameters:
textView
- the TextView to whichmarkdown
will be appliedmarkdown
- the rendered Markdown
-