mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-22 06:01:12 +00:00
Fixed comments on convert to markdown
This commit is contained in:
parent
4d16285f8c
commit
050b2a1d3d
1 changed files with 5 additions and 1 deletions
|
@ -7701,7 +7701,11 @@ public class FragmentCompose extends FragmentBase {
|
|||
Spanned spannedBody;
|
||||
if (markdown) {
|
||||
MutableDataSet options = new MutableDataSet();
|
||||
spannedBody = new SpannableStringBuilder(FlexmarkHtmlConverter.builder(options).build().convert(doc.html()));
|
||||
// HtmlConverterCoreNodeRenderer
|
||||
// options.set(FlexmarkHtmlConverter.LISTS_END_ON_DOUBLE_BLANK, false);
|
||||
String text = FlexmarkHtmlConverter.builder(options).build().convert(doc.html());
|
||||
text = text.replaceAll("\n.*<!-- -->\n\n", "");
|
||||
spannedBody = new SpannableStringBuilder(text);
|
||||
} else {
|
||||
HtmlHelper.clearAnnotations(doc); // Legacy left-overs
|
||||
|
||||
|
|
Loading…
Reference in a new issue