Browse Source

added markdown-table in dependencies.
remove todo comment.

Ryu Sato 8 years ago
parent
commit
129e9d3841
3 changed files with 6 additions and 1 deletions
  1. 1 0
      package.json
  2. 1 1
      resource/js/components/PageEditor/MarkdownTableHelper.js
  3. 4 0
      yarn.lock

+ 1 - 0
package.json

@@ -101,6 +101,7 @@
     "markdown-it-plantuml": "^1.0.0",
     "markdown-it-task-lists": "^2.1.0",
     "markdown-it-toc-and-anchor-with-slugid": "^1.1.2",
+    "markdown-table": "^1.1.1",
     "md5": "^2.2.1",
     "method-override": "^2.3.10",
     "mkdirp": "~0.5.1",

+ 1 - 1
resource/js/components/PageEditor/MarkdownTableHelper.js

@@ -93,7 +93,7 @@ class MarkdownTableHelper {
         break;
       }
     }
-    const botLine = Math.max(firstLine, line + 1); // [TODO] research that it is safe botLine is assigned by zero
+    const botLine = Math.max(firstLine, line + 1);
     return { line: botLine, ch: 0 };
   }
 

+ 4 - 0
yarn.lock

@@ -3768,6 +3768,10 @@ markdown-it@^8.4.0:
     mdurl "^1.0.1"
     uc.micro "^1.0.3"
 
+markdown-table@^1.1.1:
+  version "1.1.1"
+  resolved "https://registry.yarnpkg.com/markdown-table/-/markdown-table-1.1.1.tgz#4b3dd3a133d1518b8ef0dbc709bf2a1b4824bc8c"
+
 marked-terminal@^1.6.2:
   version "1.7.0"
   resolved "https://registry.yarnpkg.com/marked-terminal/-/marked-terminal-1.7.0.tgz#c8c460881c772c7604b64367007ee5f77f125904"