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 TypeMethodDescriptionvoidbeforeSetText(TextView textView, Spanned markdown) This method will be called before callingTextView#setText.voidconfigureConfig(MarkflowConfig.Builder builder) Method to configure span factories and miscellaneous used for rendering of Markdown.voidconfigureVisitor(MarkflowVisitor.Builder builder) Method to configure node visitors used for rendering of Markdown.static CorePlugincreate()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:MarkflowPluginMethod to configure span factories and miscellaneous used for rendering of Markdown.- Specified by:
configureConfigin interfaceMarkflowPlugin
-
configureVisitor
Description copied from interface:MarkflowPluginMethod to configure node visitors used for rendering of Markdown.- Specified by:
configureVisitorin interfaceMarkflowPlugin
-
beforeSetText
Description copied from interface:MarkflowPluginThis 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:
beforeSetTextin interfaceMarkflowPlugin- Parameters:
textView- the TextView to whichmarkdownwill be appliedmarkdown- the rendered Markdown
-