Markdown Android Studio

  

Android - studio - markdown navigator export to pdf. Android Code Style in Intellij Idea/Android Studio (3).

  1. Apr 20, 2019 Below are the steps to create a markdown file in visual studio code. Step-1: Open visual studio code and goto file new file Step-2: Name the file as readme.md or readme.markdown and save the file.
  2. I understand you want to convert a String containing Markdown markup to a formatted CharSequence that you can use in a TextView. The two options I know of are: Bypass: Use a native C library to parse the text. Unfortunately the project seems dead. Commonmark-spannable-android: Pure java, based on the very good commonmark-java library.

An android app that allows me to edit text files for taking notes. These are files that will by synced between devices (phone, tablet, computers) for viewing and editing.

Ideally, I’d like the application to support org-mode (https://orgmode.org/) format, since I tend to keep all of my notes using Emacs (and the fact that there are several markdown flavors makes my life harder — related reading: https://karl-voit.at/2017/09/23/orgmode-as-markup-only/). Anyway, if using org-mode syntax directly is not possible, then markdown (as it is possible to move between markdown and org-mode formats). [Yes, sure, I can edit org-mode syntax with any editor, but I’d like help from the app, such as automatically indenting things the correct way, etc. Editing in a tablet/phone without external keyboard is enough of a pain.]. Clear ram on android phone.

Android studio markdown 预览

Requirements:

  • Store files wherever I want in the phone/tablet; this way, I can syncwith the computer (using syncthing, https://syncthing.net/, in mycase)
  • Allow arbitrarily nested lists
  • Quick editing, in particular:
    • When editing a list, a newline keeps you in that level but you canquickly increase the indent. This means:
      • A newline inserts, by default, the list symbolyou are using: suppose your list is using “-”; a newline willinsert a newline and a “-” at the appropriate level.
      • After insertion of the “-” (or the “+” or whatever) you can quickly(a menu item, adding spaces, whatever) increase or decrease thenesting level.
      • The above matters because you do not want to waste time andmental effort keeping track of how many spaces you have typedto get to the desired indentation level. (Even more importantif you are not using monospace fonts).
  • Allow unnumbered lists, numbered lists, check-box lists.

Nice to have

  • Open source.
  • Code/section folding/unfolding

I could not find anything that met the requirements. So I’ll have tocompromise. But let’s split choices into apps I might consider and thosethat definitely do not fit the bill.

Android Studio Markdown Syntax

Maybe

(Listed in approximately decreasing order of how likely I am to use them)

  • Epsilon notes (http://epsilonexpert.com/e/index.php)
    • It seems like you can create lists that are arbitrarily nested but…
    • … but after the 2nd level of nesting, typing newline willnot insert that appropriate list symbol (i.e., if you had createdyour list using “-”, it will not insert the “-”)
    • Numbered lists require you to enter the first two with number (i.e.,just one will not do).
    • This is the one I am most likely to keep using as it is by a largemargin the one closest to what I want.
  • neutriNote(https://play.google.com/store/apps/details?id=com.appmindlab.nano&hl=en_US)
    • Does not indent automatically when entering a newline and does notadd a “-” (or whatever you use for lists) when entering anewline. So somewhat similar problems as Simple Markdown. But:
      • Entering a newline and then typing (or selecting from the menu)the item character (“-”) will indent it to the parentlevel. This does not work with numbered lists, though.
      • You can move items (promote/demote) with the “->” and “<-” inthe menu (look for the “</>“).
    • It might be me, but I find the behavior of numbered lists fragileand finicky.
  • Simple Markdown(https://play.google.com/store/apps/details?id=com.wbrawner.simplemarkdown)
    • Nice, simple, open source with public repo (https://github.com/wbrawner/SimpleMarkdown)
    • But fails criteria of:
      • Indenting automatically when entering newline
      • Adding a “-” or whatever automatically when entering newline
      • (At least part of) this seems to be in the roadmap (https://github.com/wbrawner/SimpleMarkdown#roadmap)
    • Otherwise, if you do that manually, seems capable of arbitrarilynested lists
  • Markor (https://github.com/gsantner/markor):
    • Open source!
    • Really nice app.
    • Interesting there are requests to support org-mode syntax (https://github.com/gsantner/markor/issues/182).
    • But lists with more than two levels of nesting are not just a matterof adding spaces (that will result in a text block:https://github.com/gsantner/markor/issues/309)
  • iA Writer(https://play.google.com/store/apps/details?id=net.ia.iawriter)
    • I find it amusing to read in the documentation “You can also nestlists several levels deep”: several? how many is several? :-)Anyway, four or five seem to work.
    • Promotion and demotion require manually entering the number ofspaces. So you have to remove the list character (say “-”), then addspaces.
    • Opening/saving files is not to my liking: when selecting “openfrom”, you are actually said to “save”, which tells you content willbe overwritten. And I find no way to rename the file from the app(or, in other words, save the file with another name).
    • Too little stuff is actually displayed at once, even if you choosethe small font size.

Definitely not

  • Orgzly (https://play.google.com/store/apps/details?id=com.orgzly):
    • Editing a file quickly is impossible (for me at least): try creatingan item, then adding a bunch of subitems. You have to go through the“+”, then type, then move around things,etc, etc. This is not just “quickly edit”.
  • JotterPad (https://play.google.com/store/apps/details?id=com.jotterpad.x)
    • Similar issues as Simple Markdown; it offers a menu entry toincrease indentation, none to decrease indentation. And you need toposition the cursor at the beginning of the line for it to affectthat line.
    • I do not see a simple way to open/save to a user-specified directory(the options to export as docx or rtf are of no use to me).
    • Sure, JotterPad’s target use might not be what I want (markdowneditor).
  • MarkNote (https://play.google.com/store/apps/details?id=me.shouheng.notepal)
    • Open source with public repository(https://github.com/Shouheng88/MarkNote): great!
    • No automatic addition of the item symbol on newline, but a simplepromote/demote menu entry that works fine (though it does not movechild items).
    • But the “notebooks” are not stored directly as text, but ratherexported. So no way to have this simply work on a directory of filesI sync with the computer.
      • There are github requests for this (yes, one is mine):https://github.com/Shouheng88/MarkNote/issues/13 andhttps://github.com/Shouheng88/MarkNote/issues/17
      • This is a show stopper.
  • Markdown(https://play.google.com/store/apps/details?id=com.IeuanWalker.Markdown)
    • It is fine for what it does, but has the same issues as SimpleMarkdown and there is no help for formatting, so you end up havingto count spaces and enter the “-” after a newline.
  • BananaText (https://play.google.com/store/apps/details?id=com.fruitysmartsoft.BananaTextLite)
    • Same issues as Markdown above.
  • Markdown Writer(https://play.google.com/store/apps/details?id=com.siziksu.mdw)
    • Same issues as Simple Markdown
    • I do not find how to save files in user-specified directory. Thisissue is actually mentioned in a comment in google play(https://play.google.com/store/apps/details?id=com.siziksu.mdw&reviewId=gp%3AAOqpTOELVUDqCr_xaOovualPNdlKA3bKk5ctLR0Y8Y8eW3lFbOJ3WxGGJTeiPJxMsuQWlG4Lg54vUnwFLP8IxOY)
  • Monospace(https://play.google.com/store/apps/details?id=com.underwood.monospace)
    • You select the text and it offers contextual help. I find thatslightly annoying (type, mark, select dance, instead of “type with theappropriate syntax”). But, moreover, nested lists donot seem available.
  • Writer Plus(https://play.google.com/store/apps/details?id=co.easy4u.writer)
    • Changing indentation requires to fuzz around with spaces and the “-”.
    • It must be me, but sometimes I enter a “-” and we get going with alist, and sometimes we don’t, and I do not understand why. Andcreation of nested lists is not something I can achieve consistently.
    • And the directory of the application is set by the application (we canwork around that, but is an additional hurdle).
  • Google Keep
    • Editing is clunky:
      • only one level of nesting
      • actually entering the nesting requires lots of fumbling around
      • being consistent in the syntax (two spaces, four spaces, whatever)requires you to be consistent, no help from the app.
    • Impossible to use version control (where are the notes stored, tobegin with?)
    • Related to the above, even if you just want a backup, keeping a backupis incredibly hard (you have to go through another service whichactually takes forever to produce the zip file).
      • Nope, saving as google docs is not an alternative: I want plain text
    • And of course, why should my notes go through google servers? I wantto retain control over how they are synced.

Android Markdown App

Others

  • grokNotes (https://gitlab.com/Scott.Tomaszewski/grokNotes):
    • looks promising, but in alpha and no commits in the last 8 months.
  • If you search for Markdown in google play there are several other options. Some have not been updated for a long time (over two years), some require login into a service (what for?), some are expensive (more than 9 euros) without giving a choice of trying them.

NEW (July 2020)

  • I haven’t had a chance to try it “for real”, but GitJournal(https://gitjournal.io) is a recent new addition. It can support quickediting, arbitrarily nested lists, and in the future might supportOrg-mode (https://github.com/GitJournal/GitJournal/issues/145). For now,it stores notes in directory private to the app, so it is not possibleto sync with syncthing, but this is on the todo list(https://github.com/GitJournal/GitJournal/issues/154). And it is opensource! (https://github.com/GitJournal/GitJournal).

Other options/miscell

  • Install emacs on Android via termux
  • org-mode <-> markdown conversion:
    • Markdown to org-mode: pandoc -f markdown -t org -o file.org file.md
    • org-mode to markdown: the usual export from org-mode.

Android Markdown Editor

Android studio markdown 预览

Markdown Android Studio 7


Markdown Android Studio 7

Markwon is a markdown library for Android. It parses markdown following commonmark spec with the help of amazing commonmark-java libraryand renders result as Android-native Spannables. No HTML is involvedas an intermediate step. No WebView is required. It's extremely fast,feature-rich and extensible.

It gives ability to display markdown in all TextView widgets (TextView,Button, Switch, CheckBox, etc), Toasts and all other places that acceptSpanned content. Library provides reasonable defaults to display style of a markdown contentbut also gives all the means to tweak the appearance if desired. All markdown featureslisted in commonmark spec are supported (including support for inlined/block HTML code,markdown tables, images and syntax highlight).

Free

Since version 4.2.0Markwon comes with an editor to highlight markdown inputas user types (for example in EditText).

# Supported markdown features

  • Emphasis (*, _)
  • Strong emphasis (**, __)
  • Headers (#{1,6})
  • Links ([]() && [][])
  • Thematic break (---, ***, ___)
  • Quotes & nested quotes (>{1,})
  • Ordered & non-ordered lists & nested ones
  • Inline code
  • Code blocks
  • Strike-through (~~)
  • Tables (with limitations)
  • LaTeX formulas
  • HTML
    • Emphasis (<i>, <em>, <cite>, <dfn>)
    • Strong emphasis (<b>, <strong>)
    • SuperScript (<sup>)
    • SubScript (<sub>)
    • Underline (<u>, ins)
    • Strike-through (<s>, <strike>, <del>)
    • Link (a)
    • Lists (ul, ol)
    • Images (img will require configured image loader)
    • Blockquote (blockquote)
    • Heading (h1, h2, h3, h4, h5, h6)
    • there is support to render any HTML/XML tag, but it will require to create a special TagHandler,more information can be found in HTML section
  • Task lists:
    • Not done
    • Done with X
    • andor small x

Android

# Screenshots

Android Studio Markdown Preview

By default configuration uses TextView textColor for styling, so changing textColor changes style


Nextcloud A safe home for all your data. Access & share your files, calendars, contacts, mail & more from any device, on your terms.
Habitica Treat your life like a game to stay motivated and organized! Habitica makes it simple to have fun while accomplishing goals.
Pure Writer Never lose content editor & Markdown
Stack An Android app for browsing Stack Overflow and other Stack Exchange sites
  • Partico - Partiko is a censorship free social network.
  • FairNote - simple and intuitive notepad app. It gives you speed and efficiency when you write notes, to-do lists, e-mails, or jot down quick ideas.
  • Boxcryptor - A software that adds AES-256 and RSA encryption to Dropbox, Google Drive, OneDrive and many other clouds.
  • Senstone Portable Voice Assistant - Senstone is a tiny wearable personal assistant powered by this App. It lets you capture your ideas, notes and reminders handsfree without pulling out your phone.

Extension/plugins:

  • MarkwonCodeEx - Markwon extension support elegant code background.

Help to improve this section by submitting your application or librarythat is using Markwon