mirror of
https://github.com/Fox2Code/FoxMagiskModuleManager
synced 2024-10-30 15:20:15 +00:00
Don't linkify links that might affect Markdown.
This commit is contained in:
parent
73201e467b
commit
01292ac938
@ -22,7 +22,9 @@ public class MarkdownUrlLinker {
|
||||
'\n' == url.charAt(index - 1) ||
|
||||
' ' == url.charAt(index - 1)) {
|
||||
int endDomain = url.indexOf('/', index + 9);
|
||||
if (endDomain != -1 && endDomain < end) {
|
||||
char endCh = url.charAt(end - 1);
|
||||
if (endDomain != -1 && endDomain < end &&
|
||||
endCh != '>' && endCh != ')' && endCh != ']') {
|
||||
linkifyTasks.add(new LinkifyTask(index, end));
|
||||
extra += (end - index) + 4;
|
||||
if (BuildConfig.DEBUG) {
|
||||
|
Loading…
Reference in New Issue
Block a user