Added Markwon html plugin

pull/199/head
M66B 3 years ago
parent 4ecb324b93
commit 4282330646

@ -432,6 +432,7 @@ dependencies {
// https://github.com/noties/Markwon
// https://mvnrepository.com/artifact/io.noties.markwon/core
implementation "io.noties.markwon:core:$markwon_version"
implementation "io.noties.markwon:html:$markwon_version"
// // https://github.com/QuadFlask/colorpicker
implementation "com.github.QuadFlask:colorpicker:$colorpicker_version"

@ -35,6 +35,7 @@ import androidx.annotation.Nullable;
import java.io.InputStream;
import io.noties.markwon.Markwon;
import io.noties.markwon.html.HtmlPlugin;
public class FragmentDialogMarkdown extends FragmentDialogBase {
@NonNull
@ -84,7 +85,9 @@ public class FragmentDialogMarkdown extends FragmentDialogBase {
"https://github.com/M66B/FairEmail/blob/master/FAQ.md",
"https://github.com/M66B/FairEmail/blob/master/docs/FAQ-" + locale + ".md");
Markwon markwon = Markwon.create(context);
Markwon markwon = Markwon.builder(context)
.usePlugin(HtmlPlugin.create())
.build();
return markwon.toMarkdown(markdown);
}

Loading…
Cancel
Save