File tree Expand file tree Collapse file tree 3 files changed +152
-153
lines changed
main/java/org/apache/zeppelin/markdown
test/java/org/apache/zeppelin/markdown Expand file tree Collapse file tree 3 files changed +152
-153
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ public int getProgress(InterpreterContext context) {
7979 @ Override
8080 public Scheduler getScheduler () {
8181 return SchedulerFactory .singleton ()
82- .createOrGetParallelScheduler (MarkdownInterpreter .class .getName () + this .hashCode (), 5 );
82+ .createOrGetParallelScheduler (MarkdownInterpreter .class .getName () + this .hashCode (), 5 );
8383 }
8484
8585 @ Override
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ public String render(String markdownText) {
2626 if (null == parsed ) throw new RuntimeException ("Cannot parse markdown syntax string to HTML" );
2727
2828 html = wrapWithMarkdownClassDiv (parsed );
29-
3029 } catch (RuntimeException e ) {
3130 logger .error ("Failed to parsed markdown text" , e );
3231 }
@@ -37,9 +36,9 @@ public String render(String markdownText) {
3736 /** wrap with markdown class div to styling DOM using css */
3837 public static String wrapWithMarkdownClassDiv (String html ) {
3938 return new StringBuilder ()
40- .append ("<div class=\" markdown-body\" >\n " )
41- .append (html )
42- .append ("\n </div>" )
43- .toString ();
39+ .append ("<div class=\" markdown-body\" >\n " )
40+ .append (html )
41+ .append ("\n </div>" )
42+ .toString ();
4443 }
4544}
You can’t perform that action at this time.
0 commit comments