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

Commit 7793c35d authored by Stefan Niedermann's avatar Stefan Niedermann
Browse files

Use term "Markdown" instead of "MarkDown"

parent b80aeff1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -97,7 +97,7 @@ public class NoteUtil {
    }

    /**
     * Reads the requested line and strips all MarkDown. If line is empty, it will go ahead to find the next not-empty line.
     * Reads the requested line and strips all Markdown. If line is empty, it will go ahead to find the next not-empty line.
     *
     * @param content    String
     * @param lineNumber int
+1 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@ public class NoteUtilTest extends TestCase {
        assertFalse(NoteUtil.isEmptyLine("a \n "));
    }

    public void testGetLineWithoutMarkDown() {
    public void testGetLineWithoutMarkdown() {
        assertEquals("Test", NoteUtil.getLineWithoutMarkdown("Test", 0));
        assertEquals("Test", NoteUtil.getLineWithoutMarkdown("\nTest", 0));
        assertEquals("Foo", NoteUtil.getLineWithoutMarkdown("Foo\nBar", 0));
+1 −1
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@ Companion app to Nextcloud Notes.
  * Notizen als Favoriten markieren⭐
  * Massenhaftes Löschen 🗑️
  * Notizen durchsuchen 🔍
  * MarkDown-Rendering ✨
  * Markdown-Rendering ✨
  * Kontext-basierte Formatierung 🧰
  * Dark Mode 🌙
  * Single note widget and note list widget 📊
+1 −1
Original line number Diff line number Diff line
@@ -628,7 +628,7 @@ public class MarkdownUtilTest extends TestCase {
    }

    @Test
    public void testRemoveMarkDown() {
    public void testRemoveMarkdown() {
        assertEquals("Test", MarkdownUtil.removeMarkdown("Test"));
        assertEquals("Foo\nBar", MarkdownUtil.removeMarkdown("Foo\nBar"));
        assertEquals("Foo\nBar", MarkdownUtil.removeMarkdown("Foo\n  Bar"));
+3 −3
Original line number Diff line number Diff line
@@ -350,10 +350,10 @@ public class MarkdownUtil {
    }

    /**
     * Strips all MarkDown from the given String
     * Strips all Markdown from the given String
     *
     * @param s String - MarkDown
     * @return Plain Text-String
     * @param s Markdown string
     * @return Plain text string
     */
    @NonNull
    public static String removeMarkdown(@Nullable String s) {