Commit ca23084d authored by Liang Ding's avatar Liang Ding

🎨 Lute HTTP 问题修复

parent 9f0c2b47
...@@ -38,7 +38,7 @@ import java.io.File; ...@@ -38,7 +38,7 @@ import java.io.File;
* </ul> * </ul>
* *
* @author <a href="http://88250.b3log.org">Liang Ding</a> * @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.1.1.1, Sep 22, 2019 * @version 1.1.1.2, Sep 23, 2019
* @since 1.2.0 * @since 1.2.0
*/ */
public final class Starter { public final class Starter {
...@@ -167,6 +167,7 @@ public final class Starter { ...@@ -167,6 +167,7 @@ public final class Starter {
String luteHttp = commandLine.getOptionValue("lute"); String luteHttp = commandLine.getOptionValue("lute");
if (null != luteHttp) { if (null != luteHttp) {
Markdowns.LUTE_ENGINE_URL = luteHttp; Markdowns.LUTE_ENGINE_URL = luteHttp;
Markdowns.LUTE_AVAILABLE = true;
} }
String webappDirLocation = "src/main/webapp/"; // POM structure in dev env String webappDirLocation = "src/main/webapp/"; // POM structure in dev env
......
...@@ -58,7 +58,7 @@ import java.util.concurrent.*; ...@@ -58,7 +58,7 @@ import java.util.concurrent.*;
* </p> * </p>
* *
* @author <a href="http://88250.b3log.org">Liang Ding</a> * @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 2.3.1.9, Sep 17, 2019 * @version 2.3.1.10, Sep 23, 2019
* @since 0.4.5 * @since 0.4.5
*/ */
public final class Markdowns { public final class Markdowns {
...@@ -110,18 +110,6 @@ public final class Markdowns { ...@@ -110,18 +110,6 @@ public final class Markdowns {
*/ */
public static boolean LUTE_AVAILABLE; public static boolean LUTE_AVAILABLE;
static {
try {
final String html = toHtmlByLute("旧日的足迹");
LUTE_AVAILABLE = StringUtils.contains(html, "<p>旧日的足迹</p>");
if (LUTE_AVAILABLE) {
LOGGER.log(Level.INFO, "[Lute] is available");
}
} catch (final Exception e) {
// ignored
}
}
/** /**
* Cleans the specified HTML. * Cleans the specified HTML.
* *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment