diff --git a/app/src/main/java/com/wbrawner/simplemarkdown/PreviewFragment.java b/app/src/main/java/com/wbrawner/simplemarkdown/PreviewFragment.java index dd5aacd..0c4cf29 100644 --- a/app/src/main/java/com/wbrawner/simplemarkdown/PreviewFragment.java +++ b/app/src/main/java/com/wbrawner/simplemarkdown/PreviewFragment.java @@ -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); diff --git a/app/src/main/res/layout/fragment_edit.xml b/app/src/main/res/layout/fragment_edit.xml index b86f87f..6b97ca6 100644 --- a/app/src/main/res/layout/fragment_edit.xml +++ b/app/src/main/res/layout/fragment_edit.xml @@ -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" />