This commit is contained in:
15
node_modules/mdast-util-to-markdown/lib/util/check-rule-repeat.js
generated
vendored
Normal file
15
node_modules/mdast-util-to-markdown/lib/util/check-rule-repeat.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
module.exports = checkRule
|
||||
|
||||
function checkRule(context) {
|
||||
var repetition = context.options.ruleRepetition || 3
|
||||
|
||||
if (repetition < 3) {
|
||||
throw new Error(
|
||||
'Cannot serialize rules with repetition `' +
|
||||
repetition +
|
||||
'` for `options.ruleRepetition`, expected `3` or more'
|
||||
)
|
||||
}
|
||||
|
||||
return repetition
|
||||
}
|
||||
Reference in New Issue
Block a user