
The styles that are denoted with an asterisk (*), when defined, completely override the default spans. The others, when defined, add spans before the default spans (if any) so that when reversed, take precedence. Example: ``` <ru.noties.markwon.view.MarkwonViewCompat android:layout_width="wrap_content" android:layout_height="wrap_content" app:mv_H2Style="?android:textAppearanceLarge" app:mv_markdown="## Opening hours" /> ``` In the above case, as ?android:textAppearanceLarge most likely is resolved into an actual style, the spans that are added by the Markwon- library (including heading line break) will no be added. ``` <ru.noties.markwon.view.MarkwonViewCompat android:layout_width="wrap_content" android:layout_height="wrap_content" app:mv_CodeSpanStyle="?textAppearanceSmall" app:mv_markdown="`private int count = 5`" /> ``` Conversely, defining a style for mv_CodeSpanStyle will still result in that background is added to the code text and it will by styled according to the resolved style of `android:textAppearanceSmall`. Supported style attributes: *mv_H1Style *mv_H2Style *mv_H3Style *mv_H4Style *mv_H5Style *mv_H6Style *mv_EmphasisStyle *mv_StrongEmphasisStyle mv_BlockQuoteStyle mv_CodeSpanStyle mv_MultilineCodeSpanStyle mv_OrderedListItemStyle mv_BulletListItemStyle mv_TaskListItemStyle mv_TableRowStyle mv_ParagraphStyle mv_LinkStyle
28 lines
552 B
Groovy
28 lines
552 B
Groovy
apply plugin: 'com.android.library'
|
|
|
|
android {
|
|
|
|
compileSdkVersion TARGET_SDK
|
|
buildToolsVersion BUILD_TOOLS
|
|
|
|
defaultConfig {
|
|
minSdkVersion MIN_SDK
|
|
targetSdkVersion TARGET_SDK
|
|
versionCode 1
|
|
versionName version
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
api project(':library')
|
|
implementation SUPPORT_APP_COMPAT
|
|
}
|
|
|
|
afterEvaluate {
|
|
generateReleaseBuildConfig.enabled = false
|
|
}
|
|
|
|
if (hasProperty('release')) {
|
|
apply from: 'https://raw.githubusercontent.com/noties/gradle-mvn-push/master/gradle-mvn-push-aar.gradle'
|
|
}
|