Image SVG

WARNING

This is documentation for legacy versions. For the most current version click here.

image-svg

Adds support for SVG images inside markdown. Relies on androidsvg library

final Markwon markwon = Markwon.builder(context)
        // it's required to register ImagesPlugin
        .usePlugin(ImagesPlugin.create(context))
        .usePlugin(SvgPlugin.create(context.getResources()))
        .build();

TIP

SvgPlugin requires Resources in order to scale SVG media based on display density

Proguard

-keep class com.caverock.androidsvg.** { *; }
-dontwarn com.caverock.androidsvg.**
Last Updated: 8/6/2019, 7:27:20 PM