Yuki Takei 2 лет назад
Родитель
Сommit
70f2fde9f8
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      packages/micromark-extension-gfm-table/dev/lib/syntax.js

+ 2 - 2
packages/micromark-extension-gfm-table/dev/lib/syntax.js

@@ -294,7 +294,7 @@ function tokenizeTable(effects, ok, nok) {
     // console.log({ atRowEndHeadCount });
 
     if (code === codes.eof) {
-      return nok(code);
+      return tableExit(code);
     }
 
     assert(markdownLineEnding(code), 'expected eol');
@@ -311,7 +311,7 @@ function tokenizeTable(effects, ok, nok) {
       },
       (code) => {
         self.interrupt = originalInterrupt;
-        return nok(code);
+        return tableExit(code);
       },
     )(code);
   }