Skip to content

Commit

Permalink
⬆️ 优化编辑器 #34
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Nov 23, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 031e69e commit a79c06f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/b3log/symphony/util/Markdowns.java
Original file line number Diff line number Diff line change
@@ -219,7 +219,7 @@ public static String clean(final String content, final String baseURI) {
}
}

String ret = doc.html();
String ret = doc.body().html();
ret = ret.replaceAll("(</?br\\s*/?>\\s*)+", "<br>"); // patch for Jsoup issue
return ret;
}

0 comments on commit a79c06f

Please sign in to comment.