Skip to content

Commit df3a814

Browse files
committed
Merge remote-tracking branch 'origin/develop' into publish-to-s3
2 parents 46da719 + 3c76c2d commit df3a814

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

app/src/main/kotlin/org/wordpress/aztec/demo/MainActivity.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ open class MainActivity : AppCompatActivity(),
178178
private val VIDEOPRESS = "[wpvideo OcobLTqC]"
179179
private val VIDEOPRESS_2 = "[wpvideo OcobLTqC w=640 h=400 autoplay=true html5only=true3]"
180180
private val QUOTE_RTL = "<blockquote>לְצַטֵט<br>same quote but LTR</blockquote>"
181+
private val MARK = "<p>Donec ipsum dolor, <mark style=\"color:#ff0000\">tempor sed</mark> bibendum <mark style=\"color:#1100ff\">vita</mark>.</p>"
181182

182183
private val EXAMPLE =
183184
IMG +
@@ -211,7 +212,8 @@ open class MainActivity : AppCompatActivity(),
211212
VIDEOPRESS_2 +
212213
AUDIO +
213214
GUTENBERG_CODE_BLOCK +
214-
QUOTE_RTL
215+
QUOTE_RTL +
216+
MARK
215217

216218
private val isRunningTest: Boolean by lazy {
217219
try {

aztec/src/main/kotlin/org/wordpress/aztec/AztecTagHandler.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,11 @@ class AztecTagHandler(val context: Context, val plugins: List<IAztecPlugin> = Ar
144144
handleElement(output, opening, preformatSpan)
145145
return true
146146
}
147+
MARK -> {
148+
val span = createHiddenHtmlSpan(tag, AztecAttributes(attributes), nestingLevel, alignmentRendering)
149+
handleElement(output, opening, span)
150+
return true
151+
}
147152
else -> {
148153
if (tag.length == 2 && Character.toLowerCase(tag[0]) == 'h' && tag[1] >= '1' && tag[1] <= '6') {
149154
handleElement(output, opening, createHeadingSpan(nestingLevel, tag, AztecAttributes(attributes), alignmentRendering))
@@ -245,5 +250,6 @@ class AztecTagHandler(val context: Context, val plugins: List<IAztecPlugin> = Ar
245250
private val VIDEO = "video"
246251
private val AUDIO = "audio"
247252
private val LINE = "hr"
253+
private val MARK = "mark"
248254
}
249255
}

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ ext {
5555
jSoupVersion = '1.11.3'
5656
wordpressUtilsVersion = '1.21'
5757
espressoVersion = '3.0.1'
58-
commonTargetSdkVersion = 29
58+
commonTargetSdkVersion = 30
5959

6060
aztecProjectDependency = project.hasProperty("aztecVersion") ? "org.wordpress:aztec:${project.getProperty("aztecVersion")}" : project(":aztec")
6161
}

0 commit comments

Comments
 (0)