mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-05 08:33:37 +02:00
Updated markdown FAQ links
This commit is contained in:
@@ -85,16 +85,15 @@ public class FragmentDialogMarkdown extends FragmentDialogBase {
|
||||
String markdown;
|
||||
String asset = Helper.getLocalizedAsset(context, name);
|
||||
try (InputStream is = context.getAssets().open(asset)) {
|
||||
byte[] buffer = new byte[is.available()];
|
||||
is.read(buffer);
|
||||
markdown = new String(buffer);
|
||||
markdown = Helper.readStream(is);
|
||||
}
|
||||
|
||||
String locale = Helper.getFAQLocale();
|
||||
if (locale != null)
|
||||
markdown = markdown.replace(
|
||||
"https://github.com/M66B/FairEmail/blob/master/FAQ.md",
|
||||
"https://github.com/M66B/FairEmail/blob/master/docs/FAQ-" + locale + ".md");
|
||||
markdown = markdown
|
||||
.replace("/FAQ.md#FAQ", "/FAQ.md#faq")
|
||||
.replace("/FAQ.md#user-content-faq", "/FAQ.md#faq")
|
||||
.replace(
|
||||
"https://github.com/M66B/FairEmail/blob/master/FAQ.md",
|
||||
"https://m66b.github.io/FairEmail/");
|
||||
|
||||
Markwon markwon = Markwon.builder(context)
|
||||
.usePlugin(HtmlPlugin.create())
|
||||
|
||||
Reference in New Issue
Block a user