diff --git a/app-sample/src/main/java/io/noties/markwon/app/readme/ReadMeActivity.kt b/app-sample/src/main/java/io/noties/markwon/app/readme/ReadMeActivity.kt index ed26b0df..c8fe2507 100644 --- a/app-sample/src/main/java/io/noties/markwon/app/readme/ReadMeActivity.kt +++ b/app-sample/src/main/java/io/noties/markwon/app/readme/ReadMeActivity.kt @@ -77,9 +77,9 @@ class ReadMeActivity : Activity() { .usePlugin(StrikethroughPlugin.create()) .usePlugin(ReadMeImageDestinationPlugin(intent.data)) .usePlugin(IFramePlugIn.create()) - .usePlugin(InLineLatexPlugIn.create(16.0f, 1080)) + .usePlugin(InLineLatexPlugIn.create(46.0f, 1080)) .usePlugin(MarkwonInlineParserPlugin.create()) - .usePlugin(JLatexMathPlugin.create(16.0f)) + .usePlugin(JLatexMathPlugin.create(46.0f)) .usePlugin(object : AbstractMarkwonPlugin() { override fun configureVisitor(builder: MarkwonVisitor.Builder) { builder.on(FencedCodeBlock::class.java) { visitor, block -> diff --git a/app-sample/src/main/res/drawable/bg_fence.xml b/app-sample/src/main/res/drawable/bg_fence.xml new file mode 100644 index 00000000..41c40002 --- /dev/null +++ b/app-sample/src/main/res/drawable/bg_fence.xml @@ -0,0 +1,13 @@ + + + + + + + + \ No newline at end of file diff --git a/app-sample/src/main/res/layout/adapter_node_code_block.xml b/app-sample/src/main/res/layout/adapter_node_code_block.xml index e538f011..d22cde1a 100644 --- a/app-sample/src/main/res/layout/adapter_node_code_block.xml +++ b/app-sample/src/main/res/layout/adapter_node_code_block.xml @@ -13,6 +13,7 @@ android:id="@+id/text_view" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:background="@drawable/bg_fence" android:fontFamily="monospace" android:lineSpacingExtra="2dip" android:paddingLeft="16dip"