diff --git a/app/src/main/java/com/thirtydegreesray/openhub/ui/widget/webview/HtmlHelper.java b/app/src/main/java/com/thirtydegreesray/openhub/ui/widget/webview/HtmlHelper.java index 780a8ab2..87015909 100644 --- a/app/src/main/java/com/thirtydegreesray/openhub/ui/widget/webview/HtmlHelper.java +++ b/app/src/main/java/com/thirtydegreesray/openhub/ui/widget/webview/HtmlHelper.java @@ -147,7 +147,9 @@ private static String fixLinks(@NonNull String source, @NonNull String baseUrl) Matcher linksMatcher = LINK_PATTERN.matcher(source); while (linksMatcher.find()) { String oriUrl = linksMatcher.group(1); - if (oriUrl.contains("http://") || oriUrl.contains("https://")) { + if (oriUrl.contains("http://") || oriUrl.contains("https://") + || oriUrl.startsWith("#") //filter markdown inner link + ) { continue; }