mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-20 13:17:08 +00:00
Markdown: workaround not escaping ordered lists
This commit is contained in:
parent
c152a5c3ca
commit
98352ec247
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue