Modified edit fragment padding and added fenced code plugin for AndDown/HoeDown
This commit is contained in:
parent
66ebc6f675
commit
28d5fc41aa
2 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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" />
|
||||
|
||||
|
|
Loading…
Reference in a new issue