@@ -6822,6 +6822,75 @@ module.exports = {
68226822
68236823/***/ } ) ,
68246824
6825+ /***/ "../lib/md056.js" :
6826+ /*!***********************!*\
6827+ !*** ../lib/md056.js ***!
6828+ \***********************/
6829+ /***/ ( ( module , __unused_webpack_exports , __webpack_require__ ) => {
6830+
6831+ "use strict" ;
6832+ // @ts -check
6833+
6834+
6835+
6836+ function _createForOfIteratorHelper ( o , allowArrayLike ) { var it = typeof Symbol !== "undefined" && o [ Symbol . iterator ] || o [ "@@iterator" ] ; if ( ! it ) { if ( Array . isArray ( o ) || ( it = _unsupportedIterableToArray ( o ) ) || allowArrayLike && o && typeof o . length === "number" ) { if ( it ) o = it ; var i = 0 ; var F = function F ( ) { } ; return { s : F , n : function n ( ) { if ( i >= o . length ) return { done : true } ; return { done : false , value : o [ i ++ ] } ; } , e : function e ( _e ) { throw _e ; } , f : F } ; } throw new TypeError ( "Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." ) ; } var normalCompletion = true , didErr = false , err ; return { s : function s ( ) { it = it . call ( o ) ; } , n : function n ( ) { var step = it . next ( ) ; normalCompletion = step . done ; return step ; } , e : function e ( _e2 ) { didErr = true ; err = _e2 ; } , f : function f ( ) { try { if ( ! normalCompletion && it [ "return" ] != null ) it [ "return" ] ( ) ; } finally { if ( didErr ) throw err ; } } } ; }
6837+ function _unsupportedIterableToArray ( o , minLen ) { if ( ! o ) return ; if ( typeof o === "string" ) return _arrayLikeToArray ( o , minLen ) ; var n = Object . prototype . toString . call ( o ) . slice ( 8 , - 1 ) ; if ( n === "Object" && o . constructor ) n = o . constructor . name ; if ( n === "Map" || n === "Set" ) return Array . from ( o ) ; if ( n === "Arguments" || / ^ (?: U i | I ) n t (?: 8 | 1 6 | 3 2 ) (?: C l a m p e d ) ? A r r a y $ / . test ( n ) ) return _arrayLikeToArray ( o , minLen ) ; }
6838+ function _arrayLikeToArray ( arr , len ) { if ( len == null || len > arr . length ) len = arr . length ; for ( var i = 0 , arr2 = new Array ( len ) ; i < len ; i ++ ) arr2 [ i ] = arr [ i ] ; return arr2 ; }
6839+ var _require = __webpack_require__ ( /*! ../helpers */ "../helpers/helpers.js" ) ,
6840+ addErrorDetailIf = _require . addErrorDetailIf ;
6841+ var _require2 = __webpack_require__ ( /*! ../helpers/micromark.cjs */ "../helpers/micromark.cjs" ) ,
6842+ filterByTypes = _require2 . filterByTypes ;
6843+ var makeRange = function makeRange ( start , end ) {
6844+ return [ start , end - start + 1 ] ;
6845+ } ;
6846+ module . exports = {
6847+ "names" : [ "MD056" , "table-column-count" ] ,
6848+ "description" : "Table column count" ,
6849+ "tags" : [ "table" ] ,
6850+ "function" : function MD056 ( params , onError ) {
6851+ var tables = filterByTypes ( params . parsers . micromark . tokens , [ "table" ] ) ;
6852+ var _iterator = _createForOfIteratorHelper ( tables ) ,
6853+ _step ;
6854+ try {
6855+ for ( _iterator . s ( ) ; ! ( _step = _iterator . n ( ) ) . done ; ) {
6856+ var table = _step . value ;
6857+ var rows = filterByTypes ( table . children , [ "tableDelimiterRow" , "tableRow" ] ) ;
6858+ var expectedCount = 0 ;
6859+ var _iterator2 = _createForOfIteratorHelper ( rows ) ,
6860+ _step2 ;
6861+ try {
6862+ for ( _iterator2 . s ( ) ; ! ( _step2 = _iterator2 . n ( ) ) . done ; ) {
6863+ var row = _step2 . value ;
6864+ var cells = filterByTypes ( row . children , [ "tableData" , "tableDelimiter" , "tableHeader" ] ) ;
6865+ var actualCount = cells . length ;
6866+ expectedCount || ( expectedCount = actualCount ) ;
6867+ var detail = null ;
6868+ var range = null ;
6869+ if ( actualCount < expectedCount ) {
6870+ detail = "Too few cells, row will be missing data" ;
6871+ range = [ row . endColumn - 1 , 1 ] ;
6872+ } else if ( expectedCount < actualCount ) {
6873+ detail = "Too many cells, extra data will be missing" ;
6874+ range = makeRange ( cells [ expectedCount ] . startColumn , row . endColumn - 1 ) ;
6875+ }
6876+ addErrorDetailIf ( onError , row . endLine , expectedCount , actualCount , detail , null , range ) ;
6877+ }
6878+ } catch ( err ) {
6879+ _iterator2 . e ( err ) ;
6880+ } finally {
6881+ _iterator2 . f ( ) ;
6882+ }
6883+ }
6884+ } catch ( err ) {
6885+ _iterator . e ( err ) ;
6886+ } finally {
6887+ _iterator . f ( ) ;
6888+ }
6889+ }
6890+ } ;
6891+
6892+ /***/ } ) ,
6893+
68256894/***/ "../lib/rules.js" :
68266895/*!***********************!*\
68276896 !*** ../lib/rules.js ***!
@@ -6843,8 +6912,11 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
68436912var _require = __webpack_require__ ( /*! ./constants */ "../lib/constants.js" ) ,
68446913 homepage = _require . homepage ,
68456914 version = _require . version ;
6846- var rules = [ __webpack_require__ ( /*! ./md001 */ "../lib/md001.js" ) , __webpack_require__ ( /*! ./md003 */ "../lib/md003.js" ) , __webpack_require__ ( /*! ./md004 */ "../lib/md004.js" ) , __webpack_require__ ( /*! ./md005 */ "../lib/md005.js" ) , __webpack_require__ ( /*! ./md007 */ "../lib/md007.js" ) , __webpack_require__ ( /*! ./md009 */ "../lib/md009.js" ) , __webpack_require__ ( /*! ./md010 */ "../lib/md010.js" ) , __webpack_require__ ( /*! ./md011 */ "../lib/md011.js" ) , __webpack_require__ ( /*! ./md012 */ "../lib/md012.js" ) , __webpack_require__ ( /*! ./md013 */ "../lib/md013.js" ) , __webpack_require__ ( /*! ./md014 */ "../lib/md014.js" ) , __webpack_require__ ( /*! ./md018 */ "../lib/md018.js" ) , __webpack_require__ ( /*! ./md019 */ "../lib/md019.js" ) , __webpack_require__ ( /*! ./md020 */ "../lib/md020.js" ) , __webpack_require__ ( /*! ./md021 */ "../lib/md021.js" ) , __webpack_require__ ( /*! ./md022 */ "../lib/md022.js" ) , __webpack_require__ ( /*! ./md023 */ "../lib/md023.js" ) , __webpack_require__ ( /*! ./md024 */ "../lib/md024.js" ) , __webpack_require__ ( /*! ./md025 */ "../lib/md025.js" ) , __webpack_require__ ( /*! ./md026 */ "../lib/md026.js" ) , __webpack_require__ ( /*! ./md027 */ "../lib/md027.js" ) , __webpack_require__ ( /*! ./md028 */ "../lib/md028.js" ) , __webpack_require__ ( /*! ./md029 */ "../lib/md029.js" ) , __webpack_require__ ( /*! ./md030 */ "../lib/md030.js" ) , __webpack_require__ ( /*! ./md031 */ "../lib/md031.js" ) , __webpack_require__ ( /*! ./md032 */ "../lib/md032.js" ) , __webpack_require__ ( /*! ./md033 */ "../lib/md033.js" ) , __webpack_require__ ( /*! ./md034 */ "../lib/md034.js" ) , __webpack_require__ ( /*! ./md035 */ "../lib/md035.js" ) , __webpack_require__ ( /*! ./md036 */ "../lib/md036.js" ) , __webpack_require__ ( /*! ./md037 */ "../lib/md037.js" ) , __webpack_require__ ( /*! ./md038 */ "../lib/md038.js" ) , __webpack_require__ ( /*! ./md039 */ "../lib/md039.js" ) , __webpack_require__ ( /*! ./md040 */ "../lib/md040.js" ) , __webpack_require__ ( /*! ./md041 */ "../lib/md041.js" ) , __webpack_require__ ( /*! ./md042 */ "../lib/md042.js" ) , __webpack_require__ ( /*! ./md043 */ "../lib/md043.js" ) , __webpack_require__ ( /*! ./md044 */ "../lib/md044.js" ) , __webpack_require__ ( /*! ./md045 */ "../lib/md045.js" ) , __webpack_require__ ( /*! ./md046 */ "../lib/md046.js" ) , __webpack_require__ ( /*! ./md047 */ "../lib/md047.js" ) , __webpack_require__ ( /*! ./md048 */ "../lib/md048.js" ) ] . concat ( _toConsumableArray ( __webpack_require__ ( /*! ./md049-md050 */ "../lib/md049-md050.js" ) ) , [ __webpack_require__ ( /*! ./md051 */ "../lib/md051.js" ) , __webpack_require__ ( /*! ./md052 */ "../lib/md052.js" ) , __webpack_require__ ( /*! ./md053 */ "../lib/md053.js" ) , __webpack_require__ ( /*! ./md054 */ "../lib/md054.js" ) , __webpack_require__ ( /*! ./md055 */ "../lib/md055.js" )
6847- // md056: See https://github.com/markdownlint/markdownlint
6915+ var rules = [ __webpack_require__ ( /*! ./md001 */ "../lib/md001.js" ) ,
6916+ // md002: Deprecated and removed
6917+ __webpack_require__ ( /*! ./md003 */ "../lib/md003.js" ) , __webpack_require__ ( /*! ./md004 */ "../lib/md004.js" ) , __webpack_require__ ( /*! ./md005 */ "../lib/md005.js" ) ,
6918+ // md006: Deprecated and removed
6919+ __webpack_require__ ( /*! ./md007 */ "../lib/md007.js" ) , __webpack_require__ ( /*! ./md009 */ "../lib/md009.js" ) , __webpack_require__ ( /*! ./md010 */ "../lib/md010.js" ) , __webpack_require__ ( /*! ./md011 */ "../lib/md011.js" ) , __webpack_require__ ( /*! ./md012 */ "../lib/md012.js" ) , __webpack_require__ ( /*! ./md013 */ "../lib/md013.js" ) , __webpack_require__ ( /*! ./md014 */ "../lib/md014.js" ) , __webpack_require__ ( /*! ./md018 */ "../lib/md018.js" ) , __webpack_require__ ( /*! ./md019 */ "../lib/md019.js" ) , __webpack_require__ ( /*! ./md020 */ "../lib/md020.js" ) , __webpack_require__ ( /*! ./md021 */ "../lib/md021.js" ) , __webpack_require__ ( /*! ./md022 */ "../lib/md022.js" ) , __webpack_require__ ( /*! ./md023 */ "../lib/md023.js" ) , __webpack_require__ ( /*! ./md024 */ "../lib/md024.js" ) , __webpack_require__ ( /*! ./md025 */ "../lib/md025.js" ) , __webpack_require__ ( /*! ./md026 */ "../lib/md026.js" ) , __webpack_require__ ( /*! ./md027 */ "../lib/md027.js" ) , __webpack_require__ ( /*! ./md028 */ "../lib/md028.js" ) , __webpack_require__ ( /*! ./md029 */ "../lib/md029.js" ) , __webpack_require__ ( /*! ./md030 */ "../lib/md030.js" ) , __webpack_require__ ( /*! ./md031 */ "../lib/md031.js" ) , __webpack_require__ ( /*! ./md032 */ "../lib/md032.js" ) , __webpack_require__ ( /*! ./md033 */ "../lib/md033.js" ) , __webpack_require__ ( /*! ./md034 */ "../lib/md034.js" ) , __webpack_require__ ( /*! ./md035 */ "../lib/md035.js" ) , __webpack_require__ ( /*! ./md036 */ "../lib/md036.js" ) , __webpack_require__ ( /*! ./md037 */ "../lib/md037.js" ) , __webpack_require__ ( /*! ./md038 */ "../lib/md038.js" ) , __webpack_require__ ( /*! ./md039 */ "../lib/md039.js" ) , __webpack_require__ ( /*! ./md040 */ "../lib/md040.js" ) , __webpack_require__ ( /*! ./md041 */ "../lib/md041.js" ) , __webpack_require__ ( /*! ./md042 */ "../lib/md042.js" ) , __webpack_require__ ( /*! ./md043 */ "../lib/md043.js" ) , __webpack_require__ ( /*! ./md044 */ "../lib/md044.js" ) , __webpack_require__ ( /*! ./md045 */ "../lib/md045.js" ) , __webpack_require__ ( /*! ./md046 */ "../lib/md046.js" ) , __webpack_require__ ( /*! ./md047 */ "../lib/md047.js" ) , __webpack_require__ ( /*! ./md048 */ "../lib/md048.js" ) ] . concat ( _toConsumableArray ( __webpack_require__ ( /*! ./md049-md050 */ "../lib/md049-md050.js" ) ) , [ __webpack_require__ ( /*! ./md051 */ "../lib/md051.js" ) , __webpack_require__ ( /*! ./md052 */ "../lib/md052.js" ) , __webpack_require__ ( /*! ./md053 */ "../lib/md053.js" ) , __webpack_require__ ( /*! ./md054 */ "../lib/md054.js" ) , __webpack_require__ ( /*! ./md055 */ "../lib/md055.js" ) , __webpack_require__ ( /*! ./md056 */ "../lib/md056.js" )
68486920// md057: See https://github.com/markdownlint/markdownlint
68496921] ) ;
68506922var _iterator = _createForOfIteratorHelper ( rules ) ,
0 commit comments