Removed Markdown

There are no maintained libraries to reliably convert HTML to Markdown
pull/214/head
M66B 10 months ago
parent 050b2a1d3d
commit 6bf88d29f0

@ -55,4 +55,3 @@ FairEmail uses parts or all of:
* [AG Filters Registry](https://github.com/AdguardTeam/FiltersRegistry). [GNU Lesser General Public License Version 3](https://github.com/AdguardTeam/FiltersRegistry/blob/master/LICENSE).
* [Certificate transparency for Android and JVM](https://github.com/appmattus/certificatetransparency). Copyright 2023 Appmattus Limited. [Apache License 2.0](https://github.com/appmattus/certificatetransparency/blob/main/LICENSE.md).
* [ZXing](https://github.com/zxing/zxing). Copyright (C) 2014 ZXing authors. [Apache License 2.0](https://github.com/zxing/zxing/blob/master/LICENSE).
* [https://github.com/vsch/flexmark-java](flexmark-java). Copyright (c) 2015-2016, Atlassian Pty Ltd. Copyright (c) 2016-2018, Vladimir Schneider. [BSD-2-Clause license](https://github.com/vsch/flexmark-java/blob/master/LICENSE.txt).

@ -13,7 +13,6 @@ For support you can use [the contact form](https://contact.faircode.eu/?product=
* Added importing of mbox files into POP3 folders
* Added long press links to open confirmation dialog box
* Added long press archive / bottom action bar to move conversations
* Added experimental markdown support to the message editor
* Small improvements and minor bug fixes
* Updated [translations](https://crowdin.com/project/open-source-email)

@ -4025,12 +4025,6 @@ The subject of a received message can be edited, also on the email server, via t
<br />
*Markdown (1.2160+)*
The message editor can be switched to markdown mode via the three-dots overflow menu.
<br />
<a name="faq126"></a>
**(126) Can message previews be sent to my smartwatch?**

@ -775,8 +775,8 @@ dependencies {
// https://github.com/vsch/flexmark-java
// https://mvnrepository.com/artifact/com.vladsch.flexmark/flexmark
//implementation "com.vladsch.flexmark:flexmark:$flexmark_version"
implementation "com.vladsch.flexmark:flexmark-ext-tables:$flexmark_version"
implementation "com.vladsch.flexmark:flexmark-html2md-converter:$flexmark_version"
//implementation "com.vladsch.flexmark:flexmark-ext-tables:$flexmark_version"
//implementation "com.vladsch.flexmark:flexmark-html2md-converter:$flexmark_version"
// // https://github.com/QuadFlask/colorpicker
//implementation "com.github.QuadFlask:colorpicker:$colorpicker_version"

@ -55,4 +55,3 @@ FairEmail uses parts or all of:
* [AG Filters Registry](https://github.com/AdguardTeam/FiltersRegistry). [GNU Lesser General Public License Version 3](https://github.com/AdguardTeam/FiltersRegistry/blob/master/LICENSE).
* [Certificate transparency for Android and JVM](https://github.com/appmattus/certificatetransparency). Copyright 2023 Appmattus Limited. [Apache License 2.0](https://github.com/appmattus/certificatetransparency/blob/main/LICENSE.md).
* [ZXing](https://github.com/zxing/zxing). Copyright (C) 2014 ZXing authors. [Apache License 2.0](https://github.com/zxing/zxing/blob/master/LICENSE).
* [https://github.com/vsch/flexmark-java](flexmark-java). Copyright (c) 2015-2016, Atlassian Pty Ltd. Copyright (c) 2016-2018, Vladimir Schneider. [BSD-2-Clause license](https://github.com/vsch/flexmark-java/blob/master/LICENSE.txt).

@ -13,7 +13,6 @@ For support you can use [the contact form](https://contact.faircode.eu/?product=
* Added importing of mbox files into POP3 folders
* Added long press links to open confirmation dialog box
* Added long press archive / bottom action bar to move conversations
* Added experimental markdown support to the message editor
* Small improvements and minor bug fixes
* Updated [translations](https://crowdin.com/project/open-source-email)

@ -136,12 +136,6 @@ import androidx.recyclerview.widget.RecyclerView;
import com.google.android.material.bottomnavigation.BottomNavigationView;
import com.google.android.material.bottomnavigation.LabelVisibilityMode;
import com.google.android.material.snackbar.Snackbar;
import com.vladsch.flexmark.ext.gfm.strikethrough.StrikethroughExtension;
import com.vladsch.flexmark.ext.tables.TablesExtension;
import com.vladsch.flexmark.html.HtmlRenderer;
import com.vladsch.flexmark.html2md.converter.FlexmarkHtmlConverter;
import com.vladsch.flexmark.parser.Parser;
import com.vladsch.flexmark.util.data.MutableDataSet;
import org.bouncycastle.asn1.ASN1ObjectIdentifier;
import org.bouncycastle.cert.jcajce.JcaCertStore;
@ -2027,7 +2021,7 @@ public class FragmentCompose extends FragmentBase {
menu.findItem(R.id.menu_media).setChecked(media);
menu.findItem(R.id.menu_compact).setChecked(compact);
menu.findItem(R.id.menu_markdown).setChecked(markdown);
menu.findItem(R.id.menu_markdown).setVisible(experiments);
menu.findItem(R.id.menu_markdown).setVisible(false && experiments);
View image = media_bar.findViewById(R.id.menu_image);
if (image != null)
@ -6719,7 +6713,8 @@ public class FragmentCompose extends FragmentBase {
boolean dirty = false;
String body;
if (markdown ^ extras.getBoolean("markdown")) {
if (false && (markdown ^ extras.getBoolean("markdown"))) {
/*
MutableDataSet options = new MutableDataSet();
options.set(Parser.EXTENSIONS, Arrays.asList(
TablesExtension.create(),
@ -6736,6 +6731,7 @@ public class FragmentCompose extends FragmentBase {
if (markdown != extras.getBoolean("markdown"))
dirty = true;
*/
} else
body = HtmlHelper.toHtml(spanned, context);
@ -7699,13 +7695,15 @@ public class FragmentCompose extends FragmentBase {
ref.remove();
Spanned spannedBody;
if (markdown) {
if (false && markdown) {
/*
MutableDataSet options = new MutableDataSet();
// HtmlConverterCoreNodeRenderer
// options.set(FlexmarkHtmlConverter.LISTS_END_ON_DOUBLE_BLANK, false);
String text = FlexmarkHtmlConverter.builder(options).build().convert(doc.html());
text = text.replaceAll("\n.*<!-- -->\n\n", "");
spannedBody = new SpannableStringBuilder(text);
*/
} else {
HtmlHelper.clearAnnotations(doc); // Legacy left-overs

@ -2057,9 +2057,6 @@ $NotDisplayed</code></pre>
<p><em>Edit subject (1.2046+)</em></p>
<p>The subject of a received message can be edited, also on the email server, via the horizontal three-dots button just above the message text near the left side of the screen.</p>
<p><br /></p>
<p><em>Markdown (1.2160+)</em></p>
<p>The message editor can be switched to markdown mode via the three-dots overflow menu.</p>
<p><br /></p>
<p><a name="faq126"></a> <strong>(126) Can message previews be sent to my smartwatch?</strong></p>
<p>🌎 <a href="https://translate.google.com/translate?sl=en&amp;u=https%3A%2F%2Fm66b.github.io%2FFairEmail%2F%23faq126">Google Translate</a></p>
<p>FairEmail fetches a message in two steps:</p>

@ -13,7 +13,6 @@ Next version
* Added importing of mbox files into POP3 folders
* Added long press links to open confirmation dialog box
* Added long press archive / bottom action bar to move conversations
* Added experimental markdown support to the message editor
* Small improvements and minor bug fixes
* Updated translations

Loading…
Cancel
Save