markdown: Use rhino markdown render instead of nashorn
@4666451e4da52ca0db31ef7b709909bedaab64d5
--- app/utils/Markdown.java
+++ app/utils/Markdown.java
... | ... | @@ -45,10 +45,10 @@ |
45 | 45 |
private static ScriptEngine engine = buildEngine(); |
46 | 46 |
|
47 | 47 |
private static ScriptEngine buildEngine() { |
48 |
- ScriptEngineManager manager = new ScriptEngineManager(null); |
|
48 |
+ ScriptEngineManager manager = new ScriptEngineManager(); |
|
49 | 49 |
InputStream is = null; |
50 | 50 |
Reader reader = null; |
51 |
- ScriptEngine _engine = manager.getEngineByName("JavaScript"); |
|
51 |
+ ScriptEngine _engine = manager.getEngineByName("rhino"); |
|
52 | 52 |
|
53 | 53 |
try { |
54 | 54 |
is = Thread.currentThread().getContextClassLoader().getResourceAsStream(XSS_JS_FILE); |
--- build.sbt
+++ build.sbt
... | ... | @@ -47,7 +47,8 @@ |
47 | 47 |
"com.github.zafarkhaja" % "java-semver" % "0.7.2", |
48 | 48 |
"com.google.guava" % "guava" % "19.0", |
49 | 49 |
"com.googlecode.htmlcompressor" % "htmlcompressor" % "1.4", |
50 |
- "org.springframework" % "spring-jdbc" % "4.1.5.RELEASE" |
|
50 |
+ "org.springframework" % "spring-jdbc" % "4.1.5.RELEASE", |
|
51 |
+ "org.mozilla" % "rhino" % "1.7.7.1" |
|
51 | 52 |
) |
52 | 53 |
|
53 | 54 |
val projectSettings = Seq( |
+++ lib/js-engine.jar
Binary file is not shown |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?