mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 06:08:31 +02:00
Markdown: workaround not escaping ordered lists
This commit is contained in:
@@ -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", "");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user