فهرست منبع

exit table in atRowEndHead

Yuki Takei 2 سال پیش
والد
کامیت
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);
   }