Skip to content

Commit 7537e50

Browse files
committed
fix(ios,android): skip delimiter matching inside link URL parentheses in InputRemend
1 parent eb1ef70 commit 7537e50

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

android/src/main/java/com/swmansion/enriched/markdown/input/formatting/InputRemend.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ object InputRemend {
4848
continue
4949
}
5050

51+
if (inLinkParen) {
52+
i++
53+
continue
54+
}
55+
5156
var matched = false
5257
for (pair in DELIMITER_PAIRS) {
5358
val openLen = pair.open.length

ios/input/ENRMInputRemend.mm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@
5757
continue;
5858
}
5959

60+
if (inLinkParen) {
61+
i++;
62+
continue;
63+
}
64+
6065
BOOL matched = NO;
6166
for (NSUInteger p = 0; p < kDelimiterPairCount; p++) {
6267
ENRMDelimiterPair pair = kDelimiterPairs[p];

0 commit comments

Comments
 (0)