Commit 6ebb9801 authored by Liang Ding's avatar Liang Ding

🎨 Fix #12666

parent f9ab031e
...@@ -189,7 +189,7 @@ public final class Markdowns { ...@@ -189,7 +189,7 @@ public final class Markdowns {
final Document doc = Jsoup.parse(html); final Document doc = Jsoup.parse(html);
doc.select("a").forEach(a -> { doc.select("a").forEach(a -> {
final String src = a.attr("href"); final String src = a.attr("href");
if (!StringUtils.startsWithIgnoreCase(src, Latkes.getServePath())) { if (!StringUtils.startsWithIgnoreCase(src, Latkes.getServePath()) && !StringUtils.startsWithIgnoreCase(src, "#")) {
a.attr("target", "_blank"); a.attr("target", "_blank");
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment