mirror of https://github.com/M66B/FairEmail.git
Markdown: workaround not escaping ordered lists
This commit is contained in:
parent
c152a5c3ca
commit
98352ec247
|
@ -63,6 +63,8 @@ public class Markdown {
|
|||
String markdown = FlexmarkHtmlConverter.builder(options)
|
||||
.build()
|
||||
.convert(html);
|
||||
return markdown.replaceAll("\n\n\\s+<!-- -->\n", "");
|
||||
return markdown
|
||||
.replaceAll("(?m)^( *)(\\d+)\\.( +)", "$1$2\\\\.$3")
|
||||
.replaceAll("\n\n\\s+<!-- -->\n", "");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue