mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 13:47:05 +02:00
Convert to/from markdown
This commit is contained in:
@@ -32,6 +32,7 @@ import java.util.List;
|
||||
|
||||
public class Markdown {
|
||||
static String toHtml(String markdown) {
|
||||
markdown = markdown.replace('\u00a0', ' ');
|
||||
List<Extension> extensions = Arrays.asList(
|
||||
TablesExtension.create(),
|
||||
StrikethroughExtension.create());
|
||||
@@ -45,7 +46,7 @@ public class Markdown {
|
||||
return r.render(d);
|
||||
}
|
||||
|
||||
static String fromHtml(Document d) {
|
||||
static String fromHtml(String html) {
|
||||
// TODO: HTML to Markdown
|
||||
throw new IllegalArgumentException("Not implemented");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user