Modified edit fragment padding and added fenced code plugin for AndDown/HoeDown

This commit is contained in:
William Brawner 2017-08-05 19:45:23 -05:00
parent 66ebc6f675
commit 28d5fc41aa
2 changed files with 4 additions and 2 deletions

View file

@ -103,7 +103,8 @@ public class PreviewFragment extends Fragment {
AndDown andDown = new AndDown();
int hoedownFlags =
AndDown.HOEDOWN_EXT_STRIKETHROUGH | AndDown.HOEDOWN_EXT_TABLES |
AndDown.HOEDOWN_EXT_UNDERLINE | AndDown.HOEDOWN_EXT_SUPERSCRIPT;
AndDown.HOEDOWN_EXT_UNDERLINE | AndDown.HOEDOWN_EXT_SUPERSCRIPT |
AndDown.HOEDOWN_EXT_FENCED_CODE;
String html = andDown.markdownToHtml(text, hoedownFlags, 0);
mMarkdownView.loadDataWithBaseURL(null, html, "text/html", "UTF-8", null);
mMarkdownView.scrollTo(0, scrollY);

View file

@ -11,7 +11,8 @@
android:background="@null"
android:imeOptions="flagNoExtractUi"
android:gravity="top"
android:padding="8dp"
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:hint="@string/markdown_here"
android:scrollHorizontally="false" />