mirror of https://github.com/M66B/FairEmail.git
Fixed non breaking spaces / markdown
This commit is contained in:
parent
4dc5e6ab7d
commit
4d16285f8c
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue