mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 23:26:12 +02:00
Fixed non breaking spaces / markdown
This commit is contained in:
@@ -6726,7 +6726,9 @@ public class FragmentCompose extends FragmentBase {
|
||||
StrikethroughExtension.create()));
|
||||
Parser parser = Parser.builder(options).build();
|
||||
HtmlRenderer renderer = HtmlRenderer.builder(options).build();
|
||||
String html = renderer.render(parser.parse(spanned.toString()));
|
||||
|
||||
String text = spanned.toString().replace('\u00a0', ' ');
|
||||
String html = renderer.render(parser.parse(text));
|
||||
|
||||
Document doc = JsoupEx.parse(html);
|
||||
doc.body().attr("markdown", Boolean.toString(markdown));
|
||||
|
||||
Reference in New Issue
Block a user