Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 508897c8 authored by Stefan Niedermann's avatar Stefan Niedermann
Browse files

↩️ Soft break adds new line

parent 7793c35d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
3.1.0
- 🌐 Save page title when sharing from browser (#1032)
- ↩️ Soft break adds new line

3.0.1

+2 −1
Original line number Diff line number Diff line
package it.niedermann.android.markdown.markwon;

import android.content.Context;
import android.content.res.Configuration;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.util.Log;
@@ -20,6 +19,7 @@ import java.util.function.Function;

import io.noties.markwon.Markwon;
import io.noties.markwon.MarkwonPlugin;
import io.noties.markwon.SoftBreakAddsNewLinePlugin;
import io.noties.markwon.ext.strikethrough.StrikethroughPlugin;
import io.noties.markwon.ext.tables.TablePlugin;
import io.noties.markwon.ext.tasklist.TaskListPlugin;
@@ -85,6 +85,7 @@ public class MarkwonMarkdownViewer extends AppCompatTextView implements Markdown
                .usePlugin(LinkifyPlugin.create(true))
                .usePlugin(LinkClickInterceptorPlugin.create())
                .usePlugin(ImagesPlugin.create())
                .usePlugin(SoftBreakAddsNewLinePlugin.create())
                .usePlugin(SyntaxHighlightPlugin.create(prism4j, prism4jTheme))
                .usePlugin(new ToggleableTaskListPlugin((toggledCheckboxPosition, newCheckedState) -> {
                    final CharSequence oldUnrenderedText = unrenderedText$.getValue();