THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

瀏覽代碼

markdown: Use rhino markdown render instead of nashorn

tags/v1.0.0
Suwon Chae 4 年之前
父節點
當前提交
4666451e4d
共有 3 個檔案被更改,包括 4 行新增3 行删除
  1. +2
    -2
      app/utils/Markdown.java
  2. +2
    -1
      build.sbt
  3. 二進制
      lib/js-engine.jar

+ 2
- 2
app/utils/Markdown.java 查看文件

@@ -45,10 +45,10 @@ public class Markdown {
private static ScriptEngine engine = buildEngine();

private static ScriptEngine buildEngine() {
ScriptEngineManager manager = new ScriptEngineManager(null);
ScriptEngineManager manager = new ScriptEngineManager();
InputStream is = null;
Reader reader = null;
ScriptEngine _engine = manager.getEngineByName("JavaScript");
ScriptEngine _engine = manager.getEngineByName("rhino");

try {
is = Thread.currentThread().getContextClassLoader().getResourceAsStream(XSS_JS_FILE);


+ 2
- 1
build.sbt 查看文件

@@ -47,7 +47,8 @@ libraryDependencies ++= Seq(
"com.github.zafarkhaja" % "java-semver" % "0.7.2",
"com.google.guava" % "guava" % "19.0",
"com.googlecode.htmlcompressor" % "htmlcompressor" % "1.4",
"org.springframework" % "spring-jdbc" % "4.1.5.RELEASE"
"org.springframework" % "spring-jdbc" % "4.1.5.RELEASE",
"org.mozilla" % "rhino" % "1.7.7.1"
)

val projectSettings = Seq(


二進制
lib/js-engine.jar 查看文件


Loading…
取消
儲存