Fix latex plugin

This commit is contained in:
Dimitry Ivanov 2019-06-19 00:39:17 +03:00
parent 77b34552b9
commit 08507c8a92
2 changed files with 3 additions and 2 deletions

View File

@ -6,7 +6,7 @@ org.gradle.configureondemand=true
android.enableBuildCache=true android.enableBuildCache=true
android.buildCacheDir=build/pre-dex-cache android.buildCacheDir=build/pre-dex-cache
VERSION_NAME=3.0.1 VERSION_NAME=3.0.2
GROUP=ru.noties.markwon GROUP=ru.noties.markwon
POM_DESCRIPTION=Markwon markdown for Android POM_DESCRIPTION=Markwon markdown for Android

View File

@ -132,7 +132,8 @@ public class JLatexMathPlugin extends AbstractMarkwonPlugin {
ImageItem item = null; ImageItem item = null;
try { 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( item = new ImageItem(
CONTENT_TYPE, CONTENT_TYPE,
new ByteArrayInputStream(bytes)); new ByteArrayInputStream(bytes));