Fix latex plugin
This commit is contained in:
parent
77b34552b9
commit
08507c8a92
@ -6,7 +6,7 @@ org.gradle.configureondemand=true
|
||||
android.enableBuildCache=true
|
||||
android.buildCacheDir=build/pre-dex-cache
|
||||
|
||||
VERSION_NAME=3.0.1
|
||||
VERSION_NAME=3.0.2
|
||||
|
||||
GROUP=ru.noties.markwon
|
||||
POM_DESCRIPTION=Markwon markdown for Android
|
||||
|
@ -132,7 +132,8 @@ public class JLatexMathPlugin extends AbstractMarkwonPlugin {
|
||||
ImageItem item = null;
|
||||
|
||||
try {
|
||||
final byte[] bytes = raw.substring(SCHEME.length()).getBytes("UTF-8");
|
||||
// temp workaround for leading `://` in latex
|
||||
final byte[] bytes = raw.substring(SCHEME.length() + 3).getBytes("UTF-8");
|
||||
item = new ImageItem(
|
||||
CONTENT_TYPE,
|
||||
new ByteArrayInputStream(bytes));
|
||||
|
Loading…
x
Reference in New Issue
Block a user