Explorar el Código

exit table in atRowEndHead

Yuki Takei hace 2 años
padre
commit
70f2fde9f8
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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);
   }