Convert to/from markdown

This commit is contained in:
M66B
2024-02-20 10:56:33 +01:00
parent cc576a4c71
commit 95da049eb2
2 changed files with 15 additions and 11 deletions

View File

@@ -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");
}