Browse Source

:arrow_up: lute

Liyuan Li 5 years ago
parent
commit
0712435bbc
3 changed files with 1 additions and 3 deletions
  1. 0 0
      src/js/lute/lute.min.js
  2. 1 1
      src/ts/markdown/mindmapRender.ts
  3. 0 2
      types/index.d.ts

File diff suppressed because it is too large
+ 0 - 0
src/js/lute/lute.min.js


+ 1 - 1
src/ts/markdown/mindmapRender.ts

@@ -18,7 +18,7 @@ export const mindmapRender = (element: (HTMLElement | Document) = document,
                     const option = {
                         series: [
                             {
-                                data: [JSON.parse(Lute.RenderMindmap(e.innerText))],
+                                data: [JSON.parse(decodeURIComponent(e.getAttribute("data-code")))],
                                 initialTreeDepth: -1,
                                 itemStyle: {
                                     borderWidth: 0,

+ 0 - 2
types/index.d.ts

@@ -154,8 +154,6 @@ interface ILute {
 
     FormatMd(markdown: string): string;
 
-    RenderMindmap(text: string): string;
-
     // debugger md
     RenderEChartsJSON(text: string): string;
 

Some files were not shown because too many files changed in this diff