Эх сурвалжийг харах

[notebook] Updated markdown import from iPython/Zeppelin

Enrico Berti 10 жил өмнө
parent
commit
387e61536d

+ 2 - 1
desktop/libs/notebook/src/notebook/templates/editor_components.mako

@@ -942,7 +942,8 @@ from desktop.views import _ko
 
       function addMarkdown(content) {
         var snip = viewModel.notebooks()[0].addSnippet({type: "text", result: {}}, true);
-        snip.statement_raw(markdown.toHTML(content));
+        snip.subtype(true);
+        snip.statement_raw(content);
       }
 
       function addAce(content, snippetType) {